|
1 | 1 | # 🚧 Changelog |
2 | 2 |
|
| 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 | + |
3 | 51 | ## 2.0.0 |
4 | 52 |
|
5 | 53 | Miniflare 2 has been completely redesigned from version 1 with 3 primary design |
|
0 commit comments