Patch Changes
-
#2839
ad4b123b
Thanks @mrbbot! - fix: removevitest
fromwrangler init
's generatedtsconfig.json
types
arrayPreviously,
wrangler init
generated atsconfig.json
with"types": ["@cloudflare/workers-types", "vitest"]
, even if Vitest tests weren't generated.
Unlike Jest, Vitest doesn't provide global APIs by default, so there's no need for ambient types. -
#2806
8d462c0c
Thanks @GregBrimble! - chore: Remove the--experimental-worker-bundle
option from Pages Functions -
#2845
e3c036d7
Thanks @Cyb3r-Jak3! - feature: include .wrangler directory in gitignore template used withwrangler init
-
#2806
8d462c0c
Thanks @GregBrimble! - feat: Add--outdir
as an option when runningwrangler pages functions build
.This deprecates
--outfile
when building a Pages Plugin with--plugin
.When building functions normally,
--outdir
may be used to produce a human-inspectable format of the_worker.bundle
that is produced. -
#2806
8d462c0c
Thanks @GregBrimble! - Enable bundling in Pages Functions by default.We now enable bundling by default for a
functions/
folder and for an_worker.js
in Pages Functions. This allows you to use external modules such as Wasm. You can disable this behavior in Direct Upload projects by using the--no-bundle
argument inwrangler pages publish
andwrangler pages dev
. -
#2836
42fb97e5
Thanks @GregBrimble! - fix: preserve the entrypoint filename when runningwrangler publish --outdir <dir>
.Previously, this entrypoint filename would sometimes be overwritten with some internal filenames. It should now be based off of the entrypoint you provide for your Worker.
-
#2828
891ddf19
Thanks @GregBrimble! - fix: Bringpages dev
logging in line withdev
proper'swrangler pages dev
now defaults to logging at thelog
level (rather than the previouswarn
level), and thepages
prefix is removed. -
#2855
226e63fa
Thanks @GregBrimble! - fix:--experimental-local
withwrangler pages dev
We previously had a bug which logged an error (
local worker: TypeError: generateASSETSBinding2 is not a function
). This has now been fixed. -
#2831
2b641765
Thanks @Skye-31! - Fix: Show correct link for how to create an API token in a non-interactive environment