wrangler@4.88.0
📦 cloudflare-workersView on GitHub →
✨ 5 features🐛 5 fixes🔧 9 symbols
Summary
This release stabilizes the `secrets` configuration, enhances `wrangler deploy` with interactive prompts for missing configuration, and introduces support for `builtin` AI Search instances and custom metadata.
Migration Steps
- When using `wrangler ai-search create` with `--type builtin`, note that `--source`, `--prefix`, `--include-items`, or `--exclude-items` flags are not accepted.
- If you rely on interactive prompts for project name or compatibility date during `wrangler deploy`, be aware that Wrangler may now prompt you or save configuration if no config file exists.
✨ New Features
- Added support for the `builtin` storage option to `wrangler ai-search create`, which uses Cloudflare-managed storage.
- Introduced optional `custom_metadata` configuration via `--custom-metadata` flag or `--custom-metadata-schema` file for `wrangler ai-search create` to define indexed fields and their data types.
- The `wrangler deploy` command now interactively prompts for a missing project name or `compatibility_date` if not specified in config or CLI arguments, and offers to save these to `wrangler.jsonc` if no config file exists.
- The `secrets` configuration property is stabilized and no longer emits an experimental warning; required secrets are now validated during local development and deploy.
- `wrangler preview` now supports including `flagship` bindings defined in the `previews` configuration block.
🐛 Bug Fixes
- Fixed an issue where the `--alias` CLI flag was ignored during `wrangler deploy`; aliases are now collected from both config and CLI flags.
- Fixed `wrangler types` to correctly generate `Fetcher` types for `unsafe.bindings` entries where `type: "service"`.
- Fixed post-processing in `unstable_getMiniflareWorkerOptions` which caused `props` on service bindings and `fetcher`-type service bindings to be dropped; this logic has been removed.
- Fixed `wrangler versions deploy` to skip confirmation prompts when version IDs or specs are provided directly via CLI arguments.
- Fixed an issue where request ports were not preserved in `Origin` and `Referer` headers when using `wrangler dev --host`.