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

Update Miniflare to fix compatibility with Node 21 #2003

Merged
merged 6 commits into from
Apr 16, 2024

Conversation

frandiox
Copy link
Contributor

@frandiox frandiox commented Apr 15, 2024

Closes #1833 again, since this fix was reverted in an internal refactor when stabilizing Vite.

Aside from that, Miniflare now respects accept-encoding which means our responses during development can be compressed. This causes issues with our previous implementation so I'm changing the code here to use Node's HTTP instead of fetch.

More info: cloudflare/workers-sdk#5409 (comment)


Update: our tests for sourcemaps started failing with the latest Miniflare version so I've downgraded it to 3.20240304.2, which still fixes the issue with Node 21 but doesn't support encoded responses.

@frandiox frandiox requested a review from a team April 15, 2024 18:37

This comment has been minimized.

Copy link
Contributor

shopify bot commented Apr 15, 2024

Oxygen deployed a preview of your fd-update-miniflare-encoding branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
optimistic-cart-ui ✅ Successful (Logs) Preview deployment Inspect deployment April 15, 2024 7:22 PM
skeleton ✅ Successful (Logs) Preview deployment Inspect deployment April 15, 2024 7:23 PM
subscriptions ✅ Successful (Logs) Preview deployment Inspect deployment April 15, 2024 7:22 PM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment April 15, 2024 7:22 PM
vite ✅ Successful (Logs) Preview deployment Inspect deployment April 15, 2024 7:23 PM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment April 15, 2024 7:22 PM

Learn more about Hydrogen's GitHub integration.

@frandiox frandiox force-pushed the fd-update-miniflare-encoding branch from b0cc797 to b4800a9 Compare April 15, 2024 19:11
@frandiox frandiox changed the title Update Miniflare Apr 16, 2024
@frandiox frandiox merged commit 7e8cf05 into main Apr 16, 2024
15 checks passed
@frandiox frandiox deleted the fd-update-miniflare-encoding branch April 16, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants