Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 8c23cd9

Browse files
committed
Bump versions to 2.0.0-rc.2, update CHANGELOG.md
1 parent b251fa7 commit 8c23cd9

File tree

23 files changed

+348
-300
lines changed

23 files changed

+348
-300
lines changed

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# 🚧 Changelog
22

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+
350
## 2.0.0-rc.1
451

552
### Breaking Changes

docs/standards.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ Miniflare supports the following Web Standards in its sandbox:
3232
- **Events:** `Event`, `EventTarget`, `AbortController`, `AbortSignal`
3333
- **Event Types:** `fetch`, `scheduled`, `unhandledrejection`,
3434
`rejectionhandled`
35+
- **Misc:** `structuredClone`

0 commit comments

Comments
 (0)