Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update dependency react/promise to v3#112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
renovate-runner wants to merge1 commit intomaster
base:master
Choose a base branch
Loading
fromrenovate/update-packagist-react-promise-3-3-0

Conversation

@renovate-runner
Copy link
Contributor

This PR contains the following updates:

PackageChangeAgeConfidence
react/promise^2.8 ->^2.8 || ^3.0ageconfidence

Release Notes

reactphp/promise (react/promise)

v3.3.0

Compare Source

  • Feature: Improve PHP 8.5+ support by avoiding deprecated switch case syntax.
    (#​264 by@​theodorejb)

  • Feature: Run tests on PHP 8.4 and update test environment.
    (#​271 by@​clue)

v3.2.0

Compare Source

  • Feature: Improve PHP 8.4+ support by avoiding implicitly nullable type declarations.
    (#​260 by@​Ayesh)

  • Feature: Include previous exceptions when reporting unhandled promise rejections.
    (#​262 by@​clue)

  • Update test suite to improve PHP 8.4+ support.
    (#​261 by@​SimonFrings)

v3.1.0

Compare Source

v3.0.0

Compare Source

A major new feature release, seerelease 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 v3 release will be the way forward for this package. However, we will still
    actively support v2 and v1 to provide a smooth upgrade path for those not yet
    on the latest versions.

This update involves some major new features and a minor BC break over the
v2.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:

  • BC break: PHP 8.1+ recommended, PHP 7.1+ required.
    (#​138 and#​149 by@​WyriHaximus)

  • Feature / BC break: ThePromiseInterface now includes the functionality of the oldExtendedPromiseInterface andCancellablePromiseInterface.
    Each promise now always includes thethen(),catch(),finally() andcancel() methods.
    The newcatch() andfinally() methods replace the deprecatedotherwise() andalways() methods which continue to exist for BC reasons.
    The oldExtendedPromiseInterface andCancellablePromiseInterface are no longer needed and have been removed as a consequence.
    (#​75 by@​jsor and#​208 by@​clue and@​WyriHaximus)

    // old (multiple interfaces may or may not be implemented)assert($promiseinstanceof PromiseInterface);assert(method_exists($promise,'then'));if ($promiseinstanceof ExtendedPromiseInterface) {assert(method_exists($promise,'otherwise')); }if ($promiseinstanceof ExtendedPromiseInterface) {assert(method_exists($promise,'always')); }if ($promiseinstanceof CancellablePromiseInterface) {assert(method_exists($promise,'cancel')); }// new (single PromiseInterface with all methods)assert($promiseinstanceof PromiseInterface);assert(method_exists($promise,'then'));assert(method_exists($promise,'catch'));assert(method_exists($promise,'finally'));assert(method_exists($promise,'cancel'));
  • Feature / BC break: Improve type safety of promises. Requiremixed fulfillment value argument andThrowable (orException) as rejection reason.
    Add PHPStan template types to ensure strict types forresolve(T $value): PromiseInterface<T> andreject(Throwable $reason): PromiseInterface<never>.
    It is no longer possible to resolve a promise without a value (usenull instead) or reject a promise without a reason (useThrowable instead).
    (#​93,#​141 and#​142 by@​jsor,#​138,#​149 and#​247 by@​WyriHaximus and#​213 and#​246 by@​clue)

    // old (arguments used to be optional)$promise =resolve();$promise =reject();// new (already supported before)$promise =resolve(null);$promise =reject(newRuntimeException());
  • Feature / BC break: Report all unhandled rejections by default and removedone() method.
    Add newset_rejection_handler() function to set the global rejection handler for unhandled promise rejections.
    (#​248,#​249 and#​224 by@​clue)

    // Unhandled promise rejection with RuntimeException: Unhandled in example.php:2reject(newRuntimeException('Unhandled'));
  • BC break: Remove all deprecated APIs and reduce API surface.
    Removesome(),map(),reduce() functions, useany() andall() functions instead.
    Remove internalFulfilledPromise andRejectedPromise classes, useresolve() andreject() functions instead.
    Remove legacy promise progress API (deprecated third argument tothen() method) and deprecatedLazyPromise class.
    (#​32 and#​98 by@​jsor and#​164,#​219 and#​220 by@​clue)

  • BC break: Make all classes final to encourage composition over inheritance.
    (#​80 by@​jsor)

  • Feature / BC break: Requirearray (oriterable) type forall() +race() +any() functions and bring in line with ES6 specification.
    These functions now require a single argument with a variable number of promises or values as input.
    (#​225 by@​clue and#​35 by@​jsor)

  • Fix / BC break: Fixrace() to return a forever pending promise when called with an emptyarray (oriterable) and bring in line with ES6 specification.
    (#​83 by@​jsor and#​225 by@​clue)

  • Minor performance improvements by initializingDeferred in the constructor and avoidingcall_user_func() calls.
    (#​151 by@​WyriHaximus and#​171 by@​Kubo2)

  • Minor documentation improvements.
    (#​110 by@​seregazhuk,#​132 by@​CharlotteDunois,#​145 by@​danielecr,#​178 by@​WyriHaximus,#​189 by@​srdante,#​212 by@​clue,#​214,#​239 and#​243 by@​SimonFrings and#​231 by@​nhedger)

The following changes had to be ported to this release due to our branching
strategy, but also appeared in the2.x branch:

The following changes were originally planned for this release but later reverted
and are not part of the final release:

v2.11.0

Compare Source

This is a compatibility release to ensure a smooth upgrade path for those not yet
on Promise v3. We encourage upgrading to the latest version when possible, as
Promise v3 will be the way forward for this project.


Configuration

📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR is behind base branch, 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 byRenovate Bot.

@renovate-runnerrenovate-runnerbot added the Dependencies 📦Pull requests that update a dependency file labelNov 1, 2025
@renovate-runnerrenovate-runnerbot added the PHP 🐘Hypertext Pre Processor labelNov 1, 2025
@github-actionsgithub-actionsbot added this to the2.4.0 milestoneNov 1, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@WyriHaximusWyriHaximusAwaiting requested review from WyriHaximusWyriHaximus is a code owner

Assignees

No one assigned

Labels

Dependencies 📦Pull requests that update a dependency fileJSON 👨‍💼PHP 🐘Hypertext Pre Processor

Projects

None yet

Milestone

2.4.0

Development

Successfully merging this pull request may close these issues.

1 participant


[8]ページ先頭

©2009-2025 Movatter.jp