File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 4.2.0 (2023-11-22)
4+
5+ * Feature: Add Promise v3 template types for all public functions.
6+ (#40 by @WyriHaximus )
7+
8+ All our public APIs now use Promise v3 template types to guide IDEs and static
9+ analysis tools (like PHPStan), helping with proper type usage and improving
10+ code quality:
11+
12+ ``` php
13+ assertType('bool', await(resolve(true)));
14+ assertType('PromiseInterface<bool >', async(fn(): bool => true)());
15+ assertType('PromiseInterface<bool >', coroutine(fn(): bool => true));
16+ ```
17+
18+ * Feature: Full PHP 8.3 compatibility.
19+ (#81 by @clue)
20+
21+ * Update test suite to avoid unhandled promise rejections.
22+ (#79 by @clue)
23+
324## 4.1.0 (2023-06-22)
425
526* Feature: Add new `delay()` function to delay program execution.
Original file line number Diff line number Diff line change @@ -623,7 +623,7 @@ This project follows [SemVer](https://semver.org/).
623623This will install the latest supported version from this branch:
624624
625625``` bash
626- composer require react/async:^4.1
626+ composer require react/async:^4.2
627627```
628628
629629See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
You can’t perform that action at this time.
0 commit comments