wrangler@4.92.0
📦 cloudflare-workersView on GitHub →
✨ 2 features🐛 5 fixes🔧 8 symbols
Summary
This release introduces CLI support for managing Cloudflare Artifacts via new `wrangler artifacts` commands and adds the `--keep-vars` flag to `wrangler versions upload`. Several critical bugs related to authentication token refreshing and URL query string manipulation in `wrangler dev` have also been resolved.
✨ New Features
- Added `wrangler artifacts` commands for managing Artifacts repos and repo tokens, including listing/inspecting namespaces, creating/listing/deleting repos, and issuing repo-scoped tokens.
- Added `--keep-vars` flag to `wrangler versions upload`, preserving dashboard-configured environment variables during upload, matching existing behavior in `wrangler deploy`.
🐛 Bug Fixes
- Fixed `Failed to fetch auth token: 401 Unauthorized` errors during OAuth token refresh by ensuring `refreshToken` calls `reinitialiseAuthTokens()` to pick up server-side rotated tokens written by sibling processes.
- Fixed `wrangler versions secret put/delete/bulk` operations to correctly preserve existing version placement settings (like `mode: "smart"`) instead of resetting them.
- Fixed `wrangler dev` from incorrectly rewriting request URL query strings that contained the request Host value, preventing silent mutation of opaque application data like OAuth redirect URIs.
- Fixed a misleading multi-environment warning appearing when the target environment was correctly specified via the `CLOUDFLARE_ENV` environment variable.
- Improved `wrangler types --env-interface` for multi-worker projects by preventing custom env interfaces from expanding from `Cloudflare.Env`, avoiding unintended type expansion.