Change8

wrangler@4.62.0

Breaking Changes
📦 cloudflare-workersView on GitHub →
2 breaking4 features🐛 3 fixes🔧 4 symbols

Summary

This release introduces new features like R2 local uploads management and the ability to limit Worker subrequests via configuration. It also removes the deprecated `wrangler pubsub` command and enhances autoconfiguration output for CI/CD pipelines.

⚠️ Breaking Changes

  • The `wrangler pubsub` sub-command and all associated functionality have been removed because the Pub/Sub product was discontinued.
  • If you were relying on the `wrangler pubsub` command, you must remove its usage from your workflows.

Migration Steps

  1. If using Next.js projects, update autoconfig logic to use the new `@opennextjs/cloudflare migrate` command.
  2. If you were using `wrangler pubsub`, remove all references to this command.

✨ New Features

  • Added `ai-search:write` and `ai-search:run` OAuth scopes to the default login scopes, enabling authentication with AI Search APIs.
  • Introduced the `wrangler r2 bucket local-uploads` command group to manage local uploads for R2 buckets, allowing data to be written to the nearest region first before asynchronous replication.
  • Added a new `subrequests` limit field to the `limits` section of the Wrangler configuration file to control the number of fetch requests a Worker invocation can make.
  • The version metadata binding in local development now includes `id`, `tag`, and `timestamp` fields for easier testing of version-aware logic.

🐛 Bug Fixes

  • Improved error message handling for `d1 export --output` when the output path points to a directory.
  • Fixed Wrangler's error handling for invalid commands (with or without the `--help` flag), ensuring consistent error messages.
  • Wrangler now correctly displays the specific command's help menu when an invalid argument is provided to a valid command.

Affected Symbols