Packages

wrangler

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

Your version

2.1.11

10 Oct 2022Where it was published

2.21.3 is the newest release of 2.x.

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

In short

6 fixed3 internal

Security

3 advisories affect 2.1.11; 3.114.17 fixes them

Release note

Patch Changes

  • Remove dependency on create-cloudflare.

    Previously, wrangler generate was a thin wrapper around create-cloudflare. Now, we've moved over the logic from that package directly into wrangler.

  • Hide deprecated flags from --help menu

  • wrangler pages publish should prioritize _worker.js over /functions if both exist

  • wrangler pages dev should prioritize _worker.js

    When using a _worker.js file, the entire /functions directory should be ignored – this includes its routing and middleware characteristics. Currently wrangler pages dev does the reverse, by prioritizing
    /functions over _worker.js. These changes fix the current behaviour.

  • Allow unsetting of automatically generated Link headers using _headers and the ! Link operator

  • Only generate Link headers from simple <link> elements.

    Specifically, only those with the rel, href and possibly as attributes. Any element with additional attributes will not be used to generate headers.

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.