This repository was archived by the owner on Dec 4, 2024. It is now read-only.
chore(deps): update dependency wrangler to v3 #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.21.1->3.91.0Release Notes
cloudflare/workers-sdk (wrangler)
v3.91.0Compare Source
Minor Changes
#7230
6fe9533Thanks @penalosa! - Turn onwrangler.json(c)support by defaultWrangler now supports both JSON (
wrangler.json) and TOML (wrangler.toml) for it's configuration file. The format of Wrangler's configuration file is exactly the same across both languages, except that the syntax isJSONrather thanTOML. e.g.would be interpreted the same as the equivalent JSON
{ "name": "worker-ts", "main": "src/index.ts", "compatibility_date": "2023-05-04" }#7330
219109aThanks @jonesphillip! - Added Oceania (oc) location hint as acceptable choice when creating an R2 bucket.#7227
02a0e1eThanks @taylorlee! - Addpreview_urlstoggle towrangler.tomlThe current Preview URLs (beta) feature routes to version preview urls based on the status of the
workers_devconfig value. Beta users have requested the ability to enable deployment urls and preview urls separately onworkers.dev, and the newpreviews_enabledfield of the enable-subdomain API will allow that. This change separates theworkers_devandpreview_urlsbehavior duringwrangler triggers deployandwrangler versions upload.preview_urlsdefaults to true, and does not implicitly depend on routes the wayworkers_devdoes.#7308
1b1d01aThanks @gpanders! - Add a default image for cloudchamber create and modify commands#7232
7da76deThanks @toddmantell! - feat: implement queues info commandThis command allows users to get information on individual queues.
To run this command use the queues info command with the name of a queue in the user's account.
wrangler queues info my-queue-namePatch Changes
#7319
5a2c93dThanks @vicb! - chore(wrangler): update unenv dependency versionPulls in the implementation of module.findSourceMap
Updated dependencies [
0d314ed,476e5df]:v3.90.0Compare Source
Minor Changes
31729eeThanks @G4brym! - Update local AI fetcher to forward method and url to upstreamPatch Changes
6ba5903]:v3.89.0Compare Source
Minor Changes
#7252
97acf07Thanks @Maximo-Guk! - feat: Add production_branch and deployment_trigger to pages deploy detailed artifact for wrangler-action pages parity#7263
1b80decThanks @danielrs! - Fix wrangler pages deployment (list|tail) environment filtering.Patch Changes
#7314
a30c805Thanks @Ankcorn! - Fix observability.logs.enabled validation#7285
fa21312Thanks @penalosa! - RenamedirectorytoprojectRootand ensure it's relative to thewrangler.toml. This fixes a regression which meant that.wranglertemporary folders were inadvertently generated relative toprocess.cwd()rather than the location of thewrangler.tomlfile. It also renamesdirectorytoprojectRoot, which affects the `unstable_startWorker() interface.Updated dependencies [
563439b]:v3.88.0Compare Source
Minor Changes
#7173
b6cbfbdThanks @Ankcorn! - Adds [observability.logs] settings to wrangler. This setting lets developers control the settings for logs as an independent dataset enabling more dataset types in the future. The most specific setting will win if any of the datasets are not enabled.It also adds the following setting to the logs config
invocation_logs- set to false to disable invocation logs. Defaults to true.#7207
edec415Thanks @jonesphillip! - Added r2 bucket lifecycle command to Wrangler including list, add, remove, setPatch Changes
#7243
941d411Thanks @penalosa! - Include Version Preview URL in Wrangler's output file#7038
e2e6912Thanks @petebacondarwin! - fix: only show fetch warning if on old compatibility_dateNow that we have the
allow_custom_portscompatibility flag, we only need to show the fetch warnings when that flag is not enabled.Fixes https://github.com/cloudflare/workerd/issues/2955
#7216
09e6e90Thanks @vicb! - chore(wrangler): update unenv dependency version#7081
b4a0e74Thanks @penalosa! - Default the file based registry (--x-registry) to on. This should improve stability of multi-worker developmentUpdated dependencies []:
v3.87.0Compare Source
Minor Changes
#7201
beed72eThanks @GregBrimble! - feat: Tail Consumers are now supported for Workers with assets.You can now configure
tail_consumersin conjunction withassetsin yourwrangler.tomlfile. Read more about Static Assets and Tail Consumers in the documentation.#7212
837f2f5Thanks @jonesphillip! - Added r2 bucket info command to Wrangler. Improved formatting of r2 bucket list outputPatch Changes
#7210
c12c0feThanks @taylorlee! - Avoid an unnecessary GET request duringwrangler deploy.#7197
4814455Thanks @michelheusschen! - fix console output forwrangler d1 migrations create#6795
94f07eeThanks @benmccann! - chore: upgrade chokidar to v4#7133
c46e02dThanks @gpanders! - Do not emit escape sequences when stdout is not a TTYv3.86.1Compare Source
Patch Changes
b499b74Thanks @penalosa! - Internal refactor to remove the non--x-dev-envflow fromwrangler devv3.86.0Compare Source
Minor Changes
ef7c0b3Thanks @jonesphillip! - Added the ability to enable, disable, and get r2.dev public access URLs for R2 buckets.Patch Changes
#7169
9098a3bThanks @penalosa! - Ensureworkerdprocesses are cleaned up after address-in-use errors#7172
3dce388Thanks @penalosa! - Clarify dev registry messaging around locally connected services. The connection status of local service bindings & durable object bindings is now indicated byconnectedornot connectednext to their entry in the bindings summary. For more details, refer to https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#local-development#7193
ad51d1dThanks @sdnts! - Output suggested wrangler.toml changes after creating an R2 bucket#7191
1d5bc6dThanks @sdnts! - Output suggested wrangler.toml changes after creating a QueueUpdated dependencies [
1db7846,08c6580]:v3.85.0Compare Source
Minor Changes
#7105
a5f1779Thanks @jonesphillip! - Added the ability to list, add, remove, and update R2 bucket custom domains.#7132
89f6274Thanks @gabivlj! - Event messages are capitalized, images of wrong architectures properly show the error incloudchamber createWhen a new "health" enum is introduced,
wrangler cloudchamber listwon't crash anymore.Update Cloudchamber schemas.
#7121
2278616Thanks @bruxodasilva! - Added pause and resume commands to manage Workflows and hidded unimplemented delete commandPatch Changes
#7134
3ee1353Thanks @cmackenzie1! - Change Pipelines to use name instead of ID#7020
e1d2fd6Thanks @KianNH! - chore: move printWranglerBanner for secret delete into handler#7150
6380d86Thanks @emily-shen! - refactor: improve login/logout/whoami setup with the new internal registration utils#6756
49ef163Thanks @WalshyDev! - chore: disable wrangler.toml warnings when doingwrangler login&wrangler logout#7164
1bd4885Thanks @penalosa! - Fix--test-scheduledwith custom builds &--x-dev-envv3.84.1Compare Source
Patch Changes
#7141
d938bb3Thanks @emily-shen! - fix: throw a better error if there is an "ASSETS" user binding in a Pages projects#7124
f8ebdd1Thanks @skepticfx! - fix: Modify Cloudchamber deployment labels in interactive modev3.84.0Compare Source
Minor Changes
#6999
0111edbThanks @garvit-gupta! - docs: Vectorize GA Announcement Banner#6916
a33a133Thanks @garrettgu10! - Local development now supports Vectorize bindings#7004
15ef013Thanks @garvit-gupta! - feat: Enable Vectorize query by id via Wrangler#7092
038fdd9Thanks @jonesphillip! - Added location hint option for the Wrangler R2 bucket create command#7024
bd66d51Thanks @xortive! - feature: allow using a connection string when updating hyperdrive configsboth
hyperdrive createandhyperdrive updatenow support updating configs with connection strings.Patch Changes
#7091
68a2a84Thanks @taylorlee! - fix: synchronize observability settings duringwrangler versions deployWhen running
wrangler versions deploy, Wrangler will now updateobservabilitysettings in addition tologpushandtail_consumers. Unlikewrangler deploy, it will not disable observability whenobservabilityis undefined inwrangler.toml.#7080
924ec18Thanks @vicb! - chore(wrangler): update unenv dependency version#7097
8ca4b32Thanks @emily-shen! - fix: remove deprecation warnings forwrangler initWe will not be removing
wrangler init(it just delegates to create-cloudflare now). These warnings were causing confusion for users as itwrangler initis still recommended in many places.#7073
656a444Thanks @penalosa! - Internal refactor to removees-module-lexerand supportwrangler typesfor Workers with Durable Objects & JSX#7024
bd66d51Thanks @xortive! - fix: make individual parameters work forwrangler hyperdrive createwhen not using HoAwrangler hyperdrive createindividual parameters were not setting the database name correctly when calling the api.#7024
bd66d51Thanks @xortive! - refactor: use same param parsing code forwrangler hyperdrive createandwrangler hyperdrive updateensures that going forward, both commands support the same features and have the same names for config flags
v3.83.0Compare Source
Minor Changes
1de309bThanks @jkoe-cf! - feature: allowing users to specify a description when creating an event notification rulePatch Changes
#7011
cef32c8Thanks @GregBrimble! - fix: Correctly apply Durable Object migrations for namespaced scripts#7067
4aa35c5Thanks @LuisDuarte1! - Change trigger command to comply with the current workflows endpoint.This also adds an id option to allow users to optionally customize the new instance id.
#7082
3f1d79cThanks @LuisDuarte1! - Change to new terminate instance workflow endpoint#7036
e7ea600Thanks @penalosa! - Reduce KV bulk upload bucket size to 1000 (from the previous 5000)#7068
a2afcf1Thanks @RamIdeas! - log warning of Workflows open-beta status when running deploying a Worker that contains a Workflow binding#7065
b219296Thanks @penalosa! - Internal refactor to remove React/ink from all non-wrangler devflows#7064
a90980cThanks @penalosa! - Fixwrangler dev --remote --show-interactive-dev-session=falseby only enabling hotkeys after account selection if hotkeys were previously enabled#7045
5ef6231Thanks @RamIdeas! - Add preliminary support for Workflows in wrangler dev#7075
80e5bc6Thanks @LuisDuarte1! - Fix params serialization when send the trigger workflow APIPreviously, wrangler did not parse the params sending it as a string to workflow's services.
Updated dependencies [
760e43f,8dc2b7d,5ef6231]:v3.82.0Compare Source
Minor Changes
6b97353Thanks @bthwaites! - Add jurisdiction option to R2 event notification wrangler actionsPatch Changes
#5737
9bf51d6Thanks @penalosa! - Validate duplicate bindings across all binding types#7010
1f6ff8bThanks @vicb! - chore: update unenv dependency version#7012
244aa57Thanks @RamIdeas! - Add support for Workflow bindings (in deployments, not yet in local dev)To bind to a workflow, add a
workflowssection in your wrangler.toml:and export an entrypoint (e.g.
MyDemoWorkflow) in your script:#7039
e44f496Thanks @penalosa! - Only show dev registry connection status in local dev#7037
e1b93dcThanks @emily-shen! - fix: ask for confirmation before creating a new Worker when uploading secretsPreviously,
wrangler secret put KEY --name non-existent-workerwould automatically create a new Worker with the namenon-existent-worker. This fix asks for confirmation before doing so (if running in an interactive context). Behaviour in non-interactive/CI contexts should be unchanged.#7015
48152d6Thanks @RamIdeas! - addwrangler workflows ...commands#7041
045787bThanks @CarmenPopoviciu! - Showwrangler pages dev --proxywarningOn Node.js 17+, wrangler will default to fetching only the IPv6 address. With these changes we warn users that the process listening on the port specified via
--proxyshould be configured for IPv6.#7018
127615aThanks @emily-shen! - fix: log successful runs ofd1 executein local#6970
a8ca700Thanks @oliy! - Add HTTP authentication options for Workers Pipelines#7005
6131ef5Thanks @edmundhung! - fix: prevent users from passing multiple arguments to non array options#7046
f9d5fdbThanks @oliy! - Minor change to 3rd party API shape for Workers Pipelines#6972
c794935Thanks @penalosa! - Add(local)indicator to bindings using local dataUpdated dependencies [
809193e]:v3.81.0Compare Source
Minor Changes
586c253Thanks @courtney-sims! - feat: Adds new detailed pages deployment output typePatch Changes
#6963
a5ac45dThanks @RamIdeas! - fix: makewrangler dev --remoterespect wrangler.toml'saccount_idproperty.This was a regression in the
--x-dev-envflow recently turned on by default.#6996
b8ab809Thanks @emily-shen! - fix: improve error messaging when accidentally using Workers commands in Pages projectIf we detect a Workers command used with a Pages project (i.e. wrangler.toml contains
pages_output_build_dir), error with Pages version of command rather than "missing entry-point" etc.v3.80.5Compare Source
Patch Changes
5761020,7859a04]:v3.80.4Compare Source
Patch Changes
#6937
51aedd4Thanks @lrapoport-cf! - fix: show help when kv commands are run without parametersUpdated dependencies [
c863183,fd43068]:v3.80.3Compare Source
Patch Changes
#6927
2af75edThanks @emily-shen! - fix: respectCLOUDFLARE_ACCOUNT_IDwithwrangler pages projectcommandsFixes #4947
#6894
eaf71b8Thanks @petebacondarwin! - fix: improve the rendering of build errors when bundling#6920
2e64968Thanks @vicb! - chore: update unenv dependency versionPulls in feat(node/net): implement Server mock.
#6932
4c6aad0Thanks @vicb! - fix: allowrequireing unenv aliased packagesBefore this PR
requireing packages aliased in unenv would fail.That's because
requirewould load the mjs file.This PR adds wraps the mjs file in a virtual ES module to allow
requireing it.v3.80.2Compare Source
Patch Changes
1320f20Thanks @andyjessop! - chore: adds eslint-disable for ESLint error on empty typescript interface in workers-configuration.d.tsv3.80.1Compare Source
Patch Changes
#6908
d696850Thanks @penalosa! - fix: debounce restarting worker on assets dir file changes when--x-dev-envis enabled.#6902
dc92af2Thanks @threepointone! - fix: enable esbuild's keepNames: true to set .name on functions/classes#6909
82180a7Thanks @penalosa! - fix: Various fixes for logging in--x-dev-env, primarily to ensure the hotkeys don't wipe useful output and are cleaned up correctly#6903
54924a4Thanks @petebacondarwin! - fix: ensure thataliasconfig gets passed through to the bundler when using new--x-dev-envFixes #6898
#6911
30b7328Thanks @emily-shen! - fix: infer experimentalJsonConfig from file extensionFixes #5768 - issue with vitest and Pages projects with wrangler.toml
Updated dependencies [
5c50949]:v3.80.0Compare Source
Minor Changes
#6408
3fa846eThanks @RamIdeas! - feat: update the--experimental-dev-env(shorthand:--x-dev-env) flag to on-by-defaultIf you experience any issues, you can disable the flag with
--x-dev-env=false. Please also let us know by opening an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose.Patch Changes
#6854
04a8fedThanks @penalosa! - chore: Include serialisedFormDatain debug logs#6879
b27d8cbThanks @petebacondarwin! - fix: the docs command should not crash if given search termsFixes a regression accidentally introduced by #3735.
#6873
b123f43Thanks @zwily! - fix: reduce logging noise during wrangler dev with static assetsUpdates to static assets are accessible by passing in --log-level="debug" but otherwise hidden.
#6881
7ca37bcThanks @RamIdeas! - fix: custom builds outputting files in assets watched directory no longer cause the custom build to run again in an infinite loop#6872
b2d094eThanks @petebacondarwin! - fix: render a helpful build error if a Service Worker mode Worker has importsA common mistake is to forget to export from the entry-point of a Worker, which causes
Wrangler to infer that we are in "Service Worker" mode.
In this mode, imports to external modules are not allowed.
Currently this only fails at runtime, because our esbuild step converts these imports to an internal
__require()call that throws an error.The error message is misleading and does not help the user identify the cause of the problem.
This is particularly tricky where the external imports are added by a library or our own node.js polyfills.
Fixes #6648
#6792
27e8385Thanks @penalosa! - fix: Handle more module declaration cases#6838
7dbd0c8Thanks @GregBrimble! - fix: Improve static asset upload messagingv3.79.0Compare Source
Minor Changes
6009bb4Thanks @RamIdeas! - feat: implement retries withinwrangler deployandwrangler versions uploadto workaround spotty network connections and service flakesPatch Changes
#6870
dc9039aThanks @penalosa! - fix: Includeworkerdin the external dependecies of Wrangler to fix local builds.#6866
c75b0d9Thanks @zwily! - fix: debounce restarting worker on assets dir file changesv3.78.12Compare Source
Patch Changes
5bfb75dThanks @a-robinson! - chore: update warning inwrangler dev --remotewhen using Queues to not mention beta statusv3.78.11Compare Source
Patch Changes
7ede181Thanks @CarmenPopoviciu! - fix: Validate[routes]on configuration file changesv3.78.10Compare Source
Patch Changes
#6824
1c58a74Thanks @petebacondarwin! - fix: tidy up error messaging for unexpected use of Node.js APIsFixes #6822
Updated dependencies [
5e2e62c,1c58a74]:v3.78.9Compare Source
Patch Changes
#6753
4e33f2cThanks @bluwy! - refactor: prevent bundling entirepackage.jsonin built code#6812
f700d37Thanks @CarmenPopoviciu! - fix: Validate additional config properties for[observability]#6751
638a550Thanks @bluwy! - refactor: simplify date calculation and remove date-fns dependency#6809
28cb0d7Thanks @smellercf! - fix: Remove Beta tag from r2 event notification wrangler command descriptions#6802
17eb8a9Thanks @CarmenPopoviciu! - chore: renameexperimental_assetstoassets#6781
0792fa0Thanks @mikenomitch! - chore: tweaks warning when using node_compatv3.78.8Compare Source
Patch Changes
#6791
74d719fThanks @penalosa! - fix: Add missing binding toinit --from-dash#6728
1ca313fThanks @emily-shen! - fix: remove filepath encoding on asset upload and handle sometimes-encoded charactersSome characters like [ ] @ are encoded by encodeURIComponent() but are often requested at an unencoded URL path.
This change will make assets with filenames with these characters accessible at both the encoded and unencoded paths,
but to use the encoded path as the canonical one, and to redirect requests to the canonical path if necessary.
#6798
7d7f19aThanks @emily-shen! - fix: error if an asset binding is provided without a Worker scriptUpdated dependencies [
1ca313f]:v3.78.7Compare Source
Patch Changes
#6775
ecd82e8Thanks @CarmenPopoviciu! - fix: Support switching between static and dynamic WorkersThis commit fixes the current behaviour of watch mode for Workers with assets, and adds support for switching between static and dynamic Workers within a single
wrangler devsession.#6762
2840b9fThanks @petebacondarwin! - fix: error if a user inadvertently uploads a Pages_workers.jsfile or directory as an asset#6778
61dd93aThanks @CarmenPopoviciu! - fix: Error if Workers + Assets are run in remote modeWorkers + Assets are currently supported only in local mode. We should throw an error if users attempt to use Workers with assets in remote mode.
#6782
7655505Thanks @vicb! - chore: update unenv dependency version#6777
9649dbcThanks @penalosa! - chore: Update CI messaging#6779
3e75612Thanks @emily-shen! - fix: include asset binding inwrangler typesv3.78.6Compare Source
Patch Changes
#6743
b45e326Thanks @petebacondarwin! - fix: ability to build tricky Node.js compat scenario WorkersAdds support for non-default build conditions and platform via the WRANGLER_BUILD_CONDITIONS and WRANGLER_BUILD_PLATFORM flags.
Fixes https://github.com/cloudflare/workers-sdk/issues/6742
#6776
02de103Thanks @zebp! - fix: disable observability on deploy if not explicitly defined in configWhen deploying a Worker that has observability enabled in the deployed version but not specified in the
wrangler.tomlWrangler will now set observability to disabled for the new version to match thewrangler.tomlas the source of truth.Updated dependencies [[
2ddbb65](https://redirect.gConfiguration
📅 Schedule: Branch creation - "every weekend" in timezone Asia/Makassar, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.