Zum Inhalt springen

Cloudflare Release Notes

Einträge
2.278
Quellen
14
Zuletzt aktualisiert

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

Storage von Cloudflare

By default, the runtime retries a call up to four times, and starts no retry more than 10 seconds after the initial call starts. It does not retry errors thrown by your Durable Object code, or errors with .overloaded set to true.

If the connection drops and the runtime cannot tell whether the Durable Object received the call, it still retries, but the Durable Object rejects the retry if the first attempt arrived. A method never runs twice because of a retry, unless you mark it with retryable() from cloudflare:durable-objects:

src/index.jsjs

import { DurableObject } from "cloudflare:workers";
import { retryable } from "cloudflare:durable-objects";

export class Cart extends DurableObject {
	static {
		retryable(this.prototype.setQuantity);
	}
	// Idempotent: a second run sets the same quantity.
	async setQuantity(itemId, quantity) {
		await this.ctx.storage.put(itemId, quantity);
	}

	// Not retryable: a second run would add another item.
	async addOne(itemId) {
		const quantity = (await this.ctx.storage.get(itemId)) ?? 0;
		await this.ctx.storage.put(itemId, quantity + 1);
	}
}

src/index.tsts

import { DurableObject } from "cloudflare:workers";
import { retryable } from "cloudflare:durable-objects";

export class Cart extends DurableObject {
	static {
		retryable(this.prototype.setQuantity);
	}
	// Idempotent: a second run sets the same quantity.
	async setQuantity(itemId: string, quantity: number): Promise<void> {
		await this.ctx.storage.put(itemId, quantity);
	}

