wrangler@4.82.0
📦 cloudflare-workersView on GitHub →
✨ 8 features🐛 1 fixes🔧 12 symbols
Summary
This release introduces support for Preview deployments via `wrangler preview`, new commands for managing Browser Rendering sessions, and integrates Flagship feature flag binding support. It also enhances machine readability for JSON output by moving proxy notices to stderr and adds telemetry to the local REST API.
Migration Steps
- To use Flagship feature flags locally, configure a binding in `wrangler.json` with a `flagship` array containing `binding` and `app_id` entries. Use `"remote": true` in the binding to evaluate flags against the live Flagship service during local development.
- If you rely on stdout for parsing Wrangler command output, be aware that proxy startup notices are now sent to stderr.
- If you use `wrangler login`, you may be prompted for the new `artifacts:write` scope.
✨ New Features
- Added `artifacts:write` to Wrangler's default OAuth scopes, enabling `wrangler login` to request access to Cloudflare Artifacts.
- Added end-to-end support for the Flagship feature flag binding, configurable in `wrangler.json` with a `flagship` array containing `binding` and `app_id` entries.
- Added the `wrangler preview` command family for creating Preview deployments (currently in private beta).
- `wrangler preview` now writes a `preview` entry to the Wrangler output file when `WRANGLER_OUTPUT_FILE_PATH` or `WRANGLER_OUTPUT_FILE_DIRECTORY` is configured, including preview and deployment metadata.
- Added `wrangler browser` commands for managing Browser Rendering sessions: `create`, `close`, `list`, and `view`.
- Added `browser:write` OAuth scope to `wrangler login` to support Browser Rendering sessions.
- Local REST API (used by the local explorer) now collects anonymous usage telemetry respecting existing telemetry preferences.
- Exposed the local explorer hotkey `[e]` in `wrangler dev` output.
🐛 Bug Fixes
- Wrangler now writes the startup notice for `HTTP_PROXY` and `HTTPS_PROXY` to stderr instead of stdout, ensuring machine readability for JSON output commands like `wrangler auth token --json`.