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

Commit dc54e05

Browse files
committed
Bump versions to 2.1.0, update CHANGELOG.md and docs
1 parent e566959 commit dc54e05

File tree

24 files changed

+360
-307
lines changed

24 files changed

+360
-307
lines changed

docs/CHANGELOG.md

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

3+
## 2.1.0
4+
5+
### Features
6+
7+
- Allow multiple build watch paths to be set in `wrangler.toml` files. Use the
8+
`[miniflare] build_watch_dirs` option. Note this gets merged with the regular
9+
`[build] watch_dir` option:
10+
11+
```toml
12+
[build]
13+
watch_dir = "src1"
14+
15+
[miniflare]
16+
build_watch_dirs = ["src2", "src3"]
17+
```
18+
19+
- WebSocket handshake headers are now included in responses from the HTTP server
20+
and WebSocket upgrade `fetch`es. Closes
21+
[issue #151](https://github.com/cloudflare/miniflare/issues/151), thanks
22+
[@jed](https://github.com/jed).
23+
24+
### Fixes
25+
26+
- Allow Miniflare to be installed with
27+
[Yarn PnP](https://yarnpkg.com/features/pnp). Closes
28+
[issue #144](https://github.com/cloudflare/miniflare/issues/144), thanks
29+
[@lookfirst](https://github.com/lookfirst),
30+
[@merceyz](https://github.com/merceyz), and
31+
[@DJtheRedstoner](https://github.com/DJtheRedstoner).
32+
- Use the actual body length for the `Content-Length` header in HTTP server
33+
responses, instead of the value provided in the `Response` constructor. Closes
34+
[issue #148](https://github.com/cloudflare/miniflare/issues/148), thanks
35+
[@lukaszczerpak](https://github.com/lukaszczerpak).
36+
- Don't rewrite the `Host` header to match the upstream URL. Closes
37+
[issue #149](https://github.com/cloudflare/miniflare/issues/149), thanks
38+
[@hansede](https://github.com/hansede).
39+
- Bump dependencies, fixing `npm audit` warnings. Thanks
40+
[@leader22](https://github.com/leader22) for
41+
[the PR](https://github.com/cloudflare/miniflare/pull/150).
42+
- Make `instanceof` spec-compliant, ensuring checks like
43+
`Object instanceof Object` succeed. This particular check was used by Lodash's
44+
`_.isPlainObject()` method, which is internally called by `_.merge()`, causing
45+
unexpected results.
46+
- Make the unimplemented `Response#type` property non-enumerable
47+
- Copy header guard when `clone()`ing `Request`s, ensuring `Request`s with
48+
immutable headers still have immutable headers when `clone()`ed
49+
- Fix race conditions in file-system watcher
50+
351
## 2.0.0
452

553
Miniflare 2 has been completely redesigned from version 1 with 3 primary design

docs/src/content/core/standards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ they succeed for values created both inside and outside the Miniflare sandbox
108108
performed by WebAssembly glue code (e.g. `wasm-bindgen`) always succeeds. Note
109109
that values returned by Workers runtime APIs are created outside the Miniflare
110110
sandbox. See
111-
[this file](https://github.com/cloudflare/miniflare/blob/v2/packages/runner-vm/src/instanceof.ts)
111+
[this file](https://github.com/cloudflare/miniflare/blob/master/packages/runner-vm/src/instanceof.ts)
112112
for more details.
113113

114114
Primitive classes in this case are defined as JavaScript built-ins that can be

docs/src/content/developing/builds.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ command = "npm run build"
3030
# Below options are optional
3131
cwd = "build"
3232
watch_dir = "source" # Defaults to "src" if command set
33+
34+
# Extra build watch paths can be specified here,
35+
# they'll get merged with `watch_dir`
36+
[miniflare]
37+
build_watch_dirs = ["source1", "source2"]
3338
```
3439

3540
```js

0 commit comments

Comments
 (0)