Skip to content
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

refactor: polyfill event emitter for property inspector #24

Merged
merged 2 commits into from
Jan 20, 2024
Merged

Conversation

GeekyEggo
Copy link
Member

@GeekyEggo GeekyEggo commented Jan 1, 2024

In preparation for adding a browser export, this pull request:

  • Adds an EventEmitter polyfill (available in Node.js, but not Chromium).
  • Updates our usage of node:events to use the polyfill; the underlying connection now uses the polyfill.
  • Introduces a strongly-typed event emitter, without the need for interfacing.
  • Centralizes the disposable listeners onto the EventEmitter class.
  • Removes the false-positive memory leaks by removing the concept of a "max listener count".
  • Exports the polyfill for re-usability.

@GeekyEggo GeekyEggo requested a review from ChekTek January 1, 2024 21:57
@GeekyEggo GeekyEggo merged commit fa2cd6d into main Jan 20, 2024
2 checks passed
@GeekyEggo GeekyEggo deleted the events branch January 20, 2024 17:23
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