Skip to content

Releases: cloudflare/workers-sdk

wrangler@4.28.1

07 Aug 10:17
d16de46
Compare
Choose a tag to compare

Patch Changes

  • #10130 773cca3 Thanks @dario-piotrowicz! - update maybeStartOrUpdateRemoteProxySession config argument (to allow callers to specify an environment)

    Before this change maybeStartOrUpdateRemoteProxySession could be called with either the path to a wrangler config file or the configuration of a worker. The former override however did not allow the caller to specify an environment, so the maybeStartOrUpdateRemoteProxySession API has been updated so that in the wrangler config case an object (with the path and a potential environment) needs to be passed instead.

    For example, before callers could invoke the function in the following way

    await maybeStartOrUpdateRemoteProxySession(configPath);

    note that there is no way to tell the function what environment to use when parsing the wrangle configuration.

    Now callers will instead call the function in the following way:

    await maybeStartOrUpdateRemoteProxySession({
    	path: configPath,
    	environment: targetEnvironment,
    });

    note that now a target environment can be specified.

  • #10130 773cca3 Thanks @dario-piotrowicz! - fix getPlatformProxy not taking into account the potentially specified environment for remote bindings

  • #10122 2e8eb24 Thanks @dario-piotrowicz! - fix startWorker not respecting auth options for remote bindings

    fix startWorker currently not taking into account the auth field
    that can be provided as part of the dev options when used in conjunction
    with remote bindings

    example:

    Given the following

    import { unstable_startWorker } from "wrangler";
    
    const worker = await unstable_startWorker({
    	entrypoint: "./worker.js",
    	bindings: {
    		AI: {
    			type: "ai",
    			experimental_remote: true,
    		},
    	},
    	dev: {
    		experimentalRemoteBindings: true,
    		auth: {
    			accountId: "<ACCOUNT_ID>",
    			apiToken: {
    				apiToken: "<API_TOKEN>",
    			},
    		},
    	},
    });
    
    await worker.ready;

    wrangler will now use the provided <ACCOUNT_ID> and <API_TOKEN> to integrate with
    the remote AI binding instead of requiring the user to authenticate.

  • #10209 93c4c26 Thanks @devin-ai-integration! - fix: strip ANSI escape codes from log files to improve readability and parsing

  • #9774 48853a6 Thanks @nikitassharma! - Validate container configuration against account limits in wrangler to give early feedback to the user

  • #10122 2e8eb24 Thanks @dario-piotrowicz! - fix incorrect TypeScript type for AI binding in the startWorker API

wrangler@3.114.13

07 Aug 17:06
951baa5
Compare
Choose a tag to compare

Patch Changes

  • #10015 b5d9bb0 Thanks @dario-piotrowicz! - fix wrangler dev logs being logged on the incorrect level in some cases

    currently the way wrangler dev prints logs is faulty, for example the following code

    console.error("this is an error");
    console.warn("this is a warning");
    console.debug("this is a debug");

    inside a worker would cause the following logs:

    ✘ [ERROR] this is an error
    
    ✘ [ERROR] this is a warning
    
    this is a debug
    

    (note that the warning is printed as an error and the debug log is printed even if by default it should not)

    the changes here make sure that the logs are instead logged to their correct level, so for the code about the following will be logged instead:

    ✘ [ERROR] this is an error
    
    ▲ [WARNING] this is a warning
    

    (running wrangler dev with the --log-level=debug flag will also cause the debug log to be included as well)

  • #10187 f480ec7 Thanks @workers-devprod! - Deleting when Pages project binds to worker requires confirmation

  • #10182 1f686ef Thanks @devin-ai-integration! - fix: report startup errors before workerd profiling

  • #10226 989e17e Thanks @petebacondarwin! - Enforce 64-character limit for Workflow binding names locally to match production validation

  • #10216 76d3002 Thanks @devin-ai-integration! - Add macOS version validation to prevent EPIPE errors on unsupported macOS versions (below 13.5). Miniflare and C3 fail hard while Wrangler shows warnings but continues execution.

  • #10261 8c38b65 Thanks @petebacondarwin! - fix: strip ANSI escape codes from log files to improve readability and parsing

  • #10171 0d73563 Thanks @devin-ai-integration! - Handle UTF BOM in config files - detect and remove UTF-8 BOMs, error on unsupported BOMs (UTF-16, UTF-32)

  • Updated dependencies [b5d9bb0, 76d3002]:

    • miniflare@3.20250718.1

miniflare@3.20250718.1

07 Aug 17:06
951baa5
Compare
Choose a tag to compare

Minor Changes

  • #10015 b5d9bb0 Thanks @dario-piotrowicz! - add structuredWorkerdLogs option

    add a new top-level option named structuredWorkerdLogs that makes workerd print to stdout structured logs (stringified jsons of the following shape: { timestamp: number, level: string, message: string }) instead of printing logs to stdout and stderr

Patch Changes

  • #10216 76d3002 Thanks @devin-ai-integration! - Add macOS version validation to prevent EPIPE errors on unsupported macOS versions (below 13.5). Miniflare and C3 fail hard while Wrangler shows warnings but continues execution.

devprod-status-bot@1.2.0

07 Aug 10:17
d16de46
Compare
Choose a tag to compare

Minor Changes

@cloudflare/vitest-pool-workers@0.8.61

07 Aug 10:17
d16de46
Compare
Choose a tag to compare

Patch Changes

