Packages

wrangler

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

Your version

2.8.0

17 Jan 2023Where it was published

2.21.3 is the newest release of 2.x.

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

In short

4 new4 fixed1 internal

Security

3 advisories affect 2.8.0; 3.114.17 fixes them

Release note

Minor Changes

  • Support EmailEvent event type in wrangler tail.

  • Support bundling the raw Pages _worker.js before deploying

    Previously, if you provided a _worker.js file, then Pages would simply check the
    file for disallowed imports and then deploy the file as-is.

    Not bundling the _worker.js file means that it cannot containing imports to other
    JS files, but also prevents Wrangler from adding shims such as the one for the D1 alpha
    release.

    This change adds the ability to tell Wrangler to pass the _worker.js through the
    normal Wrangler bundling process before deploying by setting the --bundle
    command line argument to wrangler pages dev and wrangler pages publish.

    This is in keeping with the same flag for wrangler publish.

    Currently bundling is opt-in, flag defaults to false if not provided.

Patch Changes

  • Send wrangler docs d1 to the right place

  • Wrangler init --from-dash incorrectly expects index.ts while writing index.js

    This PR fixes a bug where Wrangler would write a wrangler.toml expecting an index.ts file, while writing an index.js file.

  • Remove "experimental _routes.json" warnings

    _routes.json is no longer considered an experimental feature, so let's
    remove all warnings we have in place for that.

  • Path should be optional for wrangler d1 backup download

    This PR fixes a bug that forces folks to provide a --output flag to wrangler d1 backup download.

  • Add some guidance when folks encounter a 10021 error.

    Error code 10021 can occur when your worker doesn't pass startup validation. This error message will make it a little easier to reason about what happened and what to do next.

    Closes #2519

  • Allow fetch() calls locally to accept URL Objects

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.