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

events: replace NodeCustomEvent with CustomEvent #43876

Merged
merged 1 commit into from
May 11, 2024

Conversation

F3n67u
Copy link
Member

@F3n67u F3n67u commented Jul 17, 2022

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 nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jul 17, 2022
@F3n67u F3n67u requested a review from benjamingr July 17, 2022 11:53
@F3n67u F3n67u added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 17, 2022
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 17, 2022
@nodejs-github-bot
Copy link
Collaborator

@F3n67u F3n67u added the events Issues and PRs related to the events subsystem / EventEmitter. label Jul 17, 2022
@benjamingr
Copy link
Member

@addaleax

@@ -366,15 +366,6 @@ ObjectDefineProperties(CustomEvent.prototype, {
detail: kEnumerableProperty,
});

class NodeCustomEvent extends Event {
Copy link
Member

Choose a reason for hiding this comment

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

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
Member Author

Choose a reason for hiding this comment

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

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 aduh95 force-pushed the node-custom-event branch from 4098a39 to d0560a8 Compare May 11, 2024 09:37
@aduh95 aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 11, 2024
@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 merged commit bd323b6 into nodejs:main May 11, 2024
53 checks passed
@aduh95
Copy link
Contributor

aduh95 commented May 11, 2024

Landed in bd323b6

targos pushed a commit that referenced this pull request May 12, 2024
marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
eliphazbouye pushed a commit to eliphazbouye/node that referenced this pull request Jun 20, 2024
bmeck pushed a commit to bmeck/node that referenced this pull request Jun 22, 2024
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 pending requests for changes, 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