chore(deps): update dependency wrangler to v4 #555
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:
3.114.11
->4.25.0
Release Notes
cloudflare/workers-sdk (wrangler)
v4.25.0
Compare Source
Minor Changes
9f0c175
Thanks @thomasgauvin! - Added rename namespace command to Workers KVPatch Changes
6cc24c0
Thanks @emily-shen! - Add more thorough validation to containers configurationv4.24.4
Compare Source
Patch Changes
#9905
4ba9f25
Thanks @dom96! - Support for Python packages in python_modules dir#9886
17b1e5a
Thanks @dom96! - Python packages are now read from cf-requirements.txt instead of requirements.txt by default#9899
d6a1b9b
Thanks @simonabadoiu! - Print local mode when running a browser binding in local mode#9951
e2672c5
Thanks @penalosa! - Recommend remote bindings whenwrangler dev --remote
is used#9875
a5d7b35
Thanks @gpanders! - Show expected format in error message for "containers images delete"#9954
bf4c9ab
Thanks @penalosa! - Support Images binding ingetPlatformProxy()
#9847
14ce577
Thanks @penalosa! - Upgrade Undici#9974
f73da0d
Thanks @penalosa! - Pass worker name & compliance region through correctly when starting a remote bindings sessionUpdated dependencies [
ac08e68
,3bb69fa
,274a826
,77d1cb2
,5b0fc9e
,bf4c9ab
,14ce577
]:v4.24.3
Compare Source
Patch Changes
#9923
c01c4ee
Thanks @gpanders! - Fix image name resolution when modifying a container application#9833
3743896
Thanks @dario-piotrowicz! - fix: ensure that container builds don't disrupt dev hotkey handlingcurrently container builds run during local development (via
wrangler dev
orstartWorker
) prevent the standard hotkeys not to be recognized (most noticeablyctrl+c
, preventing developers from existing the process), the changes here ensure that hotkeys are instead correctly handled as expectedUpdated dependencies []:
v4.24.2
Compare Source
Patch Changes
80cc834
Thanks @edmundhung! - fix: assets only versions upload should include tag and messagev4.24.1
Compare Source
Patch Changes
#9765
05adc61
Thanks @hasip-timurtas! - Build container images without the user's account ID. This allows containers to be built and verified in dry run mode (where we do not necessarily have the user's account info).When we push the image to the managed registry, we first re-tag the image to include the user's account ID so that the image has the full resolved image name.
Updated dependencies [
bb09e50
,25dbe54
,3bdec6b
]:v4.24.0
Compare Source
Minor Changes
#9796
ba69586
Thanks @simonabadoiu! - Browser Rendering local mode#9825
49c85c5
Thanks @ReppCodes! - Add support for origin_connection_limit to WranglerConfigure connection limits to Hyperdrive via command line options:
--origin-connection-limit
: The (soft) maximum number of connections that Hyperdrive may establish to the origin database.#9064
a1181bf
Thanks @sdnts! - Added anevent-subscriptions
subcommandPatch Changes
#9729
1b3a2b7
Thanks @404Wolf! - Set docker build context to the Dockerfile directory whenimage_build_context
is not explicitly provided#9845
dbfa4ef
Thanks @jonboulle! - remove extraneous double spaces from Wrangler help output#9811
fc29c31
Thanks @gpanders! - Fix unauthorized errors on "containers images delete".#9813
45497ab
Thanks @gpanders! - Support container image names without account ID#9821
a447d67
Thanks @WillTaylorDev! - Preview Aliases: Force alias generation to meet stricter naming requirements.For cases where CI is requesting Wrangler to generate the alias based on the branch name, we want a stricter check around the generated alias name in order to avoid version upload failures. If a valid alias name was not able to be generated, we warn and do not provide an alias (avoiding a version upload failure).
#9840
7c55f9e
Thanks @dario-piotrowicz! - fix: make sure that the experimentalremoteBindings
flag is properly handled ingetPlatformProxy
There are two issues related to how the experimental
remoteBindings
flag is handled ingetPlatformProxy
that are being fixed by this change:experimental_remote
configuration flag set on service bindings is incorrectly always taken into account, even ifremoteBindings
is set tofalse
experimental_remote
configuration flag of all the other bindings is never taken into account (effectively preventing the bindings to be used in remote mode) since theremoteBindings
flag is not being properly propagated#9801
0bb619a
Thanks @IRCody! - Containers: Fix issue where setting an image URI instead of dockerfile would incorrectly not update the image#9872
a727db3
Thanks @emily-shen! - fix: resolve Dockerfile path relative to the Wrangler config pathThis fixes a bug where Wrangler would not be able to find a Dockerfile if a Wrangler config path had been specified with the
--config
flag.#9815
1358034
Thanks @gpanders! - Remove --json flag from containers and cloudchamber commands (except for "images list")#9734
1a58bc3
Thanks @penalosa! - Make Wrangler warn more loudly if you're missing auth scopes#9748
7e3aa1b
Thanks @alsuren! - Internal-only WRANGLER_D1_EXTRA_LOCATION_CHOICES environment variable for enabling D1's testing location hintsUpdated dependencies [
ba69586
,1a75f85
,395f36d
,6f344bf
]:v4.23.0
Compare Source
Minor Changes
#9535
56dc5c4
Thanks @penalosa! - In 2023 we announced breakpoint debugging support for Workers, which meant that you could easily debug your Worker code in Wrangler's built-in devtools (accessible via the[d]
hotkey) as well as multiple other devtools clients, including VSCode. For most developers, breakpoint debugging via VSCode is the most natural flow, but until now it's required manually configuring alaunch.json
file, runningwrangler dev
, and connecting via VSCode's built-in debugger.Now, using VSCode's built-in JavaScript Debug Terminals, there are just two steps: open a JS debug terminal and run
wrangler dev
(orvite dev
). VSCode will automatically connect to your running Worker (even if you're running multiple Workers at once!) and start a debugging session.#9810
8acaf43
Thanks @WillTaylorDev! - WC-3626 Pull branch name from WORKERS_CI_BRANCH if exists.Patch Changes
#9775
4309bb3
Thanks @vicb! - Cap the number of errors and warnings for bulk KV put to avoid consuming too much memory#9799
d11288a
Thanks @penalosa! - Better messaging for account owned tokens inwrangler whoami
Updated dependencies [
56dc5c4
]:v4.22.0
Compare Source
Minor Changes
#7871
f2a8d4a
Thanks @dario-piotrowicz! - add support for assets bindings togetPlatformProxy
this change makes sure that that
getPlatformProxy
, when the input configurationfile contains an assets field, correctly returns the appropriate asset binding proxy
example:
Patch Changes
#9717
d2f2f72
Thanks @nikitassharma! - Containers should default to a "dev" instance type when no instance type is specified in the wrangler config#9620
1b967ea
Thanks @gpanders! - Simplify containers images list output format#9684
94a340e
Thanks @WillTaylorDev! - Select only successfully deployed deployments when tailing.v4.21.2
Compare Source
Patch Changes
#9731
75b75f3
Thanks @gabivlj! - containers: Check for container scopes before running a container command to give a better error#9641
fdbc9f6
Thanks @IRCody! - Update container builds to use a more robust method for detecting if the currently built image already exists.#9736
55c83a7
Thanks @gabivlj! - containers: Do not check scopes if not defined#9667
406fba5
Thanks @IRCody! - Fail earlier in the deploy process when deploying a container worker if docker is not detected.v4.21.1
Compare Source
Patch Changes
#9626
9c938c2
Thanks @penalosa! - Supportwrangler version upload
for Python Workers#9718
fb83341
Thanks @mhart! - fix error message when docker daemon is not running#9689
b137a6f
Thanks @emily-shen! - fix: correctly pass container engine config to miniflare#9722
29e911a
Thanks @emily-shen! - Update containers config schema.Deprecates
containers.configuration
in favour of top level fields. Makes top levelimage
required. Deprecatesinstances
anddurable_objects
. Makesname
optional.#9666
f3c5791
Thanks @IRCody! - Add a reasonable default name for containers that have no defined name.Updated dependencies [
b137a6f
]:v4.21.0
Compare Source
Minor Changes
#9692
273952f
Thanks @dom96! - Condenses Python vendored modules in output table#9654
2a5988c
Thanks @dom96! - Python Workers now automatically bundle .so files from vendored packagesPatch Changes
#9695
0e64c35
Thanks @emily-shen! - Move hotkey registration later in dev start upThis should have no functional change, but allows us to conditionally render hotkeys based on config.
#9098
ef20754
Thanks @jseba! - Migrate Workers Containers commands to Containers API EndpointsThe Workers Containers API was built on top of Cloudchamber, but has now been moved to its own API
with a reduced scoping and new token.
#9712
2a4c467
Thanks @emily-shen! - Makewrangler container
commands printopen-beta
statusv4.20.5
Compare Source
Patch Changes
#9688
086e29d
Thanks @dario-piotrowicz! - add remote bindings support togetPlatformProxy
Example:
#9558
d5edf52
Thanks @ichernetsky-cf! -wrangler containers apply
usesobservability
configuration.#9678
24b2c66
Thanks @dario-piotrowicz! - remove warnings during config validations onexperimental_remote
fieldswrangler commands, run without the
--x-remote-bindings
flag, parsing config files containingexperimental_remote
fields currently show warnings stating that the field is not recognized. This is usually more cumbersome than helpful so here we're loosening up this validation and making wrangler always recognize the field even when no--x-remote-bindings
flag is provided#9633
3f478af
Thanks @nikitassharma! - Add support for setting an instance type for containers in wrangler. This allows users to configure memory, disk, and vCPU by setting instance type when interacting with containers.#9596
5162c51
Thanks @CarmenPopoviciu! - add ability to pull images for containers local devUpdated dependencies [
bfb791e
,5162c51
]:v4.20.4
Compare Source
Patch Changes
#9673
ffa742f
Thanks @dario-piotrowicz! - fix: ensure that wrangler deploy and version upload don't override the remote-bindings flag#9653
8a60fe7
Thanks @penalosa! - RenameWRANGLER_CONTAINERS_DOCKER_PATH
toWRANGLER_DOCKER_BIN
#9664
c489a44
Thanks @IRCody! - Remove cloudchamber/container apply confirmation dialog when run non-interactively.#9653
8a60fe7
Thanks @penalosa! - Add a warning banner towrangler cloudchamber
andwrangler containers
commands#9605
17d23d8
Thanks @emily-shen! - Add rebuild hotkey for containers local dev, and clean up containers at the end of a dev session.Updated dependencies [
17d23d8
]:v4.20.3
Compare Source
Patch Changes
#9621
08be3ed
Thanks @gabivlj! - wrangler containers: 'default' scheduling policy should be the default#9586
d1d34fe
Thanks @penalosa! - Remove the Mixed Mode naming in favour of "remote bindings"/"remote proxy"Updated dependencies [
d1d34fe
]:v4.20.2
Compare Source
Patch Changes
#9565
b1c9139
Thanks @IRCody! - Ensure that a container applications image configuration is not updated if there were not changes to the image.#9628
92f12f4
Thanks @gpanders! - Remove "Cloudchamber" from user facing error messages#9576
2671e77
Thanks @vicb! - Add core local dev functionality for containers.Adds a new WRANGLER_DOCKER_HOST env var to customise what socket to connect to.
Updated dependencies [
828b7df
,2671e77
]:v4.20.1
Compare Source
Patch Changes
#9536
3b61c41
Thanks @dario-piotrowicz! - exposeUnstable_Binding
type#9564
1d3293f
Thanks @skepticfx! - Switch container registry toregistry.cloudflare.com
fromregistry.cloudchamber.cfdata.org
.Also adds the env var
CLOUDFLARE_CONTAINER_REGISTRY
to override this#9520
04f9164
Thanks @vicb! - fix the default value for keep_names (true
)#9506
36113c2
Thanks @penalosa! - Strip theCF-Connecting-IP
header from outgoing fetches#9592
49f5ac7
Thanks @petebacondarwin! - Point to the right location for docs on telemetry#9593
cf33417
Thanks @vicb! - drop unusedWRANGLER_UNENV_RESOLVE_PATHS
env var#9566
521eeb9
Thanks @vicb! - Bump@cloudflare/unenv-preset
to 2.3.3#9344
02e2c1e
Thanks @dario-piotrowicz! - add warning about env not specified to potentially risky wrangler commandsadd a warning suggesting users to specify their target environment (via
-e
or--env
)when their wrangler config file contains some environments and they are calling one
of the following commands:
this is a measure we're putting in place to try to prevent developers from accidentally applying
changes to an incorrect (potentially even production) environment
#9344
02e2c1e
Thanks @dario-piotrowicz! - allow passing an empty string to the-e|--env
flag to target the top-level environment#9536
3b61c41
Thanks @dario-piotrowicz! - performance improvement: restart a mixed mode session only if the worker's remote bindings have changed#9550
c117904
Thanks @dario-piotrowicz! - allowstartWorker
to acceptfalse
as aninspector
option (to disable the inspector server)#9473
fae8c02
Thanks @dario-piotrowicz! - expose newexperimental_maybeStartOrUpdateMixedModeSession
utilityUpdated dependencies [
bd528d5
,2177fb4
,36113c2
,e16fcc7
]:v4.20.0
Compare Source
Minor Changes
#9509
0b2ba45
Thanks @emily-shen! - feat: add static routing options via 'run_worker_first' to WranglerImplements the proposal noted here https://github.com/cloudflare/workers-sdk/discussions/9143.
This is now usable in
wrangler dev
and in production - just specify the routes that should hit the worker first withrun_worker_first
in your Wrangler config. You can also omit certain paths with!
negative rules.Patch Changes
#9507
1914b87
Thanks @dario-piotrowicz! - slightly improve wrangler dev bindings loggingsimprove the bindings loggings by:
[connected]
suffix for remote bindings#9475
931f467
Thanks @edmundhung! - add hello world binding that serves as as an explanatory example.#9443
95eb47d
Thanks @dario-piotrowicz! - add workerName option to startMixedModeSession API#9541
80b8bd9
Thanks @dario-piotrowicz! - make workers created withstartWorker
await theready
promise ondispose
#9443
95eb47d
Thanks @dario-piotrowicz! - add mixed-mode support for mtls bindings#9515
9e4cd16
Thanks @dario-piotrowicz! - make sure that remote binding errors are surfaced when using mixed (hybrid) mode#9516
92305af
Thanks @IRCody! - Reorder deploy output when deploying a container worker so the worker url is printed last and the worker triggers aren't deployed until the container has been built and deployed successfully.Updated dependencies [
931f467
,95eb47d
,0b2ba45
]:v4.19.2
Compare Source
Patch Changes
#9461
66edd2f
Thanks @skepticfx! - Enforce disk limits on container builds#9481
d1a1787
Thanks @WillTaylorDev! - Force autogenerated aliases to be fully lowercased.#9480
1f84092
Thanks @dario-piotrowicz! - addexperimentalMixedMode
dev option tounstable_startWorker
add an new
experimentalMixedMode
dev option tounstable_startWorker
that allows developers to programmatically start a new mixed mode
session using startWorker.
Example usage:
Updated dependencies [
4ab5a40
,485cd08
,e3b3ef5
,3261957
]:v4.19.1
Compare Source
Patch Changes
db2cdc6
Thanks @WillTaylorDev! - Fix bug causing preview alias to always be generated.v4.19.0
Compare Source
Minor Changes
03b8c1c
Thanks @WillTaylorDev! - Provide ability for Wrangler to upload preview aliases during version upload.Patch Changes
#9390
80e75f4
Thanks @penalosa! - Support additional Mixed Mode resources in Wrangler:#9395
b3be057
Thanks @Maximo-Guk! - Add WRANGLER_CI_OVERRIDE_NETWORK_MODE_HOST for Workers CI#9410
87f3843
Thanks @dario-piotrowicz! - enable consumers ofunstable_readConfig
to silenceremote
warningsUpdated dependencies [
8c7ce77
,80e75f4
,80e75f4
,fac2f9d
,92719a5
]:v4.18.0
Compare Source
Minor Changes
34b6174
Thanks @jamesopstad! - Hard fail on Node.js < 20. Wrangler no longer supports Node.js 18.x as it reached end-of-life on 2025-04-30. See https://github.com/nodejs/release?tab=readme-ov-file#end-of-life-releases.Patch Changes
#9308
d3a6eb3
Thanks @dario-piotrowicz! - expose new utilities and types to aid consumers of the programmatic mixed-mode APISpecifically the exports have been added:
Experimental_MixedModeSession
: type representing a mixed-mode sessionExperimental_ConfigBindingsOptions
: type representing config-bindingsexperimental_pickRemoteBindings
: utility for picking only the remote bindings from a record of start-worker bindings.unstable_convertConfigBindingsToStartWorkerBindings
: utility for converting config-bindings into start-worker bindings (that can be passed tostartMixedModeSession
)#9347
b8f058c
Thanks @penalosa! - Improve binding display on narrower terminalsUpdated dependencies [
d9d937a
,e39a45f
,fdae3f7
]:v4.17.0
Compare Source
Minor Changes
#9321
6c03bde
Thanks @petebacondarwin! - Add support for FedRAMP High compliance regionNow it is possible to target Wrangler at the FedRAMP High compliance region.
There are two ways to signal to Wrangler to run in this mode:
"compliance_region": "fedramp_high"
in a Wrangler configurationCLOUDFLARE_COMPLIANCE_REGION=fedramp_high
environment variable when running WranglerIf both are provided and the values do not match then Wrangler will exit with an error.
When in this mode OAuth authentication is not supported.
It is necessary to authenticate using a Cloudflare API Token acquired from the Cloudflare FedRAMP High dashboard.
Most bindings and commands are supported in this mode.
Resolves DEVX-1921.
#9330
34c71ce
Thanks @edmundhung! - Updated internal configuration to use Miniflare’s newdefaultPersistRoot
instead of per-pluginpersist
flags#8973
cc7fae4
Thanks @Caio-Nogueira! - Show latest instance by default onworkflows instances describe
commandPatch Changes
#9335

