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
3 new5 fixed2 internal
Security
2 advisories affect 3.4.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
Minor Changes
'stdin' support for 'secret:bulk'
Added functionality that allows for files and strings to be piped in, or other means of standard input. This will allow for a broader variety of use cases and improved DX.
This implementation is also fully backward compatible with the previous input method of file path to JSON.# Example of piping in a file > cat ./my-file.json | wrangler secret:bulk # Example of piping in a string > echo '{"key":"value"}' | wrangler secret:bulk # Example of redirecting input from a file > wrangler secret:bulk < ./my-file.json
Patch Changes
Wrangler Capnp Compilation
This PR replaces logfwdr's
schemaproperty with a newunsafe.capnpobject. This object accepts either acompiled_schemaproperty, or abase_pathand array ofsource_schemasto get Wrangler to compile the capnp schema for you.Remove --experimental-backend from
wrangler d1 migrations applyThis PR removes the need to pass a
--experimental-backendflag when running migrations against an experimental D1 db.Closes #3596
When running
wrangler init -y ..., the-yflag is now passed to npx when delegating to C3Implement time travel for experimental d1 dbs
This PR adds two commands under
wrangler d1 time-travel:Use Time Travel to restore, fork or copy a database at a specific point-in-time. Commands: wrangler d1 time-travel info <database> Retrieve information about a database at a specific point-in-time using Time Travel. Options: --timestamp accepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for [string] --json return output as clean JSON [boolean] [default: false] wrangler d1 time-travel restore <database> Restore a database back to a specific point-in-time. Options: --bookmark Bookmark to use for time travel [string] --timestamp accepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for [string] --json return output as clean JSON [boolean] [default: false]Closes #3577
Only log dev registry connection errors once
Add wrangler deploy option: --old-asset-ttl [seconds]
wrangler deployimmediately deletes assets that are no longer current, which has a side-effect for existing progressive web app users of seeing 404 errors as the app tries to access assets that no longer exist.This new feature:
does not change the default behavior of immediately deleting no-longer needed assets.
allows users to opt-in to expiring newly obsoleted assets after the provided number of seconds hence, so that current users will have a time buffer before seeing 404 errors.
is similar in concept to what was introduced in Wrangler 1.x with #2221.
is careful to avoid extension of existing expiration targets on already expiring old assets, which may have contributed to unexpectedly large KV storage accumulations (perhaps why, in Wrangler 1.x, the reversion #2228 happened).
no breaking changes for users relying on the default behavior, but some output changes exist when the new option is used, to indicate the change in behavior.
Refined the type of
CfVarsfromRecord<string, unknown>toRecord<string, string | Json>
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.