NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #352 most downloaded on npm
Map over promises concurrently
Latest stable
7.1.1
Last release 1 months ago
11 Oct 2026
Release timing varies
gaps range from 2 weeks to 11 months
Most releases are documented
notes for 21 of 26 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
26 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Subscribe once to a thenable from an async source next() 1dc1d1f
Add pMapSettled , pMapKeyed , and pMapSettledKeyed ( #70 ) a05fd50
pMapSettled, pMapKeyed, and pMapSettledKeyed (#70) a05fd50
pMapSettled is like Promise.allSettled(), with a mapper and a concurrency limitpMapKeyed and pMapSettledKeyed map the values of an object or a Map, like Promise.allKeyed() and Promise.allSettledKeyed()pMapStop to stop iterating from the mapper, like break in a loop (#31) 27606f0preserveOrder option to pMapIterable (#72) 2c0934b
false to get each result as soon as it is ready, instead of in input orderpMapIterable read ahead while the mappers run when backpressure is above concurrency (#78) cada71d
input no longer leaves a mapper waiting for its next element. With the default backpressure, nothing changespMapIterable consume its results in linear time 7d5b6e1
backpressure let many results wait, which is the defaultinput the same TypeError as any other invalid input 6f4643dnext() calls out of call order 415a474
index and the result position now follow the order of the next() callsstopOnError: false, the errors in the AggregateError are now in input order, not in the order they happenedpMapIterable dropping earlier results when a mapper throws while they are still being read 27606f0
pMapSkip results not counting toward backpressure in pMapIterable 7d5b6e1
backpressure allowspMapIterable pulling and mapping input after return() or throw() while a next() call is pending 5f2c01dYour coding agent can read these notes before it upgrades. Set up the MCP server →
Fix pMapIterable calling next() on an exhausted source iterator 70479bf
pMapIterable calling next() on an exhausted source iterator 70479bfpMap hanging on a source that blocks in next() after it is exhausted 7c5cee7pMap preferring the sync iterator when the input has both 669fdc6pMapIterable calling the mapper for input that arrives after iteration stopped fca6099return() on an exhausted source iterator in pMapIterable a97778apMap not closing the source iterator when it rejects c82bd07pMapIterable not closing the source iterator when iteration stops early e7c2ecbpMap settling early when the source iterator throws with stopOnError: false 9c48f07pMapIterable continuing to pull input after the consumer stops iterating 6194e49Fix unhandled rejection when an abandoned pMapIterable worker's next() rejects 354e035
pMapIterable worker's next() rejects 354e035Fix abort listener cleanup for already-aborted signals ( #91 ) 3f153f1
Fix pMapIterable mapper index for out-of-order promise inputs ( #88 ) 1af51b5
Fix concurrency control in pMapIterable ( #77 ) 82b8cdc
Fix cleaning up abort listener ( #81 ) 65e893e
Add missing index parameter to mapper function in pMapIterable ( #71 ) dc597e5
Fix pMapIterable not accepting async values in an iterator ( #69 ) 1076833
Require Node.js 18 (#67) 136b08a
pMapIterable export (#63) 5c59528https://github.com/sindresorhus/p-map/compare/v6.0.0...v7.0.0
Require Node.js 16 (#65) df88787
aggregate-error package to the native AggregateError
{stopOnError: false}.https://github.com/sindresorhus/p-map/compare/v5.5.0...v6.0.0
Add pMapSkip as an acceptable return value in Mapper type (#60) b58fc26
pMapSkip as an acceptable return value in Mapper type (#60) b58fc26https://github.com/sindresorhus/p-map/compare/v5.4.0...v5.5.0
Support AbortController (#58) 4875dee
AbortController (#58) 4875deehttps://github.com/sindresorhus/p-map/compare/v5.3.0...v5.4.0
Add support for multiple pMapSkip's (#52) 94eb532
pMapSkip's (#52) 94eb532https://github.com/sindresorhus/p-map/compare/v5.2.0...v5.3.0
Add support for AsyncIterable as input (#46) a24e909
AsyncIterable as input (#46) a24e909https://github.com/sindresorhus/p-map/compare/v5.1.0...v5.2.0
Add the ability to skip an iteration (#39) c9c0882
https://github.com/sindresorhus/p-map/compare/v5.0.0...v5.1.0
This package is now pure ESM. Please read this.
AggregateError is no longer iterable. It moved to an .errors property.https://github.com/sindresorhus/p-map/compare/v4.0.0...v5.0.0
Ensure concurrency option is an integer b342717
concurrency option is an integer b342717https://github.com/sindresorhus/p-map/compare/v3.0.0...v4.0.0
Add stopOnError option (#16) 9f0b32f
Breaking:
Enhancements:
stopOnError option (#16) 9f0b32fhttps://github.com/sindresorhus/p-map/compare/v2.1.0...v3.0.0
Refactor TypeScript definition to CommonJS compatible export (#18) 9834e9d
https://github.com/sindresorhus/p-map/compare/v2.0.0...v2.1.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.