Features
-
Allow multiple build watch paths to be set in
wrangler.toml
files. Use the[miniflare] build_watch_dirs
option. Note this gets merged with the regular[build] watch_dir
option:[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
fetch
es. 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-Length
header in HTTP server responses, instead of the value provided in theResponse
constructor. Closes issue #148, thanks @lukaszczerpak. - Don't rewrite the
Host
header to match the upstream URL. Closes issue #149, thanks @hansede. - Bump dependencies, fixing
npm audit
warnings. Thanks @leader22 for the PR. - Make
instanceof
spec-compliant, ensuring checks likeObject instanceof Object
succeed. This particular check was used by Lodash's_.isPlainObject()
method, which is internally called by_.merge()
, causing unexpected results. - Make the unimplemented
Response#type
property non-enumerable - Copy header guard when
clone()
ingRequest
s, ensuringRequest
s with immutable headers still have immutable headers whenclone()
ed - Fix race conditions in file-system watcher