Skip to content

Commit

Permalink
feat(cloudflare): use querystring and url from workerd
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Oct 24, 2024
1 parent 041e962 commit 28738b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"unbuild": "^2.0.0",
"workerd": "^1.20241018.0",
"workerd": "^1.20241022.0",
"wrangler": "^3.81.0"
},
"packageManager": "pnpm@9.12.2"
}
}
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/presets/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Preset } from "../types";
// Built-in APIs provided by workerd.
// https://developers.cloudflare.com/workers/runtime-apis/nodejs/
// https://github.com/cloudflare/workerd/tree/main/src/node
// Last checked: 2024-10-15
// Last checked: 2024-10-22
const cloudflareNodeCompatModules = [
"_stream_duplex",
"_stream_passthrough",
Expand All @@ -15,11 +15,13 @@ const cloudflareNodeCompatModules = [
"diagnostics_channel",
"events",
"path",
"querystring",
"stream",
"stream/consumers",
"stream/promises",
"stream/web",
"string_decoder",
"url",
"util/types",
"zlib",
];
Expand Down

0 comments on commit 28738b5

Please sign in to comment.