FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

events: replace NodeCustomEvent with CustomEvent by F3n67u · Pull Request #43876 · nodejs/node · GitHub

/ node Public

events: replace NodeCustomEvent with CustomEvent - #43876

Merged
aduh95 merged 1 commit into
nodejs:mainfrom
F3n67u:node-custom-event
May 11, 2024
Merged

events: replace NodeCustomEvent with CustomEvent#43876
aduh95 merged 1 commit into
nodejs:mainfrom
F3n67u:node-custom-event

Conversation

F3n67u commented Jul 17, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

CustomEvent is implemented at #43514, NodeCustomEvent is the same as CustomEvent, so I replace NodeCustomEvent with CustomEvent in favor of web API. cc @daeyeon

Refs: #43514 (comment)

nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jul 17, 2022
F3n67u requested a review from benjamingr July 17, 2022 11:53
F3n67u added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 17, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 17, 2022

Copy link
Copy Markdown
Collaborator

F3n67u added the events Issues and PRs related to the events subsystem / EventEmitter. label Jul 17, 2022

Copy link
Copy Markdown
Member

@addaleax

Comment thread lib/internal/event_target.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

If you keep this as class NodeCustomEvent extends CustomEvent {}, that might even be a bit nicer since it’s a way to differentiate between events coming from a user and events coming from a Node.js EventEmitter .emit() call?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Could you help me understand what specific usercase do we need to support? I don't understand in which scenario we would need to differentiate between events coming from a user and events coming from a Node.js EventEmitter .emit() call.

aduh95 force-pushed the node-custom-event branch from 4098a39 to d0560a8 Compare May 11, 2024 09:37
aduh95 added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label May 11, 2024

Copy link
Copy Markdown
Collaborator

aduh95 merged commit bd323b6 into nodejs:main May 11, 2024

aduh95 commented May 11, 2024

Copy link
Copy Markdown
Contributor

Landed in bd323b6

targos pushed a commit that referenced this pull request May 12, 2024
PR-URL: #43876
Refs: #43514
Reviewed-By: Anna Henningsen <anna@addaleax.net>
marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
PR-URL: #43876
Refs: #43514
Reviewed-By: Anna Henningsen <anna@addaleax.net>
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
PR-URL: nodejs#43876
Refs: nodejs#43514
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. events Issues and PRs related to the events subsystem / EventEmitter. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL