Zum Inhalt springen

Developer Platform Updates & Release Notes

Einträge
714
Quellen
1
Zuletzt aktualisiert

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

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

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

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

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

Developer Platform von Cloudflare

Workers, Durable Objects - Self-host Workers and Durable Objects with workerd clustering (experimental)

You can now run Workers and Durable Objects as a multi-machine cluster on your own infrastructure with workerd ↗︎, the open-source runtime behind Cloudflare Workers. Until now, workerd was primarily for local development because it ran as a single instance and stored data only on a local disk. Now several workerd instances can form one cluster that shares an object storage bucket. Documentation is at workerd.dev ↗︎.

What this is useful for

  • Your own infrastructure: Run inside your VPC, Kubernetes cluster, or on-premises hardware, next to internal services or within data residency limits.
  • Stateful AI agents: Give each agent a Durable Object with SQLite memory and alarms. Idle agents are evicted from memory; their state stays in the bucket.
  • Real-time apps: Give each chat room or collaborative document its own SQLite database, without a shared database or message broker.
  • Coordination: Build locks, counters, and job schedulers, each a single Durable Object that every instance routes to.

How bucket-backed clustering works

…

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

AI Gateway - Route requests to any provider that offers a model with multi-provider routing

AI Gateway now supports multi-provider routing. When it is on, a request for a model can go to any provider that serves that model. For example, a request for a Claude model can go to Anthropic or to Google Vertex AI.

Starting December 9, 2026, multi-provider routing is on by default for new gateways. Gateways created before then keep using the providers they use today until you turn the setting on.

To turn on multi-provider routing for an existing gateway, go to your gateway's Settings and turn on Multi-Provider Routing. To use the API, set multiprovider_enabled to true in the request body of a PUT request to update the gateway:

{
	"multiprovider_enabled": true
}

When the setting is off, you can still choose a provider for a single request. Name the provider in the cf-aig-allowed-providers header. Model aliases can use every provider whether the setting is on or off.

With this release, more models are available from alternate providers on gateways with multi-provider routing:

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Stream - Clip videos, get caption files, and customize signed tokens with the Stream binding

The Stream binding for Workers now supports clipping videos, customizing signed URL tokens, and fetching caption files.

Clip a video into a new video from a time range of an existing one:

const clip = await env.STREAM.clip("VIDEO_ID", {
	startTimeSeconds: 10,
	endTimeSeconds: 40,
});
const clip = await env.STREAM.clip("VIDEO_ID", {
	startTimeSeconds: 10,
	endTimeSeconds: 40,
});

Customize signed URL tokens with an expiry, download access, IP and country access rules, or your own signing key, without making an API call:

const token = await env.STREAM.video("VIDEO_ID").generateToken({
	expiresAt: new Date(Date.now() + 30 * 60 * 1000),
	downloadable: true,
	accessRules: [
		{ type: "ip.geoip.country", action: "allow", country: ["US"] },
		{ type: "any", action: "block" },
	],
});
const token = await env.STREAM.video("VIDEO_ID").generateToken({
	expiresAt: new Date(Date.now() + 30 * 60 * 1000),
	downloadable: true,
	accessRules: [
		{ type: "ip.geoip.country", action: "allow", country: ["US"] },
		{ type: "any", action: "block" },
	],
});

Fetch a caption file as a WebVTT stream:

