Wrangler Changelog
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
]:
2024-03-14
3.34.2
- #5238
a0768bc
Thanks @RamIdeas! - fix:versions upload
annotations (--message
and/or--tag
) are now applied correctly to the uploaded Worker Version
3.34.1
- Updated dependencies [
2e50d51
]:
3.34.0
#5224
03484c2
Thanks @RamIdeas! - feature: Implementwrangler deployments list
andwrangler deployments status
behind--experimental-gradual-rollouts
flag.#5115
29e8151
Thanks @RamIdeas! - feature: Implementwrangler versions deploy
command.For now, invocations should use the
--experimental-gradual-rollouts
flag.Without args, a user will be guided through prompts. If args are specified, they are used as the default values for the prompts. If the
--yes
flag is specified, the defaults are automatically accepted for a non-interactive flow.#5208
4730b6c
Thanks @RamIdeas! - feature: Implementwrangler versions list
andwrangler versions view
commands behind the--experimental-gradual-rollouts
flag.#5064
bd935cf
Thanks @OilyLime! - feature: Improve create and update logic for hyperdrive to include caching settings