github cloudflare/workers-sdk wrangler@2.12.1

Patch Changes

  • #2839 ad4b123b Thanks @mrbbot! - fix: remove vitest from wrangler init's generated tsconfig.json types array

    Previously, wrangler init generated a tsconfig.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 with wrangler init

  • #2806 8d462c0c Thanks @GregBrimble! - feat: Add --outdir as an option when running wrangler 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 in wrangler pages publish and wrangler pages dev.

  • #2836 42fb97e5 Thanks @GregBrimble! - fix: preserve the entrypoint filename when running wrangler 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: Bring pages dev logging in line with dev proper's

    wrangler pages dev now defaults to logging at the log level (rather than the previous warn level), and the pages prefix is removed.

  • #2855 226e63fa Thanks @GregBrimble! - fix: --experimental-local with wrangler 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

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.