p-event

Promisify an event by waiting for it to be emitted

MIT License

Downloads
23M
Stars
423
Committers
17

Bot releases are visible (Hide)

p-event - Latest Release

Published by sindresorhus 8 months ago

  • Improve compatibility with Bun (#46) 15f4734

https://github.com/sindresorhus/p-event/compare/v6.0.0...v6.0.1

p-event -

Published by sindresorhus over 1 year ago

Breaking

  • Require Node.js 16 918fe05

Improvements

  • Add signal option (#44) 021f863

Fixes

  • Properly cancel pEventIterator when resolutionEvents emits item not matching filter (#43) 93d16fb

https://github.com/sindresorhus/p-event/compare/v5.0.1...v6.0.0

p-event -

Published by sindresorhus almost 3 years ago

  • Fix TypeScript definition (#41) b60edfe

https://github.com/sindresorhus/p-event/compare/v5.0.0...v5.0.1

p-event -

Published by sindresorhus almost 3 years ago

Breaking

https://github.com/sindresorhus/p-event/compare/v4.2.0...v5.0.0

p-event -

Published by sindresorhus over 4 years ago

p-event -

Published by sindresorhus over 5 years ago

  • Refactor TypeScript definition to CommonJS compatible export (#23) d641ff4

https://github.com/sindresorhus/p-event/compare/v4.0.0...v4.1.0

p-event -

Published by sindresorhus over 5 years ago

Breaking: (Only breaking for TypeScript users)

  • Tighten up multiArgs TypeScript type constraints (#22) c8bddfa

https://github.com/sindresorhus/p-event/compare/v3.0.0...v4.0.0

p-event -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 cc2f580

Other:

  • Add TypeScript definition (#21) ff2917e

https://github.com/sindresorhus/p-event/compare/v2.3.1...v3.0.0

p-event -

Published by sindresorhus over 5 years ago

  • Invalid limit option value should throw synchronously 2c13f7c

https://github.com/sindresorhus/p-event/compare/v2.3.0...v2.3.1

p-event -

Published by sindresorhus over 5 years ago

  • Add limit option to pEvent.iterator() (#16) 8b49e21
  • Make pEvent.iterator() implement return() correctly (#20) 68d745a
  • Add support for multiple event names (#19) db3203f

https://github.com/sindresorhus/p-event/compare/v2.2.0...v2.3.0

p-event -

Published by sindresorhus over 5 years ago

  • Support waiting for multiple event emissions (#15) b902979