Weekly Cloudflare: Wrangler 4.153.0–4.156.0, span APIs, asset base paths
This weekly Cloudflare roundup covers the changes from October 25 to 31, 2026, headlined by Wrangler[1] releases 4.153.0 through 4.156.0. Wrangler 4.153.0 adds --infer-origin-from-routes to wrangler dev: with routes configured, local development infers the origin from the first route — the request.url, Host and Origin the Worker sees use the route's host while the client still connects to localhost — and this inference is the default, with --infer-origin-from-routes=false keeping the local origin without removing the routes. The same release makes --secrets-file on deploy, versions upload and preview expand dotenv-style $VAR and ${VAR} references, with process environment variables taking priority, unset references becoming empty strings, and JSON secrets files plus piped bulk secrets left unexpanded. The accompanying patch sets the default compatibility date to 2026-10-23 for new projects and for configurations that don't set one, makes kv key list in local mode return all keys instead of silently stopping at the first 1000, and updates dependencies including workerd 1.20261023.1, Undici 7.30.1 (GHSA-xjj6-f33q-929c) and Zod 4.6.6 (GHSA-mrhx-c7xc-m3w5).
Wrangler 4.154.0 enables the Miniflare[2] v5 beta dev registry by default and replaces MINIFLARE_REGISTRY_PATH with CLOUDFLARE_DEV_REGISTRY_PATH, while binding errors in local development now keep machine-readable properties such as code and numericCode instead of folding the error name into the message. Wrangler 4.155.0 lets wrangler dev and the Vite plugin send writeDataPoint() calls to a real Analytics Engine dataset when the binding sets remote: true, and escapes control characters in pretty tail and remote preview output. Wrangler 4.156.0 extends the experimental wrangler d1 insights command to all D1 databases in an account when no database name is given, with each result carrying a databaseId, and makes non-interactive autoconfig stop with an error when a project root contains both static files and a Pages functions directory. The same release writes a .assetsignore file when autoconfig turns the project root into a static assets directory, so .env, .dev.vars, .git and node_modules are no longer uploaded as public assets, and it resolves self-referencing Durable Object[3] bindings that name the Worker itself in Vitest tests and container validation.
Workers custom spans gained three OpenTelemetry[4] span API methods: spanContext() returns the span's traceId, spanId and traceFlags matching Workers Observability and exported traces, setStatus() marks a span unset, ok or error with an optional message (not yet shown in the Workers Observability dashboard), and updateName() renames a span after it has started, including the root span returned by tracing.getActiveSpan(). Static Assets can now be served from a URL path prefix without changing the directory layout, configured via assets.base_path in Wrangler or worker.assets.basePath in cloudflare.config.ts; with Wrangler 4.148.0 or later, using cloudflare.config.ts requires cf 1.0.0-beta.13 or later.
Sources
-
JPZenn JA
週刊Cloudflare - 2026/11/01週



