This repository was archived by the owner on Mar 13, 2025. It is now read-only.
v2.1.0
Features
-
Allow multiple build watch paths to be set in
wrangler.tomlfiles. Use the[miniflare] build_watch_dirsoption. Note this gets merged with the regular[build] watch_diroption:[build] watch_dir = "src1" [miniflare] build_watch_dirs = ["src2", "src3"]
-
WebSocket handshake headers are now included in responses from the HTTP server and WebSocket upgrade
fetches. Closes issue #151, thanks @jed.
Fixes
- Allow Miniflare to be installed with Yarn PnP. Closes issue #144, thanks @lookfirst, @merceyz, and @DJtheRedstoner.
- Use the actual body length for the
Content-Lengthheader in HTTP server responses, instead of the value provided in theResponseconstructor. Closes issue #148, thanks @lukaszczerpak. - Don't rewrite the
Hostheader to match the upstream URL. Closes issue #149, thanks @hansede. - Bump dependencies, fixing
npm auditwarnings. Thanks @leader22 for the PR. - Make
instanceofspec-compliant, ensuring checks likeObject instanceof Objectsucceed. This particular check was used by Lodash's_.isPlainObject()method, which is internally called by_.merge(), causing unexpected results. - Make the unimplemented
Response#typeproperty non-enumerable - Copy header guard when
clone()ingRequests, ensuringRequests with immutable headers still have immutable headers whenclone()ed - Fix race conditions in file-system watcher