Zum Inhalt springen

Workers SDK Updates & Release Notes

Einträge
243
Quellen
1
Zuletzt aktualisiert

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

Workers SDK von Cloudflare

@cloudflare/containers-shared@0.22.0

Minor Changes

  • #16262 fe8ce54 Thanks @jamesopstad! - Export Container planning helpers for native Cloudflare configuration

    Internal consumers can now create local-development and preview Container plans directly from parsed cloudflare.config.ts and Build Output configuration using createContainerDevPlanForCfConfig and createContainerPreviewPlanForCfConfig. The shared image handling also resolves Dockerfile paths consistently and avoids retagging an image to itself when a preview uses its existing reference.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/vite-plugin@2.0.0-beta.v.0

Major Changes

  • #16262 fe8ce54 Thanks @jamesopstad! - Load local Worker secrets with Vite-compatible file resolution

    The plugin now uses Vite's resolved mode and envDir when locating files that provide declared Worker secrets.

    CLOUDFLARE_ENV is no longer used to select mode-specific .dev.vars and .env files. Projects that relied on it should use Vite's --mode option instead. For preview, set the mode during vite build; vite preview uses the mode recorded in the Build Output.

    The deprecated WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_<BINDING_NAME> environment variable is no longer supported. Rename Hyperdrive overrides to CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_<BINDING_NAME>.

  • #16262 fe8ce54 Thanks @jamesopstad! - Remove legacy local testing endpoint rewrites

    The plugin no longer rewrites legacy local testing endpoints to their canonical /cdn-cgi/local/* and /__cf_local/* equivalents. Local-development scripts, tests, or integrations that call the legacy endpoints directly must update them as follows: …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/vitest-plugin@1.4.3

Patch Changes

  • #16248 ad01099 Thanks @mattjohnsonpint! - Fix V8 coverage failing with Vitest 5.0.4

    Tests using V8 coverage with Vitest 5.0.4 no longer fail with an assertion error during teardown.

  • #16163 5f12934 Thanks @edmundhung! - Fix Workers tests failing with Vitest's filesystem module cache

    This supports Vitest 4.1's test.experimental.fsModuleCache and Vitest 5's test.fsModuleCache.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

wrangler 4.151.0: Source Maps standardmäßig, lokale D1-RPC-Unterstützung

wrangler build --experimental-cf-build-output enthält Source Maps standardmäßig, und lokale D1-Abfragen werden über das experimentelle d1_binding_jsrpc-Kompatibilitätsflag unterstützt.

Minor Changes

  • #16245 d6b1c82 Thanks @WalshyDev! - Include source maps by default in wrangler build --experimental-cf-build-output

    Build Output now matches wrangler deploy and wrangler versions upload, which upload source maps by default, so Workers built for tools like cf get stack traces that point at the original source. Source maps that can't be resolved are skipped rather than failing the build. Set upload_source_maps = false to opt out.

Patch Changes

  • #16220 97b2fb1 Thanks @FlorentCollin! - Support local D1 queries through the experimental d1_binding_jsrpc compatibility flag

    Local D1 bindings now implement the RPC query backend used by D1Database.query() and prepared-statement methods when the flag is enabled. Queries reuse local SQLite execution, including transactional batches, execution metadata, and session bookmarks, while bindings without the flag continue to use HTTP. Update the bundled workerd runtime to 1.20261012.1 and align the default compatibility date with that release. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/vite-plugin 1.64.0: Source Maps für Worker standardmäßig

Worker-Builds erzeugen jetzt standardmäßig Source Maps, sofern Vite's build.sourcemap oder upload_source_maps nicht deaktiviert sind.

Minor Changes

  • #16245 d6b1c82 Thanks @WalshyDev! - Generate source maps for Worker environments by default

    Worker builds now emit source maps unless Vite's build.sourcemap or the Worker's upload_source_maps is set, so deployed Workers get stack traces that point at the original source. The source maps are written next to the Worker bundle and included in Build Output; the client environment is unchanged, so no source maps are added to public assets. Set build.sourcemap: false for the Worker environment, or upload_source_maps: false in the Worker config, to opt out.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/config 0.26.0: Access-Konfiguration für lokale Entwicklung

Worker können jetzt eine Cloudflare Access Audience und Mock-Identität unter access.dev in cloudflare.config.ts konfigurieren; dies ersetzt die bisherige Option in Miniflare v5.

Minor Changes

  • #16239 f360829 Thanks @jamesopstad! - Support Cloudflare Access local development configuration in cloudflare.config.ts

    Workers can now configure an Access audience and mock identity under access.dev, and cf migrate preserves this setting when converting a Wrangler configuration. Miniflare v5 now reads the setting from config.access.dev, aligning its Worker configuration with @cloudflare/config; the Miniflare v4 compatibility adapter continues to accept its existing access option.

    export default defineConfig({
      worker: {
        name: "api",
        access: {
          dev: {
            aud: "my-access-audience",
            identity: { email: "developer@example.com" },
          },
        },
      },
    });
    

    This is a breaking change for direct Miniflare v5 users: move workers[].dev.access to workers[].config.access.dev. Miniflare v5 is currently in beta.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/codemods 0.5.0: Access-Konfiguration für lokale Entwicklung

cf migrate unterstützt jetzt die Umwandlung von Wrangler-Konfigurationen mit Cloudflare Access-Einstellungen für die lokale Entwicklung nach cloudflare.config.ts.

Minor Changes

  • #16239 f360829 Thanks @jamesopstad! - Support Cloudflare Access local development configuration in cloudflare.config.ts

    Workers can now configure an Access audience and mock identity under access.dev, and cf migrate preserves this setting when converting a Wrangler configuration. Miniflare v5 now reads the setting from config.access.dev, aligning its Worker configuration with @cloudflare/config; the Miniflare v4 compatibility adapter continues to accept its existing access option.

    export default defineConfig({
      worker: {
        name: "api",
        access: {
          dev: {
            aud: "my-access-audience",
            identity: { email: "developer@example.com" },
          },
        },
      },
    });
    

    This is a breaking change for direct Miniflare v5 users: move workers[].dev.access to workers[].config.access.dev. Miniflare v5 is currently in beta.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

Miniflare 5 Beta: Support für Cloudflare Access und D1

Miniflare v5 unterstützt nun Cloudflare Access-Konfiguration in cloudflare.config.ts und lokale D1-Abfragen über das experimentelle d1_binding_jsrpc-Kompatibilitätsflag; für direkte Nutzer ist dies eine Änderung, da workers[].dev.access zu workers[].config.access.dev verschoben wird.

Minor Changes

  • #16239 f360829 Thanks @jamesopstad! - Support Cloudflare Access local development configuration in cloudflare.config.ts

    Workers can now configure an Access audience and mock identity under access.dev, and cf migrate preserves this setting when converting a Wrangler configuration. Miniflare v5 now reads the setting from config.access.dev, aligning its Worker configuration with @cloudflare/config; the Miniflare v4 compatibility adapter continues to accept its existing access option.

    export default defineConfig({
      worker: {
        name: "api",
        access: {
          dev: {
            aud: "my-access-audience",
            identity: { email: "developer@example.com" },
          },
        },
      },
    });
    

    This is a breaking change for direct Miniflare v5 users: move workers[].dev.access to workers[].config.access.dev. Miniflare v5 is currently in beta.

  • #16220 97b2fb1 Thanks @FlorentCollin! - Support local D1 queries through the experimental d1_binding_jsrpc compatibility flag …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

Wrangler 4.150.0: Source Maps standardmäßig

Wrangler lädt nun standardmäßig Source Maps bei Deploy und Preview hoch, wenn upload_source_maps nicht gesetzt ist; nicht auflösbare Maps werden übersprungen und es gibt weiterhin strenge oder deaktivierte Optionen.

Minor Changes

  • #16231 091e5ec Thanks @WalshyDev! - Upload source maps by default for wrangler deploy, wrangler versions upload and wrangler preview

    When upload_source_maps isn't set in config or via --upload-source-maps, Wrangler now generates and uploads source maps so stack traces in logs and wrangler tail point at your original source without extra setup. In this default mode, source maps that can't be resolved (for example inline data: maps or missing .map files from a custom build) are skipped rather than failing the upload. Setting upload_source_maps = true keeps the existing strict behaviour, and upload_source_maps = false (or --no-upload-source-maps for deploy and versions upload) opts out.

    wrangler build --experimental-cf-build-output is unchanged and still only includes source maps when upload_source_maps = true.

  • #16128 daae435 Thanks @redsteadz! - Stop wrangler deploy, wrangler versions upload and wrangler preview in projects that build for the Cloudflare CLI (cf) …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

CLI-spezifische Namen und Befehle

Gemeinsame Hilfsfunktionen zeigen nun Befehle und Konfigurationsdateinamen passend zur aufrufenden CLI an, statt immer Wrangler-Begriffe zu verwenden.

Patch Changes

  • #16038 dc3e4df Thanks @dario-piotrowicz! - Use consumer-specific CLI names and commands in shared user-facing messages

    Shared deployment, container, configuration, and authentication helpers can now render commands and configuration filenames for their calling CLI while preserving Wrangler-compatible defaults. This prevents cf workflows from presenting Wrangler-branded guidance when an equivalent cf command exists.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

Docker-Fehler bei Builds unterdrückt

Fehlermeldungen des Docker-CLI werden bei erfolgreichen Builds nicht mehr ausgegeben, wenn Wrangler optionale Container-Suchen durchführt.

Patch Changes

  • #16025 61e07fd Thanks @kohjunhao! - Fix optional Docker lookups printing Docker CLI errors during successful builds

    cf build looks for Container images left behind by earlier builds so it can remove them. This lookup is best effort, but when Docker could not be reached it still printed errors such as Cannot connect to the Docker daemon, even when the build succeeded and no image needed Docker. Docker commands whose output Wrangler reads no longer forward the Docker CLI's error output to the terminal. If one of these commands fails in a way that stops the command, the error message still includes the Docker CLI's output.

  • #16038 dc3e4df Thanks @dario-piotrowicz! - Use consumer-specific CLI names and commands in shared user-facing messages

    Shared deployment, container, configuration, and authentication helpers can now render commands and configuration filenames for their calling CLI while preserving Wrangler-compatible defaults. This prevents cf workflows from presenting Wrangler-branded guidance when an equivalent cf command exists. …

Originalquelle(öffnet in neuem Tab)Problem melden