Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix: move from event-source-polyfill to fetch-event-source #24861
fix: move from event-source-polyfill to fetch-event-source #24861
Changes from 5 commits
1593991
f1c280b
db76476
147f11f
cbebad1
79605f8
a159480
b7db436
7cc45e0
edc1801
9d54ebf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check failure on line 6 in .changeset/empty-avocados-tease.md
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.
Does this automatically cleanup? We seem to missing the
eventSource.close
from before.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 assume it does. It has an
onclose
hook, but no explicit call to close in the documentation: https://github.com/Azure/fetch-event-source?tab=readme-ov-file#usageThere 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.
It uses a
signal
instead, which is the more modern API. We should implement it using that instead.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.
updated
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 wonder if we should have the option of passing in an
AbortController
, and default to creating one if one is not provided? Maybe can save that for a followup though..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.
Thinking that we should mark this as
@deprecated
and make it optional and just skip using it rather than breaking change. It would only affect people who provide a custom factory to the app for creating atechdocsApiRef
but it's still technically breaking.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'm not 100% sure the way I marked it as deprecated is fine (couldn't find a similar example). Can you check?
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.
It needs to use a doc comment, i.e.
/** @deprecated ... */
. Let's keep theIdentityApi
type as well, instead ofany
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 did the comment, but somehow I can't make it show up in the generated api-report.md.
any hints are welcome