-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
lib: add EventSource #51575
lib: add EventSource #51575
Conversation
Review requested:
|
(LGTM is in principle, this is a draft) |
@Uzlopak this can move forward now |
Roger that. |
6a3a146
to
76fbb0a
Compare
PTAL |
76fbb0a
to
bccbba6
Compare
6a77c9c
to
c06cd4c
Compare
cc @nodejs/web-standards |
Can this be a notable change ;)? |
The
notable-change
Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Can somebody please add author-ready flag? @RafaelGSS |
Can you expand a bit more? |
@Uzlopak there are conflicts snow |
c06cd4c
to
2eb88a8
Compare
PTAL |
2eb88a8
to
07f9ccb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@marco-ippolito running CI is enough to be author ready node/doc/contributing/collaborator-guide.md Lines 895 to 899 in 956521c
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an entry in the ESLint config to forbid the use of the global in the lib/
folder please? Similar to
Lines 157 to 158 in 3136fb0
- name: fetch | |
message: Use `const { fetch } = require('internal/deps/undici/undici');` instead of the global. |
Thanks for clarifying, I was sure it required green ci 😵 |
07f9ccb
to
8165053
Compare
done ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it surprising that there are no WPT changes, but that shouldn't block this from landing.
wdym? we run WPTs for it in undici |
I would expect that we run WPT tests for it in this repo. |
We don't run wpts for fetch either on this as far as I know. |
Landed in 1d7d094 |
Proposal for Release Notes:
EventSource
EventSource is a W3C compliant Client for Server-sent events. The new flag
--experimental-eventsource
can be used to expose a globalEventSource
-constructor.