unstale

npm / p-limit

p-limit

What changed in p-limit 3 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

10 breaking3 new APIs and options1 performance1 behavior and defaults5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

p-limit 711 changes

Breaking changes 2

  • activeCount increments when tasks actually start running rather than when queued, so it reflects truly active promises.

    7.0.0release notes

  • Node.js 20 is now required to use p-limit.

    7.0.0release notes

New APIs and options 3

Performance 1

Behavior and default changes 1

  • The .map() method accepts an iterable, not just an array.

    7.2.0release notes

Fixes and other changes 4

  • Fixes unhandled rejections in limit.map() when the iterable throws.

    7.3.3release notes

  • Fixes queue clearing in limitFunction.

    7.3.2release notes

  • Fixes detached limit.map calls.

    7.3.1release notes

  • pendingCount more accurately represents tasks waiting to run.

    7.0.0release notes

p-limit 62 changes

Breaking changes 2

  • The timing of activeCount changes slightly as part of a performance improvement.

    6.0.0release notes

  • The timing of pendingCount changes slightly as part of a performance improvement.

    6.0.0release notes

p-limit 52 changes

Breaking changes 1

  • Node.js 18 is now required to use this package.

    5.0.0release notes

Fixes and other changes 1

p-limit 42 changes

Breaking changes 2

  • Node.js 12.20 is now required to use the package.

    4.0.0release notes

  • The package is now pure ESM, changing how developers import and use it.

    4.0.0release notes

p-limit 33 changes

Breaking changes 3

  • Limited functions always run asynchronously.

    3.0.0release notes

  • Node.js 10 is now required.

    3.0.0release notes

  • TypeScript users must use a CommonJS import assignment instead of a default import.

    3.0.0release notes