Patch Changes
-
#4707
96a27f3d
Thanks @mrbbot! - fix: only offer to report unknown errorsPreviously, Wrangler would offer to report any error to Cloudflare. This included errors caused by misconfigurations or invalid commands. This change ensures those types of errors aren't reported.
-
#4676
078cf84d
Thanks @dario-piotrowicz! - make sure the script path is correctly resolved inpages dev
when no directory is specified -
#4722
5af6df13
Thanks @mrbbot! - fix: don't require auth forwrangler r2 object --local
operationsPreviously, Wrangler would ask you to login when reading or writing from local R2 buckets. This change ensures no login prompt is displayed, as authentication isn't required for these operations.
-
#4719
c37d94b5
Thanks @mrbbot! - fix: ensureminiflare
andwrangler
can source map in the same processPreviously, if in a
wrangler dev
session you calledconsole.log()
and threw an unhandled error you'd see an error like[ERR_ASSERTION]: The expression evaluated to a falsy value
. This change ensures you can do both of these things in the same session. -
#4683
24147166
Thanks @mrbbot! - fix: ensure logs containingat
not truncated toat [object Object]
Previously, logs containing
at
were always treated as stack trace call sites requiring source mapping. This change updates the call site detection to avoid false positives. -
#4748
3603a60d
Thanks @Cherry! - fix: resolve imports in a more node-like fashion for packages that do not declare exportsPreviously, trying to import a file that wasn't explicitly exported from a module would result in an error, but now, better attempts are made to resolve the import using node's module resolution algorithm. It's now possible to do things like this:
import JPEG_DEC_WASM from "@jsquash/jpeg/codec/dec/mozjpeg_dec.wasm";
This works even if the
mozjpeg_dec.wasm
file isn't explicitly exported from the@jsquash/jpeg
module.Fixes #4726
-
#4687
0a488f66
Thanks @mrbbot! - fix: remove confusing--local
messaging fromwrangler pages dev
Running
wrangler pages dev
would previously log a warning saying--local is no longer required
even though--local
was never set. This change removes this warning. -
Updated dependencies [
4f6999ea
,c37d94b5
]:- miniflare@3.20231218.2