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 23, 2024
1 parent f978612 commit b304e20
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"unbuild": "^2.0.0",
"workerd": "^1.20241011.1",
"workerd": "^1.20241022.0",
"wrangler": "^3.81.0"
},
"packageManager": "pnpm@9.12.2"
Expand Down
62 changes: 60 additions & 2 deletions 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 b304e20

Please sign in to comment.