From b9641ac600b4b144e71a87dcf1be4d41dd3a3548 Mon Sep 17 00:00:00 2001 From: Simon Frings Date: Thu, 22 Jun 2023 16:10:50 +0200 Subject: [PATCH] Prepare v4.1.0 release --- CHANGELOG.md | 21 +++++++++++++++++++++ README.md | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75f7944..0aff589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## 4.1.0 (2023-06-22) + +* Feature: Add new `delay()` function to delay program execution. + (#69 by @clue) + + ```php + echo 'a'; + Loop::addTimer(1.0, function () { + echo 'b'; + }); + React\Async\delay(3.0); + echo 'c'; + + // prints "a" at t=0.0s + // prints "b" at t=1.0s + // prints "c" at t=3.0s + ``` + +* Update test suite, add PHPStan with `max` level and report failed assertions. + (#66 and #76 by @clue and #61 and #73 by @WyriHaximus) + ## 4.0.0 (2022-07-11) A major new feature release, see [**release announcement**](https://clue.engineering/2022/announcing-reactphp-async). diff --git a/README.md b/README.md index ef66aa0..6e71f49 100644 --- a/README.md +++ b/README.md @@ -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 +composer require react/async:^4.1 ``` See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.