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/deploy-helpers@0.24.3

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.

  • Updated dependencies [b4653b4, 15fbaed, d8899ac, 8b64bec]:

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/cli-shared-helpers@0.3.0

Minor Changes

  • #16367 b4653b4 Thanks @MattieTK! - Support writing .assetsignore files that keep local secrets and Pages-only files out of uploaded static assets

    maybeAppendWranglerToGitIgnoreLikeFile now takes an options object. additionalEntries appends further entries after the Wrangler ones, skipping any already in the file or already queued. requireEnvWildcard makes the helper add .env* unless the file already has it, so that a narrower existing entry such as .env does not leave .env.production or .env.local to be uploaded. PROJECT_ROOT_ASSETS_IGNORE_ENTRIES lists the entries to add when a project root is used as the static assets directory.

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/autoconfig@0.8.3

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.

    In that case autoconfig now stops with an error explaining that Pages Functions cannot be migrated automatically yet. For Pages Functions it suggests moving the static files into a subdirectory and deploying with wrangler pages deploy, or migrating the Functions to a Worker; for a functions directory that is not Pages Functions, it suggests moving the static files into a subdirectory or adding a configuration file. Projects whose static files are already in a subdirectory, projects detected as Pages or with a detected framework, and interactive runs where the user answers the prompt are unaffected. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

miniflare@5.20261023.3-beta

Patch Changes

  • #16327 15fbaed Thanks @dexvdev! - Keep cross-process bindings working after a workerd crash restart

    Bindings to Workers running in another dev session are rerouted through the dev registry proxy. That reroute used to rewrite the stored worker options in place, so when Miniflare restarted workerd after a crash and assembled the config again from the same options, it rerouted the proxy binding through itself. Every call over a cross-process service binding, Durable Object binding or tail consumer then failed with Worker "dev-registry-proxy" not found until the options were next updated. The reroute now works on copies of the options, so a restarted runtime routes those bindings to the other dev session as before.

  • #16426 d8899ac Thanks @pmiguel! - Fix signature verification for signed Accept-Encoding headers on the experimental local R2 S3 endpoint …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

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

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.

  • Updated dependencies [15fbaed, d8899ac]:

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/vite-plugin@1.66.0

Minor Changes

  • #16539 046db08 Thanks @petebacondarwin! - Update the development registry to use the canonical Cloudflare path

    Upgrade Miniflare to 5.20261023.1-beta and Wrangler to 4.154.0. Vite plugin v1 now uses CLOUDFLARE_DEV_REGISTRY_PATH or <Cloudflare config directory>/dev-registry/v5 for Worker discovery. MINIFLARE_REGISTRY_PATH is no longer read. When mixing Vite and Wrangler development sessions, set the same CLOUDFLARE_DEV_REGISTRY_PATH for both because Wrangler retains its legacy default.

  • #16407 9ec1101 Thanks @petebacondarwin! - Support remote Hyperdrive bindings in Vite plugin v1 development and preview

    Set remote: true on a Hyperdrive binding in wrangler.jsonc to connect to its deployed configuration without a local database connection string. The retained remote proxy exposes the binding's connection string and socket streams, and remote session cleanup preserves startup errors and shares one disposal attempt.

Patch Changes …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/config@0.29.0

Minor Changes

  • #16536 a95d647 Thanks @WalshyDev! - Support remote Analytics Engine bindings in local development

    Setting remote: true on an Analytics Engine dataset now sends writeDataPoint() calls from wrangler dev and the Vite plugin to the real dataset. Without it, writes are still dropped locally.

    {
      "analytics_engine_datasets": [
        {
          "binding": "EVENTS",
          "dataset": "my-dataset",
          "remote": true
        }
      ]
    }
    

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/autoconfig@0.8.2

Patch Changes

  • #16546 dd31809 Thanks @edmundhung! - Include the types generated by cf workers types in tsconfig.json when configuring for cf

    cf workers types writes the Worker's types to .cloudflare/types. Patterns in the include array of tsconfig.json, such as **/*, skip folders whose names start with a dot, so type checking couldn't find Env after autoconfig. Autoconfig now adds .cloudflare/types to that include array for cf projects with a Worker, as cf init does for new projects. When tsconfig.json has no include array, autoconfig asks you to add the entry yourself.

  • Updated dependencies [a95d647]:

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

wrangler@4.155.0

Minor Changes

  • #16536 a95d647 Thanks @WalshyDev! - Support remote Analytics Engine bindings in local development

    Setting remote: true on an Analytics Engine dataset now sends writeDataPoint() calls from wrangler dev and the Vite plugin to the real dataset. Without it, writes are still dropped locally.

    {
      "analytics_engine_datasets": [
        {
          "binding": "EVENTS",
          "dataset": "my-dataset",
          "remote": true
        }
      ]
    }
    

Patch Changes

  • #16526 dba0e81 Thanks @petebacondarwin! - Render terminal control characters as visible text in tail output

    Pretty tail and remote-preview output now escape control characters in log strings, exceptions and event metadata. Unicode, tabs and multiline logs remain readable, and JSON output keeps the original structured values.

  • #16489 fc57bc0 Thanks @akshitsinha! - Keep Flagship flag metadata when updating flags …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/workers-utils@0.50.0

Minor Changes

  • #16536 a95d647 Thanks @WalshyDev! - Support remote Analytics Engine bindings in local development

    Setting remote: true on an Analytics Engine dataset now sends writeDataPoint() calls from wrangler dev and the Vite plugin to the real dataset. Without it, writes are still dropped locally.

    {
      "analytics_engine_datasets": [
        {
          "binding": "EVENTS",
          "dataset": "my-dataset",
          "remote": true
        }
      ]
    }
    

Originalquelle(öffnet in neuem Tab)Problem melden