Workers - Simpler runtime types with @cloudflare/workers-types v5
2d ago
Source
CloudflareWorkers - Simpler runtime types with @cloudflare/workers-types v5cloudflare.comWe have released version 5 of @cloudflare/workers-types . This release simplifies the package to expose only the latest runtime types. We still recommend that you generate types for your Worker using wrangler types , but if you want to use the package directly, you can install it with your package manager of choice: npm i -D @cloudflare/workers-types@latest yarn add -D @cloudflare/workers-types@latest pnpm add -D @cloudflare/workers-types@latest bun add -d @cloudflare/workers-types@latest The package now exposes two entrypoints: @cloudflare/workers-types reflects the latest compatibility date, using the latest stable compatibility flags. @cloudflare/workers-types/experimental reflects APIs behind experimental compatibility flags. The dated entrypoints, such as @cloudflare/workers-types/2022-11-30 and @cloudflare/workers-types/2023-03-01 , are removed. With runtime type generation in Wrangler v4 , you can generate these with the wrangler types command to create types locked to your Worker's compatibility date. For more information, refer to TypeScript language support .
You might also wanna read
Cloudflare expands AI bot management tools with granular traffic controls for all customers
Cloudflare is celebrating the second "Content Independence Day" by expanding AI traffic management options for all website owners. Building
Cloudflare One - Hostname routing for Cloudflare Mesh
Cloudflare·3d ago
Cache - Cache multiple versions of a URL with Vary
Cloudflare·3d ago
AI Search - Manage AI Search sync jobs with Wrangler CLI
Cloudflare·3d ago
Workers - Work across multiple accounts with Wrangler auth profiles
Cloudflare·3d ago
RT @msmps_: durable objects memory metrics are live. track usage per object across percentiles and catch leaks before they become errors w…
Cloudflare·3d ago

Comments
Sign in to join the conversation.
No comments yet. Be the first.