Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

2.12.1

7 Mar 2023Where it was published

2.21.3 is the newest release of 2.x.

npm marks 2.12.1 as deprecated: Wrangler v2 is no longer supported. Please upgrade to Wrangler v4

In short

3 new5 fixed1 internal

Security

3 advisories affect 2.12.1; 3.114.17 fixes them

Release note

Patch Changes

  • 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.

  • Include .wrangler directory in gitignore template used with wrangler init

  • 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.

  • 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.

  • 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.

  • 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.

  • --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.

  • Show correct link for how to create an API token in a non-interactive environment

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.