|
1 | 1 | # 🚧 Changelog |
2 | 2 |
|
| 3 | +## 2.0.0-rc.2 |
| 4 | + |
| 5 | +### Features |
| 6 | + |
| 7 | +- Add `structuredClone` to the sandbox |
| 8 | +- Copy `--kv-persist`, `--cache-persist` and `--do-persist` options to |
| 9 | + `--mount`s, so data is shared correctly |
| 10 | +- Resolve mount-custom storage persistence options relative to mounted directory |
| 11 | +- Add a more helpful error message on `DurableObjectStorage#get` deserialization |
| 12 | + failure due to Miniflare 1 data |
| 13 | +- Add a more helpful error message on `Cache#match` deserialization failure due |
| 14 | + to Miniflare 1 data |
| 15 | +- Add a more helpful error message when unable to find a matching module rule |
| 16 | + that suggests bundling npm packages |
| 17 | + |
| 18 | +### Fixes |
| 19 | + |
| 20 | +- Bump `undici` to `4.10.2`, closes issues |
| 21 | + [#84](https://github.com/cloudflare/miniflare/issues/84) and |
| 22 | + [#91](https://github.com/cloudflare/miniflare/issues/91), thanks |
| 23 | + [@gzuidhof](https://github.com/gzuidhof) and |
| 24 | + [@tranzium](https://github.com/tranzium) |
| 25 | +- Remove `Host` and `CF-Connecting-IP` headers when `fetch`ing, closes issue |
| 26 | + [#97](https://github.com/cloudflare/miniflare/issues/97), thanks |
| 27 | + [@WalshyDev](https://github.com/WalshyDev) |
| 28 | +- Allow file-system persisted keys to start with `/`, thanks |
| 29 | + [@eidam](https://github.com/eidam) for reporting this |
| 30 | +- Setting an option to `undefined` now overrides that option in `wrangler.toml` |
| 31 | + like Miniflare 1 |
| 32 | +- When building mounted workers, set the current working directory to the |
| 33 | + mounted directory |
| 34 | +- Respect the `fetch_refuses_unknown_protocols` compatibility flag in |
| 35 | + `DurableObjectStub#fetch` |
| 36 | +- Default `Response.redirect` status to `302` instead of throwing |
| 37 | +- Improve spec-compliance of WebSocket event constructors |
| 38 | + |
| 39 | +### Jest Fixes 🙁 |
| 40 | + |
| 41 | +- Fix importing `miniflare` in Jest when using the `node` environment, |
| 42 | + specifically fix `WebSocketServer` import and `atob`/`btoa`/`AbortSignal` |
| 43 | + globals |
| 44 | +- Add `Buffer` to global in `jest-environment-node`, thanks |
| 45 | + [@dan-lee](https://github.com/dan-lee) for the |
| 46 | + [PR](https://github.com/cloudflare/miniflare/pull/95) |
| 47 | +- Allow dynamic code generation in `jest-environment-node` for coverage, thanks |
| 48 | + [@dan-lee](https://github.com/dan-lee) for reporting this |
| 49 | + |
3 | 50 | ## 2.0.0-rc.1 |
4 | 51 |
|
5 | 52 | ### Breaking Changes |
|
0 commit comments