Skip to content

Commit

Permalink
Prepare v2.9.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Feb 11, 2022
1 parent 3714507 commit 234f8fd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down

0 comments on commit 234f8fd

Please sign in to comment.