wrangler@4.101.0
📦 cloudflare-workersView on GitHub →
✨ 4 features🐛 5 fixes🔧 11 symbols
Summary
This release stabilizes autoconfiguration, introduces temporary account creation via CLI, and enhances testing utilities with per-Worker resource accessors. Several bugs related to asset fallback, email sending commands, and deployment errors have also been resolved.
Migration Steps
- Replace usage of `--experimental-autoconfig` or `--x-autoconfig` with `--autoconfig` when deploying.
- If using scoped login (`wrangler login --scopes ...`), note that telemetry for `login user` is now correctly reported.
✨ New Features
- The `--experimental-autoconfig` and `--x-autoconfig` deploy CLI flags have been replaced with the stable `--autoconfig` flag, which defaults to true.
- Added per-Worker resource accessors to `createTestHarness()`, allowing access to configured KV namespaces, R2 buckets, D1 databases, and Durable Object namespaces via `server.getWorker(name)`.
- Added a `--temporary` flag to create and use a temporary Cloudflare preview account when no credentials exist, bypassing the OAuth login flow for supported commands (deploy, KV, D1, etc.).
- The automatic prompt to install Cloudflare skills now suggests installation after successful commands instead of before, suppressing the prompt for JSON output commands.
🐛 Bug Fixes
- Fixed `wrangler dev` asset fallback to consistently apply Workers Assets fallback behavior when routes are configured, including SPA fallback and `404-page` handling.
- Fixed opaque API errors when deploying a service-worker format Worker with Durable Object migrations or bindings by showing a clear error instead.
- Fixed `wrangler email sending` commands to work correctly against the Cloudflare API for enabling, disabling, viewing settings, and listing enabled domains.
- Fixed an unhandled promise rejection crash during `wrangler dev` hot-reload when the worker entry point is deleted or moved; it now logs a warning and skips the update.
- Improved error messages for CLI flags, type generation, auth scopes, dev server tunnels, and compatibility.