Vigia

Nâng cấp p-queue từ 9.x lên 10.x

So sánh API công khai của p-queue 9.3.5 và 10.0.0, được tính tự động từ kiểu TypeScript. Chữ ký thay đổi là thay đổi có thể không tương thích, không phải điều chắc chắn.

Tóm tắt

Đường dẫn import bị xóa0
Export bị xóa0
Chữ ký thay đổi4
Thành viên lớp hoặc interface bị xóa0
Thành viên lớp hoặc interface thay đổi3
Mới bị ngừng hỗ trợ0
Thay đổi yêu cầu (engines, phụ thuộc peer)1
Export mới2

Export bị xóa

Không phát hiện.

Chữ ký thay đổi

exportTrướcSau
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

Thành viên lớp hoặc interface bị xóa

Không phát hiện.

Thành viên lớp hoặc interface thay đổi

memberTrướcSau
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; }[]

Mới bị ngừng hỗ trợ

Không phát hiện.

Thay đổi yêu cầu (engines, phụ thuộc peer)

TrướcSau
engines.node>=20—
Export mới (2)
importexportkind
p-queueRunFunctiontype
p-queueTaskOptionstype

Cung cấp dữ liệu này cho tác tử AI của bạn

Vigia là máy chủ MCP miễn phí: tác tử lập trình của bạn kiểm tra phiên bản, thay đổi phá vỡ tương thích và lỗ hổng trước khi viết mã. Không cần đăng ký, không cần khóa API.

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

Thêm vào CursorThêm vào VS Code★ Gắn sao trên GitHub

Mọi ứng dụng MCP khác
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Kỹ năng cho tác tử (SKILL.md): cho tác tử biết khi nào dùng Vigia · GitHub Action cho pull request

Câu hỏi thường gặp

Nâng cấp p-queue từ 9 lên 10 có những thay đổi không tương thích nào?

Giữa p-queue 9.3.5 và 10.0.0, Vigia tìm thấy 0 export bị xóa, 4 chữ ký thay đổi và 3 thành viên lớp hoặc interface bị xóa hay thay đổi.

Những gì bị ngừng hỗ trợ trong p-queue 10?

0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong p-queue 10.0.0.

Dành cho tác tử

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