wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
4.167.0 is the newest release of 4.x.
In short
1 new5 fixed2 internal
Release note
Minor Changes
Add local-dev observability
wrangler devand the Vite plugin now capture a trace for every local Worker invocation - spans, logs, andconsole.*output, including requests that cross worker or Durable Object boundaries.You can explore this data two ways:
A new Observability tab in the Local Explorer, with a Traces view (recent invocations, an inline timeline waterfall, and filters) and an Events view.
A read-only SQL endpoint at
/cdn-cgi/explorer/api/local/observability/query, discoverable via the Local Explorer's OpenAPI document, so coding agents and tools can query the samespansandlogstables.
While this is in testing it's off by default; set
X_LOCAL_OBSERVABILITY=trueto turn it on. It will be on by default in the public release.
Patch Changes
Improve the D1 database-limit error message
When creating a D1 database fails because the account has hit its database limit, the error now points to the relevant next steps — upgrading on the Workers Free plan or requesting a higher limit on a paid plan — alongside the existing commands to list and delete databases. Previously it only suggested deleting unused databases. This applies both to
wrangler d1 createand to the D1 database that is created during resource provisioning on deploy.Fix grammar in the container image-too-large error
The error thrown when a container image exceeds the available disk size ended with "Your need more disk for this image." It now reads "You need more disk for this image."
Ignore the removed
legacy_envfield when reading a redirected configurationOlder versions of tools such as the Vite plugin can generate a redirected configuration (
.wrangler/deploy/config.json) that still includes the removedlegacy_envfield. Since these files are tool-generated, users could not easily remove the field themselves, and Wrangler would error out. Wrangler now silently stripslegacy_envfrom redirected configurations. User-authored configurations still report an error so that the field can be removed.Fix dev proxy silently hanging or returning a misleading 503 on network errors for non-root-path requests
During
wrangler dev, a transient network error on any request path other than/could be misclassified as the worker being reloaded, even when it wasn't:GET/HEADrequests would silently hang (with nothing logged) until the client timed out, and other methods would receive a misleadingYour worker restarted mid-request503. Such errors are now reported and surfaced immediately when the worker has not actually changed.Explain how to provision Flagship bindings if
app_idmissing in remote developmentWrangler now reports that a Flagship binding without an
app_idmust first be created withwrangler flagship apps create.
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.