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 new7 fixed1 internal
Security
1 advisory affects 3.27.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
Do not show unnecessary errors during watch rebuilds
When Pages is used in conjunction with a full stack framework, the framework
build will temporarily remove files that are being watched by Pages, such as_worker.jsand_routes.json.
Previously we would display errors for these changes, which adds confusing and excessive messages to the Pages dev output. Now builds are skipped if a watched_worker.jsor_routes.jsonis removed.Implemented Python support in Wrangler
Python Workers are now supported by
wrangler deployandwrangler dev.Add a
ctxfield to thegetBindingsProxyresultAdd a new
ctxfiled to thegetBindingsProxyresult that people can use to mock the productionExecutionContextobject.Example:
const { ctx } = await getBindingsProxy(); ctx.waitUntil(myPromise);
Patch Changes
Ensure d1 validation errors render user friendly messages
Mark R2 object and bucket not found errors as unreportable
Previously, running
wrangler r2 objects {get,put}with an object or bucket that didn't exist would ask if you wanted to report that error to Cloudflare. There's nothing we can do to fix this, so this change prevents the prompt in this case.Intercept and stringify errors thrown by d1 execute in --json mode
Prior to this PR, if a query threw an error when run in
wrangler d1 execute ... --json, wrangler would swallow the error.This PR returns the error as JSON. For example, the invalid query
SELECT asdf;now returns the following in JSON mode:{ "error": { "text": "A request to the Cloudflare API (/accounts/xxxx/d1/database/xxxxxxx/query) failed.", "notes": [ { "text": "no such column: asdf at offset 7 [code: 7500]" } ], "kind": "error", "name": "APIError", "code": 7500 } }Ensure that the Pages dev proxy server does not change the Host header
Previously, when configuring
wrangler pages devto use a proxy to a 3rd party dev server,
the proxy would replace the Host header, resulting in problems at the dev server if it was
checking for cross-site scripting attacks.Now the proxy server passes through the Host header unaltered making it invisible to the
3rd party dev server.Fixes #4799
Add an experimental
insightscommand towrangler d1This PR adds a
wrangler d1 insights <DB_NAME>command, to let D1 users figure out which of their queries to D1 need to be optimised.This command defaults to fetching the top 5 queries that took the longest to run in total over the last 24 hours.
You can also fetch the top 5 queries that consumed the most rows read over the last week, for example:
npx wrangler d1 insights northwind --sortBy reads --timePeriod 7d
Or the top 5 queries that consumed the most rows written over the last month, for example:
npx wrangler d1 insights northwind --sortBy writes --timePeriod 31d
Or the top 5 most frequently run queries in the last 24 hours, for example:
npx wrangler d1 insights northwind --sortBy count
Listen on loopback for wrangler dev port check and login
Avoid listening on the wildcard address by default to reduce the attacker's
surface and avoid firewall prompts on macOS.Relates to #4430.
Ensure
wrangler dev --log-levelflag applied to all logsPreviously,
wrangler devmay have ignored the--log-levelflag for some startup logs. This change ensures the--log-levelflag is applied immediately.
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.