npm / p-limit
p-limit
What changed in p-limit 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 new APIs and options1 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initp-limit 76 changes
New APIs and options 2
pLimit() now supports an options object.
Adds the rejectOnClear option to pLimit().
Behavior and default changes 1
The
.map()method accepts an iterable, not just an array.
Fixes and other changes 3
Fixes unhandled rejections in limit.map() when the iterable throws.
Fixes queue clearing in limitFunction.
Fixes detached limit.map calls.