-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(remix-node): convert fetch
's WebResponse
to NodeResponse
so it matches the global
#4148
Conversation
🦋 Changeset detectedLatest commit: 426370c The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 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 |
967a676
to
2132041
Compare
fetch
's WebResponse
to NodeResponse
so it matches the global
66791c4
to
2f91106
Compare
2f91106
to
71db7d2
Compare
@MichaelDeBoey Ah wow I apparently did a bad job searching PRs, o well now I know a lot more about fetch. Yes this is the same, and looking through the webfetch code it always resolves a Plus the test strategy is definitely better I think you are good to merge this and close mine. |
@mcansh following on this since thus PR seems this PR in the auth.js for adding remix support for the |
71db7d2
to
5000979
Compare
@mcansh I think this one can be merged as-is or is there anything that we're still waiting for? |
5000979
to
4c12784
Compare
4c12784
to
8ab7cc1
Compare
@mcansh I don't think anything is holding us back from merging this one? |
Any chances that this one would be merged in the near future 🙏🏻 . Would be great to be able to use |
@@ -72,5 +72,7 @@ export const fetch: typeof webFetch = ( | |||
...init, | |||
}; | |||
|
|||
return webFetch(info, init as RequestInit); | |||
let webResponse = await webFetch(info, init as RequestInit); |
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.
Doesn't this change the expectation of fetch
, since now you await
the response before returning? What if the original response is streaming?
…e global Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
8ab7cc1
to
c769fbe
Compare
Should be closed by #7109 |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
closes #4395, #3480