phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Update dependency react/async to v4 (1.10.x)

Open renovate[bot] opened this issue 2 years ago • 0 comments

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react/async ^3 -> ^4 age adoption passing confidence

Release Notes

reactphp/async (react/async)

v4.2.0

Compare Source

  • 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:

    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)

v4.1.0

Compare Source

  • Feature: Add new delay() function to delay program execution. (#​69 by @​clue)

    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)

v4.0.0

Compare Source

A major new feature release, see release announcement.

  • We'd like to emphasize that this component is production ready and battle-tested. We plan to support all long-term support (LTS) releases for at least 24 months, so you have a rock-solid foundation to build on top of.

  • The v4 release will be the way forward for this package. However, we will still actively support v3 and v2 to provide a smooth upgrade path for those not yet on PHP 8.1+. If you're using an older PHP version, you may use either version which all provide a compatible API but may not take advantage of newer language features. You may target multiple versions at the same time to support a wider range of PHP versions:

This update involves some major new features and a minor BC break over the v3.0.0 release. We've tried hard to avoid BC breaks where possible and minimize impact otherwise. We expect that most consumers of this package will be affected by BC breaks, but updating should take no longer than a few minutes. See below for more details:

The following changes had to be ported to this release due to our branching strategy, but also appeared in the v3.0.0 release:

v3.2.0

Compare Source

This release contains backported features from the Async v4.2.0 release for those not yet on PHP 8.1+. Async v3 provides a compatible API, but may not take advantage of newer language features. We encourage upgrading to the latest version when possible.

  • Feature: Add Promise v3 template types for all public functions. (#​82 by @​clue)

    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:

    assertType('bool', await(resolve(true)));
    assertType('PromiseInterface<bool>', coroutine(fn(): bool => true));
    
  • Feature: Full PHP 8.3 compatibility. (#​83 by @​clue)

  • Update test suite to avoid unhandled promise rejections. (#​80 by @​clue)

v3.1.0

Compare Source

  • Feature: Add new delay() function to delay program execution. (#​71 by @​clue)

    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. (#​67 and #​77 by @​clue and #​60 and #​74 by @​WyriHaximus)


Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] avatar May 08 '23 15:05 renovate[bot]