ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
We have released version 5 of
We still recommend that you generate types for your Worker using
npmyarnpnpmbun
The package now exposes two entrypoints:
The dated entrypoints, such as
For more information, refer to TypeScript language support.
Continue reading...
@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:npmyarnpnpmbun
npm i -D @cloudflare/workers-types@latestyarn add -D @cloudflare/workers-types@latestpnpm add -D @cloudflare/workers-types@latestbun add -d @cloudflare/workers-types@latestThe package now exposes two entrypoints:
@cloudflare/workers-typesreflects the latest compatibility date, using the latest stable compatibility flags.@cloudflare/workers-types/experimentalreflects 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.
Continue reading...