You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eventtargetIssues and PRs related to the EventTarget implementation.feature requestIssues requesting new Node.js features.good first issueIssues that are suitable for first-time contributors.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.
Is your feature request related to a problem? Please describe.
When trying to mimic browser APIs surrounding EventTarget, we frequently use CustomEvent which is currently unavailable in Node.
It's useful in that it allows us to dispatch events through an EventTarget and include a custom data payload.
In a some way, this is the closest we have to a standardised Observable API (specifically Subject) and it's very useful.
Describe the solution you'd like CustomEvent exists
Describe alternatives you've considered
Writing a polyfill
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
eventtargetIssues and PRs related to the EventTarget implementation.feature requestIssues requesting new Node.js features.good first issueIssues that are suitable for first-time contributors.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.
Type
No type
Projects
No projects
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions
You can’t perform that action at this time.
✕
Wait! Don't Go Yet 🚀
Get our FREE eBook "10 Programming Tips That Changed Everything" when you subscribe!
Activity
fix: remove node event emitters (#161)
github-actions commentedon May 1, 2022
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
regseb commentedon May 15, 2022
Yet another polyfill proposal that:
options;nullfor the default value ofdetail;detailreadonly.bnoordhuis commentedon May 17, 2022
For anyone wanting to work on this, the steps to take are:
W.r.t. (1):
Where dom/events is https://github.com/web-platform-tests/wpt/tree/master/dom/events
test: add WPT tests for dom/events
10 remaining items
test: add WPT tests for dom/events
events: add `CustomEvent`
events: expose CustomEvent on global with CLI flag
test: add WPT tests for dom/events
events: add `CustomEvent`
events: expose CustomEvent on global with CLI flag
fix: remove CustomEvent polyfill (#2652)