Skip to content

feat: Wrapless approach with Set to store once. #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

druzhchenko
Copy link
Contributor

  • tests and linter show no problems (npm t)
  • tests are added/updated for bug fixes and new features
  • code is properly formatted (npm run fix)
  • description of changes is added in CHANGELOG.md
  • update .d.ts typings

This update is based on @tshemsedinov's recomendation to make EventEmitter without wrapers and @mykhailo-vaskivnyuk's suggestion use Set for store 'once' events, which he uses in his pr #291. Additionaly I added my vission on how to reduce the code and avoid any checks during iteration in emit function to make it as fast as posible.

tshemsedinov added a commit that referenced this pull request Mar 28, 2025
@tshemsedinov
Copy link
Member

Closed in favour of #295 and #291

tshemsedinov added a commit that referenced this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants