Repository navigation
chore(deps): update dependency p-queue to v10 - #4050
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
renovate-bot
force-pushed
the
renovate/p-queue-10.x
branch
from
October 14, 2026 13:52
539ab3f to
1b506e1
Compare
renovate-bot
force-pushed
the
renovate/p-queue-10.x
branch
from
October 14, 2026 14:40
1b506e1 to
0b8157c
Compare
renovate-bot
force-pushed
the
renovate/p-queue-10.x
branch
from
October 19, 2026 22:27
0b8157c to
21ffe09
Compare
This branch has not been 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:
^6.0.0→^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.v9.3.5Compare Source
507e7eev9.3.4Compare Source
22edad4v9.3.3Compare Source
intervalCap > 189a10bbv9.3.2Compare Source
9efde42v9.3.1Compare Source
onSizeLessThan()resolving late when the queue drains without a completiond9cf2bev9.3.0Compare Source
timeoutRemainingtorunningTasks57d0a1av9.2.0Compare Source
87077d0v9.1.2Compare Source
PriorityQueuetype (#242)a20e1f3v9.1.1Compare Source
signaloption not rejecting when task is aborted while queueda64b316remove()method. See the built-in class.v9.1.0Compare Source
strictoption for sliding window rate limiting03b8156v9.0.1Compare Source
e9074f0v9.0.0Compare Source
Breaking
b2600d5throwOnTimeoutoption - timeouts now always throwe48716fImprovements
carryoverConcurrencyCountoption tocarryoverIntervalCounta6096de.onError()7c27e1d.onPendingZero()(#230)62efb74pendingZeroevent (#230)62efb74.runningTasksfad8ee4.isSaturatedfad8ee4.onRateLimit()701453e.onRateLimitCleared()701453e.isRateLimited701453erateLimitevent701453erateLimitClearedevent701453eFixes
81cbae27fea6587b3f53e439d512v8.1.1Compare Source
intervalCount(#220)199614ev8.1.0Compare Source
.setPriority()for updating priority of a queued promise function (#209)6e5cbc9v8.0.1Compare Source
exactOptionalPropertyTypesis enabled (#202)ec4e2a3v8.0.0Compare Source
Breaking
68dfe95AbortErrorexport. It now throws the built-in DOMException when using thesignaloption.68dfe95DefaultAddOptionstype toQueueAddOptionsv7.4.1Compare Source
9f7ad20v7.4.0Compare Source
f216e33v7.3.4Compare Source
84b32d5v7.3.3Compare Source
08fff4av7.3.2Compare Source
967e4bdv7.3.1Compare Source
.add()and.addAll()8184655v7.3.0Compare Source
emptyevent5362aa7v7.2.0Compare Source
AbortController(#161)394153fv7.1.0Compare Source
efe4feev7.0.0Compare Source
Breaking
8c7325aImprovements
error&completedevents (#130)a176837.onSizeLessThan()helper method (#131)8d0a356Configuration
📅 Schedule: (UTC)
🚦 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.