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 - K2 metrics in the dashboard and GraphQL Analytics API

You can now monitor your K2 streams in the Cloudflare dashboard: how fast records are produced and consumed, how much each stream stores, and how far behind each subscription is.

A K2 stream's Metrics tab, charting bytes produced by input and bytes stored

In the Cloudflare dashboard, go to the K2 Streams page and select a stream.

Go to K2 Streams ↗

Metrics appear in three places:

  • Overview — Produce and consume rates over the last 5 minutes, stored bytes, and each subscription's records behind, oldest unread record, lag over the last hour, and bytes consumed.
  • Metrics — Charts of bytes produced by input, bytes stored, and bytes delivered to each subscription, over a time range you choose.
  • Subscription page — Select a subscription to see its records and bytes behind, its oldest unread record, its consume rate, and charts of its lag and throughput.

The same metrics are available in the GraphQL Analytics API, in four beta datasets:

  • k2ProduceAdaptiveGroups — Bytes produced to a stream, by input (http or binding).
  • k2ConsumeAdaptiveGroups — Bytes delivered to each subscription. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Workers for Platforms, Workers - Grant access to Workers in specific dispatch namespaces

You can now grant members, User Groups, and API tokens access to the Workers in specific dispatch namespaces. Previously, managing Workers in a namespace required account-wide Workers access. Now you can create a token that deploys Workers to one namespace without giving it access to Workers in other namespaces or elsewhere in your account.

Choose from four roles to control the level of access:

  • Workers Namespace Metadata Read-Only: View Workers, settings, and bindings in the namespace. Excludes script code and secrets.
  • Workers Namespace Content Read-Only: Everything in Metadata Read-Only, plus script code and secret names.
  • Workers Namespace Editor: Create, update, deploy, and delete Workers in the namespace, including their code, settings, and secrets. Cannot view, update, or delete the namespace itself.
  • Workers Namespace Admin: Everything in Editor, plus the ability to view, update, and delete the namespace itself.

Permission policy form showing four Workers Namespace roles scoped to an individual namespace …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Workers, Durable Objects - CPU and heap profiling for Worker Previews

You can now profile Worker Previews, following the launch of on-demand CPU and memory profiling ↗︎ for Workers and Durable Objects. This lets you see what a pull request costs in CPU and memory before you merge it.

Send traffic to a Preview, capture a CPU or heap profile from one of its deployments, and see which functions in your branch use the most CPU time or memory. Push a fix, profile the next deployment, and compare. Production stays untouched the whole time.

Flamegraph of a Preview CPU profile showing scoreProduct, tokenize, formatPrice, and buildProduct under handleSearch

In this Preview, formatPrice takes almost a third of the CPU time because it creates a new Intl.NumberFormat for every product. A slowdown like this is easy to miss in code review, but it stands out in a flamegraph.

Let your agent optimize performance

Previews give coding agents a safe place to iterate on performance. An agent can deploy a Preview, send it load, capture a profile, rewrite the hottest function, and deploy again, until CPU time stops dropping. Each Preview deployment has its own ID, so every profile maps to an exact version of the code. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Agents - Agents SDK now supports Pi 1.6 with tools that wait without keeping your agent awake

Agents SDK v0.34.0 upgrades PiHarness to Pi 1.6 ↗︎. A Pi tool can now wait for a person, a deadline, or another session without keeping the Durable Object awake, and a session can start from a history that your application already has.

