-
Notifications
You must be signed in to change notification settings - Fork 900
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 FetchProvider in non-browser environment #7634
Conversation
🦋 Changeset detectedLatest commit: 9dda1e5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Looks good to me.. @hsubox76 FYI |
Can you add a changeset? Run |
@hsubox76 Changeset file has been added |
Any update on merging this? |
Requesting review from @hsubox76 or @DellaBitta , thanks! |
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 don't want to hold this PR up but in the future we should think about putting any changes we need to make global variable checking more robust in this function in firebase/util
and using it in all places that need globalThis
: https://github.com/firebase/firebase-js-sdk/blob/master/packages/util/src/global.ts#L23 I think it's only used in two places right now but we should check if there's any other instances of self
that would benefit from it.
Sorry, this is my fault for the delay, but it looks like triggering a re-run of the failed jobs doesn't work because the build artifact it's trying to use has expired. Can you push an empty commit to trigger a new CI run? |
I pushed a new empty commit. The workflow requires approval to run. |
Sorry, I made the same mistake 🙏 |
Discussion
This PR tries get the fetch implementation from not only
self
but also standardglobalThis
. This would allow Firebase to get the fetch implementation in non-browser JavaScript environment, like Vercel Edge Runtime.Closes #7633
Closes #7533
Testing
N/A
API Changes
No API changes