@cloudflare/workers-types 4.20250508.0 → 4.20250509.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Cloudflare Workers Types
2
2
 
3
+ > **Note**
4
+ >
5
+ > We now recommend using the [Wrangler CLI](https://www.npmjs.com/package/wrangler) and the `wrangler types` command to generate types based on your compatibility date _and_ compatibility flags. You can learn more about this, and how to migrate from @cloudflare/workers-types [here in our docs](https://developers.cloudflare.com/workers/languages/typescript/#generate-types).
6
+ >
7
+ > @cloudflare/workers-types will continue to be published on the same schedule.
8
+
9
+
3
10
  ## Install
4
11
 
5
12
  ```bash
@@ -27,7 +34,7 @@ The following is a minimal `tsconfig.json` for use alongside this package:
27
34
 
28
35
  ### Compatibility dates
29
36
 
30
- ![Entrypoints for compatibility dates](./entrypoints.svg)
37
+ ![Entrypoints for compatibility dates](./npm/workers-types/entrypoints.svg)
31
38
 
32
39
  The Cloudflare Workers runtime manages backwards compatibility through the use of [Compatibility Dates](https://developers.cloudflare.com/workers/platform/compatibility-dates/). Using different compatibility dates affects the runtime types available to your Worker, and so it's important you specify the correct entrypoint to the `workers-types` package to match your compatibility date (which is usually set in your `wrangler.toml` configuration file). `workers-types` currently exposes the following entrypoints to choose from:
33
40
 
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20250508.0"
10
+ "version": "4.20250509.0"
11
11
  }