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/deploy-helpers 0.20.0: Unterstützung für assets.base_path

@cloudflare/deploy-helpers 0.20.0 unterstützt assets.base_path für Workers Assets, um ein Asset-Verzeichnis unter einem öffentlichen URL-Präfix auszuliefern.

Minor Changes

  • #15998 b75421f Thanks @dario-piotrowicz! - Add assets.base_path support to Workers Assets

    Serve an asset directory from a public URL prefix without changing its on-disk layout:

    {
      "assets": {
        "directory": "./public",
        "base_path": "/docs"
      }
    }
    

    Wrangler, preview, Miniflare, and generated build configuration preserve the explicitly selected value, while the Asset Worker normalizes it and strips the prefix only for asset lookup. Requests passed to a user Worker, request-facing headers, and redirects retain the public path. Relative pathname inputs are interpreted as root-relative prefixes, URL-shaped values are rejected, and omitting the option preserves existing root-path behavior.

    Authored _headers and _redirects rules continue to match full public paths. In particular, both the source and destination of an authored 200 asset rewrite must include the configured public prefix; Asset Worker-generated redirects are prefixed automatically.

Patch Changes …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/containers-shared 0.21.4: interne Abhängigkeiten aktualisiert

@cloudflare/containers-shared 0.21.4 aktualisiert lediglich interne Abhängigkeiten wie @cloudflare/config und @cloudflare/workers-utils.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/config 0.24.0: bindings.analytics() und assets.base_path

@cloudflare/config 0.24.0 führt bindings.analytics() als bevorzugten Namen für Analytics-SQL-Bindings ein, markiert bindings.analyticsSQL() als veraltet und unterstützt assets.base_path für Workers Assets.

Minor Changes

  • #16016 f025bbf Thanks @Ankcorn! - Add bindings.analytics() as the preferred name for Analytics SQL bindings and deprecate bindings.analyticsSQL().

  • #15998 b75421f Thanks @dario-piotrowicz! - Add assets.base_path support to Workers Assets

    Serve an asset directory from a public URL prefix without changing its on-disk layout:

    {
      "assets": {
        "directory": "./public",
        "base_path": "/docs"
      }
    }
    

    Wrangler, preview, Miniflare, and generated build configuration preserve the explicitly selected value, while the Asset Worker normalizes it and strips the prefix only for asset lookup. Requests passed to a user Worker, request-facing headers, and redirects retain the public path. Relative pathname inputs are interpreted as root-relative prefixes, URL-shaped values are rejected, and omitting the option preserves existing root-path behavior. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/codemods 0.4.1: Analytics-Bindings und Wrangler-Update

@cloudflare/codemods 0.4.1 berücksichtigt bindings.analytics() anstelle von analyticsSQL(), nutzt bei cf migrate das Standardverhalten der Typgenerierung und aktualisiert Wrangler-Abhängigkeiten auf eine von cf dev unterstützte Version.

Patch Changes

  • #16016 f025bbf Thanks @Ankcorn! - Add bindings.analytics() as the preferred name for Analytics SQL bindings and deprecate bindings.analyticsSQL().

  • #15991 b4f6054 Thanks @NuroDev! - Use the default type generation behavior in projects migrated by cf migrate.

    Wrangler projects without dev.generate_types: false no longer get a wrangler.config.ts solely for a redundant type setting. An explicit opt-out still emits types.generate: false, and other Wrangler tooling still produces a config when needed.

  • #15946 1d38b36 Thanks @NuroDev! - Upgrade Wrangler dependencies to a version supported by cf dev when Wrangler-to-cf migration generates wrangler.config.ts. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

miniflare 5.20261006.0-alpha: assets.base_path und Flagship-Flags

miniflare 5.20261006.0-alpha unterstützt assets.base_path für Workers Assets und ermöglicht in der Local Explorer die Verwaltung lokaler Flagship-Flags.

Minor Changes

  • #15998 b75421f Thanks @dario-piotrowicz! - Add assets.base_path support to Workers Assets

    Serve an asset directory from a public URL prefix without changing its on-disk layout:

    {
      "assets": {
        "directory": "./public",
        "base_path": "/docs"
      }
    }
    

    Wrangler, preview, Miniflare, and generated build configuration preserve the explicitly selected value, while the Asset Worker normalizes it and strips the prefix only for asset lookup. Requests passed to a user Worker, request-facing headers, and redirects retain the public path. Relative pathname inputs are interpreted as root-relative prefixes, URL-shaped values are rejected, and omitting the option preserves existing root-path behavior.

    Authored _headers and _redirects rules continue to match full public paths. In particular, both the source and destination of an authored 200 asset rewrite must include the configured public prefix; Asset Worker-generated redirects are prefixed automatically.

  • #15330 f8cdcb9 Thanks @akshitsinha! - Manage local Flagship flags in Local Explorer …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

