deno/ext/node
Nathan Whitaker 77f2a2c3f2
fix(ext/node): Support returning tokens and option defaults in node:util.parseArgs (#23192)
Fixes #23179.
Fixes #22454.

Enables passing `{tokens: true}` to `parseArgs` and setting default
values for options.

With this PR, the observable framework works with deno out of the box
(no unstable flags needed).

The existing code was basically copied straight from node, so this PR
mostly just updates that (out of date) vendored code. Also fixes some
issues with error exports (before this PR, in certain error cases we
were attempting to construct error classes that weren't actually in
scope).

The last change (in the second commit) adds a small hack so that we
actually exercise the `test-parse-args.js` node_compat test, previously
it was reported as passing though it should have failed. That test now
passes.

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-04-11 10:31:49 +05:30
..
benchmarks fix: implement child_process IPC (#21490) 2023-12-13 11:14:16 +01:00
ops perf(node): put pkg json into an Rc (#23156) 2024-04-11 10:31:49 +05:30
polyfills fix(ext/node): Support returning tokens and option defaults in node:util.parseArgs (#23192) 2024-04-11 10:31:49 +05:30
analyze.rs feat(node): load ES modules defined as CJS (#22945) 2024-03-21 11:35:51 -07:00
build.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
Cargo.toml 1.42.1 (#23158) 2024-04-01 12:03:06 +05:30
clippy.toml refactor(ext/fs): deno_fs::FileSystem - conditional Send + Sync (#18993) 2023-05-08 11:02:02 -04:00
errors.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
global.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
lib.rs fix(ext/node): Add fs.readv, fs.readvSync (#23166) 2024-04-11 10:31:49 +05:30
package_json.rs perf(node): put pkg json into an Rc (#23156) 2024-04-11 10:31:49 +05:30
path.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
polyfill.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00
resolution.rs perf(node): put pkg json into an Rc (#23156) 2024-04-11 10:31:49 +05:30

deno_node

require and other node related functionality for Deno.