@astrojs/cloudflare 7.5.0 → 7.5.2

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.
package/README.md CHANGED
@@ -339,6 +339,7 @@ Astro's Cloudflare adapter allows you to use any Node.js runtime API supported b
339
339
  - assert
340
340
  - AsyncLocalStorage
341
341
  - Buffer
342
+ - Crypto
342
343
  - Diagnostics Channel
343
344
  - EventEmitter
344
345
  - path
@@ -357,6 +358,10 @@ import { Buffer } from 'node:buffer';
357
358
 
358
359
  Additionally, you'll need to enable the Compatibility Flag in Cloudflare. The configuration for this flag may vary based on where you deploy your Astro site. For detailed guidance, please refer to the [Cloudflare documentation on enabling Node.js compatibility](https://developers.cloudflare.com/workers/runtime-apis/nodejs).
359
360
 
361
+ ## Cloudflare module support
362
+
363
+ All Cloudflare namespaced packages (e.g. `cloudflare:sockets`) are allowlisted for use. Note that the package `cloudflare:sockets` does not work locally without using Wrangler dev mode.
364
+
360
365
  ## Preview with Wrangler
361
366
 
362
367
  To use [`wrangler`](https://developers.cloudflare.com/workers/wrangler/) to run your application locally, update the preview script:
package/dist/index.js CHANGED
@@ -211,13 +211,15 @@ function createIntegration(args) {
211
211
  "node:assert",
212
212
  "node:async_hooks",
213
213
  "node:buffer",
214
+ "node:crypto",
214
215
  "node:diagnostics_channel",
215
216
  "node:events",
216
217
  "node:path",
217
218
  "node:process",
218
219
  "node:stream",
219
220
  "node:string_decoder",
220
- "node:util"
221
+ "node:util",
222
+ "cloudflare:*"
221
223
  ],
222
224
  entryPoints: pathsGroup,
223
225
  outbase: absolutePagesDirname,
@@ -275,13 +277,15 @@ function createIntegration(args) {
275
277
  "node:assert",
276
278
  "node:async_hooks",
277
279
  "node:buffer",
280
+ "node:crypto",
278
281
  "node:diagnostics_channel",
279
282
  "node:events",
280
283
  "node:path",
281
284
  "node:process",
282
285
  "node:stream",
283
286
  "node:string_decoder",
284
- "node:util"
287
+ "node:util",
288
+ "cloudflare:*"
285
289
  ],
286
290
  entryPoints: [entryPath],
287
291
  outfile: buildPath,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/cloudflare",
3
3
  "description": "Deploy your site to Cloudflare Workers/Pages",
4
- "version": "7.5.0",
4
+ "version": "7.5.2",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -38,10 +38,10 @@
38
38
  "find-up": "^6.3.0",
39
39
  "tiny-glob": "^0.2.9",
40
40
  "vite": "^4.4.9",
41
- "@astrojs/underscore-redirects": "0.3.0"
41
+ "@astrojs/underscore-redirects": "0.3.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "astro": "^3.2.2"
44
+ "astro": "^3.2.4"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/iarna__toml": "^2.0.2",
@@ -49,9 +49,12 @@
49
49
  "cheerio": "1.0.0-rc.12",
50
50
  "mocha": "^10.2.0",
51
51
  "wrangler": "^3.5.1",
52
- "astro": "3.2.2",
52
+ "astro": "3.2.4",
53
53
  "astro-scripts": "0.0.14"
54
54
  },
55
+ "publishConfig": {
56
+ "provenance": true
57
+ },
55
58
  "scripts": {
56
59
  "build": "astro-scripts build \"src/**/*.ts\" && tsc",
57
60
  "build:ci": "astro-scripts build \"src/**/*.ts\"",