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
6 new7 fixed2 internal
Release note
Minor Changes
Add Artifacts binding support to wrangler
You can now configure Artifacts bindings in your wrangler configuration:
// wrangler.jsonc { "artifacts": [{ "binding": "MY_ARTIFACTS", "namespace": "default" }] }Type generation produces the correct
Artifactstype reference from the workerd type definitions:interface Env { MY_ARTIFACTS: Artifacts; }Rename the documented containers SSH config option to
sshWrangler now accepts and documents
containers.sshin config files while continuing to acceptcontainers.wrangler_sshas an undocumented backwards-compatible alias. Wrangler still sends and readswrangler_sshwhen talking to the containers API.Add regional and jurisdictional placement constraints for Containers. Users can now set
constraints.regionsandconstraints.jurisdictionin wrangler config to control where containers run.Use
workerd's debug port to power cross-process service bindings, Durable Objects, and tail workers via the dev registry. This enables Durable Object RPC via the dev registry, and is an overall stability improvement.
Patch Changes
Log a helpful error message when AI binding requests fail with a 403 authentication error
Previously, when the AI proxy token expired during a long session, users received an unhelpful 403 error. Now, wrangler detects error code 1031 and suggests running
wrangler loginto refresh the token.Ensure esbuild context is disposed during teardown
The esbuild bundler cleanup function could race with the initial build. If
BundlerController.teardown()ran before the initialbuild()completed, thestopWatchingclosure variable would still beundefined, so the esbuild context was never disposed. This left the esbuild child process running, keeping the Node.js event loop alive and causing processes to hang instead of exiting cleanly.The cleanup function now awaits the build promise before calling
stopWatching, ensuring the esbuild context is always properly disposed.Prevent remote binding sessions from expiring during long-running dev sessions
Preview tokens for remote bindings expire after one hour. Previously, the first request after expiry would fail before a refresh was triggered. This change proactively refreshes the token at 50 minutes so no request ever sees an expired session.
The reactive recovery path is also improved:
error code: 1031responses (returned by bindings such as Workers AI when their session times out) now correctly trigger a refresh, where previously onlyInvalid Workers Preview configurationHTML responses did.Auth credentials are now resolved lazily when a remote proxy session starts rather than at bundle-complete time. This means that if your OAuth access token has been refreshed since
wrangler devstarted, the new token is used rather than the one captured at startup.Improve validation and error messaging for R2 CORS configuration files to catch AWS S3-style formatting mistake.
Pass
forcequery parameter to API inpages deployment deleteAllow
wrangler r2 bucket listto run without a valid Wrangler configThis is an account-level command and does not require parsing
wrangler.toml/wrangler.jsonc. Previously, an invalid local config could prevent listing buckets, making it harder to fix the config.Rename "Browser Rendering" to "Browser Run" in all user-facing strings, error messages, and CLI output.
Add D1 export prompt message for unavailability, use
--skip-confirmationto not show the prompt.Update am-i-vibing to v0.1.1 for improved agentic environment detection
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.