6479fc5
Thanks @penalosa! - Redesignwrangler dev
to more clearly present information and have a bit of a glow up ✨#9329
410d985
Thanks @penalosa! - Hide logs in thestartMixedModeSession()
API#9325
c2678d1
Thanks @edmundhung! - refactor: fallbacks to local image binding from miniflare when local mode is enabledUpdated dependencies [
34c71ce
,f7c82a4
,7ddd865
,6479fc5
,e5ae13a
]:v4.16.1
Compare Source
Patch Changes
7344344
Thanks @gabivlj! -wrangler containers delete
handles API errors correctlyv4.16.0
Compare Source
Minor Changes
#9288
3b8f7f1
Thanks @petebacondarwin! - allow --name and --env args on wrangler deployPreviously it was not possible to provide a Worker name as a command line argument at the same time as setting the Wrangler environment.
Now specifying
--name
is supported and will override any names set in the Wrangler config:wrangler.json
#9265
16de0d5
Thanks @edmundhung! - docs: add documentation links to individual config properties in the JSON schema of the Wrangler config filePatch Changes
#9234
2fe6219
Thanks @emily-shen! - fix: add no-opprops
toctx
ingetPlatformProxy
to fix type mismatch#9269
66d975e
Thanks @dario-piotrowicz! - Wire up mixed-mode remote bindings for multi-workerwrangler dev
Under the
--x-mixed-mode
flag, make sure that bindings configurations withremote: true
actually generate bindings to remote resources during a multi-workerwrangler dev
session, currently the bindings included in this are: services, kv_namespaces, r2_buckets, d1_databases, queues and workflows.Also include the ai bi
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.