NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #2998 most downloaded on npm
Promisify an event by waiting for it to be emitted
Latest stable
8.0.2
Last release 20 days ago
02 Nov 2026
Release timing varies
gaps range from 3 weeks to 1.6 years
Most releases are documented
notes for 19 of 25 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
25 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Fix timeout above 2 31 - 1 firing almost immediately 8be634f
timeout above 2 ** 31 - 1 firing almost immediately 8be634fhttps://github.com/sindresorhus/p-event/compare/v8.0.1...v8.0.2
Fix listener left attached when aborting from newListener 901bed7
newListener 901bed7https://github.com/sindresorhus/p-event/compare/v8.0.0...v8.0.1
`pEventIterator` no longer accepts the timeout option in the types d63fd16
pEventIterator no longer accepts the timeout option in the types d63fd16
addEventListener/removeEventListener, on/off, or addListener/removeListener. An emitter that mixed methods from different pairs could have its listener added with one and never removed with the other. It now rejects with Emitter is not compatible.filter now runs for one event at a time d63fd16
pEventIterator ignoring the filter option d63fd16pEventMultiple never resolving with count: 0 (#57) d63fd16timeout being ignored with resolveImmediately, which left the listeners attached for good d63fd16timeout option is not a positive number d63fd16signal after the promise settles d63fd16pEventIterator losing a rejection or buffered values in several cases d63fd16
next() never reports done while a value is still buffered.pEventIterator yielding values after return(), after a rejection, or after a resolution event d63fd16pEventIterator treating the main event as a rejection or resolution event when the name is in both lists d63fd16
rejectionEvents and resolutionEvents, as documented..cancel() d63fd16undefined option overriding its default d63fd16
{rejectionEvents: undefined} listened for an event named "undefined" instead of error.rejectionMultiArgs wrapping the abort reason in an array d63fd16.cancel() being undefined when the call fails to start d63fd16pEventIterator with limit: 0 missing the return() method d63fd16this d63fd16https://github.com/sindresorhus/p-event/compare/v7.1.1...v8.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix: Reject pending iterator reads when resolution filters fail (#56) ec26d45
https://github.com/sindresorhus/p-event/compare/v7.1.0...v7.1.1
Update dependencies (#53) 50c1358
https://github.com/sindresorhus/p-event/compare/v7.0.2...v7.1.0
Fix type compatibility with Node.js readline b00f94c
readline b00f94chttps://github.com/sindresorhus/p-event/compare/v7.0.1...v7.0.2
Allow signal option type to explicitly undefined (#49) 3b9a69b
signal option type to explicitly undefined (#49) 3b9a69bhttps://github.com/sindresorhus/p-event/compare/v7.0.0...v7.0.1
Add `rejectionMultiArgs` option 7640652
rejectionMultiArgs option 7640652@types/node v22 EventEmitter 8b79241.cancel() e493edfhttps://github.com/sindresorhus/p-event/compare/v6.0.1...v7.0.0
Improve compatibility with Bun (#46) 15f4734
https://github.com/sindresorhus/p-event/compare/v6.0.0...v6.0.1
Add `signal` option (#44) 021f863
signal option (#44) 021f863pEventIterator when resolutionEvents emits item not matching filter (#43) 93d16fbhttps://github.com/sindresorhus/p-event/compare/v5.0.1...v6.0.0
Fix TypeScript definition (#41) b60edfe
https://github.com/sindresorhus/p-event/compare/v5.0.0...v5.0.1
This package is now pure ESM. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
https://github.com/sindresorhus/p-event/compare/v4.2.0...v5.0.0
Expose `TimeoutError` (#32) d4c9959
TimeoutError (#32) d4c9959https://github.com/sindresorhus/p-event/compare/v4.1.0...v4.2.0
Refactor TypeScript definition to CommonJS compatible export (#23) d641ff4
https://github.com/sindresorhus/p-event/compare/v4.0.0...v4.1.0
Breaking: (Only breaking for TypeScript users)
Breaking: (Only breaking for TypeScript users)
multiArgs TypeScript type constraints (#22) c8bddfahttps://github.com/sindresorhus/p-event/compare/v3.0.0...v4.0.0
Add TypeScript definition (#21) ff2917e
Breaking:
Other:
https://github.com/sindresorhus/p-event/compare/v2.3.1...v3.0.0
Invalid limit option value should throw synchronously 2c13f7c
limit option value should throw synchronously 2c13f7chttps://github.com/sindresorhus/p-event/compare/v2.3.0...v2.3.1
Add limit option to pEvent.iterator() (#16) 8b49e21
limit option to pEvent.iterator() (#16) 8b49e21pEvent.iterator() implement return() correctly (#20) 68d745ahttps://github.com/sindresorhus/p-event/compare/v2.2.0...v2.3.0
Support waiting for multiple event emissions (#15) b902979
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
Nothing published for this version
One column per quarter.