Packages

wrangler

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

Your version

2.2.0

11 Nov 2022Where it was published

2.21.3 is the newest release of 2.x.

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

In short

4 new5 fixed

Security

3 advisories affect 2.2.0; 3.114.17 fixes them

Release note

Minor Changes

  • D1 execute and backup commands improvements

    • Better and faster handling when importing big SQL files using execute --file

    • Increased visibility during imports, sends output with each batch API call

    • Backups are now downloaded to the directory where wrangler was initiated from

  • Add warnings around bundle sizes for large scripts

    Prints a warning for scripts > 1MB compressed, encouraging smaller
    script sizes. This warning can be silenced by setting the
    NO_SCRIPT_SIZE_WARNING env variable

    If a publish fails with either a script size error or a validator error
    on script startup (CPU or memory), we print out the largest 5
    dependencies in your bundle. This is accomplished by using the esbuild
    generated metafile.

  • Adds support for Cloudflare Queues. Adds new CLI commands to configure Queues. Queue producers and consumers can be defined in wrangler.toml.

  • Enable support for wrangler dev on Workers behind Cloudflare Access, utilising cloudflared. If you don't have cloudflared installed, Wrangler will prompt you to install it. If you do, then the first time you start developing using wrangler dev your default browser will open with a Cloudflare Access prompt.

Patch Changes

  • Added current version to publish output

  • Missing Worker name using --from-dash
    Added the --from-dash name as a fallback when no name is provided in the wrangler init command.
    Additionally added a checks to the std.out to ensure that the name is provided.

    resolves #1853

  • If --env <env> is specified, we'll now check .env.<env>/.dev.vars.<env> first.
    If they don't exist, we'll fallback to .env/.dev.vars.

  • Fixed importing installed npm packages with the same name as Node built-in
    modules if node_compat is disabled.

  • Computing the name from binding response
    Now the vars will be computed, example:
    [var.binding.name]: var.binding.text

    this will resolve the issue that was occurring with
    generating a TOML with incorrect fields for the vars key/value pair.

    resolves #2048

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.