8000 Prepare v2.9.0 release · reactphp/promise@234f8fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 234f8fd

Browse files
committed
Prepare v2.9.0 release
1 parent 3714507 commit 234f8fd

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

CHANGELOG.md

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

4+
* 2.9.0 (2022-02-11)
5+
6+
* Feature: Support union types and address deprecation of `ReflectionType::getClass()` (PHP 8+).
7+
(#198 by @cdosoftei and @SimonFrings)
8+
9+
```php
10+
$promise->otherwise(function (OverflowException|UnderflowException $e) {
11+
echo 'Error: ' . $e->getMessage() . PHP_EOL;
12+
});
13+
```
14+
15+
* Feature: Support intersection types (PHP 8.1+).
16+
(#195 by @bzikarsky)
17+
18+
```php
19+
$promise->otherwise(function (OverflowException&CacheException $e) {
20+
echo 'Error: ' . $e->getMessage() . PHP_EOL;
21+
});
22+
```
23+
24+
* Improve test suite, use GitHub actions for continuous integration (CI),
25+
update to PHPUnit 9, and add full core team to the license.
26+
(#174, #183, #186, and #201 by @SimonFrings and #211 by @clue)
27+
428
* 2.8.0 (2020-05-12)
529

630
* Mark `FulfilledPromise`, `RejectedPromise` and `LazyPromise` as deprecated for Promise v2 (and remove for Promise v3).

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -849,15 +849,14 @@ This project follows [SemVer](https://semver.org/).
849849
This will install the latest supported version:
850850

851851
```bash
852-
$ composer require react/promise:^2.8
852+
$ composer require react/promise:^2.9
853853
```
854854

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

857857
This project aims to run on any platform and thus does not require any PHP
858-
extensions and supports running on legacy PHP 5.4 through current PHP 7+ and HHVM.
859-
It's *highly recommended to use PHP 7+* for this project due to its vast
860-
performance improvements.
858+
extensions and supports running on legacy PHP 5.4 through current PHP 8+ and HHVM.
859+
It's *highly recommended to use the latest supported PHP version* for this project.
861860

862861
Credits
863862
-------

0 commit comments

Comments
 (0)
0