Zum Inhalt springen

Workers SDK Updates & Release Notes

Einträge
242
Quellen
1
Zuletzt aktualisiert

Folge Workers SDK, um die Release Notes in deinen Feed zu holen.

Workers SDK von Cloudflare

@cloudflare/autoconfig@0.15.0

Minor Changes

  • #17246 d28fede Thanks @edmundhung! - Set up Hono projects for cf

    Previously, autoconfig refused every Hono project on cf. It now sets them up to build with Vite and the Cloudflare plugin, as in Hono's Workers + Vite starter: it adds Vite when the project doesn't use it, replaces Hono's own Vite dev server and build plugins, and uses the app's entry file as the Worker entry point. An entry file that doesn't export the app, such as one that starts a Node.js server, and HonoX projects are refused with a message. The Wrangler target is unchanged.

  • #17280 0fc70f2 Thanks @edmundhung! - Build Hugo sites on cf

    cf now recognises Hugo sites, runs hugo, and deploys the folder it builds: public, or the publishDir that Hugo's config sets. Before, cf deployed whatever was already in public without building the site. The deploy script spells out both steps, hugo && cf deploy public, so you can see and change them. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

miniflare@5.20261129.0-beta

Minor Changes

  • #16678 7d57524 Thanks @mglewis! - Add local development support for /cdn-cgi/image/ URL transformations

    When images.url_transformations (or images.urlTransformations in cloudflare.config.ts) is enabled, Miniflare now handles /cdn-cgi/image/<options>/<source> requests locally before they reach your Worker. Requests return a 404 when URL transformations aren't enabled for the Worker, and a 403 when the source image isn't allowed by allowed_origins. Transforms use the same low-fidelity Sharp-backed mock as cf.image fetches, so only resize, rotate, format conversion and a small set of options are applied.

    This is a change in behaviour: previously /cdn-cgi/image/ requests were passed through to the Worker during local development.

    Requests made through SELF in @cloudflare/vitest-plugin bypass Miniflare's routing and are not intercepted.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/vite-plugin@2.0.0-rc.8

Minor Changes

  • #16678 7d57524 Thanks @mglewis! - Add local development support for /cdn-cgi/image/ URL transformations

    When images.url_transformations (or images.urlTransformations in cloudflare.config.ts) is enabled, Miniflare now handles /cdn-cgi/image/<options>/<source> requests locally before they reach your Worker. Requests return a 404 when URL transformations aren't enabled for the Worker, and a 403 when the source image isn't allowed by allowed_origins. Transforms use the same low-fidelity Sharp-backed mock as cf.image fetches, so only resize, rotate, format conversion and a small set of options are applied.

    This is a change in behaviour: previously /cdn-cgi/image/ requests were passed through to the Worker during local development.

    Requests made through SELF in @cloudflare/vitest-plugin bypass Miniflare's routing and are not intercepted.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/config@1.0.0-rc.6

Patch Changes

  • #17286 97bb683 Thanks @jamesopstad! - Report invalid async config factories passed to defineConfig, defineWorker, and defineContainer as type errors

    Previously, async factories and factories returning a promise type-checked without errors even when their result was not a valid configuration, such as a Worker without compatibilityDate. Factories returning a value that shares no properties with the expected type, such as observability: { logs: true }, were also accepted. Both are now type errors.

  • #17284 5b6e6bf Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-29

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #16678 7d57524 Thanks @mglewis! - Clarify the images.url_transformations.allowed_origins documentation …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/build-output-utils@1.0.0-rc.7

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

wrangler@4.169.1

Patch Changes

  • #17164 7072797 Thanks @petebacondarwin! - Create missing project files and install their tooling when autoconfig generates cloudflare.config.ts.

    Projects get a local manifest and TypeScript config where needed, along with default cf dev and cf build scripts when those scripts are missing. Interactive setup asks before creating these files; non-interactive runs, such as CI, accept the additions without prompting. Existing scripts, compiler settings, and the project's choice of build tool are preserved, including Vite runners declared at the workspace root. New manifests set "type": "module" so Node loads cloudflare.config.ts without a module-type warning. Existing manifests keep their module type. Autoconfig reports when an explicit CommonJS package setting prevents it from writing a usable cloudflare.config.ts.

    For static sites that serve the project root, autoconfig adds node_modules, .cloudflare, and the new configuration and package-manager files to .assetsignore. Wrangler's asset watcher, local asset serving, and build output skip directories according to those rules, which you can edit to include paths you want to serve. Local dev still follows directory symlinks, but does not revisit ancestor directories. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/workers-utils@0.59.0

