Change8

wrangler@4.60.0

📦 cloudflare-workersView on GitHub →
2 features🐛 3 fixes🔧 5 symbols

Summary

This release introduces shell completion support via `wrangler complete` and significantly enhances type generation for environments using `wrangler types`. Several minor bugs related to validation, setup, and D1 insights flags were also resolved.

Migration Steps

  1. To use shell completion, run the appropriate command provided in the release notes (e.g., `wrangler complete bash >> ~/.bashrc`).
  2. Review generated TypeScript types if you use named environments with `wrangler types`, as the output now includes per-environment interfaces alongside the aggregated Env interface.

✨ New Features

  • Added `wrangler complete` command for generating shell completion scripts (bash, zsh, powershell) using the @bomb.sh/tab library.
  • Implemented per-environment TypeScript interface generation for `wrangler types` when named environments exist in `wrangler.jsonc`. This generates specific environment interfaces (e.g., StagingEnv) and an aggregated Env interface with optional bindings for non-universal features.

🐛 Bug Fixes

  • Fixed `wrangler pages project validate` to correctly respect file count limits imposed by `CF_PAGES_UPLOAD_JWT`.
  • Fixed the flag casing for the time period flag used in the `d1 insights` command.
  • Fixed `wrangler setup` to automatically select `workers` as the target when configuring new SvelteKit apps using `adapter:cloudflare`.

Affected Symbols