wrangler 4.147.0: Jurisdiktion "us" für Container, LIVE INSTANCES

wrangler 4.147.0 erlaubt "us" als Jurisdiktion für Container-Anwendungen, und wrangler containers list zeigt in der Spalte LIVE INSTANCES nun die tatsächlich aktiven Instanzen an.

Minor Changes

  • #15928 7f57b1c Thanks @ichernetsky-cf! - Allow "us" as a jurisdiction for Container applications

    Container placement constraints now accept constraints.jurisdiction: "us" in Wrangler and typed Cloudflare configuration. This makes the US jurisdiction available alongside "eu" and "fedramp".

Patch Changes

  • #15974 7f700ef Thanks @martinezjandrew! - Fix wrangler containers list to report live instances

    The LIVE INSTANCES column now reports each application's active runtime instances instead of its configured instance count, matching the Cloudflare dashboard. JSON output continues to expose the configured count through the existing instances field.

  • #15980 90e6a1b Thanks @martinezjandrew! - Accept Durable Object application IDs in Containers commands …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

create-cloudflare 2.73.2: Unterstützung für SvelteKit 3

create-cloudflare 2.73.2 unterstützt SvelteKit-3-Projekte, indem es den dazu kompatiblen Cloudflare-Adapter nutzt und generierte SvelteKit-Typen beim Hinzufügen von Workers-Typen erhält.

Patch Changes

  • #16017 1bc7269 Thanks @jamesopstad! - Support SvelteKit 3 projects

    Create Svelte projects with the SvelteKit 3-compatible Cloudflare adapter and preserve SvelteKit's generated types when adding Workers types.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

workers-utils 0.46.0: Container-Jurisdiktion "us" erlaubt

@cloudflare/workers-utils 0.46.0 erlaubt constraints.jurisdiction: "us" für Container-Platzierungen neben "eu" und "fedramp".

Minor Changes

  • #15928 7f57b1c Thanks @ichernetsky-cf! - Allow "us" as a jurisdiction for Container applications

    Container placement constraints now accept constraints.jurisdiction: "us" in Wrangler and typed Cloudflare configuration. This makes the US jurisdiction available alongside "eu" and "fedramp".

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

workers-auth 0.12.0: Neue OAuth-Scopes für zone-observability

Neue cf-OAuth-Logins fordern zusätzlich die Scopes zone-observability.read und zone-observability.write an, bestehende Sitzungen müssen sich dafür erneut authentifizieren.

Minor Changes

  • #16009 f23dcb3 Thanks @NuroDev! - Allow cf to request the zone observability OAuth scopes

    New cf OAuth logins request zone-observability.read and zone-observability.write. Existing sessions must authenticate again to receive them.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

remote-bindings 0.0.43: interne Abhängigkeiten aktualisiert

@cloudflare/remote-bindings 0.0.43 aktualisiert lediglich interne Abhängigkeiten, darunter @cloudflare/workers-auth@0.12.0 und @cloudflare/workers-utils@0.46.0.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

deploy-helpers 0.19.2: interne Abhängigkeiten aktualisiert

@cloudflare/deploy-helpers 0.19.2 aktualisiert lediglich interne Abhängigkeiten, darunter @cloudflare/config@0.23.0 und @cloudflare/workers-utils@0.46.0.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

containers-shared 0.21.3: interne Abhängigkeiten aktualisiert

@cloudflare/containers-shared 0.21.3 aktualisiert lediglich interne Abhängigkeiten, darunter @cloudflare/config@0.23.0 und @cloudflare/workers-utils@0.46.0.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

config 0.23.0: Container-Jurisdiktion "us" ergänzt

Container-Platzierungsregeln akzeptieren in Wrangler und der typisierten Cloudflare-Konfiguration nun constraints.jurisdiction: "us" zusätzlich zu "eu" und "fedramp".

Minor Changes

  • #15928 7f57b1c Thanks @ichernetsky-cf! - Allow "us" as a jurisdiction for Container applications

    Container placement constraints now accept constraints.jurisdiction: "us" in Wrangler and typed Cloudflare configuration. This makes the US jurisdiction available alongside "eu" and "fedramp".

Originalquelle(öffnet in neuem Tab)Problem melden