Repository navigation
fix(deps): update dependency p-queue to v10 - #4156
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
9.3.5→10.0.0Release Notes
sindresorhus/p-queue (p-queue)
v10.0.0Compare Source
Breaking
300a52dEventTargetinstead of anEventEmitter300a52d.addEventListener()and.removeEventListener()instead of.on(),.once(),.off(), and the otherEventEmittermethods.completedanderrorevents have the result or the error inevent.detail..clear()now rejects the promises of the removed tasks with anAbortErrorinstead of leaving them pending forever64311ff.clear()marks these promises as handled, but a promise made from them, like the one from.addAll()orqueue.add(fn).then(…), now rejects, so handle it.TimeoutErroris now aDOMExceptionnamedTimeoutError, like the error ofAbortSignal.timeout()300a52dcarryoverConcurrencyCountoption: usecarryoverIntervalCount300a52d76a48bad65d567concurrencyandintervalCapmust be integers (orInfinity). A limit of1.5used to let 2 tasks run.timeoutandintervalabove2147483647ms (the maximum timer delay) are rejected. They used to fire after 1 ms..add()rejects with aTypeErrorwhenpriorityisNaNor not a number..start(),.clear(), and settingconcurrencyno longer emitemptyandidlewhen the queue is already empty, soidleno longer fires on a queue that never had a taskaeedf53queueClassmust now implementremove()300a52dImprovements
300a52d.add()call, so it sees theAsyncLocalStoragevalues of the caller, also when it starts later (Node.js 22.3 and later, Deno, and Bun) (#200)a5b7b54timeoutnow gets asignalthat aborts when the task times out, so you can pass it on tofetch()and similar to stop the work300a52d.onEmpty()and theemptyevent now fire when the last waiting task starts, not when the next task finishes1cf5b82cb25a0a.addAll()now resolves with a typed tuple when the tasks return different types36e83aaFixes
intervalCapwas exceeded at the end of a window, a waiting task got stuck, orisRateLimitedwas wrong6af55a71cf5b826c08a4fac89911450356aPriorityQueuekeeping finished tasks in memory95622a46fb8337idlelistener and events in the wrong orderaeedf53b33dd448792846e79f970d65d5676f6028aundefinedoptions and an invalid.timeoutsetter breaking the queued6cf96b48586f436e83aafa3c3e0Migration guide
Events
If the result or the error is
undefined,event.detailisnull, becauseCustomEventworks that way.Other differences from
EventEmitter:.clear()The promises of the removed tasks now reject with an
AbortError. If you await them, handle the rejection:Timeouts and signals
error instanceof TimeoutErrorstill works. You can also checkerror.name === 'TimeoutError', which also matches the error ofAbortSignal.timeout().Other changes:
TimeoutErrorstack trace no longer shows where the task was added.timeoutset, the task'ssignalis no longer linked to yoursignalafter the task finishes.signalortimeoutsettle 2 microtasks later than before.Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.