1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/ext/node
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
..
crypto feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
polyfills feat: wire up ext/node to the Node compatibility layer (#17785) 2023-02-15 19:44:52 +01:00
01_node.js feat: wire up ext/node to the Node compatibility layer (#17785) 2023-02-15 19:44:52 +01:00
02_require.js refactor: Use ES modules for internal runtime code (#17648) 2023-02-07 20:22:46 +01:00
Cargo.toml feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
errors.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
lib.rs feat: wire up ext/node to the Node compatibility layer (#17785) 2023-02-15 19:44:52 +01:00
module_es_shim.js refactor: allow to provide polyfills for Node modules from the snapshot (#17706) 2023-02-10 11:40:45 +00:00
ops.rs refactor: clean up "cli/node/mod.rs" and "ext/node" (#17713) 2023-02-10 10:26:39 -05:00
package_json.rs refactor(npm): use per-thread package.json cache (#17644) 2023-02-06 16:20:20 +01:00
path.rs chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
polyfill.rs feat: wire up ext/node to the Node compatibility layer (#17785) 2023-02-15 19:44:52 +01:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00
resolution.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00

deno_node

require and other node related functionality for Deno.