Skip to content

chore(deps): update dependency wrangler to v4 #878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 13, 2025

This PR contains the following updates:

Package Change Age Confidence
wrangler (source) ^3.74 -> ^4.0.0 age confidence

Release Notes

cloudflare/workers-sdk (wrangler)

v4.26.0

Compare Source

Minor Changes
  • #​10016 c5b291d Thanks @​emily-shen! - Interactively handle wrangler deploys that are probably assets-only, where there is no config file and flags are incorrect or missing.

    For example:

    npx wrangler deploy ./public will now ask if you meant to deploy a folder of assets only, ask for a name, set the compat date and then ask whether to write your choices out to wrangler.json for subsequent deployments.

    npx wrangler deploy --assets=./public will now ask for a name, set the compat date and then ask whether to write your choices out to wrangler.json for subsequent deployments.

    In non-interactive contexts, Wrangler will error as it currently does.

  • #​9971 19794bf Thanks @​edmundhung! - Improved script source display on the pretty error screen

Patch Changes
  • #​9800 3d4f946 Thanks @​helloimalastair! - remove banner from r2 getobject in pipe mode

  • #​9910 7245101 Thanks @​dario-piotrowicz! - make sure that the ready-on message is printed after the appropriate runtime controller is ready

    fix the fact that when starting a local (or remote) dev session the log saying Ready on http://localhost:xxxx could be displayed before the runtime is actually ready to handle requests (this is quite noticeable when locally running dev sessions with containers, where the ready message currently gets displayed before the container images building/pulling process)

  • #​10031 823cba8 Thanks @​vicb! - wrangler and vite-plugin now depend upon the latest version of unenv-preset

  • #​10032 154acf7 Thanks @​dario-piotrowicz! - add support for containers in wrangler multiworker dev

    currently when running wrangler dev with different workers (meaning that the -c|--config flag is used multiple times) containers are not being included, meaning that trying to interact with them at runtime would not work and cause errors instead. The changes here address the above making wrangler correctly detect and wire up the containers.

  • #​9988 7fb0bfd Thanks @​penalosa! - Correctly label mtls remote bindings warning

  • Updated dependencies [823cba8, 19794bf, 059a39e]:

v4.25.1

Compare Source

Patch Changes

v4.25.0

Compare Source

Minor Changes
Patch Changes

v4.24.4

Compare Source

Patch Changes

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 handling

    currently container builds run during local development (via wrangler dev or startWorker) prevent the standard hotkeys not to be recognized (most noticeably ctrl+c, preventing developers from existing the process), the changes here ensure that hotkeys are instead correctly handled as expected

  • Updated dependencies []:

v4.24.2

Compare Source

Patch Changes

v4.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 Wrangler

    Configure 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 an event-subscriptions subcommand

