emittery

Simple and modern async event emitter

MIT License

Downloads
101.3M
Stars
1.7K
Committers
28

Bot releases are visible (Hide)

emittery - Latest Release

Published by sindresorhus 8 months ago

  • Fix compatibility with p-event (#115) 2eea7f7

https://github.com/sindresorhus/emittery/compare/v1.0.2...v1.0.3

emittery -

Published by sindresorhus 9 months ago

  • Fix emitter.listenerCount() for symbol keys fad52b9

https://github.com/sindresorhus/emittery/compare/v1.0.1...v1.0.2

emittery -

Published by sindresorhus almost 2 years ago

  • Fix globalThis.process conflict in the browser (#107) 5133d6f

https://github.com/sindresorhus/emittery/compare/v1.0.0...v1.0.1

emittery -

Published by sindresorhus about 2 years ago

Breaking

  • Require Node.js 14 3b7db43
  • This package is now pure ESM. Please read this.

Breaking for TypeScript users

  • Some of the types that were previously accessed on Emittery. are now named exports.

https://github.com/sindresorhus/emittery/compare/v0.13.1...v1.0.0

emittery -

Published by sindresorhus about 2 years ago

  • Fix missing file in package (#104) 715e003

https://github.com/sindresorhus/emittery/compare/v0.13.0...v0.13.1

emittery -

Published by sindresorhus about 2 years ago

  • Internal: Properly clean up listener storage (#103) 3641e7a

https://github.com/sindresorhus/emittery/compare/v0.12.1...v0.13.0

emittery -

Published by sindresorhus about 2 years ago

  • Internal: Use a different approach to prevent consumers from emitting meta events (#98) c07c783

https://github.com/sindresorhus/emittery/compare/v0.12.0...v0.12.1

emittery -

Published by sindresorhus about 2 years ago

  • Add an off method to the promise returned from .once() (#100) e0b4ba7
  • Make Emittery.mixin type support arguments in constructor 32ddcbe

https://github.com/sindresorhus/emittery/compare/v0.11.0...v0.12.0

emittery -

Published by sindresorhus over 2 years ago

  • Allow event names to be numbers (#96) c010e90

https://github.com/sindresorhus/emittery/compare/v0.10.2...v0.11.0

emittery -

Published by sindresorhus over 2 years ago

  • Fix handling of circular references in event data when using debug mode 8a2371c

https://github.com/sindresorhus/emittery/compare/v0.10.1...v0.10.2

emittery -

Published by sindresorhus over 2 years ago

  • Expose the OmnipresentEventData type (#93) 3e5bd10 2725900

https://github.com/sindresorhus/emittery/compare/v0.10.0...v0.10.1

emittery -

Published by sindresorhus about 3 years ago

  • Fix support for typed subscriptions for multiple event names for .on() (#84) c4c11e4

https://github.com/sindresorhus/emittery/compare/v0.9.2...v0.10.0

emittery -

Published by sindresorhus over 3 years ago

  • Fix browser compatibility (for real this time) 48bc0a9

https://github.com/sindresorhus/emittery/compare/v0.9.1...v0.9.2

emittery -

Published by sindresorhus over 3 years ago

emittery -

Published by sindresorhus over 3 years ago

Breaking

  • Require Node.js 12 d0776b4

Improvements

  • Add debug functionality (#53) 43b6deb

https://github.com/sindresorhus/emittery/compare/v0.8.1...v0.9.0

emittery -

Published by sindresorhus almost 4 years ago

  • Fix support for typed subscriptions for multiple event names for .events() (#74) 53caa07
  • Improve TypeScript types compatibility with p-event package (#73) 30093fd

https://github.com/sindresorhus/emittery/compare/v0.8.0...v0.8.1

emittery -

Published by sindresorhus almost 4 years ago

Breaking

  • Move the strongly-typed .Typed types into the main TypeScript types (#69) df35ea6

Migrate:

-const emitter = new Emittery.Typed<{value: string}, 'open' | 'close'>();
+const emitter = new Emittery<
+	{
+		value: string,
+		open: undefined,
+		close: undefined
+	}
+>();

Improvements

  • Allow async listeners in the TypeScript types (#70) 7db4644

https://github.com/sindresorhus/emittery/compare/v0.7.2...v0.8.0

emittery -

Published by sindresorhus about 4 years ago

  • Add symbol to Emittery.mixin's emitteryPropertyName types (#65) 3c65ac5

https://github.com/sindresorhus/emittery/compare/v0.7.1...v0.7.2

emittery -

Published by sindresorhus over 4 years ago

  • Fix using symbol event names in iterator and clearListeners (#57) 3c082a2

https://github.com/sindresorhus/emittery/compare/v0.7.0...v0.7.1

emittery -

Published by sindresorhus over 4 years ago

  • Support listening to multiple events at the same time (#52) 3970fae
  • Ensure .emit() doesn't return a value (#56) 5e13246

https://github.com/sindresorhus/emittery/compare/v0.6.0...v0.7.0

Package Rankings
Top 0.93% on Npmjs.org
Badges
Extracted from project README