Skip to content

Commit 7c3738e

Browse files
committed
Prepare v4.2.0 release
1 parent 3fad975 commit 7c3738e

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
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.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ This project follows [SemVer](https://semver.org/).
623623
This 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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy