Package detail

@vladfrangu/async_event_emitter

vladfrangu982.8kMIT2.4.6

An event emitter implementation with async support in mind

event emitter, async, event, emitter

readme

# @vladfrangu/async_event_emitter Simple to use event emitter implementation with async support in mind. GitHub codecov npm

Description

A very small, lightweight and simple re-implementation of event emitters, with support for async event handlers in mind.

Note: @vladfrangu/async_event_emitter requires Node.js v14 or higher to work, or a browser that has async/await support.

Features

  • TypeScript friendly
  • Offers CJS, ESM and UMD builds
  • Consistent interface with what is expected from an event emitter
  • Simple handling of asynchronous event handlers to allow waiting for their execution to finish if you want to exit the process

Buy me some doughnuts

Most of my projects are and always will be open source, even if I don't get donations. That being said, I know there are amazing people who may still want to donate just to show their appreciation. Thank you very much in advance!

I accept donations through Ko-fi, PayPal, Patreon and GitHub Sponsorships. You can use the buttons below to donate through your method of choice.

Donate With Address
GitHub Sponsors Click Here
Ko-fi Click Here
Patreon Click Here
PayPal Click Here

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

changelog

Changelog

All notable changes to this project will be documented in this file.

2.4.6 - (2024-08-21)

🐛 Bug Fixes

  • Static .on returning wrong iterator types (77ad774)

2.4.5 - (2024-08-01)

🐛 Bug Fixes

  • Brand each AEE instance so inference can work with AEE.on (305b2c9)

2.4.4 - (2024-07-15)

🐛 Bug Fixes

  • Accidentally inverted emit error event logic (134ab3c)

2.4.2 - (2024-07-09)

🐛 Bug Fixes

  • Built types were wrong, causing inference issues (28e9247)

2.4.1 - (2024-07-03)

🐛 Bug Fixes

  • Correct strictness of types and overloads for certain methods (75c7e19)

2.4.0 - (2024-06-27)

🚀 Features

  • Cleaner types, more correct types, the usual (c1b0f75)

2.3.0 - (2024-06-21)

🚀 Features

  • Cleanup ignore comments (0f4029e)

2.2.4 - (2023-12-03)

🐛 Bug Fixes

  • Correct import of CJS version in package.json (#3) (8dc308c)

2.2.2 - (2023-05-11)

🐛 Bug Fixes

  • Listener count was always 0 for one listener (9b78e19)

2.2.1 - (2023-04-08)

🐛 Bug Fixes

  • Include comment for throwing error on emit (19de045)

2.2.0 - (2023-04-07)

🚀 Features

2.1.4 - (2023-02-18)

🐛 Bug Fixes

  • Remove predefined error event to allow extensions (4224bbe)

2.1.2 - (2022-09-19)

🐛 Bug Fixes

  • Don't use any @types/node types (e4babce)

2.1.1 - (2022-09-19)

🐛 Bug Fixes

  • Correct type errors when building with other types too (72a03ae)

2.1.0 - (2022-09-18)

🚀 Features

  • Bring in line with nodejs EventEmitters (5a14ed0)

2.0.1 - (2022-07-09)

🐛 Bug Fixes

  • Error event not properly emitting (b849b38)

2.0.0 - (2022-06-29)

🚀 Features

  • Use stringified bigints instead of uuids for promise map (8c69419)

    💥 Breaking Changes:

Changelog

All notable changes to this project will be documented in this file.