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
2 new2 fixed3 internal
Security
1 advisory affects 3.103.0; 3.114.17 fixes them
- 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
Add
--strict-varsoption towrangler typesadd a new
--strict-varsoption towrangler typesthat developers can (by setting the
flag tofalse) use to disable the default strict/literal types generation for their variablesopting out of strict variables can be useful when developers change often their
varsvalues,
even more so when multiple environments are involved
Example
With a toml containing:
```toml
[vars]
MY_VARIABLE = "production_value"
MY_NUMBERS = [1, 2, 3]
[env.staging.vars]
MY_VARIABLE = "staging_value"
MY_NUMBERS = [7, 8, 9]
```
the `wrangler types` command would generate the following interface:
interface Env {
MY_VARIABLE: "production_value" | "staging_value";
MY_NUMBERS: [1,2,3] | [7,8,9];
}
while `wrangler types --strict-vars=false` would instead generate:
interface Env {
MY_VARIABLE: string;
MY_NUMBERS: number;
}
(allowing the developer to easily change their toml variables without the
risk of breaking typescript types)Patch Changes
Unwrap the error cause when available to send to Sentry
Widen multi-env
varstypes inwrangler typesCurrently, the type generated for
varsis a string literal consisting of the value of the variable in the top level environment. If multiple environments
are specified this wrongly restricts the type, since the variable could contain any of the values from each of the environments.For example, given a
wrangler.tomlcontaining the following:[vars] MY_VAR = "dev value" [env.production.vars] MY_VAR = "prod value"
running
wrangler typeswould generate:interface Env { MY_VAR: "dev value"; }making typescript incorrectly assume that
MY_VARis always going to be"dev value"after these changes, the generated interface would instead be:
interface Env { MY_VAR: "dev value" | "prod value"; }Pull resource names for provisioning from config if provided
Uses
database_nameandbucket_namefor provisioning if specified. For R2, this only happens if there is not a bucket with that name already. Also respects R2jurisdictionif provided.
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.