@cloudflare/vite-plugin@1.11.2

07 Aug 10:17
d16de46
Compare
Choose a tag to compare

Patch Changes

wrangler@4.28.0

05 Aug 08:38
390b7fb
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • #10004 b4d1373 Thanks @dario-piotrowicz! - fix wrangler dev logs being logged on the incorrect level in some cases

    currently the way wrangler dev prints logs is faulty, for example the following code

    console.error("this is an error");
    console.warn("this is a warning");
    console.debug("this is a debug");

    inside a worker would cause the following logs:

    ✘ [ERROR] this is an error
    
    ✘ [ERROR] this is a warning
    
    this is a debug
    

    (note that the warning is printed as an error and the debug log is printed even if by default it should not)

    the changes here make sure that the logs are instead logged to their correct level, so for the code about the following will be logged instead:

    ✘ [ERROR] this is an error
    
    ▲ [WARNING] this is a warning
    

    (running wrangler dev with the --log-level=debug flag will also cause the debug log to be included as well)

  • #10099 360004d Thanks @emily-shen! - fix: move local dev container cleanup to process exit hook. This should ensure containers are cleaned up even when Wrangler is shut down programatically.

  • #10186 dae1377 Thanks @matthewdavidrodgers! - Deleting when Pages project binds to worker requires confirmation

  • #10169 1655bec Thanks @devin-ai-integration! - fix: report startup errors before workerd profiling

  • #10136 354a001 Thanks @nikitassharma! - Update wrangler containers images list to make fewer API calls to improve command runtime

  • #10157 5c3b83f Thanks @devin-ai-integration! - Enforce 64-character limit for Workflow binding names locally to match production validation

  • #10154 502a8e0 Thanks @devin-ai-integration! - Fix UTF BOM handling in config files - remove UTF-8 BOM and error on other BOMs

  • #10176 07c8611 Thanks @devin-ai-integration! - Add macOS version validation to prevent EPIPE errors on unsupported macOS versions (below 13.5). Miniflare and C3 fail hard while Wrangler shows warnings but continues execution.

  • Updated dependencies [6b9cd5b, 631f26d, d6ecd05, b4d1373, 8ba7736, 07c8611, 7e204a9, 3f83ac1]:

    • @cloudflare/unenv-preset@2.6.0
    • miniflare@4.20250803.0

miniflare@4.20250803.0

05 Aug 08:38
390b7fb
Compare
Choose a tag to compare

Minor Changes

  • #10004 b4d1373 Thanks @dario-piotrowicz! - add structuredWorkerdLogs option

    add a new top-level option named structuredWorkerdLogs that makes workerd print to stdout structured logs (stringified jsons of the following shape: { timestamp: number, level: string, message: string }) instead of printing logs to stdout and stderr

  • #9556 8ba7736 Thanks @edmundhung! - Added a serviceName option to unsafeDirectSockets

    This allows registering the current worker in the dev registry under its own name, but routing to a different service.

Patch Changes

  • #10148 631f26d Thanks @dependabot! - chore: update dependencies of "miniflare" package

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20250730.0 1.20250801.0
    @cloudflare/workers-types ^4.20250730.0 ^4.20250801.0
  • #10203 d6ecd05 Thanks @dependabot! - chore: update dependencies of "miniflare" package

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20250801.0 1.20250803.0
    @cloudflare/workers-types ^4.20250801.0 ^4.20250803.0
  • #10176 07c8611 Thanks @devin-ai-integration! - Add macOS version validation to prevent EPIPE errors on unsupported macOS versions (below 13.5). Miniflare and C3 fail hard while Wrangler shows warnings but continues execution.

create-cloudflare@2.50.8

05 Aug 08:38
390b7fb
Compare
Choose a tag to compare

Patch Changes

  • #10127 65f0ef2 Thanks @dependabot! - chore: update dependencies of "create-cloudflare" package

    The following dependency versions have been updated:

    Dependency From To
    create-vue 3.17.0 3.18.0
  • #10197 11225f9 Thanks @dependabot! - chore: update dependencies of "create-cloudflare" package

    The following dependency versions have been updated:

    Dependency From To
    create-astro 4.13.0 4.13.1
  • #10198 626b226 Thanks @dependabot! - chore: update dependencies of "create-cloudflare" package

    The following dependency versions have been updated:

    Dependency From To
    sv 0.8.20 0.9.0
  • #10199 53a685f Thanks @dependabot! - chore: update dependencies of "create-cloudflare" package

    The following dependency versions have been updated:

    Dependency From To
    @angular/create 20.1.3 20.1.4
  • #9956 b70a702 Thanks @dependabot! - chore: update dependencies of "create-cloudflare" package

    The following dependency versions have been updated:

    Dependency From To
    nuxi 3.25.1 3.27.0
  • #10189 69e2114 Thanks @fjararibet! - add .gitignore to hello-world-assets-only template

  • #10176 07c8611 Thanks @devin-ai-integration! - Add macOS version validation to prevent EPIPE errors on unsupported macOS versions (below 13.5). Miniflare and C3 fail hard while Wrangler shows warnings but continues execution.

  • #10192 f5854a9 Thanks @devin-ai-integration! - Preserve comments in wrangler.json files when C3 updates them during project generation. Previously, comments were stripped when updating configuration files from templates.

@cloudflare/vitest-pool-workers@0.8.60

05 Aug 08:38
390b7fb
Compare
Choose a tag to compare

Patch Changes