Vigia

Upgrading p-queue from 9.x to 10.x

Comparison of the public API of p-queue 9.3.5 and 10.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports0
Changed signatures4
Removed class or interface members0
Changed class or interface members3
Newly deprecated0
Requirement changes (engines, peer dependencies)1
New exports2

Removed exports

None detected.

Changed signatures

exportBeforeAfter
p-queue · Queue{ size: number; filter: (options: Readonly<Partial<Options>>) => Element[]; dequeue: () => Element | undefined; enqueue: (run: Element, options?: Partial<Options> | undefined) => void; setPriority: (id: string, priority: number) => void; remove?: ((id: string) => void) | undefined; }{ size: number; filter: (options: Readonly<Partial<Options>>) => Element[]; dequeue: () => Element | undefined; enqueue: (run: Element, options?: Partial<Options> | undefined) => void; setPriority: (id: string, priority: number) => void; remove: (id: string) => void; }
p-queue · Options{ readonly concurrency?: number | undefined; readonly autoStart?: boolean | undefined; readonly queueClass?: (new () => QueueType) | undefined; readonly intervalCap?: number | undefined; readonly interval?: number | undefined; readonly carryoverIntervalCount?: boolean | undefined; readonly carryoverConcurrencyCount?: boolean | undefined; readonly strict?: boolean | undefined; } & TimeoutOptions{ readonly concurrency?: number | undefined; readonly autoStart?: boolean | undefined; readonly queueClass?: (new () => QueueType) | undefined; readonly intervalCap?: number | undefined; readonly interval?: number | undefined; readonly carryoverIntervalCount?: boolean | undefined; readonly strict?: boolean | undefined; } & TimeoutOptions
p-queue · TimeoutErroranyclass
p-queue · QueueAddOptions{ readonly priority?: number | undefined; id?: string | undefined; } & TaskOptions & TimeoutOptions{ readonly priority?: number | undefined; id?: string | undefined; timeout?: number | undefined; } & TaskOptions

Removed class or interface members

None detected.

Changed class or interface members

memberBeforeAfter
default.add<TaskResultType>(function_: Task<TaskResultType>, options?: Partial<EnqueueOptionsType> | undefined): Promise<TaskResultType><TaskResultType>(function_: Task<TaskResultType>, options?: Partial<EnqueueOptionsType> | undefined): Promise<Awaited<TaskResultType>>
default.addAll<TaskResultsType>(functions: readonly Task<TaskResultsType>[], options?: Partial<EnqueueOptionsType> | undefined): Promise<TaskResultsType[]><const Tasks extends ReadonlyArray<Task<unknown>>>(functions: Tasks, options?: Partial<EnqueueOptionsType> | undefined): Promise<TaskResults<Tasks>> | <TaskResultsType>(functions: readonly Task<TaskResultsType>[], options?: Partial<EnqueueOptionsType> | undefined): Promise<Awaited<TaskResultsType>[]…
default.runningTasksreadonly { readonly id?: string | undefined; readonly priority: number; readonly startTime: number; readonly timeout?: number | undefined; readonly timeoutRemaining?: number | undefined; }[]readonly { readonly id: string; readonly priority: number; readonly startTime: number; readonly timeout: number | undefined; readonly timeoutRemaining: number | undefined; }[]

Newly deprecated

None detected.

Requirement changes (engines, peer dependencies)

BeforeAfter
engines.node>=20—
New exports (2)
importexportkind
p-queueRunFunctiontype
p-queueTaskOptionstype

Give your AI agent these facts

Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Add to CursorAdd to VS Code★ Star on GitHub

Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests

Frequently asked questions

What are the breaking changes when upgrading p-queue from 9 to 10?

Between p-queue 9.3.5 and 10.0.0, Vigia found 0 removed exports, 4 changed signatures and 3 removed or changed class or interface members.

What became deprecated in p-queue 10?

0 exports or members are newly marked as deprecated in p-queue 10.0.0.

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/p-queue/upgrade?from=9.3.5&to=10.0.0