From f3cff96a19736714524ca0dd1d4130de73dbbbc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Tue, 12 May 2020 17:16:56 +0200 Subject: [PATCH] Prepare v2.8.0 release --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11f007d7..81ffffbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index ec9d1a0d..6588c724 100644 --- a/README.md +++ b/README.md @@ -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.