File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
24
## 4.1.0 (2023-06-22)
4
25
5
26
* 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/).
623
623
This will install the latest supported version from this branch:
624
624
625
625
``` bash
626
- composer require react/async:^4.1
626
+ composer require react/async:^4.2
627
627
```
628
628
629
629
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
You can’t perform that action at this time.
0 commit comments