wrangler@4.89.0
📦 cloudflare-workersView on GitHub →
✨ 2 features🐛 5 fixes🔧 10 symbols
Summary
This release introduces configurable HTTP caching for Workers and standardizes local development timezone to UTC to match production environments. Several bugs related to asset bindings in previews, type checking, and authentication listing were also resolved.
Migration Steps
- If your local development code relied on `Date` or `Intl` APIs observing the host machine's timezone during `wrangler dev`, update the code to either accept UTC (the new default) or explicitly construct dates/formatters with the desired timezone.
✨ New Features
- Introduced the `cache` configuration option for Workers, configurable via `{ cache: { enabled: true } }` in Wrangler configuration. This supports overriding via `previews.cache`.
- Local development via `wrangler dev` and related commands now run the local `workerd` runtime with `TZ=UTC` to align with production behavior.
🐛 Bug Fixes
- Fixed an issue where `wrangler preview` failed to propagate the `assets` binding to preview deployments, causing runtime failures for Workers relying on it.
- Fixed `wrangler types --check --env-file` falsely reporting stale types when a `.dev.vars` file exists.
- Fixed `wrangler whoami` and the interactive account picker to only show accounts where the current authentication token has membership, falling back to listing all accessible accounts if membership information is unavailable.
- Fixed `wrangler containers ssh` command being hidden from help output (`wrangler containers --help` and `wrangler containers ssh --help`).
- Fixed an issue where an invalid JSON in `_routes.json` was silently skipped; now a clear error is thrown.