Patch Changes
-
#752
6d43e94
Thanks @petebacondarwin! - fix: add a warning ifdev
is defaulting to the latest compatibility-dateFixes #741
-
#767
836ad59
Thanks @threepointone! - fix: use cwd for--experiment-enable-local-persistence
This sets up
--experiment-enable-local-persistence
to explicitly useprocess.cwd() + wrangler-local-state
as a path to store values. Without it, local mode uses the temp dir that we use to bundle the worker, which gets wiped out on ending wrangler dev. In the future, based on usage, we may want to make the path configurable as well.Fixes #766
-
#723
7942936
Thanks @threepointone! - fix: spread tail messages when loggingLogged messages (via console, etc) would previously be logged as an array of values. This spreads it when logging to match what is expected.
-
#756
8e38442
Thanks @threepointone! - fix: resolve raw file bindings correctly inwrangler dev
local modeFor
wasm_modules
/text_blobs
/data_blobs
in local mode, we need to rewrite the paths as absolute so that they're resolved correctly by miniflare. This also expands some coverage for local modewrangler dev
. -
#699
ea8e701
Thanks @JacobMGEvans! - polish: added logout and login to helpstring message. -
#728
0873049
Thanks @threepointone! - fix: only send durable object migrations when requiredWe had a bug where even if you'd published a script with migrations, we would still send a blank set of migrations on the next round. The api doesn't accept this, so the fix is to not do so. I also expanded test coverage for migrations.
Fixes #705
-
#763
f72c943
Thanks @JacobMGEvans! - feat: Added the update check that will check the package once a day against the beta release,distTag
can be changed later, then prints the latestbeta version to the user.resolves #762
-
#695
48fa89b
Thanks @caass! - fix: stop wrangler spamming console after loginIf a user hasn't logged in and then they run a command that needs a login they'll get bounced to the login flow.
The login flow (if completed) would write their shiny new OAuth2 credentials to disk, but wouldn't reload the
in-memory state. This led to issues like #693, where even though the user was logged in on-disk, wrangler
wouldn't be aware of it.We now update the in-memory login state each time new credentials are written to disk.
-
#734
a1dadac
Thanks @threepointone! - fix: exit dev if build fails on first runBecause of evanw/esbuild#1037, we can't recover dev if esbuild fails on first run. The workaround is to end the process if it does so, until we have a better fix.
Reported in #731
-
#757
13e57cd
Thanks @sidharthachatterjee! - feature: Add wrangler pages project listAdds a new command to list your projects in Cloudflare Pages.
-
#745
6bc3e85
Thanks @petebacondarwin! - feat: add hotkey to clear the console inwrangler dev
Closes #388
-
#747
db6b830
Thanks @petebacondarwin! - refactor: removeprocess.exit()
from the pages codeThis enables simpler testing, as we do not have to spawn new child processes
to avoid theprocess.exit()
from killing the jest process.As part of the refactor, some of the
Error
classes have been moved to a
sharederrors.ts
file. -
#726
c4e5dc3
Thanks @threepointone! - fix: assume a worker is a module worker only if it has adefault
exportThis tweaks the logic that guesses worker formats to check whether a
default
export is defined on an entry point before assuming it's a module worker. -
#735
c38ae3d
Thanks @threepointone! -text_blobs
/Text module support for service worker format in local modeThis adds support for
text_blobs
/Text module support in local mode. Now that cloudflare/miniflare#228 has landed in miniflare (thanks @caass!), we can use that in wrangler as well. -
#743
ac5c48b
Thanks @threepointone! - feat: implement[data_blobs]
This implements
[data_blobs]
support for service-worker workers, as well as enabling Data module support for service-worker workers.data_blob
is a supported binding type, but we never implemented support for it in v1. This implements support, and utilises it for supporting Data modules in service worker format. Implementation wise, it's incredibly similar to how we implementedtext_blobs
, with relevant changes.Partial fix for #740 pending local mode support.
-
#753
cf432ac
Thanks @petebacondarwin! - fix: distinguish the command hotkeys in wrangler devCloses #354
-
#746
3e25dcb
Thanks @petebacondarwin! - fix: remove superfluous debugger log messages from local devCloses #387
-
#758
9bd95ce
Thanks @sidharthachatterjee! - feature: Add wrangler pages deployment listRenders a list of deployments in a Cloudflare Pages project
-
#733
91873e4
Thanks @JacobMGEvans! - polish: improved visualization of the deprecation messages between serious and warnings with emojis. This also improves the delineation between messages. -
#738
c04791c
Thanks @petebacondarwin! - fix: add support for cron triggers indev --local
modeCurrently, I don't know if there is support for doing this in "remote" dev mode.
Resolves #737
-
#732
c63ea3d
Thanks @JacobMGEvans! - fix: abort async operations in theRemote
component to avoid unwanted side-effects
When theRemote
component is unmounted, we now signal outstandingfetch()
requests, and
waitForPortToBeAvailable()
tasks to cancel them. This prevents unexpected requests from appearing
after the component has been unmounted, and also allows the process to exit cleanly without a delay.fixes #375