Minor Changes

  • #17164 7072797 Thanks @petebacondarwin! - Create missing project files and install their tooling when autoconfig generates cloudflare.config.ts.

    Projects get a local manifest and TypeScript config where needed, along with default cf dev and cf build scripts when those scripts are missing. Interactive setup asks before creating these files; non-interactive runs, such as CI, accept the additions without prompting. Existing scripts, compiler settings, and the project's choice of build tool are preserved, including Vite runners declared at the workspace root. New manifests set "type": "module" so Node loads cloudflare.config.ts without a module-type warning. Existing manifests keep their module type. Autoconfig reports when an explicit CommonJS package setting prevents it from writing a usable cloudflare.config.ts.

    For static sites that serve the project root, autoconfig adds node_modules, .cloudflare, and the new configuration and package-manager files to .assetsignore. Wrangler's asset watcher, local asset serving, and build output skip directories according to those rules, which you can edit to include paths you want to serve. Local dev still follows directory symlinks, but does not revisit ancestor directories. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/deploy-helpers@0.32.0

Minor Changes

  • #17230 12e6b5a Thanks @petebacondarwin! - Require explicit approval before replacing an active Worker traffic split when deploy consumers opt in

    A declined replacement stops before queue provisioning or upload and returns a distinct result. Deploy also rechecks the split immediately before changing traffic. Wrangler's default behavior is unchanged.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

wrangler@4.156.0

Minor Changes

  • #16532 25802bc Thanks @simonha9! - Allow the experimental wrangler d1 insights command to run across every D1 database in the account

    The database name is now optional. With no name, the command returns the top queries across every D1 database in the account, and each result gains a databaseId field.

Patch Changes

  • #16369 ec0bea4 Thanks @MattieTK! - Stop autoconfig in non-interactive runs when a project root holds both static files and a Pages functions directory

    When a project without a detected framework has a functions directory, autoconfig asks whether it is a Cloudflare Pages project. Non-interactive runs (CI and coding agents) assume it is not and continue as a static site. When the static files are in the project root, that deploys the root as static assets, and the Pages Functions (the project's API routes) are not deployed. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

create-cloudflare@2.74.5

Patch Changes

  • #16583 ff162ac Thanks @taylorlee! - Add a .gitignore to the hello-world-workflows template

    The Workflow template didn't include a .gitignore, unlike the other Hello World templates. That meant new projects could end up with node_modules and other generated files tracked by git. The template now ships the same .gitignore as the other Hello World templates.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/workers-utils@0.50.1

Patch Changes

  • #16013 8b64bec Thanks @swalker326! - Fix Durable Object self-references in tests and container validation

    Durable Object bindings that explicitly name the Worker itself now resolve to the test runner in @cloudflare/vitest-plugin, for both cloudflare.config.ts and Wrangler configuration files. Named Wrangler environments use their effective Worker name, keeping bindings to the base Worker external. Container validation also accepts these self-references, using the effective deployment name to distinguish local and external bindings.

    Explicit binding targets remain intact during configuration conversion, so deploying with --name or a CI name override preserves the intended Durable Object target.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/vitest-plugin@1.4.11

Patch Changes

  • #15565 142230d Thanks @luccamordente! - Flush console.log() calls made from another I/O context without waiting for the runner's next message

    Vitest awaits every RPC call it made before it reports a test file as finished. A console.log() from another I/O context (a handler reached through SELF, a queue consumer, a waitUntil() callback) is buffered and sent with the runner's next message, so a log with nothing from the runner following it — the last batch of a queue consumed as the file ends, for example — left the run waiting on itself: the file's tests passed and vitest never finished. The buffer is now flushed from the runner's context as soon as a log is buffered.

  • #16013 8b64bec Thanks @swalker326! - Fix Durable Object self-references in tests and container validation …

Originalquelle(öffnet in neuem Tab)Problem melden