wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
3.114.17 is the newest release of 3.x.
In short
5 breaking8 new6 fixed1 internal
- Breaking
Rename
wrangler publishtowrangler deploy - Breaking
Enable local development with Miniflare 3 and
workerdby default - Breaking
Enable persistent storage in local mode by default
- Breaking
Remove delegation to locally installed versions
- Breaking
Remove unused files from published package
Security
2 advisories affect 3.0.0; 3.114.17 fixes them
- CriticalArbitrary remote code execution within `wrangler dev` Workers sandboxGHSA-f8mp-x433-5wpf · 3 Jan 2024Fixed in 3.19.0
- HighWrangler affected by OS Command Injection in `wrangler pages deploy`GHSA-36p8-mvp6-cv38 · 21 Jan 2026Fixed in 3.114.17
Release note
Major Changes
- Breaking
Rename
wrangler publishtowrangler deployThis ensures consistency with other messaging, documentation and our dashboard,
which all refer to deployments. This also avoids confusion with the similar but
very differentnpm publishcommand.wrangler publishwill remain a
deprecated alias for now, but will be removed in the next major version of Wrangler. - Breaking
Enable local development with Miniflare 3 and
workerdby defaultwrangler devnow runs fully-locally by default, using the open-source Cloudflare Workers runtimeworkerd.
To restore the previous behaviour of running on a remote machine with access to production data, use the new--remoteflag.
The--localand--experimental-localflags have been deprecated, as this behaviour is now the default, and will be removed in the next major version. - Breaking
Enable persistent storage in local mode by default
Wrangler will now persist local KV, R2, D1, Cache and Durable Object data
in the.wranglerfolder, by default, between reloads. This persistence
directory can be customised with the--persist-toflag. The--persistflag
has been removed, as this is now the default behaviour. - Breaking
Remove delegation to locally installed versions
Previously, if Wrangler was installed globally and locally within a project,
running the global Wrangler would instead invoke the local version.
This behaviour was contrary to most other JavaScript CLI tools and has now been
removed. We recommend you usenpx wranglerinstead, which will invoke the
local version if installed, or install globally if not. - Breaking
Remove unused files from published package
Specifically, the
srcandminiflare-config-stubsdirectories have been removed.
Minor Changes
Support outbounds for dispatch_namespace bindings
Warn when a new major version is available
Add warning when trying to use
wrangler devinside a WebContainerSupport tail_consumers in script upload
Support for Constellation bindings
Added support for a new type of safe bindings called "Constellation"
that allows interacting with uploaded models in the context of these
projects.[[constellation]] binding = 'AI' project_id = '9d478427-dea6-4988-9b16-f6f8888d974c'
Support for Browser Workers
These bindings allow one to use puppeteer to control a browser
in a worker script.
Patch Changes
_worker.js/directory support for dynamically imported chunks inwrangler pages devEnsure pages _routes.json emulation in dev command handles .s and *s
Fixes #3184
Fix local registry server closed
Closes #1920. Sometimes start the local dev server will kill
the devRegistry server so that the devRegistry server can't be used. We can listen the devRegistry server close event
and reset server tonull. When registerWorker is called, we can check if the server isnulland start a new server.Make it possible to create a D1 database backed by the experimental backend, and make
d1 execute's batch size configurableWith this PR, users will be able to run
wrangler d1 create <NAME> --experimental-backendto create new D1 dbs that use an experimental backend. You can also runwrangler d1 migrations apply <NAME> experimental-backendto run migrations against an experimental database.On top of that, both
wrangler d1 migrations apply <NAME>andwrangler d1 execute <NAME>now have a configurablebatch-sizeflag, as the experimental backend can handle more than 10000 statements at a time.Constellation command help
Changed
nametoprojectNamein some Constellation commands that interacted with projects. Also added the possibility to specify a model description when uploading it.Add message for when
wrangler tailexits sampling mode(alpha) - make it possible to give D1 a hint on where it should create the database
_worker.js/directory support for D1 bindings
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.