File tree Expand file tree Collapse file tree 1 file changed +29
-26
lines changed
packages/unenv-preset/src Expand file tree Collapse file tree 1 file changed +29
-26
lines changed Original file line number Diff line number Diff line change @@ -4,32 +4,36 @@ import type { Preset } from "unenv";
44// Built-in APIs provided by workerd.
55// https://developers.cloudflare.com/workers/runtime-apis/nodejs/
66// https://github.com/cloudflare/workerd/tree/main/src/node
7- // Last checked: 2024-10-22
7+ // Last checked: 2025-01-21
88const cloudflareNodeCompatModules = [
9- "_stream_duplex" ,
10- "_stream_passthrough" ,
11- "_stream_readable" ,
12- "_stream_transform" ,
13- "_stream_writable" ,
14- "assert" ,
15- "assert/strict" ,
16- "buffer" ,
17- "diagnostics_channel" ,
18- "dns" ,
19- "dns/promises" ,
20- "events" ,
21- "path" ,
22- "path/posix" ,
23- "path/win32" ,
24- "querystring" ,
25- "stream" ,
26- "stream/consumers" ,
27- "stream/promises" ,
28- "stream/web" ,
29- "string_decoder" ,
30- "url" ,
31- "util/types" ,
32- "zlib" ,
9+ "_stream_duplex" ,
10+ "_stream_passthrough" ,
11+ "_stream_readable" ,
12+ "_stream_transform" ,
13+ "_stream_writable" ,
14+ "assert" ,
15+ "assert/strict" ,
16+ "buffer" ,
17+ "diagnostics_channel" ,
18+ "dns" ,
19+ "dns/promises" ,
20+ "events" ,
21+ "net" ,
22+ "net/promises" ,
23+ "path" ,
24+ "path/posix" ,
25+ "path/win32" ,
26+ "querystring" ,
27+ "stream" ,
28+ "stream/consumers" ,
29+ "stream/promises" ,
30+ "stream/web" ,
31+ "string_decoder" ,
32+ "timers" ,
33+ "timers/promises" ,
34+ "url" ,
35+ "util/types" ,
36+ "zlib" ,
3337] ;
3438
3539// Modules implemented via a mix of workerd APIs and polyfills.
@@ -39,7 +43,6 @@ const hybridNodeCompatModules = [
3943 "crypto" ,
4044 "module" ,
4145 "process" ,
42- "timers" ,
4346 "util" ,
4447] ;
4548
You can’t perform that action at this time.
0 commit comments