-
-
Notifications
You must be signed in to change notification settings - Fork 12
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 dependency react/promise to v3 #152
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/react-promise-3.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
added
Dependencies 📦
Pull requests that update a dependency file
PHP 🐘
Hypertext Pre Processor
labels
Jul 2, 2024
|
renovate
bot
force-pushed
the
renovate/react-promise-3.x
branch
8 times, most recently
from
July 2, 2024 14:45
4173aac
to
655e29a
Compare
renovate
bot
force-pushed
the
renovate/react-promise-3.x
branch
from
July 2, 2024 14:51
655e29a
to
4f3a66b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.7
->^2.7 || ^3.0
Release Notes
reactphp/promise (react/promise)
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
Feature: Full PHP 8.3 compatibility.
(#255 by @clue)
Feature: Describe all callable arguments with types for
Promise
andDeferred
.(#253 by @clue)
Update test suite and minor documentation improvements.
(#251 by @ondrejmirtes and #250 by @SQKo)
v3.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 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 andminimize 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 oldandExtendedPromiseInterface
.CancellablePromiseInterface
Each promise now always includes the
then()
,catch()
,finally()
andcancel()
methods.The new
catch()
andfinally()
methods replace the deprecatedandotherwise()
methods which continue to exist for BC reasons.always()
The old
andExtendedPromiseInterface
are no longer needed and have been removed as a consequence.CancellablePromiseInterface
(#75 by @jsor and #208 by @clue and @WyriHaximus)
Feature / BC break: Improve type safety of promises. Require
mixed
fulfillment value argument andThrowable
(orException
) as rejection reason.Add PHPStan template types to ensure strict types for
resolve(T $value): PromiseInterface<T>
andreject(Throwable $reason): PromiseInterface<never>
.It is no longer possible to resolve a promise without a value (use
null
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)
Feature / BC break: Report all unhandled rejections by default and remove
method.done()
Add new
set_rejection_handler()
function to set the global rejection handler for unhandled promise rejections.(#248, #249 and #224 by @clue)
BC break: Remove all deprecated APIs and reduce API surface.
Remove
,some()
,map()
functions, usereduce()
any()
andall()
functions instead.Remove internal
andFulfilledPromise
classes, useRejectedPromise
resolve()
andreject()
functions instead.Remove legacy promise progress API (deprecated third argument to
then()
method) and deprecatedclass.LazyPromise
(#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: Require
array
(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: Fix
race()
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 initializing
Deferred
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 the
2.x
branch:Feature: Support union types and address deprecation of
ReflectionType::getClass()
(PHP 8+).(#197 by @cdosoftei and @SimonFrings)
Feature: Support intersection types (PHP 8.1+).
(#209 by @bzikarsky)
Feature: Support DNS types (PHP 8.2+).
(#236 by @nhedger)
Feature: Port all memory improvements from
2.x
to3.x
.(#150 by @clue and @WyriHaximus)
Fix: Fix checking whether cancellable promise is an object and avoid possible warning.
(#161 by @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 by @WyriHaximus)
Improve test suite, update PHPUnit and PHP versions and add
.gitattributes
to exclude dev files from exports.(#107 by @carusogabriel, #148 and #234 by @WyriHaximus, #153 by @reedy, #162, #230 and #240 by @clue, #173, #177, #185 and #199 by @SimonFrings, #193 by @woodongwong and #210 by @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, #82 and #86 by @jsor, #158 by @WyriHaximus and #229 and #238 by @clue)
Trigger an
E_USER_ERROR
instead of throwing an exception fromdone()
(later removed entiredone()
method to globally report unhandled rejections).(#97 by @jsor and #224 and #248 by @clue)
Add type declarations for
some()
(later removed entiresome()
function).(#172 by @WyriHaximus and #219 by @clue)
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.
(#256 by @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.