Wrangler Changelog
2024-04-01
3.42.0
#5371
77152f3Thanks @G4brym! - feature: remove requirement for@cloudflare/aipackage to use Workers AIPreviously, to get the correct Workers AI API, you needed to wrap your
env.AIbinding withnew Ai()from@cloudflare/ai. This change moves the contents of@cloudflare/aiinto the Workers runtime itself, meaningenv.AIis now an instance ofAi, without the need for wrapping.Updated dependencies [
d994066]:
2024-03-29
3.41.0
3.40.0
#5426
9343714Thanks @RamIdeas! - feature: added a newwrangler triggers deploycommandThis command currently requires the
--experimental-versionsflag.This command extracts the trigger deployment logic from
wrangler deployand allows users to update their currently deployed Worker’s triggers without doing another deployment. This is primarily useful for users ofwrangler versions uploadandwrangler versions deploywho can then runwrangler triggers deployto apply trigger changes to their currently deployed Worker Versions.The command can also be used even if not using the
wrangler versions ...commands. And, in fact, users are already using it implicitly when runningwrangler deploy.#4932
dc0c1dcThanks @xortive! - feature: Add support for private networking in Hyperdrive configs#5369
7115568Thanks @mattdeboard! - fix: Use queue name, not ID, forr2 bucket event-notificationsubcommandsSince the original command was not yet operational, this update does not constitute a breaking change.
Instead of providing the queue ID as the parameter to
--queue, users must provide the queue name. Under the hood, we will query the Queues API for the queue ID given the queue name.#5413
976adecThanks @pmiguel! - feature: Added Queue delivery controls support in wrangler.toml#5412
3e5a932Thanks @RamIdeas! - feature: adds the--jsonoption towrangler deployments list --experimental-versions,wrangler deployments status --experimental-versions,wrangler versions list --experimental-versionsandwrangler versions view --experimental-versionswhich will format the output as clean JSON. The--experimental-versionsflag is still required for these commands.#5258
fbdca7dThanks @OilyLime! - feature: URL decode components of the Hyperdrive config connection string#5416
47b325aThanks @mattdeboard! - fix: minor improvements to R2 notification subcommandr2 bucket event-notification <subcommand>becomesr2 bucket notification <subcommand>- Parameters to
--event-typeuse-instead of_(e.g.object_create->object-create)
Since the original command was not yet operational, this update does not constitute a breaking change.
#5419
daac6a2Thanks @RamIdeas! - chore: add helpful logging to –experimental-versions commands#5400
c90dd6bThanks @RamIdeas! - chore: log of impending change of “Deployment ID” to “Version ID” inwrangler deploy,wrangler deployments list,wrangler deployments viewandwrangler rollback. This is a warning of a future change for anyone depending on the output text format, for example by grepping the output in automated flows.#5422
b341614Thanks @geelen! - fix: remove d1BetaWarning and all usagesThis PR removes the warning that D1 is in beta for all D1 commands.
Updated dependencies [
fbdca7d]:
2024-03-27
3.39.0
#5373
5bd8db8Thanks @RamIdeas! - feature: Implement versioned rollbacks viawrangler rollback [version-id] --experimental-versions.Please note, the
experimental-versionsflag is required to use the new behaviour. The originalwrangler rollbackcommand is unchanged if run without this flag.#5366
e11e169Thanks @RamIdeas! - fix: save non-versioned script-settings (logpush, tail_consumers) onwrangler versions deploy. This command still requires--experimental-versions.#5405
7c701bfThanks @RamIdeas! - chore: addwrangler deployments view [deployment-id] --experimental-versionscommandThis command will display an error message which points the user to run either
wrangler deployments status --experimental-versionsorwrangler versions view <version-id> --experimental-versionsinstead.
2024-03-26
3.38.0
#5310
528c011Thanks @penalosa! - feat: Watch the entire module root for changes in--no-bundlemode, rather than just the entrypoint file.#5327
7d160c7Thanks @penalosa! - feat: Addwrangler pages download config#5284
f5e2367Thanks @CarmenPopoviciu! - feat: Addwrangler.tomlsupport inwrangler pages devAs we are adding
wrangler.tomlsupport for Pages, we want to ensure thatwrangler pages devworks with a configuration file.#5353
3be826fThanks @penalosa! - feat: Updateswrangler pages functions buildto support using configuration fromwrangler.tomlin the generated output.#5102
ba52208Thanks @pmiguel! - feature: add support for queue delivery controls onwrangler queues create#5327
7d160c7Thanks @penalosa! - fix: Use specific error code to signal a wrangler.toml file not being found in build-env#5310
528c011Thanks @penalosa! - fix: Reload Python workers when therequirements.txtfile changes
2024-03-22
3.37.0
#5294
bdc121dThanks @mattdeboard! - feature: Addevent-notificationcommands in support of event notifications for Cloudflare R2.Included are commands for creating and deleting event notification configurations for individual buckets.
#5231
e88ad44Thanks @w-kuhn! - feature: Add support for configuring HTTP Pull consumers for QueuesHTTP Pull consumers can be used to pull messages from queues via https request.
#5317
9fd7ebaThanks @GregBrimble! - chore: Deprecate-- <command>,--proxyand--script-pathoptions fromwrangler pages dev.Build your application to a directory and run the
wrangler pages dev <directory>instead. This results in a more faithful emulation of production behavior.Updated dependencies [
248a318]:
2024-03-21
2.21.1
#5337
35660e27Thanks @RamIdeas! - fix: Ignore OPTIONS requests in Wrangler’s oauth serverIn Chrome v123, the auth requests from the browser back to wrangler now first include a CORS OPTIONS preflight request before the expected GET request. Wrangler was able to successfully complete the login with the first (OPTIONS) request, and therefore upon the second (GET) request, errored because the token exchange had already occured and could not be repeated.
Wrangler now stops processing the OPTIONS request before completing the token exchange and only proceeds on the expected GET request.
If you see a
ErrorInvalidGrantin a previous wrangler version when runningwrangler login, please try upgrading to this version or later.
2024-03-20
3.36.0
#5234
e739b7fThanks @CarmenPopoviciu! - feat: Implement environment inheritance for Pages configurationFor Pages, Wrangler will not require both of the supported named environments (“preview” | “production”) to be explicitly defined in the config file. If either
[env.production]or[env.preview]is left unspecified, Wrangler will use the top-level environment when targeting that named Pages environment.#5306
c60fed0Thanks @taylorlee! - fix: Remove triggered_by annotation from experimentalversions deploycommand which is now set by the API and cannot be set by the client.#5321
ac93411Thanks @RamIdeas! - fix: rename--experimental-gradual-rolloutsto--experimental-versionsflagThe
--experimental-gradual-rolloutsflag has been made an alias and will still work.And additional shorthand alias
--x-versionshas also been added and will work too.#5324
bfc4282Thanks @penalosa! - fix: Ignore OPTIONS requests in Wrangler’s oauth server#5099
93150aaThanks @KaiSpencer! - feat: expose--show-interactive-dev-sessionflagThis flag controls the interactive mode of the dev session, a feature that already exists internally but was not exposed to the user. This is useful for CI/CD environments where the interactive mode is not desired, or running in tools like
turboandnx.
2024-03-19
3.35.0
#5166
133a190Thanks @CarmenPopoviciu! - feat: Implement config file validation for Pages projectsWrangler proper has a mechanism in place through which it validates a wrangler.toml file for Workers projects. As part of adding wrangler toml support for Pages, we need to put a similar mechanism in place, to validate a configuration file against Pages specific requirements.
#5279
0a86050Thanks @penalosa! - feat: Support the hidden commandwrangler pages functions build-env#5093
a676f55Thanks @benycodes! - feature: add –dispatch-namespace to wrangler deploy to support uploading Workers directly to a Workers for Platforms dispatch namespace.#5275
e1f2576Thanks @petebacondarwin! - fix: ensure tail exits when the WebSocket disconnectsPreviously when the tail WebSocket disconnected, e.g. because of an Internet failure, the
wrangler tailcommand would just hang and neither exit nor any longer receive tail messages.Now the process exits with an exit code of 1, and outputs an error message.
The error message is formatted appropriately, if the tail format is set to
json.Fixes #3927
#5069
8f79981Thanks @RamIdeas! - chore: deprecatewrangler versioncommandwrangler versionis an undocumented alias forwrangler --version. It is being deprecated in favour of the more conventional flag syntax to avoid confusion with a new (upcoming)wrangler versionscommand.Updated dependencies [
1720f0a]: