wrangler@4.145.0
Minor Changes
-
#15685
b9f1cdcThanks @Ankcorn! - Add native support for the Analytics SQL bindingDeclare the zero-configuration binding in
wrangler.jsonwith"analytics": { "binding": "ANALYTICS" }. Wrangler uploads theanalyticsbinding type and proxies it to the remote service during local development, sowrangler devcan call the binding withoutunsafe.bindings. -
#15943
8468487Thanks @sejoker! - Graduate SQL, Catalog, and Pipelines underwrangler basinout of beta to stableBasin SQL is now available under
wrangler basin sql, Basin Catalog operations are available underwrangler basin catalog, and Pipelines operations are available underwrangler basin pipelines. These commands are now stable, while the previouswrangler r2 sql,wrangler r2 bucket catalog, andwrangler pipelinescommand paths remain available as hidden compatibility aliases.The Basin SQL authentication environment variable is now
WRANGLER_BASIN_SQL_AUTH_TOKEN. Update any existingWRANGLER_R2_SQL_AUTH_TOKENconfiguration to use the new name. The fallback toCLOUDFLARE_API_TOKENremains available. -
#15948
a0712e5Thanks @akoval-cf! - Add beta K2 producer bindings for existing streamsConfigure a stream created through Wrangler, the Dashboard, or the API in
wrangler.json:The binding supports
env.ORDERS.send([{ content: new TextEncoder().encode("order"), headers: { event: "order.created" } }]). Batches use either allArrayBufferor allUint8Arraycontent. Check the returnedsuccessvalue, handle rejected RPC promises, and retry only when the returned error explicitly allows it. Generated environment types describe this producer contract without requiring a separate application dependency.K2 requires an enabled account. Deployment credentials need Worker deployment and K2 configuration-read access. Default Wrangler logins now request the K2 OAuth scopes; existing OAuth users should run
wrangler loginagain to grant the new permissions. Development always uses a real K2 stream and may incur usage charges; no local simulator is provided. Theremotesetting can be omitted,remote: truesuppresses the usage warning, andremote: falseis rejected. Consumption is not part of this Worker binding. -
#15948
a0712e5Thanks @akoval-cf! - Add beta K2 stream management commandsUse
wrangler k2 streams create order_events,wrangler k2 streams list,wrangler k2 streams get <stream-id>, andwrangler k2 streams delete <stream-id>to manage K2 streams. Creation enables Worker bindings but not HTTP ingestion by default, matching the dashboard. Pass--http-enabledto enable authenticated HTTP ingestion and print its endpoint. Creation prints the stream ID and a binding configuration with aYOUR_BINDING_NAMEplaceholder for the Worker's variable name, but does not edit the configuration file automatically.All four commands support
--json. Deletion requires confirmation, or--force/-yto skip it; use--force --jsonfor JSON deletion output. Creation also accepts retention, HTTP authentication, Worker-input, and CORS options; listing supports pagination and a name filter. Default Wrangler logins now requestk2.readandk2.write; existing OAuth users should runwrangler loginagain, or use a custom API token granting K2 Config Write. The account must be enabled for K2.
Patch Changes
-
#15908
ddaa558Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
Dependency From To @cloudflare/workers-types ^5.20260926.1 ^5.20260930.2 workerd 1.20260926.1 1.20260930.2
{ "k2": [ { "binding": "ORDERS", "stream": "0123456789abcdef0123456789abcdef" } ] }