Repository navigation
wrangler@2.12.1
Patch Changes
-
#2839
ad4b123bThanks @mrbbot! - fix: removevitestfromwrangler init's generatedtsconfig.jsontypesarrayPreviously,
wrangler initgenerated atsconfig.jsonwith"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
8d462c0cThanks @GregBrimble! - chore: Remove the--experimental-worker-bundleoption from Pages Functions -
#2845
e3c036d7Thanks @Cyb3r-Jak3! - feature: include .wrangler directory in gitignore template used withwrangler init -
#2806
8d462c0cThanks @GregBrimble! - feat: Add--outdiras an option when runningwrangler pages functions build.This deprecates
--outfilewhen building a Pages Plugin with--plugin.When building functions normally,
--outdirmay be used to produce a human-inspectable format of the_worker.bundlethat is produced. -
#2806
8d462c0cThanks @GregBrimble! - Enable bundling in Pages Functions by default.We now enable bundling by default for a
functions/folder and for an_worker.jsin 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-bundleargument inwrangler pages publishandwrangler pages dev. -
#2836
42fb97e5Thanks @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
891ddf19Thanks @GregBrimble! - fix: Bringpages devlogging in line withdevproper'swrangler pages devnow defaults to logging at theloglevel (rather than the previouswarnlevel), and thepagesprefix is removed. -
#2855
226e63faThanks @GregBrimble! - fix:--experimental-localwithwrangler pages devWe previously had a bug which logged an error (
local worker: TypeError: generateASSETSBinding2 is not a function). This has now been fixed. -
#2831
2b641765Thanks @Skye-31! - Fix: Show correct link for how to create an API token in a non-interactive environment