Tools that wait

  • Park until a signal or a deadline. A tool can return a "tool park" (Pi's ToolPark type) instead of a result. The tool park registers what the call waits for, and Pi runs it again when a signal arrives or the deadline passes. While it waits, the call holds no invocation, so the Durable Object can hibernate. Deliver signals with the new harness.signal(). Refer to Tools that wait.
  • Wait for a subagent. submit() and continue() take notify, so a parked tool wakes when another session's input settles. Refer to Wait for a subagent.
  • Approval gates. A beforeTool hook can park a tool call before it runs, for example until a person approves it.

Session updates

…

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Browser Run - Run custom scripts in Browser Run with /script

Browser Run now runs custom browser automation written with Playwright, Puppeteer, or the raw Chrome DevTools Protocol (CDP) in a single API request, with the new /script endpoints. Submit a JavaScript function, and Browser Run executes it in an isolated Worker connected to a browser session, so you do not need to deploy a Worker.

curl -i -X POST "https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-run/script" \
  -H "Authorization: Bearer <apiToken>" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "async ({ page }) => { await page.goto(\"https://example.com\"); return { title: await page.title() }; }",
    "library": "playwright"
  }'
HTTP/2 200
content-type: application/json
cf-browser-session-id: 8f7c2e3a-1b4d-4c6e-9a0f-2d5b7e9c1a3f
cf-browser-target-id: A1B2C3D4E5F60718293A4B5C6D7E8F90

{
  "success": true,
  "result": {
    "title": "Example Domain"
  }
}
  • POST /script acquires a browser, runs your function, and returns its result as { "success": true, "result": ... }. The session and page are returned in the cf-browser-session-id and cf-browser-target-id response headers (except Kitesurf runs). …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Cloudflare Images - Delivery analytics for hosted images

Cloudflare Images lets you store, optimize, and deliver hosted images through a scalable image pipeline. The new Images Analytics dashboard ↗︎ provides up to 30 days of delivery data for assets stored in Images, helping you understand how and where they are requested.

Hosted images analytics showing request totals, countries, and response status codes

In Images & Stream > Hosted images > Analytics, you can:

  • Investigate traffic trends and sources. Review request volume over time, then filter by country, autonomous system number (ASN), or referrer to trace spikes and unexpected traffic.
  • Troubleshoot delivery. Break down requests by response status code to identify errors. Filter by browser or operating system to understand which output formats different clients receive.
  • Understand asset and variant usage. Find the most-requested source images and compare predefined variants with inline configurations to see which configurations account for the most requests. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Workers for Platforms - Dispatch namespaces can no longer be renamed

You can no longer rename a dispatch namespace after creating it.

Renaming a namespace could cause API requests to read, deploy, or delete Workers to fail because dispatch Workers and outbound Workers retained the namespace name they were deployed with. This change prevents those failures by rejecting rename requests.

What changes:

  • PUT and PATCH requests to the dispatch namespace API return a 400 error with code 100413 if they change name:

    Dispatch namespaces cannot be renamed. The name in the request must match the namespace's current name. To use a different name, create a new dispatch namespace.
    
  • wrangler dispatch-namespace rename returns the same 100413 error.

  • Terraform applies that attempt to change name on a cloudflare_workers_for_platforms_dispatch_namespace resource fail.

To move your Workers to a namespace with a different name:

  1. Create a new dispatch namespace with the name you want.
  2. Deploy your user Workers to the new namespace. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Browser Run - Capture PDFs, links, scraped elements, and extracted JSON with /snapshot

Browser Run's /snapshot endpoint can now return four more formats from a single page load: pdf, links, scrape, and json. Before, /snapshot returned HTML, screenshots, Markdown, and the accessibility tree, so a workflow that also needed a PDF or structured data had to prepare the same page again in a second request.

Use the new formats when you need to:

  • PDF: print the page, with the same pdfOptions as the /pdf endpoint.
  • Links: collect the links on the page, with the same visibleLinksOnly and excludeExternalLinks options as /links.
  • Scraped elements: return the elements matched by elements, the same payload as /scrape. elements is required when you request it.
  • Extracted JSON: extract structured data from the page HTML with Workers AI, with the same prompt, response_format, and custom_ai fields as /json. prompt or response_format is required, and the request incurs Workers AI usage. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Durable Objects - Improved Durable Object Reliability During Runtime Updates