Patch Changes
  • #​9729 1b3a2b7 Thanks @​404Wolf! - Set docker build context to the Dockerfile directory when image_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 experimental remoteBindings flag is properly handled in getPlatformProxy

    There are two issues related to how the experimental remoteBindings flag is handled in getPlatformProxy that are being fixed by this change:

    • the experimental_remote configuration flag set on service bindings is incorrectly always taken into account, even if remoteBindings is set to false
    • the 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 the remoteBindings 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 path

    This 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 hints

  • Updated 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 a launch.json file, running wrangler 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 (or vite 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

v4.22.0

Compare Source

Minor Changes
  • #​7871 f2a8d4a Thanks @​dario-piotrowicz! - add support for assets bindings to getPlatformProxy

    this change makes sure that that getPlatformProxy, when the input configuration
    file contains an assets field, correctly returns the appropriate asset binding proxy

    example:

    // wrangler.jsonc
    {
    	"name": "my-worker",
    	"assets": {
    		"directory": "./public/",
    		"binding": "ASSETS",
    	},
    }
    import { getPlatformProxy } from "wrangler";
    
    const { env, dispose } = await getPlatformProxy();
    
    const text = await (await env.ASSETS.fetch("http://0.0.0.0/file.txt")).text();
    console.log(text); // logs the content of file.txt
    
    await dispose();
Patch Changes

v4.21.2

Compare Source

Patch Changes

v4.21.1

Compare Source

Patch Changes

v4.21.0

Compare Source

Minor Changes
Patch Changes
  • #​9695 0e64c35 Thanks @​emily-shen! - Move hotkey registration later in dev start up

    This 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 Endpoints

    The 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! - Make wrangler container commands print open-beta status

v4.20.5

Compare Source

Patch Changes
  • #​9688 086e29d Thanks @​dario-piotrowicz! - add remote bindings support to getPlatformProxy

    Example:

    // wrangler.jsonc
    {
    	"name": "get-platform-proxy-test",
    	"services": [
    		{
    			"binding": "MY_WORKER",
    			"service": "my-worker",
    			"experimental_remote": true
    		}
    	]
    }
    // index.mjs
    import { getPlatformProxy } from "wrangler";
    
    const { env } = await getPlatformProxy({
    	experimental: {
    		remoteBindings: true,
    	},
    });
    
    // env.MY_WORKER.fetch() fetches from the remote my-worker service
  • #​9558 d5edf52 Thanks @​ichernetsky-cf! - wrangler containers apply uses observability configuration.

  • #​9678 24b2c66 Thanks @​dario-piotrowicz! - remove warnings during config validations on experimental_remote fields

    wrangler commands, run without the --x-remote-bindings flag, parsing config files containing experimental_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 dev

  • Updated dependencies [bfb791e, 5162c51]:

v4.20.4

Compare Source

Patch Changes

v4.20.3

Compare Source

Patch Changes

v4.20.2

Compare Source

Patch Changes

v4.20.1

Compare Source

Patch Changes

v4.20.0

Compare Source

Minor Changes
Patch Changes

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! - add experimentalMixedMode dev option to unstable_startWorker

    add an new experimentalMixedMode dev option to unstable_startWorker
    that allows developers to programmatically start a new mixed mode
    session using startWorker.

    Example usage:

    // index.mjs
    import { unstable_startWorker } from "wrangler";
    
    await unstable_startWorker({
    	dev: {
    		experimentalMixedMode: true,
    	},
    });
    // wrangler.jsonc
    {
    	"$schema": "node_modules/wrangler/config-schema.json",
    	"name": "programmatic-start-worker-example",
    	"main": "src/index.ts",
    	"compatibility_date": "2025-06-01",
    	"services": [
    		{ "binding": "REMOTE_WORKER", "service": "remote-worker", "remote": true }
    	]
    }
  • Updated dependencies [4ab5a40, 485cd08, e3b3ef5, 3261957]:

v4.19.1

Compare Source

Patch Changes

v4.19.0

Compare Source

Minor Changes
Patch Changes

v4.18.0

Compare Source

Minor Changes
Patch Changes
  • #​9308 d3a6eb3 Thanks @​dario-piotrowicz! - expose new utilities and types to aid consumers of the programmatic mixed-mode API

    Specifically the exports have been added:

    • Experimental_MixedModeSession: type representing a mixed-mode session
    • Experimental_ConfigBindingsOptions: type representing config-bindings
    • experimental_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 to startMixedModeSession)
  • #​9347 b8f058c Thanks @​penalosa! - Improve binding display on narrower terminals

  • Updated dependencies [d9d937a, e39a45f, fdae3f7]:

v4.17.0

Compare Source

Minor Changes
  • #​9321 6c03bde Thanks @​petebacondarwin! - Add support for FedRAMP High compliance region

    Now 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:

    • set "compliance_region": "fedramp_high" in a Wrangler configuration
    • set CLOUDFLARE_COMPLIANCE_REGION=fedramp_high environment variable when running Wrangler

    If both are provided and the values do not match then Wrangler will exit


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 is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor

github-actions bot commented Mar 13, 2025

Copy link

socket-security bot commented Mar 13, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​wrangler@​3.95.0 ⏵ 4.26.098 +110094 +196100

View full report

@renovate renovate bot force-pushed the renovate/wrangler-4.x branch from 1d240f4 to 4a18031 Compare March 15, 2025 10:55
@renovate renovate bot force-pushed the renovate/wrangler-4.x branch from 4a18031 to a796eee Compare April 12, 2025 15:44
@renovate renovate bot force-pushed the renovate/wrangler-4.x branch 3 times, most recently from 9e25154 to 2f2e1e7 Compare April 28, 2025 11:16
@renovate renovate bot force-pushed the renovate/wrangler-4.x branch 2 times, most recently from 8a07056 to c9958ce Compare May 28, 2025 14:00
@renovate renovate bot force-pushed the renovate/wrangler-4.x branch 5 times, most recently from 21b2224 to afe3b0b Compare June 18, 2025 12:16
@renovate renovate bot force-pushed the renovate/wrangler-4.x branch 5 times, most recently from b59fbcc to 4a6c911 Compare June 29, 2025 17:16
@renovate renovate bot force-pushed the renovate/wrangler-4.x branch 3 times, most recently from 28ebf37 to 21b8f02 Compare July 24, 2025 11:14
@renovate renovate bot force-pushed the renovate/wrangler-4.x branch from 21b8f02 to 79919fb Compare July 24, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants