diff --git a/.changeset/tidy-bags-give.md b/.changeset/tidy-bags-give.md new file mode 100644 index 000000000..9bf67c0e3 --- /dev/null +++ b/.changeset/tidy-bags-give.md @@ -0,0 +1,5 @@ +--- +'@astrojs/cloudflare': patch +--- + +Adds support for `node:crypto` diff --git a/packages/integrations/cloudflare/README.md b/packages/integrations/cloudflare/README.md index a72e2f1d4..9bae28c5a 100644 --- a/packages/integrations/cloudflare/README.md +++ b/packages/integrations/cloudflare/README.md @@ -339,6 +339,7 @@ Astro's Cloudflare adapter allows you to use any Node.js runtime API supported b - assert - AsyncLocalStorage - Buffer +- Crypto - Diagnostics Channel - EventEmitter - path diff --git a/packages/integrations/cloudflare/src/index.ts b/packages/integrations/cloudflare/src/index.ts index c0af8eb14..36da696bb 100644 --- a/packages/integrations/cloudflare/src/index.ts +++ b/packages/integrations/cloudflare/src/index.ts @@ -283,6 +283,7 @@ export default function createIntegration(args?: Options): AstroIntegration { 'node:assert', 'node:async_hooks', 'node:buffer', + 'node:crypto', 'node:diagnostics_channel', 'node:events', 'node:path', @@ -365,6 +366,7 @@ export default function createIntegration(args?: Options): AstroIntegration { 'node:assert', 'node:async_hooks', 'node:buffer', + 'node:crypto', 'node:diagnostics_channel', 'node:events', 'node:path',