Cloudflare has improved how Durable Object storage handles machines restarting during runtime updates.

Each write to a Durable Object's storage must be confirmed by a majority within a group of machines for durability. Machines now proactively remove themselves from the group when restarting, so that they can be replaced before the restart happens.

Previously, this could take up to a few minutes. During that time, a write could fail to reach a majority, and the object was reset with Internal error in Durable Object storage caused object to be reset, disconnecting its WebSockets.

This can make these resets less frequent for SQLite-backed Durable Objects, especially ones that write to storage only occasionally, such as those using WebSocket hibernation. Actual results depend on your workload and traffic patterns.

The change is live in all regions. No action is needed by customers to see benefits from this change. Some disconnects during runtime updates are still expected, so clients should continue to reconnect when a WebSocket closes.

To learn more, refer to Use WebSockets.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Cloudflare Images - Gaussian sharpening in Images

Cloudflare Images lets developers resize, adjust, and manipulate images at scale through a broad set of optimizations, including image adjustments such as sharpen, brightness, contrast, and gamma.

The sharpen parameter now supports Gaussian sharpening, in addition to the existing box-filter sharpening. Sharpening makes fine details appear crisper by increasing the pixel-to-pixel contrast along edges, where adjacent pixels differ in brightness or color. Scalar values such as sharpen=5 continue to use the box filter.

Different images benefit from different types and levels of sharpening. Text may need strong edge definition for readability; product photography often uses a subtler effect to avoid emphasizing grain; and illustrations with bold, clean lines and large areas of solid color can benefit from emphasizing larger edges and object outlines. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

R2 - View R2 operations as requests per second

You can now view Class A and Class B operations as requests per second (RPS) in addition to request count on the Metrics page for an R2 bucket in the Cloudflare dashboard.

Go to Bucket metrics ↗

Use the Request count and Requests/second toggle on the Class A Operations and Class B Operations charts to switch between views.

Request count

Request count shows the total number of operations in each time interval. Use it to understand overall usage and how operations contribute to your bill.

R2 Class A operations chart showing request count per hour

Requests per second

Requests/second shows the rate of operations over time. Use it to identify traffic peaks.

R2 Class A operations chart showing average requests per second

For more information, refer to R2 metrics and analytics.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Stream - B-frame detection for Low-Latency HLS live streams

Cloudflare Stream now emits a warning when B-frames are detected in Low Latency HLS live broadcasts.

The most common cause of freezing and stuttering in LL-HLS live streams is when encoders include B-frames. These frames can reference content that has not yet been transmitted, stalling preparation for delivery. Therefore, B-Frames are not supported when LL-HLS is enabled for a live input.

Stream sends the warning ERR_LIVE_INPUT_LLHLS_INCOMPATIBLE once per live session if applicable. It is reported alongside other error and status events in:

To resolve the warning, turn off B frames in your broadcast application settings. Alternatively, turn off Low-Latency HLS in your live input settings, but playback latency will be higher.

For more information, refer to Stream live troubleshooting.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Spectrum, Containers, Durable Objects, Workers - Inbound TCP and gRPC for Workers and Containers now in public beta

Inbound TCP connections to Workers and bidirectional gRPC in Containers are now in public beta.

Worker-origin Spectrum applications are available on Pro and Business zones, and on Enterprise zones with Spectrum Enterprise enabled. Without Spectrum Enterprise, Pro and Business zones support one Worker-origin application per zone, on one TCP port.

flowchart LR Client[TCP client] <--> Spectrum Spectrum <--> Worker["Worker connect()<br/>Handle or forward bytes"] Worker <--> DO["Durable Object<br/>connect()"] DO <--> Container["Container<br/>gRPC or other TCP server"]

Forward a Worker socket to a Durable Object

Spectrum sends public TCP connections to your Worker's connect() handler. The Worker opens a socket to the GrpcContainer Durable Object and pipes bytes in both directions:

src/index.jsjs

export default {
	async connect(socket, env) {
		const container = env.GRPC_CONTAINER.getByName("grpc-demo");
		const durableObjectSocket = container.connect("grpc-container:50051", {
			allowHalfOpen: true,
			secureTransport: "off",
		});

		try {
			await durableObjectSocket.opened;
			await Promise.all([
				socket.readable.pipeTo(durableObjectSocket.writable),
				durableObjectSocket.readable.pipeTo(socket.writable),
			]);
		} finally {
			await Promise.allSettled([socket.close(), durableObjectSocket.close()]);
		}
	},
};

src/index.tsts

export default { …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Workers, Pages - Workers and Pages now keep versions for 30 days

Cloudflare now keeps versions of your Workers and deployments of your Pages projects for 30 days. After 30 days, they are deleted, except your 100 most recent and what is currently deployed.

What is not affected:

  • Running applications: Deployed Worker versions and your current Pages production deployment are always kept
  • Rollbacks: You can still roll back to any of your 100 most recent Worker versions, and to any Pages production deployment that has not been deleted
  • Worker Previews: Worker Preview URLs always serve the latest deployment of that Preview. Use Worker Previews for branches and pull requests instead of Version URLs, which run with your production bindings

What you will notice:

  • Deleted versions and deployments no longer appear in the dashboard or API …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Agent Lee - Attach images, PDFs, and text files to Agent Lee

You can now attach files to a message in Agent Lee. Share a screenshot of an error, a PDF, or a log, HAR, or configuration file, and Agent Lee reads it as part of your question.

Previously, you had to describe what you were seeing or paste file contents into the chat by hand. A screenshot of a dashboard error or a long log was hard to get across that way.

How it works

  • Select the paperclip next to the message box, paste an image, or drag files onto the chat panel.
  • Each file appears as a chip above the message box. Remove any you did not mean to add, then send your message.
  • Agent Lee reads images directly, converts PDFs to text and reads them from the start, and reads text files in full or, for long files, from the start and the end.

Example requests:

  • "Here is a screenshot of the error I get when I open my site. What is wrong?"
  • "This HAR file is from a slow page load. Which requests are taking the longest?"
  • "Here is the error log from my Worker. What is causing these failures?"

Good to know

  • Supported files. PNG, JPEG, and WebP images up to 3.5 MiB, PDFs up to 5 MiB, and text files (.txt, .log, .json, .har, .csv, .yaml, .yml, .toml, .md, .xml) up to 100 MiB. You can attach up to four files per message, up to 14 MiB in total after trimming. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Hyperdrive, Workers - Hyperdrive-connected PlanetScale databases now available to Cloudflare Startup Program customers

Customers in the Cloudflare Startup Program ↗︎ can now create PlanetScale Postgres and MySQL databases from Cloudflare, with usage billed through their Cloudflare account.

Startup credits applied to PlanetScale usage is limited for each tier. PlanetScale usage beyond a tier's limit is billed to your account.

Tier

PlanetScale credit limit

Tier 3

$2,500

Tier 2

$10,000

Tier 1

$50,000

Check your program tier to confirm the limit that applies to your account.

To start using it, open the Hyperdrive section of the dashboard. The Create PlanetScale button appears there for eligible accounts.

Go to Create a PlanetScale database ↗

For database setup and how Hyperdrive connects Workers to PlanetScale, refer to PlanetScale Postgres and MySQL with Hyperdrive.

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Hyperdrive - Custom CA and mTLS certificates for Hyperdrive over Workers VPC

Hyperdrive can now connect to private databases over Workers VPC with a custom certificate authority (CA) and client certificate authentication (mutual TLS, or mTLS). This covers PostgreSQL databases and Amazon RDS instances that present certificates signed by a private CA or the RDS CA bundle, and client certificates with RSA or EC P-256 keys.

Previously, a database that required a custom CA or a client certificate meant routing database traffic over WebSockets through Cloudflare Access and Cloudflare Tunnel. That approach added an Access application, a service token, and WebSocket handling to maintain.

Hyperdrive now connects directly to the database over Workers VPC, without Access.

Attach the certificates to the VPC Service, then create a Hyperdrive configuration from that service:

# Upload the private CA and the client certificate
npx wrangler cert upload certificate-authority --ca-cert ./db-ca.pem --name db-ca
npx wrangler cert upload mtls-certificate --cert ./client.pem --key ./client-key.pem --name db-client

# Attach the certificates to the VPC Service for your database
npx wrangler vpc service create my-postgres-db \
  --type tcp \
  --tcp-port 5432 \
  --app-protocol postgresql \
  --hostname <YOUR_DATABASE_HOSTNAME> \ …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Cloudflare Images - A new, consistent language across Images interfaces

Cloudflare Images lets you dynamically compose, manipulate, and encode images using a broad set of optimizations, including resizing, face cropping, and background removal. You can configure optimizations directly in an image URL or programmatically through the cf.image options on a Worker fetch() subrequest.

We redesigned the Images API to provide a consistent, predictable, and intuitive language for developers and AI agents to optimize and manipulate images.

Starting today, the URL interface and cf.image options in Workers use the same parameter structure to apply optimizations. A configurable optimization will have its corresponding settings nested underneath its top-level parameter. Existing syntax in URLs and Worker configurations continues to behave as before. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

Hyperdrive, Workers VPC - Custom CA and client certificates (mTLS) for Workers VPC

VPC Services can now verify private services that use certificates from your own certificate authority (CA), and authenticate to services that require mutual TLS (mTLS). Previously, Workers VPC only trusted publicly trusted CAs and Cloudflare Origin CA, so connecting to a private CA meant weakening verification with verify_ca or disabled, and origins that required client certificates were unreachable.

Upload your CA certificate and client certificate, then reference them from the TLS settings of a VPC Service:

npx wrangler cert upload certificate-authority --ca-cert ./ca.pem --name private-ca
npx wrangler cert upload mtls-certificate --cert ./client.pem --key ./client-key.pem --name private-client

npx wrangler vpc service create private-db \
  --type tcp \
  --tcp-port 5432 \
  --app-protocol postgresql \
  --hostname db.internal.example \
  --tunnel-id <TUNNEL_ID> \
  --certificate-authority <CA_CERTIFICATE_ID> \
  --client-certificate <CLIENT_CERTIFICATE_ID> \
  --cert-verification-mode verify_full

You can use a custom CA, a client certificate, or both. The settings apply to HTTPS connections from http services and to TLS connections from tcp services, including PostgreSQL databases used with Hyperdrive, such as Amazon RDS instances that use the RDS CA bundle. …

Originalquelle(öffnet in neuem Tab)Problem melden

Developer Platform von Cloudflare

AI Search - AI Search can generate file summaries during indexing

AI Search can now summarize your files while it indexes them. For each text document that produces at least three chunks, AI Search uses a large language model (LLM) to generate a summary, topics, and keywords:

  • The summary and keywords are stored in the item's context metadata. A context value you already set is kept.
  • The topics are added to the context header of the file's chunks to help retrieval.

Turn on file summaries in the dashboard, or set indexing_options.file_summary to true when you create or update an instance. File summaries are off by default, and changing the setting triggers a full reindex.

indexing_options is replaced as a whole on every update. Include the current value of every option, or the options you leave out return to their defaults.

The LLM costs are billed to your account. File summaries are not part of the AI Search ingestion allotment. AI Search uses a Workers AI model suited to summarization and calls it through your instance's AI Gateway, or the default gateway if none is set, and the calls are billed as Workers AI usage. Each new or modified file is summarized once, so costs grow with the amount of content you index.

For more information, refer to File summaries.

Originalquelle(öffnet in neuem Tab)Problem melden