Skip to content

Commit

Permalink
Prepare v2.8.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed May 12, 2020
1 parent a287fc0 commit f3cff96
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
CHANGELOG for 2.x
=================

* 2.8.0 (2020-05-12)

* Mark `FulfilledPromise`, `RejectedPromise` and `LazyPromise` as deprecated for Promise v2 (and remove for Promise v3).
(#143 and #165 by @clue)

```php
// deprecated
$fulfilled = new React\Promise\FulfilledPromise($value);
$rejected = new React\Promise\RejectedPromise($reason);

// recommended alternatives
$fulfilled = React\Promise\resolve($value);
$rejected = React\Promise\reject($reason);
```

* Fix: Fix checking whether cancellable promise is an object and avoid possible warning.
(#168 by @smscr and @jsor)

* Improve documentation and add docblocks to functions and interfaces.
(#135 by @CharlotteDunois)

* Add `.gitattributes` to exclude dev files from exports.
(#154 by @reedy)

* Improve test suite, run tests on PHP 7.4 and update PHPUnit test setup.
(#163 by @clue)

* 2.7.1 (2018-01-07)

* Fix: file_exists warning when resolving with long strings.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ This project follows [SemVer](https://semver.org/).
This will install the latest supported version:

```bash
$ composer require react/promise:^2.7
$ composer require react/promise:^2.8
```

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

0 comments on commit f3cff96

Please sign in to comment.