Packages

wrangler

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

Your version

2.1.14

1 Nov 2022Where it was published

2.21.3 is the newest release of 2.x.

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

In short

1 new4 fixed

Security

3 advisories affect 2.1.14; 3.114.17 fixes them

Release note

Patch Changes

  • The type command aggregates bindings and custom module rules from config, then generates a DTS file for both service workers' declare global { ... } or module workers' interface Env { ... }

    Custom module rules generate declare modules based on the module type (Text, Data or CompiledWasm).
    Module Example Outputs:

    CompiledWasm

    declare module "**/*.wasm" {
        const value: WebAssembly.Module;
        export default value;
    }

    Data

    declare module "**/*.webp" {
        const value: ArrayBuffer;
        export default value;
    }

    Text

    declare module "**/*.text" {
        const value: string;
        export default value;
    }

    resolves #2034
    resolves #2033

  • pages: wrangler pages dev matches routing rules in _routes.json too loosely

    Currently, the logic by which we transform routing rules in _routes.json to
    regular expressions, so we can perform pathname matching & routing when we
    run wrangler pages dev, is too permissive, and leads to serving incorrect
    assets for certain url paths.

    For example, a routing rule such as /foo will incorrectly match pathname
    /bar/foo. Similarly, pathname /foo will be incorrectly matched by the
    / routing rule.
    This commit fixes our routing rule to pathname matching logic and brings
    wrangler pages dev on par with routing in deployed Pages projects.

  • Delete site/assets namespace when a worker is deleted

    This patch deletes any site/asset kv namespaces associated with a worker when wrangler delete is used. It finds the namespace associated with a worker by using the names it would have otherwise used, and deletes it. It also does the same for the preview namespace that's used with wrangler dev.

  • Wrangler deployments command
    Added support for the deployments command, which allows you to list the last ten deployments for a given script.

    The information will include:

    • Version ID

    • Version number

    • Author email

    • Latest deploy

    • Created on

    resolves #2089

  • Fixed issue where information and warning messages from Miniflare were being
    discarded when using wrangler dev --local. Logs from Miniflare will now be
    coloured too, if the terminal supports this.

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.