Skip to content

Commit f3cff96

Browse files
committed
Prepare v2.8.0 release
1 parent a287fc0 commit f3cff96

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
CHANGELOG for 2.x
22
=================
33

4+
* 2.8.0 (2020-05-12)
5+
6+
* Mark `FulfilledPromise`, `RejectedPromise` and `LazyPromise` as deprecated for Promise v2 (and remove for Promise v3).
7+
(#143 and #165 by @clue)
8+
9+
```php
10+
// deprecated
11+
$fulfilled = new React\Promise\FulfilledPromise($value);
12+
$rejected = new React\Promise\RejectedPromise($reason);
13+
14+
// recommended alternatives
15+
$fulfilled = React\Promise\resolve($value);
16+
$rejected = React\Promise\reject($reason);
17+
```
18+
19+
* Fix: Fix checking whether cancellable promise is an object and avoid possible warning.
20+
(#168 by @smscr and @jsor)
21+
22+
* Improve documentation and add docblocks to functions and interfaces.
23+
(#135 by @CharlotteDunois)
24+
25+
* Add `.gitattributes` to exclude dev files from exports.
26+
(#154 by @reedy)
27+
28+
* Improve test suite, run tests on PHP 7.4 and update PHPUnit test setup.
29+
(#163 by @clue)
30+
431
* 2.7.1 (2018-01-07)
532

633
* Fix: file_exists warning when resolving with long strings.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ This project follows [SemVer](https://semver.org/).
850850
This will install the latest supported version:
851851

852852
```bash
853-
$ composer require react/promise:^2.7
853+
$ composer require react/promise:^2.8
854854
```
855855

856856
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

0 commit comments

Comments
 (0)