From 234f8fd1023c9158e2314fa9d7d0e6a83db42910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Fri, 11 Feb 2022 11:27:51 +0100 Subject: [PATCH] Prepare v2.9.0 release --- CHANGELOG.md | 24 ++++++++++++++++++++++++ README.md | 7 +++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81ffffbb..7f785eb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,30 @@ CHANGELOG for 2.x ================= +* 2.9.0 (2022-02-11) + + * Feature: Support union types and address deprecation of `ReflectionType::getClass()` (PHP 8+). + (#198 by @cdosoftei and @SimonFrings) + + ```php + $promise->otherwise(function (OverflowException|UnderflowException $e) { + echo 'Error: ' . $e->getMessage() . PHP_EOL; + }); + ``` + + * Feature: Support intersection types (PHP 8.1+). + (#195 by @bzikarsky) + + ```php + $promise->otherwise(function (OverflowException&CacheException $e) { + echo 'Error: ' . $e->getMessage() . PHP_EOL; + }); + ``` + + * Improve test suite, use GitHub actions for continuous integration (CI), + update to PHPUnit 9, and add full core team to the license. + (#174, #183, #186, and #201 by @SimonFrings and #211 by @clue) + * 2.8.0 (2020-05-12) * Mark `FulfilledPromise`, `RejectedPromise` and `LazyPromise` as deprecated for Promise v2 (and remove for Promise v3). diff --git a/README.md b/README.md index f084c5fd..d904a1d8 100644 --- a/README.md +++ b/README.md @@ -849,15 +849,14 @@ This project follows [SemVer](https://semver.org/). This will install the latest supported version: ```bash -$ composer require react/promise:^2.8 +$ composer require react/promise:^2.9 ``` See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. This project aims to run on any platform and thus does not require any PHP -extensions and supports running on legacy PHP 5.4 through current PHP 7+ and HHVM. -It's *highly recommended to use PHP 7+* for this project due to its vast -performance improvements. +extensions and supports running on legacy PHP 5.4 through current PHP 8+ and HHVM. +It's *highly recommended to use the latest supported PHP version* for this project. Credits -------