p-queue breaking changes
p-queue 10.0.0 (October 12, 2026) is its newest release with breaking changes, 34 of them. The first: Removed Options.carryoverConcurrencyCount. Every breaking API change we have recorded in p-queue on npm: 52 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 10.0.0, released October 12, 2026. Source repository
Its 10.0.0 release requires Node.js 22 or later. Node.js end of life dates.
- From 9.0.0 to 10.0.0: 34 breaking changes in 1 version.
- From 7.0.0 to 10.0.0: 47 breaking changes in 3 versions.
p-queue 10.0.0 breaking changes
- Removed
Options.carryoverConcurrencyCount
Use carryoverIntervalCount instead of carryoverConcurrencyCount. npmjs.com - Removed
queue.off
Use removeEventListener instead of off. github.com - Removed
queue.once
Use addEventListener with {once: true} instead of once. github.com - Behavior changed
An error thrown in an event listener now exits the process as an uncaught exception. github.com - Behavior changed
concurrency
Non-integer limits are rejected; a limit such as 1.5 previously let 2 tasks run. github.com - Behavior changed
queue.add
add now rejects with a TypeError when priority is NaN or not a number. github.com - Behavior changed
queue.clear
Promises of removed tasks now reject with an AbortError instead of staying pending; handle the rejection when awaiting them. github.com - Behavior changed
queue.idle
start, clear and setting concurrency no longer emit empty and idle when the queue is already empty. github.com - Behavior changed
queue.on
Use addEventListener and removeEventListener instead of EventEmitter methods such as on, once and off. completed and error results are in event.detail. github.com - Behavior changed
queue.onEmpty
onEmpty and the empty event now fire when the last waiting task starts, not when the next task finishes. github.com - Behavior changed
timeout
Values above 2147483647 ms are now rejected instead of firing after 1 ms. github.com - Behavior changed
TimeoutError
TimeoutError is now a DOMException named TimeoutError, like the error of AbortSignal.timeout(). github.com - Configuration changed
The package now requires Node.js 22; older Node.js versions are no longer supported. github.com - Signature changed
default
Was class PQueue<QueueType extends Queue<RunFunction, EnqueueOptionsType> = PriorityQueue, EnqueueOptionsType extends QueueAddOptions = QueueAddOptions> extends EventEmitter<EventName>; now class PQueue<QueueType extends Queue<RunFunction... npmjs.com - Signature changed
default.add
Was add<TaskResultType>(function_: Task<TaskResultType>, options?: Partial<EnqueueOptionsType>): Promise<TaskResultType>; now add<TaskResultType>(function_: Task<TaskResultType>, options?: Partial<EnqueueOptionsType>)... npmjs.com - Signature changed
default.addAll
Was addAll<TaskResultsType>(functions: ReadonlyArray<Task<TaskResultsType>>, options?: Partial<EnqueueOptionsType>): Promise<TaskResultsType[]>; now addAll<TaskResultsType>(functions: ReadonlyArray<Task<TaskResultsType>>, options?... npmjs.com - Signature changed
default.runningTasks
Was readonly runningTasks: ReadonlyArray<{readonly id?: string; readonly priority: number; readonly startTime: number; readonly timeout?: number; readonly timeoutRemaining?: number;}>; now readonly runningTasks: ReadonlyArray<{readonly id... npmjs.com - Signature changed
default.timeout
Was timeout?: number; now timeout: number | undefined. npmjs.com - Signature changed
Options
Was type Options<QueueType extends Queue<RunFunction, QueueOptions>, QueueOptions extends QueueAddOptions> = {readonly concurrency?: number; readonly autoStart?: boolean; readonly queueClass?: new () => QueueType; readonly intervalCap?... npmjs.com - Signature changed
Options.autoStart
Was readonly autoStart?: boolean; now readonly autoStart?: boolean | undefined. npmjs.com - Signature changed
Options.carryoverIntervalCount
Was readonly carryoverIntervalCount?: boolean; now readonly carryoverIntervalCount?: boolean | undefined. npmjs.com - Signature changed
Options.concurrency
Was readonly concurrency?: number; now readonly concurrency?: number | undefined. npmjs.com - Signature changed
Options.interval
Was readonly interval?: number; now readonly interval?: number | undefined. npmjs.com - Signature changed
Options.intervalCap
Was readonly intervalCap?: number; now readonly intervalCap?: number | undefined. npmjs.com - Signature changed
Options.queueClass
A custom queueClass must now implement remove(). npmjs.com - Signature changed
Options.strict
Was readonly strict?: boolean; now readonly strict?: boolean | undefined. npmjs.com - Signature changed
Options.timeout
Was timeout?: number; now timeout?: number | undefined. npmjs.com - Signature changed
Queue
Was type Queue<Element, Options> = {size: number; filter: (options: Readonly<Partial<Options>>) => Element[]; dequeue: () => Element | undefined; enqueue: (run: Element, options?: Partial<Options>) => void; setPriority: (id: string... npmjs.com - Signature changed
Queue.remove
Was remove?: (id: string) => void; now remove: (id: string) => void. npmjs.com - Signature changed
QueueAddOptions
Was type QueueAddOptions = {readonly priority?: number; id?: string;} & TaskOptions & TimeoutOptions; now type QueueAddOptions = {readonly priority?: number | undefined; id?: string | undefined; timeout?: number | undefined;} & TaskOptions. npmjs.com - Signature changed
QueueAddOptions.id
Was id?: string; now id?: string | undefined. npmjs.com - Signature changed
QueueAddOptions.priority
Was readonly priority?: number; now readonly priority?: number | undefined. npmjs.com - Signature changed
QueueAddOptions.timeout
Was timeout?: number; now timeout?: number | undefined. npmjs.com - Signature changed
TimeoutError
Was export {TimeoutError} from "p-timeout"; now class TimeoutError extends DOMException. npmjs.com
p-queue 9.0.0 breaking changes
- Removed
Options.throwOnTimeout
Options.throwOnTimeout was removed in p-queue 9.0.0 npmjs.com - Removed
QueueAddOptions.throwOnTimeout
QueueAddOptions.throwOnTimeout was removed in p-queue 9.0.0 npmjs.com - Removed
throwOnTimeout
Timeouts always throw now. To keep the old behavior, catch TimeoutError from queue.add and return undefined. github.com - Behavior changed
The package now requires Node.js 20. Users on older Node.js versions must upgrade their runtime. github.com - Signature changed
default.add
Was add<TaskResultType>(function_: Task<TaskResultType>, options: {throwOnTimeout: true;} & Exclude<EnqueueOptionsType, 'throwOnTimeout'>): Promise<TaskResultType> add<TaskResultType>(function_: Task<TaskResultType>, options?... npmjs.com - Signature changed
default.addAll
Was addAll<TaskResultsType>(functions: ReadonlyArray<Task<TaskResultsType>>, options?: Partial<EnqueueOptionsType>): Promise<Array<TaskResultsType | void>> addAll<TaskResultsType>(functions: ReadonlyArray<Task<TaskResultsType>>, options?... npmjs.com - Signature changed
Options
Was type Options<QueueType extends Queue<RunFunction, QueueOptions>, QueueOptions extends QueueAddOptions> = {readonly concurrency?: number; readonly autoStart?: boolean; readonly queueClass?: new () => QueueType; readonly intervalCap?... npmjs.com
p-queue 8.0.0 breaking changes
- Removed
AbortError
The AbortError export is gone. When the signal option aborts, the built-in DOMException is thrown instead, so code catching AbortError must check for DOMException. npmjs.com - Removed
DefaultAddOptions
The TypeScript type DefaultAddOptions is now named QueueAddOptions; update type imports to the new name. npmjs.com - Default changed
The package now requires Node.js 18 or later, so older Node.js versions are no longer supported. github.com - Signature changed
Options
Was interface Options<QueueType extends Queue<RunFunction, QueueOptions>, QueueOptions extends QueueAddOptions> extends TimeoutOptions; now type Options<QueueType extends Queue<RunFunction, QueueOptions>, QueueOptions extends... npmjs.com - Signature changed
Queue
Was interface Queue<Element, Options>; now type Queue<Element, Options> = {size: number; filter: (options: Partial<Options>) => Element[]; dequeue: () => Element | undefined; enqueue: (run: Element, options?: Partial<Options>) => void;}. npmjs.com - Signature changed
QueueAddOptions
Was interface QueueAddOptions extends TaskOptions, TimeoutOptions; now type QueueAddOptions = {readonly priority?: number;} & TaskOptions & TimeoutOptions. npmjs.com
p-queue 7.0.0 breaking changes
- Removed
QueueAddOptions.__index
QueueAddOptions.__index was removed in p-queue 7.0.0 npmjs.com - Behavior changed
The package now requires Node.js 12 or later. Users on older Node.js versions must upgrade. github.com - Configuration changed
The package is now pure ESM and must be loaded with import instead of require. Users must switch their module loading accordingly. github.com - Signature changed
default
Was class PQueue<QueueType extends Queue<RunFunction, EnqueueOptionsType> = PriorityQueue, EnqueueOptionsType extends QueueAddOptions = DefaultAddOptions> extends EventEmitter<'active' | 'idle' | 'add' | 'next'>; now class PQueue<QueueType... npmjs.com - Signature changed
QueueAddOptions
Was interface QueueAddOptions; now type QueueAddOptions = Readonly<Record<string, unknown>>. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.