wrangler@4.90.1
📦 cloudflare-workersView on GitHub →
🐛 4 fixes🔧 3 symbols
Summary
This patch release focuses on stability fixes, particularly addressing issues in `wrangler dev` related to hotkey cleanup during shutdown and ensuring remote binding updates complete before subsequent operations. Dependencies, including workerd, have also been updated.
Migration Steps
- If you rely on the cleanup function returned by `startDev()` when using remote bindings, note that it now returns a wrapper function `() => unregisterHotKeys?.()` instead of the direct reference to ensure the latest cleanup logic is executed upon shutdown.
🐛 Bug Fixes
- Fixed beta/open-beta status message ignoring `printBanner: false` so the status banner no longer appears in JSON output when commands are configured to suppress it based on JSON output.
- Fixed `wrangler dev` hanging on shutdown when remote bindings are present by ensuring the correct, latest cleanup function for hotkeys is called upon shutdown.
- Fixed race condition in `RemoteProxySession.updateBindings` to wait for the remote worker to finish reloading with new bindings before resolving, preventing flaky failures like "WebSocket connection failed" for JSRPC bindings.
- Fixed unhandled `AbortError` from `wrangler dev`'s remote tail WebSocket when the bundle rebuilds or the dev session shuts down by attaching an error listener to ignore errors during WebSocket termination.