Wrangler Changelog
2024-04-01
3.42.0
#5371
77152f3
Thanks @G4brym! - feature: remove requirement for@cloudflare/ai
package to use Workers AIPreviously, to get the correct Workers AI API, you needed to wrap your
env.AI
binding withnew Ai()
from@cloudflare/ai
. This change moves the contents of@cloudflare/ai
into the Workers runtime itself, meaningenv.AI
is now an instance ofAi
, without the need for wrapping.Updated dependencies [
d994066
]:
2024-03-29
3.41.0
3.40.0
#5426
9343714
Thanks @RamIdeas! - feature: added a newwrangler triggers deploy
commandThis command currently requires the
--experimental-versions
flag.This command extracts the trigger deployment logic from
wrangler deploy
and allows users to update their currently deployed Worker’s triggers without doing another deployment. This is primarily useful for users ofwrangler versions upload
andwrangler versions deploy
who can then runwrangler triggers deploy
to 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
dc0c1dc
Thanks @xortive! - feature: Add support for private networking in Hyperdrive configs#5369
7115568
Thanks @mattdeboard! - fix: Use queue name, not ID, forr2 bucket event-notification
subcommandsSince 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
976adec
Thanks @pmiguel! - feature: Added Queue delivery controls support in wrangler.toml#5412
3e5a932
Thanks @RamIdeas! - feature: adds the--json
option towrangler deployments list --experimental-versions
,wrangler deployments status --experimental-versions
,wrangler versions list --experimental-versions
andwrangler versions view --experimental-versions
which will format the output as clean JSON. The--experimental-versions
flag is still required for these commands.#5258
fbdca7d
Thanks @OilyLime! - feature: URL decode components of the Hyperdrive config connection string#5416
47b325a
Thanks @mattdeboard! - fix: minor improvements to R2 notification subcommandr2 bucket event-notification <subcommand>
becomesr2 bucket notification <subcommand>
- Parameters to
--event-type
use-
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
daac6a2
Thanks @RamIdeas! - chore: add helpful logging to –experimental-versions commands#5400
c90dd6b
Thanks @RamIdeas! - chore: log of impending change of “Deployment ID” to “Version ID” inwrangler deploy
,wrangler deployments list
,wrangler deployments view
andwrangler 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
b341614
Thanks @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
5bd8db8
Thanks @RamIdeas! - feature: Implement versioned rollbacks viawrangler rollback [version-id] --experimental-versions
.Please note, the
experimental-versions
flag is required to use the new behaviour. The originalwrangler rollback
command is unchanged if run without this flag.#5366
e11e169
Thanks @RamIdeas! - fix: save non-versioned script-settings (logpush, tail_consumers) onwrangler versions deploy
. This command still requires--experimental-versions
.#5405
7c701bf
Thanks @RamIdeas! - chore: addwrangler deployments view [deployment-id] --experimental-versions
commandThis command will display an error message which points the user to run either
wrangler deployments status --experimental-versions
orwrangler versions view <version-id> --experimental-versions
instead.
2024-03-26
3.38.0
#5310
528c011
Thanks @penalosa! - feat: Watch the entire module root for changes in--no-bundle
mode, rather than just the entrypoint file.#5327
7d160c7
Thanks @penalosa! - feat: Addwrangler pages download config
#5284
f5e2367
Thanks @CarmenPopoviciu! - feat: Addwrangler.toml
support inwrangler pages dev
As we are adding
wrangler.toml
support for Pages, we want to ensure thatwrangler pages dev
works with a configuration file.#5353
3be826f
Thanks @penalosa! - feat: Updateswrangler pages functions build
to support using configuration fromwrangler.toml
in the generated output.#5102
ba52208
Thanks @pmiguel! - feature: add support for queue delivery controls onwrangler queues create
#5327
7d160c7
Thanks @penalosa! - fix: Use specific error code to signal a wrangler.toml file not being found in build-env#5310
528c011
Thanks @penalosa! - fix: Reload Python workers when therequirements.txt
file changes
2024-03-22
3.37.0
#5294
bdc121d
Thanks @mattdeboard! - feature: Addevent-notification
commands in support of event notifications for Cloudflare R2.Included are commands for creating and deleting event notification configurations for individual buckets.
#5231
e88ad44
Thanks @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
9fd7eba
Thanks @GregBrimble! - chore: Deprecate-- <command>
,--proxy
and--script-path
options 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
35660e27
Thanks @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
ErrorInvalidGrant
in a previous wrangler version when runningwrangler login
, please try upgrading to this version or later.
2024-03-20
3.36.0
#5234
e739b7f
Thanks @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
c60fed0
Thanks @taylorlee! - fix: Remove triggered_by annotation from experimentalversions deploy
command which is now set by the API and cannot be set by the client.#5321
ac93411
Thanks @RamIdeas! - fix: rename--experimental-gradual-rollouts
to--experimental-versions
flagThe
--experimental-gradual-rollouts
flag has been made an alias and will still work.And additional shorthand alias
--x-versions
has also been added and will work too.#5324
bfc4282
Thanks @penalosa! - fix: Ignore OPTIONS requests in Wrangler’s oauth server#5099
93150aa
Thanks @KaiSpencer! - feat: expose--show-interactive-dev-session
flagThis 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
turbo
andnx
.
2024-03-19
3.35.0
#5166
133a190
Thanks @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
0a86050
Thanks @penalosa! - feat: Support the hidden commandwrangler pages functions build-env
#5093
a676f55
Thanks @benycodes! - feature: add –dispatch-namespace to wrangler deploy to support uploading Workers directly to a Workers for Platforms dispatch namespace.#5275
e1f2576
Thanks @petebacondarwin! - fix: ensure tail exits when the WebSocket disconnectsPreviously when the tail WebSocket disconnected, e.g. because of an Internet failure, the
wrangler tail
command 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
8f79981
Thanks @RamIdeas! - chore: deprecatewrangler version
commandwrangler version
is 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 versions
command.Updated dependencies [
1720f0a
]: