p-limit runs multiple promise-returning or async functions with a configurable concurrency limit, so only a set number run at once. It is useful when you need to control parallel work in Node.js and browsers, and includes options like `clearQueue()` (optionally rejecting pending work) plus helpers like `limit.map()` and counters for active and pending promises.
Project status
- The repository appears actively maintained, with recent tagged updates in the v7.x line (latest noted update v7.3.0 on 2026-02-03, and an upstream push on 2026-05-20).
- The update cadence looks moderately frequent, with updates spaced about 1.5 to 4 months apart between v7.1.1 (2025-08-28), v7.2.0 (2025-10-19), and v7.3.0 (2026-02-03).
AI summary generated Today
Recent updates
v7.3.0
3 months agov7.3.0 adds support for calling `pLimit()` with an options object (instead of only a concurrency number) and introduces a `rejectOnClear` option that affects what happens to pending tasks when `clearQueue()` is called. The implementation also refactors the queue items so pending promises can be rejected instead of being silently left unresolved.
Featuresv7.2.0
7 months agov7.2.0 extends p-limit's `LimitFunction.map` to accept any iterable, not only arrays. The implementation converts the provided iterable into an array before applying the concurrency-limited mapping, and the TypeScript types, README, and tests were updated accordingly.
Featuresv7.1.1
9 months agov7.1.1 is a small change release focused on TypeScript typings for `limitFunction`. The release notes only mention a type fix, but the diff shows the typing has been tightened in a way that can break existing TypeScript code.