1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/ext/node
Bartek Iwańczuk d47147fb6a
feat(ext/node): embed std/node into the snapshot (#17724)
This commit moves "deno_std/node" in "ext/node" crate. The code is
transpiled and snapshotted during the build process.

During the first pass a minimal amount of work was done to create the
snapshot, a lot of code in "ext/node" depends on presence of "Deno"
global. This code will be gradually fixed in the follow up PRs to migrate
it to import relevant APIs from "internal:" modules.

Currently the code from snapshot is not used in any way, and all
Node/npm compatibility still uses code from 
"https://deno.land/std/node" (or from the location specified by 
"DENO_NODE_COMPAT_URL"). This will also be handled in a follow 
up PRs.

---------

Co-authored-by: crowlkats <crowlkats@toaxl.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-02-14 17:38:45 +01:00
..
crypto feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
polyfills feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
01_node.js fix: use static Reflect methods in nodeGlobalThis proxy (#17696) 2023-02-08 19:11:12 -05: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(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +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(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +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.