Skip to content

Commit

Permalink
Prepare v4.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFrings committed Nov 22, 2023
1 parent 3fad975 commit 7c3738e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 4.2.0 (2023-11-22)

* Feature: Add Promise v3 template types for all public functions.
(#40 by @WyriHaximus)

All our public APIs now use Promise v3 template types to guide IDEs and static
analysis tools (like PHPStan), helping with proper type usage and improving
code quality:

```php
assertType('bool', await(resolve(true)));
assertType('PromiseInterface<bool>', async(fn(): bool => true)());
assertType('PromiseInterface<bool>', coroutine(fn(): bool => true));
```

* Feature: Full PHP 8.3 compatibility.
(#81 by @clue)

* Update test suite to avoid unhandled promise rejections.
(#79 by @clue)

## 4.1.0 (2023-06-22)

* Feature: Add new `delay()` function to delay program execution.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ This project follows [SemVer](https://semver.org/).
This will install the latest supported version from this branch:

```bash
composer require react/async:^4.1
composer require react/async:^4.2
```

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

0 comments on commit 7c3738e

Please sign in to comment.