Upgrading p-limit from 6.x to 7.x
Comparison of the public API of p-limit 6.2.0 and 7.3.3, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 0 |
| Changed signatures | 4 |
| Removed class or interface members | 0 |
| Changed class or interface members | 0 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 1 |
| New exports | 0 |
Removed exports
None detected.
Changed signatures
| export | Before | After |
|---|---|---|
p-limit · Options | { readonly concurrency: number; } | { readonly concurrency: number; readonly rejectOnClear?: boolean | undefined; } |
p-limit · default | (concurrency: number): LimitFunction | (concurrency: number | Options): LimitFunction |
p-limit · LimitFunction | { <Arguments extends unknown[], ReturnType>(function_: (...arguments_: Arguments) => ReturnType | PromiseLike<ReturnType>, ...arguments_: Arguments): Promise<ReturnType>; readonly activeCount: number; readonly pendingCount: number; concurrency: number; clearQueue: () => void; } | { <Arguments extends unknown[], ReturnType>(function_: (...arguments_: Arguments) => ReturnType | PromiseLike<ReturnType>, ...arguments_: Arguments): Promise<ReturnType>; readonly activeCount: number; readonly pendingCount: number; concurrency: number; clearQueue: () => void; map: <Input, ReturnType>(iterable: Iterable<Input>, mapperFunction: (input: Input, index: number) => ReturnType | PromiseLike<ReturnType>) => Promise<ReturnType[]>; } |
p-limit · limitFunction | <Arguments extends unknown[], ReturnType>(function_: (...arguments_: Arguments) => ReturnType | PromiseLike<ReturnType>, option: Options): (...arguments_: Arguments) => Promise<ReturnType> | <Arguments extends unknown[], ReturnType>(function_: (...arguments_: Arguments) => PromiseLike<ReturnType>, options: Options): ((...arguments_: Arguments) => Promise<ReturnType>) & Pick<LimitFunction, "clearQueue"> |
Removed class or interface members
None detected.
Changed class or interface members
None detected.
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
| Before | After | |
|---|---|---|
engines.node | >=18 | >=20 |
Frequently asked questions
What are the breaking changes when upgrading p-limit from 6 to 7?
Between p-limit 6.2.0 and 7.3.3, Vigia found 0 removed exports, 4 changed signatures and 0 removed or changed class or interface members.
What became deprecated in p-limit 7?
0 exports or members are newly marked as deprecated in p-limit 7.3.3.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/p-limit/upgrade?from=6.2.0&to=7.3.3