1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/ext/node/polyfills/internal
Bartek Iwańczuk 75209e12f1
feat: wire up ext/node to the Node compatibility layer (#17785)
This PR changes Node.js/npm compatibility layer to use polyfills for
built-in Node.js
embedded in the snapshot (that are coming from "ext/node" extension).

As a result loading `std/node`, either from
"https://deno.land/std@<latest>/" or
from "DENO_NODE_COMPAT_URL" env variable were removed. All code that is
imported via "npm:" specifiers now uses code embedded in the snapshot.

Several fixes were applied to various modules in "ext/node" to make
tests pass.

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2023-02-15 19:44:52 +01:00
..
console feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
crypto feat: wire up ext/node to the Node compatibility layer (#17785) 2023-02-15 19:44:52 +01:00
dns feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
fs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
process feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
readline feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
streams feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
test feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
util feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
assert.mjs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
async_hooks.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
blob.mjs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
buffer.d.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
buffer.mjs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
child_process.ts feat: wire up ext/node to the Node compatibility layer (#17785) 2023-02-15 19:44:52 +01:00
cli_table.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
constants.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
dgram.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
dtrace.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
error_codes.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
errors.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
event_target.mjs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
fixed_queue.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
freelist.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
hide_stack_frames.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
http.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
idna.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
net.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
normalize_encoding.mjs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
options.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
primordials.mjs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
querystring.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
stream_base_commons.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
timers.mjs feat: wire up ext/node to the Node compatibility layer (#17785) 2023-02-15 19:44:52 +01:00
url.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
util.mjs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
validators.mjs feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00