WyriHaximus / github-action-wait-for-status

Github Action that waits for successful commit status
MIT License
98 stars 12 forks source link

Update dependency react/promise to v3 #152

Open renovate[bot] opened 4 months ago

renovate[bot] commented 4 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react/promise ^2.7 -> ^2.7 \|\| ^3.0 age adoption passing confidence

Release Notes

reactphp/promise (react/promise) ### [`v3.2.0`](https://redirect.github.com/reactphp/promise/blob/HEAD/CHANGELOG.md#320-2024-05-24) [Compare Source](https://redirect.github.com/reactphp/promise/compare/v3.1.0...v3.2.0) - Feature: Improve PHP 8.4+ support by avoiding implicitly nullable type declarations. ([#​260](https://redirect.github.com/reactphp/promise/issues/260) by [@​Ayesh](https://redirect.github.com/Ayesh)) - Feature: Include previous exceptions when reporting unhandled promise rejections. ([#​262](https://redirect.github.com/reactphp/promise/issues/262) by [@​clue](https://redirect.github.com/clue)) - Update test suite to improve PHP 8.4+ support. ([#​261](https://redirect.github.com/reactphp/promise/issues/261) by [@​SimonFrings](https://redirect.github.com/SimonFrings)) ### [`v3.1.0`](https://redirect.github.com/reactphp/promise/blob/HEAD/CHANGELOG.md#310-2023-11-16) [Compare Source](https://redirect.github.com/reactphp/promise/compare/v3.0.0...v3.1.0) - Feature: Full PHP 8.3 compatibility. ([#​255](https://redirect.github.com/reactphp/promise/issues/255) by [@​clue](https://redirect.github.com/clue)) - Feature: Describe all callable arguments with types for `Promise` and `Deferred`. ([#​253](https://redirect.github.com/reactphp/promise/issues/253) by [@​clue](https://redirect.github.com/clue)) - Update test suite and minor documentation improvements. ([#​251](https://redirect.github.com/reactphp/promise/issues/251) by [@​ondrejmirtes](https://redirect.github.com/ondrejmirtes) and [#​250](https://redirect.github.com/reactphp/promise/issues/250) by [@​SQKo](https://redirect.github.com/SQKo)) ### [`v3.0.0`](https://redirect.github.com/reactphp/promise/blob/HEAD/CHANGELOG.md#300-2023-07-11) [Compare Source](https://redirect.github.com/reactphp/promise/compare/v2.11.0...v3.0.0) A major new feature release, see [**release announcement**](https://clue.engineering/2023/announcing-reactphp-promise-v3). - 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](https://redirect.github.com/reactphp/promise/issues/138) and [#​149](https://redirect.github.com/reactphp/promise/issues/149) by [@​WyriHaximus](https://redirect.github.com/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](https://redirect.github.com/reactphp/promise/issues/75) by [@​jsor](https://redirect.github.com/jsor) and [#​208](https://redirect.github.com/reactphp/promise/issues/208) by [@​clue](https://redirect.github.com/clue) and [@​WyriHaximus](https://redirect.github.com/WyriHaximus)) ```php // 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')); assert(method_exists($promise, 'finally')); assert(method_exists($promise, 'cancel')); ``` - Feature / BC break: Improve type safety of promises. Require `mixed` fulfillment value argument and `Throwable` (or `Exception`) as rejection reason. Add PHPStan template types to ensure strict types for `resolve(T $value): PromiseInterface` and `reject(Throwable $reason): PromiseInterface`. It is no longer possible to resolve a promise without a value (use `null` instead) or reject a promise without a reason (use `Throwable` instead). ([#​93](https://redirect.github.com/reactphp/promise/issues/93), [#​141](https://redirect.github.com/reactphp/promise/issues/141) and [#​142](https://redirect.github.com/reactphp/promise/issues/142) by [@​jsor](https://redirect.github.com/jsor), [#​138](https://redirect.github.com/reactphp/promise/issues/138), [#​149](https://redirect.github.com/reactphp/promise/issues/149) and [#​247](https://redirect.github.com/reactphp/promise/issues/247) by [@​WyriHaximus](https://redirect.github.com/WyriHaximus) and [#​213](https://redirect.github.com/reactphp/promise/issues/213) and [#​246](https://redirect.github.com/reactphp/promise/issues/246) by [@​clue](https://redirect.github.com/clue)) ```php // old (arguments used to be optional) $promise = resolve(); $promise = reject(); // new (already supported before) $promise = resolve(null); $promise = reject(new RuntimeException()); ``` - Feature / BC break: Report all unhandled rejections by default and remove ~~`done()`~~ method. Add new `set_rejection_handler()` function to set the global rejection handler for unhandled promise rejections. ([#​248](https://redirect.github.com/reactphp/promise/issues/248), [#​249](https://redirect.github.com/reactphp/promise/issues/249) and [#​224](https://redirect.github.com/reactphp/promise/issues/224) by [@​clue](https://redirect.github.com/clue)) ```php // Unhandled promise rejection with RuntimeException: Unhandled in example.php:2 reject(new RuntimeException('Unhandled')); ``` - BC break: Remove all deprecated APIs and reduce API surface. Remove ~~`some()`~~, ~~`map()`~~, ~~`reduce()`~~ functions, use `any()` and `all()` functions instead. Remove internal ~~`FulfilledPromise`~~ and ~~`RejectedPromise`~~ classes, use `resolve()` and `reject()` functions instead. Remove legacy promise progress API (deprecated third argument to `then()` method) and deprecated ~~`LazyPromise`~~ class. ([#​32](https://redirect.github.com/reactphp/promise/issues/32) and [#​98](https://redirect.github.com/reactphp/promise/issues/98) by [@​jsor](https://redirect.github.com/jsor) and [#​164](https://redirect.github.com/reactphp/promise/issues/164), [#​219](https://redirect.github.com/reactphp/promise/issues/219) and [#​220](https://redirect.github.com/reactphp/promise/issues/220) by [@​clue](https://redirect.github.com/clue)) - BC break: Make all classes final to encourage composition over inheritance. ([#​80](https://redirect.github.com/reactphp/promise/issues/80) by [@​jsor](https://redirect.github.com/jsor)) - Feature / BC break: Require `array` (or `iterable`) type for `all()` + `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](https://redirect.github.com/reactphp/promise/issues/225) by [@​clue](https://redirect.github.com/clue) and [#​35](https://redirect.github.com/reactphp/promise/issues/35) by [@​jsor](https://redirect.github.com/jsor)) - Fix / BC break: Fix `race()` to return a forever pending promise when called with an empty `array` (or `iterable`) and bring in line with ES6 specification. ([#​83](https://redirect.github.com/reactphp/promise/issues/83) by [@​jsor](https://redirect.github.com/jsor) and [#​225](https://redirect.github.com/reactphp/promise/issues/225) by [@​clue](https://redirect.github.com/clue)) - Minor performance improvements by initializing `Deferred` in the constructor and avoiding `call_user_func()` calls. ([#​151](https://redirect.github.com/reactphp/promise/issues/151) by [@​WyriHaximus](https://redirect.github.com/WyriHaximus) and [#​171](https://redirect.github.com/reactphp/promise/issues/171) by [@​Kubo2](https://redirect.github.com/Kubo2)) - Minor documentation improvements. ([#​110](https://redirect.github.com/reactphp/promise/issues/110) by [@​seregazhuk](https://redirect.github.com/seregazhuk), [#​132](https://redirect.github.com/reactphp/promise/issues/132) by [@​CharlotteDunois](https://redirect.github.com/CharlotteDunois), [#​145](https://redirect.github.com/reactphp/promise/issues/145) by [@​danielecr](https://redirect.github.com/danielecr), [#​178](https://redirect.github.com/reactphp/promise/issues/178) by [@​WyriHaximus](https://redirect.github.com/WyriHaximus), [#​189](https://redirect.github.com/reactphp/promise/issues/189) by [@​srdante](https://redirect.github.com/srdante), [#​212](https://redirect.github.com/reactphp/promise/issues/212) by [@​clue](https://redirect.github.com/clue), [#​214](https://redirect.github.com/reactphp/promise/issues/214), [#​239](https://redirect.github.com/reactphp/promise/issues/239) and [#​243](https://redirect.github.com/reactphp/promise/issues/243) by [@​SimonFrings](https://redirect.github.com/SimonFrings) and [#​231](https://redirect.github.com/reactphp/promise/issues/231) by [@​nhedger](https://redirect.github.com/nhedger)) The following changes had to be ported to this release due to our branching strategy, but also appeared in the [`2.x` branch](https://redirect.github.com/reactphp/promise/tree/2.x): - Feature: Support union types and address deprecation of `ReflectionType::getClass()` (PHP 8+). ([#​197](https://redirect.github.com/reactphp/promise/issues/197) by [@​cdosoftei](https://redirect.github.com/cdosoftei) and [@​SimonFrings](https://redirect.github.com/SimonFrings)) - Feature: Support intersection types (PHP 8.1+). ([#​209](https://redirect.github.com/reactphp/promise/issues/209) by [@​bzikarsky](https://redirect.github.com/bzikarsky)) - Feature: Support DNS types (PHP 8.2+). ([#​236](https://redirect.github.com/reactphp/promise/issues/236) by [@​nhedger](https://redirect.github.com/nhedger)) - Feature: Port all memory improvements from `2.x` to `3.x`. ([#​150](https://redirect.github.com/reactphp/promise/issues/150) by [@​clue](https://redirect.github.com/clue) and [@​WyriHaximus](https://redirect.github.com/WyriHaximus)) - Fix: Fix checking whether cancellable promise is an object and avoid possible warning. ([#​161](https://redirect.github.com/reactphp/promise/issues/161) by [@​smscr](https://redirect.github.com/smscr)) - Improve performance by prefixing all global functions calls with \ to skip the look up and resolve process and go straight to the global function. ([#​134](https://redirect.github.com/reactphp/promise/issues/134) by [@​WyriHaximus](https://redirect.github.com/WyriHaximus)) - Improve test suite, update PHPUnit and PHP versions and add `.gitattributes` to exclude dev files from exports. ([#​107](https://redirect.github.com/reactphp/promise/issues/107) by [@​carusogabriel](https://redirect.github.com/carusogabriel), [#​148](https://redirect.github.com/reactphp/promise/issues/148) and [#​234](https://redirect.github.com/reactphp/promise/issues/234) by [@​WyriHaximus](https://redirect.github.com/WyriHaximus), [#​153](https://redirect.github.com/reactphp/promise/issues/153) by [@​reedy](https://redirect.github.com/reedy), [#​162](https://redirect.github.com/reactphp/promise/issues/162), [#​230](https://redirect.github.com/reactphp/promise/issues/230) and [#​240](https://redirect.github.com/reactphp/promise/issues/240) by [@​clue](https://redirect.github.com/clue), [#​173](https://redirect.github.com/reactphp/promise/issues/173), [#​177](https://redirect.github.com/reactphp/promise/issues/177), [#​185](https://redirect.github.com/reactphp/promise/issues/185) and [#​199](https://redirect.github.com/reactphp/promise/issues/199) by [@​SimonFrings](https://redirect.github.com/SimonFrings), [#​193](https://redirect.github.com/reactphp/promise/issues/193) by [@​woodongwong](https://redirect.github.com/woodongwong) and [#​210](https://redirect.github.com/reactphp/promise/issues/210) by [@​bzikarsky](https://redirect.github.com/bzikarsky)) The following changes were originally planned for this release but later reverted and are not part of the final release: - Add iterative callback queue handler to avoid recursion (later removed to improve Fiber support). ([#​28](https://redirect.github.com/reactphp/promise/issues/28), [#​82](https://redirect.github.com/reactphp/promise/issues/82) and [#​86](https://redirect.github.com/reactphp/promise/issues/86) by [@​jsor](https://redirect.github.com/jsor), [#​158](https://redirect.github.com/reactphp/promise/issues/158) by [@​WyriHaximus](https://redirect.github.com/WyriHaximus) and [#​229](https://redirect.github.com/reactphp/promise/issues/229) and [#​238](https://redirect.github.com/reactphp/promise/issues/238) by [@​clue](https://redirect.github.com/clue)) - Trigger an `E_USER_ERROR` instead of throwing an exception from `done()` (later removed entire `done()` method to globally report unhandled rejections). ([#​97](https://redirect.github.com/reactphp/promise/issues/97) by [@​jsor](https://redirect.github.com/jsor) and [#​224](https://redirect.github.com/reactphp/promise/issues/224) and [#​248](https://redirect.github.com/reactphp/promise/issues/248) by [@​clue](https://redirect.github.com/clue)) - Add type declarations for `some()` (later removed entire `some()` function). ([#​172](https://redirect.github.com/reactphp/promise/issues/172) by [@​WyriHaximus](https://redirect.github.com/WyriHaximus) and [#​219](https://redirect.github.com/reactphp/promise/issues/219) by [@​clue](https://redirect.github.com/clue)) ### [`v2.11.0`](https://redirect.github.com/reactphp/promise/releases/tag/v2.11.0) [Compare Source](https://redirect.github.com/reactphp/promise/compare/v2.10.0...v2.11.0) 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. - Feature: Full PHP 8.3 compatibility. ([#​256](https://redirect.github.com/reactphp/promise/issues/256) by [@​clue](https://redirect.github.com/clue))