	// Not retryable: a second run would add another item.
	async addOne(itemId: string): Promise<void> {
		const quantity = (await this.ctx.storage.get<number>(itemId)) ?? 0; …

Originalquelle(öffnet in neuem Tab)Problem melden

Core Platform von Cloudflare

Cloudflare Fundamentals - Recover access to your User Profile after losing your 2FA device.

If you lose your two-factor authentication (2FA) device and backup codes, you can now recover your Cloudflare user profile without contacting Support. Recovery requires an email verification code, the charge amount in USD and charge date from your most recent invoice, and the payment details on file(card or PayPal).

What's new

  • Recovery center: The Recovery center ↗︎ brings all user profile recovery options together in one place. Get help if you forget your password, lose your 2FA device, lose access to your sign-in email, or forget which email you use to sign in.
  • Billing verification: You confirm ownership of your email address with a one-time code. You then enter the charge amount(USD) and charge date from your most recent invoice, along with the payment details on file(card or PayPal). For card payments, provide the last four digits and expiration date.
  • 24-hour cooling-off period: After verification, there is a 24-hour wait before Cloudflare removes 2FA from your profile. Cloudflare will email you a cancellation link in case you did not request recovery.

To start recovery, select Trouble Signing In on the Cloudflare dashboard login page or go directly to the Recovery center ↗︎. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

K2 - Lower latency and higher throughput for K2 Consume

Consume requests that return records now have 41% to 49% lower latency across percentiles, with median latency down from 1.19 seconds to 0.63 seconds. Subscriptions catching up on a backlog see 71% lower median latency and consume about 170% more batches per hour.

Each Consume first finds where in the stream its batch starts, then reads the records. We optimized this seek phase, so K2 starts reading records sooner.

p95 latency of K2 Consume requests that return records, dropping by about half after the change

The following table shows the latency of Consume requests that return records:

Percentile

Before

After

Change

Median

1.19 s

0.63 s

47% lower

p90

2.41 s

1.28 s

47% lower

p95

2.73 s

1.39 s

49% lower

p99

3.43 s

2.01 s

41% lower

The following table shows the latency of all Consume requests, including polls that return no new records:

Percentile

Before

After

Change

p95

1.03 s

0.85 s

18% lower

p99

2.26 s

1.31 s

42% lower

Subscriptions that are far behind the newest records see the largest reduction. Their median Consume latency dropped from 2.0 seconds to 0.6 seconds, so they catch up on a backlog sooner.

You do not need to change anything to get these improvements. They apply to every subscription and to the existing Consume API.

Originalquelle(öffnet in neuem Tab)Problem melden

Storage von Cloudflare

Consume requests that return records now have 41% to 49% lower latency across percentiles, with median latency down from 1.19 seconds to 0.63 seconds. Subscriptions catching up on a backlog see 71% lower median latency and consume about 170% more batches per hour.

Each Consume first finds where in the stream its batch starts, then reads the records. We optimized this seek phase, so K2 starts reading records sooner.

p95 latency of K2 Consume requests that return records, dropping by about half after the change

The following table shows the latency of Consume requests that return records:

Percentile Before After Change

Originalquelle(öffnet in neuem Tab)Problem melden

Storage von Cloudflare

Subscriptions that are far behind the newest records see the largest reduction. Their median Consume latency dropped from 2.0 seconds to 0.6 seconds, so they catch up on a backlog sooner.

You do not need to change anything to get these improvements. They apply to every subscription and to the existing Consume API.

Originalquelle(öffnet in neuem Tab)Problem melden

Storage von Cloudflare

Basin SQL JSON functions now support documents up to 16 MiB

Basin SQL Basin

Basin SQL JSON functions now accept JSON documents up to 16 MiB (16,777,216 bytes), increased from the previous 2,000-byte limit.

The higher limit lets you query full application events, telemetry records, and logs stored as JSON strings in Apache Iceberg tables without preprocessing or splitting fields. It applies across JSON scalar functions, including json_get, json_get_str, json_get_int, json_contains, and json_length.

For the full list of JSON functions and runtime constraints, refer to JSON functions and Limitations and best practices.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Basin SQL, Basin - Basin SQL JSON functions now support documents up to 16 MiB

Basin SQL JSON functions now accept JSON documents up to 16 MiB (16,777,216 bytes), increased from the previous 2,000-byte limit.

The higher limit lets you query full application events, telemetry records, and logs stored as JSON strings in Apache Iceberg tables without preprocessing or splitting fields. It applies across JSON scalar functions, including json_get, json_get_str, json_get_int, json_contains, and json_length.

For the full list of JSON functions and runtime constraints, refer to JSON functions and Limitations and best practices.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/vite-plugin@1.71.0

Minor Changes

  • 86813c9 Thanks @danlapid! - Emit Worker source maps by default only when observability is enabled

    Source maps are only used to show readable stack traces, so the plugin now generates Worker source maps by default only when the Worker's config enables observability (logs, traces or Issues). Vite's build.sourcemap or the Worker's upload_source_maps still override the default, so set either to true to always emit source maps, for example to get source-mapped stack traces in wrangler tail or Tail Workers without enabling observability.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Basin Catalog, Basin - Basin Catalog now supports object-level role-based access control

Basin Catalog now supports object-level role-based access control (RBAC). You can scope account member policies and Account API tokens to specific catalogs, namespaces, tables, and views, instead of every catalog in your account.

Previously, Basin Catalog permissions applied to all catalogs in an account. Object-level access lets you follow the principle of least privilege. For example, you can give an analytics team read access to one namespace, and give an ingestion pipeline write access to only the tables it updates.

Basin Catalog object picker in a permission policy, filtered to show the tables in a catalog

The update includes:

  • New roles — Assign Basin Catalog Object Reader or Basin Catalog Object Editor to account members. Account API tokens use the Basin Catalog Object permission with Read or Edit access.
  • New scopes — Select Individual Basin Catalog objects as the scope of a member policy, or Specified Basin Catalog Objects as the scope of an Account API token.

Object-level grants authorize catalog metadata operations only. To read or write table data, the member or token also needs R2 storage permissions on the bucket that stores the catalog. …

Originalquelle(öffnet in neuem Tab)Problem melden

Storage von Cloudflare

Basin Catalog now supports object-level role-based access control

Basin Catalog Basin

Basin Catalog now supports object-level role-based access control (RBAC). You can scope account member policies and Account API tokens to specific catalogs, namespaces, tables, and views, instead of every catalog in your account.

Previously, Basin Catalog permissions applied to all catalogs in an account. Object-level access lets you follow the principle of least privilege. For example, you can give an analytics team read access to one namespace, and give an ingestion pipeline write access to only the tables it updates.

Basin Catalog object picker in a permission policy, filtered to show the tables in a catalog

The update includes:

  • New roles — Assign Basin Catalog Object Reader or Basin Catalog Object Editor to account members. Account API tokens use the Basin Catalog Object permission with Read or Edit access.
  • New scopes — Select Individual Basin Catalog objects as the scope of a member policy, or Specified Basin Catalog Objects as the scope of an Account API token. …

Originalquelle(öffnet in neuem Tab)Problem melden

Cloudflare One von Cloudflare

Cloudflare Tunnel, Cloudflare Tunnel for SASE - Disconnect Cloudflare Tunnel replicas from the dashboard

You can now disconnect Cloudflare Tunnel replicas from the Cloudflare dashboard. Before, this required the API.

On a tunnel's Overview tab, the Replicas section has two new actions:

  • Disconnect all disconnects every cloudflared replica of the tunnel.
  • The disconnect button in a replica's row disconnects only that replica.

Rotating a tunnel token stops cloudflared from opening new connections with the old token, but replicas that are already connected stay active. If your token is compromised, select Also disconnect existing replicas when you rotate the token. Cloudflare rotates the token first and then disconnects every replica, so they cannot reconnect with the old token.

The Rotate Tunnel Token dialog with the Also disconnect existing replicas option

For more information, refer to Rotate a compromised token and Disconnect replicas.

Originalquelle(öffnet in neuem Tab)Problem melden

Core Platform von Cloudflare

Cloudflare Tunnel, Cloudflare Tunnel for SASE - Disconnect Cloudflare Tunnel replicas from the dashboard

You can now disconnect Cloudflare Tunnel replicas from the Cloudflare dashboard. Before, this required the API.

On a tunnel's Overview tab, the Replicas section has two new actions:

  • Disconnect all disconnects every cloudflared replica of the tunnel.
  • The disconnect button in a replica's row disconnects only that replica.

Rotating a tunnel token stops cloudflared from opening new connections with the old token, but replicas that are already connected stay active. If your token is compromised, select Also disconnect existing replicas when you rotate the token. Cloudflare rotates the token first and then disconnects every replica, so they cannot reconnect with the old token.

The Rotate Tunnel Token dialog with the Also disconnect existing replicas option

For more information, refer to Rotate a compromised token and Disconnect replicas.

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

@cloudflare/vite-plugin@1.72.0

Minor Changes

  • #17315 05a8bed Thanks @petebacondarwin! - Add local development support for /cdn-cgi/image/ URL transformations

    Enable images.url_transformations in the Wrangler configuration to transform images locally, including files served by Vite from public/ and through a parent server in middleware mode. Local transforms use the low-fidelity Sharp mock: resize, rotate, format conversion and a small set of options. Requests return 404 when transformations are disabled and 403 for disallowed origins, instead of reaching the Worker.

    Same-host image sources are checked against allowed_origins using the hostname of the first configured route. Projects without a route continue to allow local sources.

  • #17171 e77f312 Thanks @petebacondarwin! - Support oidc_tokens bindings in Vite builds

    Vite validates OIDC audiences and preserves the binding's audience and optional signing algorithm in the generated Wrangler configuration. OIDC tokens identify the deployed Worker; signing tokens remains unsupported in local development. …

Originalquelle(öffnet in neuem Tab)Problem melden

Media von Cloudflare

Subscribe to Stream events with Queues

Stream Queues

You can now subscribe to Stream events through Queues event subscriptions and receive them on a queue. Process them with a Worker or an HTTP pull consumer to publish videos when they are ready, react to live broadcasts starting or stopping, or track caption and download progress.

Unlike webhooks, which send a fixed set of events to one URL, event subscriptions let you choose which events you receive and route them to multiple destinations. Create one subscription per queue to send different events to different consumers.

Stream publishes 14 event types across your account:

  • Videos: video_state.ready, video_state.updated, video_state.errored
  • Live inputs: live_input.connected, live_input.disconnected, live_input.errored
  • Captions: caption.created, caption.updated, caption.ready, caption.deleted
  • Downloads: download.created, download.updated, download.ready, download.deleted

To create a subscription, run the following command:

npmyarnpnpm

npx wrangler queues subscription create <QUEUE_NAME> --source stream --events video_state.ready,live_input.connected

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Stream, Queues - Subscribe to Stream events with Queues

You can now subscribe to Stream events through Queues event subscriptions and receive them on a queue. Process them with a Worker or an HTTP pull consumer to publish videos when they are ready, react to live broadcasts starting or stopping, or track caption and download progress.

Unlike webhooks, which send a fixed set of events to one URL, event subscriptions let you choose which events you receive and route them to multiple destinations. Create one subscription per queue to send different events to different consumers.

Stream publishes 14 event types across your account:

  • Videos: video_state.ready, video_state.updated, video_state.errored
  • Live inputs: live_input.connected, live_input.disconnected, live_input.errored
  • Captions: caption.created, caption.updated, caption.ready, caption.deleted
  • Downloads: download.created, download.updated, download.ready, download.deleted

To create a subscription, run the following command:

npmyarnpnpm

npx wrangler queues subscription create <QUEUE_NAME> --source stream --events video_state.ready,live_input.connected
yarn wrangler queues subscription create <QUEUE_NAME> --source stream --events video_state.ready,live_input.connected

Originalquelle(öffnet in neuem Tab)Problem melden

Storage von Cloudflare

Subscribe to Stream events with Queues

Stream Queues

You can now subscribe to Stream events through Queues event subscriptions and receive them on a queue. Process them with a Worker or an HTTP pull consumer to publish videos when they are ready, react to live broadcasts starting or stopping, or track caption and download progress.

Unlike webhooks, which send a fixed set of events to one URL, event subscriptions let you choose which events you receive and route them to multiple destinations. Create one subscription per queue to send different events to different consumers.

Stream publishes 14 event types across your account:

  • Videos: video_state.ready, video_state.updated, video_state.errored
  • Live inputs: live_input.connected, live_input.disconnected, live_input.errored
  • Captions: caption.created, caption.updated, caption.ready, caption.deleted
  • Downloads: download.created, download.updated, download.ready, download.deleted

To create a subscription, run the following command:

npmyarnpnpm

npx wrangler queues subscription create <QUEUE_NAME> --source stream --events video_state.ready,live_input.connected

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

wrangler@4.171.0

Minor Changes

  • #16694 ae8bcf3 Thanks @skepticfx! - Warn when deploying Containers with the deprecated default scheduling policy

    Deploying a Worker or uploading a new version now displays a nonblocking deprecation warning for Container applications configured with the default scheduling policy, including when the policy is omitted. The warning identifies affected applications and links to migration instructions for Durable Object scheduling. Existing applications require code changes and a replacement application; changing the policy setting alone does not migrate them.

  • #17319 2e19c17 Thanks @danlapid! - Include Worker source maps by default only when observability is enabled

    Source maps are only used to show readable stack traces, so Wrangler now uploads them by default only when the Worker's config enables observability (logs, traces or Issues). This applies to wrangler deploy, wrangler versions upload, wrangler preview and wrangler build --experimental-cf-build-output. The Cloudflare Vite plugin likewise emits Worker source maps by default only when observability is enabled. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workers SDK von Cloudflare

create-cloudflare@2.75.4

Patch Changes

  • #17334 265616b Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-12-01

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

  • #17305 222f836 Thanks @edmundhung! - Keep the final newline and line-ending style of config files edited during setup

    Setup used to drop the trailing newline from every config file it edited, such as vite.config.ts, even when nothing else changed, and rewrote its line endings to the operating system's. Edited files now keep their final newline and use the LF or CRLF style of their first line.

Originalquelle(öffnet in neuem Tab)Problem melden