Skip to content

Commit 5e60e55

Browse files
committed
Prepare v2.6.0 release
1 parent 8345e87 commit 5e60e55

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
CHANGELOG for 2.x
22
=================
33

4+
* 2.6.0 (2018-06-11)
5+
6+
* Feature: Significantly improve memory consumption and performance by only passing resolver args
7+
to resolver and canceller if callback requires them. Also use static callbacks without
8+
binding to promise, clean up canceller function reference when they are no longer
9+
needed and hide resolver and canceller references from call stack on PHP 7+.
10+
(#113, #115, #116, #117, #118, #119 and #123 by @clue)
11+
12+
These changes combined mean that rejecting promises with an `Exception` should
13+
no longer cause any internal circular references which could cause some unexpected
14+
memory growth in previous versions. By explicitly avoiding and explicitly
15+
cleaning up said references, we can avoid relying on PHP's circular garbage collector
16+
to kick in which significantly improves performance when rejecting many promises.
17+
18+
* Mark legacy progress support / notification API as deprecated
19+
(#112 by @clue)
20+
21+
* Recommend rejecting promises by throwing an exception
22+
(#114 by @jsor)
23+
24+
* Improve documentation to properly instantiate LazyPromise
25+
(#121 by @holtkamp)
26+
27+
* Follower cancellation propagation was originally planned for this release
28+
but has been reverted for now and is planned for a future release.
29+
(#99 by @jsor and #122 by @clue)
30+
431
* 2.5.1 (2017-03-25)
532

633
* Fix circular references when resolving with a promise which follows

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ Table of Contents
5151
* [Mixed resolution and rejection forwarding](#mixed-resolution-and-rejection-forwarding)
5252
* [Progress event forwarding](#progress-event-forwarding)
5353
* [done() vs. then()](#done-vs-then)
54-
5. [Credits](#credits)
55-
6. [License](#license)
54+
5. [Install](#install)
55+
6. [Credits](#credits)
56+
7. [License](#license)
5657

5758
Introduction
5859
------------
@@ -833,6 +834,25 @@ wrapped in an exception of the type `React\Promise\UnhandledRejectionException`.
833834

834835
You can get the original rejection reason by calling `$exception->getReason()`.
835836

837+
Install
838+
-------
839+
840+
The recommended way to install this library is [through Composer](https://getcomposer.org).
841+
[New to Composer?](https://getcomposer.org/doc/00-intro.md)
842+
843+
This will install the latest supported version:
844+
845+
```bash
846+
$ composer require react/promise:^2.6
847+
```
848+
849+
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
850+
851+
This project aims to run on any platform and thus does not require any PHP
852+
extensions and supports running on legacy PHP 5.4 through current PHP 7+ and HHVM.
853+
It's *highly recommended to use PHP 7+* for this project due to its vast
854+
performance improvements.
855+
836856
Credits
837857
-------
838858

0 commit comments

Comments
 (0)