Configuration

📅 Schedule: Branch creation - " 6-22/3 1-5, 12-23/3 0,6" in timezone Europe/Amsterdam, 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.



This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] commented 4 months ago

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update react/promise:3.2.0 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires react/promise ^2.7 || ^3.0, found react/promise[v2.7.0, ..., 2.x-dev, v3.0.0, v3.1.0, v3.2.0, 3.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - api-clients/rx is locked to version 2.3.0 and an update of this package was not requested.
    - api-clients/rx 2.3.0 requires react/promise ^2.7 -> found react/promise[v2.7.0, ..., 2.x-dev] but it conflicts with your temporary update constraint (react/promise:3.2.0).
  Problem 3
    - clue/buzz-react is locked to version v2.9.0 and an update of this package was not requested.
    - clue/buzz-react v2.9.0 requires react/promise ^2.2.1 || ^1.2.1 -> found react/promise[v1.2.1, v1.3.0, 1.x-dev, v2.2.1, ..., 2.x-dev] but it conflicts with your temporary update constraint (react/promise:3.2.0).
  Problem 4
    - react/promise-stream is locked to version v1.5.0 and an update of this package was not requested.
    - react/promise-stream v1.5.0 requires react/promise ^3 || ^2.1 || ^1.2 -> found react/promise[v1.2.0, v1.2.1, v1.3.0, 1.x-dev, v2.1.0, ..., 2.x-dev, v3.0.0, v3.1.0, v3.2.0, 3.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 5
    - reactivex/rxphp is locked to version 2.0.11 and an update of this package was not requested.
    - reactivex/rxphp 2.0.11 requires react/promise ~2.2 -> found react/promise[v2.2.0, ..., 2.x-dev] but it conflicts with your temporary update constraint (react/promise:3.2.0).
  Problem 6
    - wyrihaximus/ticking-promise is locked to version 1.6.3 and an update of this package was not requested.
    - wyrihaximus/ticking-promise 1.6.3 requires react/promise ~2.1 -> found react/promise[v2.1.0, ..., 2.x-dev] but it conflicts with your temporary update constraint (react/promise:3.2.0).
  Problem 7
    - wyrihaximus/async-test-utilities is locked to version 4.2.2 and an update of this package was not requested.
    - wyrihaximus/async-test-utilities 4.2.2 requires react/promise ^2.9 -> found react/promise[v2.9.0, v2.10.0, v2.11.0, 2.x-dev] but it conflicts with your temporary update constraint (react/promise:3.2.0).
  Problem 8
    - api-clients/middleware 4.0.0 requires react/promise ^2.4 -> found react/promise[v2.4.0, ..., 2.x-dev] but it conflicts with your temporary update constraint (react/promise:3.2.0).
    - api-clients/github dev-main requires api-clients/middleware ^4.0 -> satisfiable by api-clients/middleware[4.0.0].
    - api-clients/github is locked to version dev-main and an update of this package was not requested.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.