Packages

wrangler

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

Your version

2.6.0

5 Dec 2022Where it was published

2.21.3 is the newest release of 2.x.

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

In short

2 new5 fixed

Security

3 advisories affect 2.6.0; 3.114.17 fixes them

Release note

Minor Changes

  • Add support for --experimental-local to wrangler pages dev which will use the workerd runtime.

    Add @miniflare/tre environment polyfill to @cloudflare/pages-shared.

  • Add support for Analytics Engine bindings.

    For example:

    analytics_engine_datasets = [  
        { binding = "ANALYTICS", dataset = "my_dataset" }  
    ]

Patch Changes

  • Trigger login flow if a user runs wrangler dev while logged out

    Previously, we would just error if a user logged out and then ran wrangler dev.
    Now, we kick them to the OAuth flow and suggest running wrangler dev --local if
    the login fails.

    Closes #2147

  • d1 not using the preview database when using wrangler dev

    After this fix, wrangler will correctly connect to the preview database, rather than the prod database when using wrangler dev

  • Use the user's preferred default branch name if set in .gitconfig.

    Previously, we would initialize new workers with main as the name of the default branch.
    Now, we see if the user has a custom setting in .gitconfig for init.defaultBranch, and use
    that if it exists.

    Closes #2112

  • Fix script reloads, and allow clean exits, when using --experimental-local on Linux

  • Fix DevTools inspector support when using --(experimental-)local

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.