const vtt = await env.STREAM.video("VIDEO_ID").captions.get("en");
const response = new Response(vtt, {
	headers: { "Content-Type": "text/vtt" },
});
const vtt = await env.STREAM.video("VIDEO_ID").captions.get("en");
const response = new Response(vtt, { …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

R2 - R2 default bandwidth limit

Each Cloudflare account now has a default R2 bandwidth limit of up to 100 Gbps. Upload and download bandwidth are separate limits, so your account can upload at up to 100 Gbps and download at up to 100 Gbps at the same time.

Cloudflare has raised the limit for some accounts based on their historical R2 traffic. To find your account's current bandwidth limit, go to the R2 Metrics page in the Cloudflare dashboard.

Go to R2 Metrics ↗ R2 Metrics page showing the account bandwidth limit above the bandwidth charts

If your account exceeds its bandwidth limit, R2 throttles requests, which can increase request latency. Requests that are already in progress are not rejected, but new requests can receive a 429 Too Many Requests response if your account has so many concurrent requests that a new one would not get enough bandwidth to make progress. For more information, refer to R2 limits.

If your workload needs more bandwidth than your current limit, complete the Limit Increase Request Form ↗︎ to request a higher limit.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Workers - The Temporal API is now available in Workers

Workers now support the Temporal API ↗︎, the modern JavaScript standard for dates and times. You can convert between time zones, do calendar-correct date arithmetic, and work with plain dates and times, without bundling a date library such as Moment.js, Luxon, or date-fns.

Temporal will be turned on for Workers with a compatibility date of 2026-12-01 or later. To use it with an earlier compatibility date, add the temporal compatibility flag:

{
  "$schema": "./node_modules/wrangler/config-schema.json",
  "compatibility_flags": [
    "temporal"
  ]
}
compatibility_flags = ["temporal"]

This example shows the time a meeting starts in the visitor's time zone, using the time zone Cloudflare detects for the request:

src/index.jsjs

export default {
	async fetch(request) {
		const timeZone = request.cf?.timezone ?? "UTC";

		const meeting = Temporal.ZonedDateTime.from(
			"2026-12-15T09:30[America/New_York]",
		);
		const local = meeting.withTimeZone(timeZone);

		return new Response(
			`The meeting starts at ${local.toPlainTime()} on ${local.toPlainDate()} (${timeZone}).`,
		);
	},
};

src/index.tsts

export default {
	async fetch(request): Promise<Response> { …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

AI Gateway - Send up to 10 custom metadata entries per request

AI Gateway now saves up to 10 custom metadata entries per request, up from five. You can use the extra entries in log filtering, spend limits and dynamic routing conditions.

Metadata that AI Gateway adds, such as the Access user ID cf.user_id, no longer counts toward the limit and no longer replaces your last entry.

Custom metadata can be up to 12,288 bytes (12 KB) per request. If it is larger, AI Gateway removes entries from the end until the rest fit.

--header 'cf-aig-metadata: {"team": "AI", "user": 12345, "project": "chat", "cost_center": "cc-42", "env": "prod", "region": "us", "tier": "pro"}'

For details, refer to Custom metadata.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Workers - Reject redirects in Workers fetch requests

Cloudflare Workers now supports redirect: "error" in fetch() and Request, completing support for all three redirect modes defined by the WHATWG Fetch Standard ↗︎: follow, manual, and error.

When the server responds with a redirect status (301, 302, 303, 307, or 308), fetch() with redirect: "error" rejects with a TypeError without contacting the redirect destination. It rejects even if the response has no Location header. Non-redirect 3xx responses, such as 304 Not Modified, resolve normally.

Use redirect: "error" to:

  • Protect credentials and secrets: Fail closed on OAuth token exchanges, signed webhooks, and API calls carrying sensitive headers (such as Cookie, X-API-Key, or Authorization) so redirects cannot forward headers to another destination.
  • Prevent server-side request forgery (SSRF) redirect hops: After you validate a user-supplied URL, block redirects to unvalidated hosts. This applies to webhook targets, link previews, and feed fetchers.
  • Enforce strict API contracts: Catch unexpected redirects (such as an upstream API redirecting to an HTML sign-in page) immediately instead of following them, consuming extra subrequests, and failing later during response parsing. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

AI Search - Introducing Search for Agents

Search for Agents makes your website searchable by AI agents without manually configuring a search integration. Turn it on under Quick Actions on your domain's Overview page in the Cloudflare dashboard. Cloudflare creates an AI Search instance, starts indexing your content, and exposes a search endpoint on your domain.

Search for Agents toggle turned on in the Cloudflare dashboard, with a Beta badge and a link to feature documentation.

Cloudflare adds discovery metadata to your HTML pages and, when Markdown for Agents is on, to Markdown responses. Agents can discover the endpoint and search with keywords or natural-language queries:

curl --get "https://example.com/.well-known/search" \
  --data-urlencode "q=How do I verify webhook signatures?"

The endpoint supports both GET and HTTP QUERY requests. It returns relevant content in Markdown, not an AI-generated answer, so agents can use the results with their own models.

Search for Agents is available on all plans. Usage is subject to AI Search pricing and plan limits. You can customize configurable settings in the AI Search instance created for your domain. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Basin Pipelines, Basin - Pipelines Sink credentials can now be updated

You can now replace the credentials of a Basin Pipelines sink. Previously, an expired or revoked token meant deleting and recreating the sink.

Pipelines keep the sink's earlier credentials until you update them. Updating a failed pipeline automatically restarts it.

A failed pipeline's page with the reason it failed, the sink that changed, and the Update pipeline button

Dashboard

  • Update credentials — On a sink's page, in Destination. Create a new API token, or enter the credentials of a token you created.
  • Update pipeline — On a pipeline's page, when a stream or sink it uses has changed.

Go to Sinks ↗ The Update credentials dialog with two options: create a new API token, or enter credentials

API

Both requests need an API token with Basin Pipelines Edit permission. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Billing, Cloudflare CLI, Agents - Activate Cloudflare subscriptions from the CLI and MCP

You and your agents can now activate Cloudflare subscriptions from the Cloudflare CLI (cf) or Cloudflare Model Context Protocol (MCP) servers, without switching to the dashboard.

Previously, OAuth sessions used by cf and MCP could not create subscriptions, so activating a product meant leaving your terminal or agent session to complete checkout in the dashboard. You can now activate subscriptions in place for common workflows:

  • Workers Paid: Move beyond Free plan limits such as 100,000 requests per day and 10 ms of CPU time, with 10 million requests and 30 million CPU milliseconds included each month for $5 per month plus usage.
  • R2: Activate an R2 subscription to start creating buckets, with 10 GB of free monthly storage plus usage-based billing beyond the free tier.
  • Zero Trust: Sign up for Zero Trust (with up to 50 users included on the Free plan) to put a Worker behind Cloudflare Access. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

D1 - D1 Insights index recommendations

D1 Insights now recommends indexes for your D1 databases. Each recommendation includes a CREATE INDEX statement, the queries it is expected to speed up, and usage metrics for those queries.

You can turn recommendations on or off in the dashboard, with the Cloudflare CLI, or with the API.

Review recommendations on the Metrics tab of a database in the dashboard, or list them with the Cloudflare CLI:

npx cf@latest d1 insights recommendations

For more information, refer to Index recommendations.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Cloudflare Images, Workers - URL-based image optimization in Workers

In Images, you can add optimization parameters directly to transformation URL requests to optimize images from any origin.

Workers now supports the Images URL interface directly on workers.dev subdomains through new Worker-scoped configuration. For example, a Worker can serve this transformation URL without connecting a custom domain:

https://example-app.<YOUR_SUBDOMAIN>.workers.dev/cdn-cgi/image/format=auto,width=400/image.png

Previously, transformation URLs were not available on workers.dev subdomains or during local development. A Worker could serve transformation URLs only through a connected custom domain when the URL interface was enabled for that zone.

The new Worker-scoped settings apply to deployed Workers and during local development. On connected custom domains, they override the zone-scoped settings.

Configure the settings in your Wrangler configuration file or in cloudflare.config.ts for Cloudflare CLI: …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Workers for Platforms - Dispatch namespace names now follow Worker naming rules

New dispatch namespace names must:

  • Use only lowercase letters, numbers, underscores (_), and dashes (-).
  • Start with a letter, number, or underscore.
  • Be 256 characters or fewer.

Previously, namespace names could contain characters such as /, %, spaces, and uppercase letters. Some of these characters could cause API requests to read, deploy, or delete Workers in the namespace to fail.

What changes:

  • POST requests to the dispatch namespace API return a 400 error with code 100120 if name does not meet these requirements:

    Invalid dispatch namespace name. Ensure it does not already exist and uses only lowercase letters, numbers, underscores and dashes (do not start with a dash).
    
  • wrangler dispatch-namespace create returns the same 100120 error.

  • Terraform applies that create a cloudflare_workers_for_platforms_dispatch_namespace resource with an invalid name fail.

Existing namespaces are not affected.

These are the same naming rules that apply to Worker names. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Email Service - Email Sending is now available on the Workers Free plan

Email Sending is now available on the Workers Free plan for sending to the verified destination addresses in your account.

You can now onboard sending domains, send for free to verified destination addresses during development and testing, and upgrade to the Workers Paid plan when going to production to send to arbitrary addresses. Use the Workers binding, the REST API, or SMTP to send alerts, reports, and notifications to your own team without a paid plan.

Sends to verified destination addresses are free on every plan. They do not count toward the monthly quota or the daily sending limits.

src/index.jsjs

export default {
	async fetch(request, env) {
		try {
			await env.EMAIL.send({
				from: "alerts@yourdomain.com",
				to: "oncall@example.com", // A verified destination address
				subject: "Disk usage above 90%",
				text: "Disk usage on db-1 is above 90%.",
			});
		} catch (error) {
			if (
				error instanceof Error &&
				"code" in error &&
				error.code === "E_RECIPIENT_PLAN_RESTRICTED"
			) {
				return new Response("Recipient is not a verified destination address", { …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Cloudflare Images - Automatic AVIF conversion with Polish

Polish can now create AVIF versions of JPEG and PNG images served from your origin, alongside its existing WebP conversion. AVIF often produces smaller files than WebP, reducing transfer sizes and improving load times for image-heavy sites such as product catalogs, photo galleries, and news publications.

Polish automatically optimizes images on your zone that are served from your origin server. It strips metadata, applies compression, and can convert JPEG and PNG files to more efficient image formats.

Configure Polish with AVIF through the Cloudflare CLI, dashboard, or REST API:

cf zones settings edit polish --zone example.com --body '{"value":"lossy"}'
cf zones settings edit avif --zone example.com --body '{"value":"on"}'
cf zones settings edit webp --zone example.com --body '{"value":"on"}'

AVIF and WebP can be enabled at the same time. When both formats are enabled, Polish selects an output based on browser support, file size, and image quality:

  • The browser must advertise AVIF support in its Accept header.
  • Polish serves AVIF only if the converted image is smaller than the original. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Cloudflare Images - Expanded support for EXIF, XMP, and IPTC-IIM metadata in Images

In Images, the metadata parameter now supports Extensible Metadata Platform (XMP) metadata preservation and expands Exchangeable Image File Format (EXIF) metadata preservation to additional image formats. It can also preserve selected legacy Information Interchange Model (IPTC-IIM) metadata from JPEG sources, mapping it to XMP when converting to compatible formats.

This release does not change existing Content Credentials support, which can provide tamper-evident provenance and disclose how AI contributed to an image.

What changed

Previously, Images preserved EXIF metadata only for JPEG-to-JPEG optimizations, and did not preserve XMP or IPTC-IIM metadata. You can now keep EXIF and XMP metadata when both the source and output formats support the corresponding metadata type. For JPEG sources, you can also retain selected legacy IPTC-IIM attribution and rights metadata. …

Originalquelle(öffnet in neuem Tab)Problem melden