From 0ab6bad7dffd413c975ab00e545f8bc150f6a92f Mon Sep 17 00:00:00 2001 From: Alexander Niebuhr Date: Tue, 10 Oct 2023 09:16:32 +0200 Subject: [PATCH] fix(cloudflare): esbuild settings for cloudflare (#8788) --------- Co-authored-by: Jonathan Dunlap <595843+jadbox@users.noreply.github.com> --- .changeset/tidy-bags-give.md | 5 +++++ packages/integrations/cloudflare/README.md | 1 + packages/integrations/cloudflare/src/index.ts | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 .changeset/tidy-bags-give.md 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',