Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update react/promise requirement from ^2.10 to ^3.1 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Nov 16, 2023

Updates the requirements on react/promise to permit the latest version.

Release notes

Sourced from react/promise's releases.

v3.1.0

Changelog

Sourced from react/promise's changelog.

3.1.0 (2023-11-16)

3.0.0 (2023-07-11)

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 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: The PromiseInterface now includes the functionality of the old ExtendedPromiseInterface and CancellablePromiseInterface. Each promise now always includes the then(), catch(), finally() and cancel() methods. The new catch() and finally() methods replace the deprecated otherwise() and always() methods which continue to exist for BC reasons. The old ExtendedPromiseInterface and CancellablePromiseInterface 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($promise instanceof PromiseInterface);
    assert(method_exists($promise, 'then'));
    if ($promise instanceof ExtendedPromiseInterface) { assert(method_exists($promise, 'otherwise')); }
    if ($promise instanceof ExtendedPromiseInterface) { assert(method_exists($promise, 'always')); }
    if ($promise instanceof CancellablePromiseInterface) { assert(method_exists($promise, 'cancel')); }
    // new (single PromiseInterface with all methods)
    assert($promise instanceof PromiseInterface);
    assert(method_exists($promise, 'then'));
    assert(method_exists($promise, 'catch'));

... (truncated)

Commits
  • e563d55 Prepare v3.1.0 release
  • 75f3e01 Merge pull request #255 from clue-labs/php8.3-v3
  • 3282305 Run tests on PHP 8.3 and update test suite
  • 7053e3c Merge pull request #251 from ondrejmirtes/update-phpstan
  • 91cad0e Update PHPStan
  • 5cd1458 Merge pull request #253 from clue-labs/callable-types
  • de40371 Describe callable arguments for Promise
  • bb96a7b Describe callable arguments for Deferred
  • baf9ab5 Merge pull request #250 from SQKo/patch-1
  • 11b78c1 Fix gist link about promise
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [react/promise](https://github.com/reactphp/promise) to permit the latest version.
- [Release notes](https://github.com/reactphp/promise/releases)
- [Changelog](https://github.com/reactphp/promise/blob/3.x/CHANGELOG.md)
- [Commits](reactphp/promise@v2.10.0...v3.1.0)

---
updated-dependencies:
- dependency-name: react/promise
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants