Patch Changes
-
#1389
eab9542
Thanks @caass! - Remove delegation message when global wrangler delegates to a local installationA message used for debugging purposes was accidentally left in, and confused some
folks. Now it'll only appear whenWRANGLER_LOG
is set todebug
. -
#1447
16f9436
Thanks @threepointone! - feat: r2 support inwrangler dev --local
This adds support for r2 bindings in
wrangler dev --local
, powered by miniflare@2.6.0 via cloudflare/miniflare#289.Fixes #1066
-
#1406
0f35556
Thanks @rozenmd! - fix: use fork to let wrangler know miniflare is readyThis PR replaces our use of
spawn
in favour offork
to spawn miniflare in wrangler's dev function. This lets miniflare let wrangler know when we're ready to send requests.Closes #1408
-
#1442
f9efc04
Thanks @jrencz! - fix: add missingmetadata
option tokv:key put
Closes #1441
-
#999
238b546
Thanks @caass! - Include devtools in wrangler monorepoPreviously, wrangler relied on @threepointone's built-devtools. Now, these devtools are included in the wrangler repository.
-
#1424
8cf0008
Thanks @caass! - fix: Checkconfig.assets
when deciding whether to include a default entry point.An entry point isn't mandatory when using
--assets
, and we can use a default worker when doing so. This fix enables that same behaviour whenconfig.assets
is configured. -
#1448
0d462c0
Thanks @threepointone! - polish: setcheckjs: false
andjsx: "react"
in newly created projectsWhen we create a new project, it's annoying having to set jsx: "react" when that's the overwhelmingly default choice, our compiler is setup to do it automatically, and the tsc error message isn't helpful. So we set
jsx: "react"
in the generated tsconfig.Setting
checkJs: true
is also annoying because it's not a common choice. So we setcheckJs: false
in the generated tsconfig. -
#1450
172310d
Thanks @threepointone! - polish: tweak static assets facade to log only real errorsThis prevents the abundance of NotFoundErrors being unnecessaryily logged.
-
#1415
f3a8452
Thanks @caass! - Emit type declarations for wranglerThis is a first go-round of emitting type declarations alongside the bundled JS output,
which should make it easier to use wrangler as a library. -
#1433
1c1214f
Thanks @threepointone! - polish: adds an actionable message when a worker name isn't provided to tail/secretJust a better error message when a Worker name isn't available for
wrangler secret
orwrangler tail
.Closes #1380
-
#1427
3fa5041
Thanks @caass! - Checknpm_config_user_agent
to guess a user's package managerThe environment variable
npm_config_user_agent
can be used to guess the package manager
that was used to execute wrangler. It's imperfect (just like regular user agent sniffing!)
but the package managers we support all set this property: