This repository was archived by the owner on Mar 13, 2025. It is now read-only.
v2.0.0-rc.2
Pre-release
Pre-release
Features
- Add
structuredCloneto the sandbox - Copy
--kv-persist,--cache-persistand--do-persistoptions to--mounts, so data is shared correctly - Resolve mount-custom storage persistence options relative to mounted directory
- Add a more helpful error message on
DurableObjectStorage#getdeserialization failure due to Miniflare 1 data - Add a more helpful error message on
Cache#matchdeserialization failure due to Miniflare 1 data - Add a more helpful error message when unable to find a matching module rule that suggests bundling npm packages
Fixes
- Bump
undicito4.10.2, closes issues #84 and #91, thanks @gzuidhof and @tranzium - Remove
HostandCF-Connecting-IPheaders whenfetching, closes issue #97, thanks @WalshyDev - Allow file-system persisted keys to start with
/, thanks @eidam for reporting this - Setting an option to
undefinednow overrides that option inwrangler.tomllike Miniflare 1 - When building mounted workers, set the current working directory to the mounted directory
- Respect the
fetch_refuses_unknown_protocolscompatibility flag inDurableObjectStub#fetch - Default
Response.redirectstatus to302instead of throwing - Improve spec-compliance of WebSocket event constructors
Jest Fixes 🙁
- Fix importing
miniflarein Jest when using thenodeenvironment, specifically fixWebSocketServerimport andatob/btoa/AbortSignalglobals - Add
Bufferto global injest-environment-node, thanks @dan-lee for the PR - Allow dynamic code generation in
jest-environment-nodefor coverage, thanks @dan-lee for reporting this