0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/ext/node
Nathan Whitaker 219a27dde5
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-02 16:20:48 -07:00
..
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-01 09:10:04 -04:00
polyfills fix(ext/node): Support returning tokens and option defaults in node:util.parseArgs (#23192) 2024-04-02 16:20:48 -07:00
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 chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +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-01 20:42:49 -07:00
package_json.rs perf(node): put pkg json into an Rc (#23156) 2024-04-01 09:10:04 -04:00
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-01 09:10:04 -04:00

deno_node

require and other node related functionality for Deno.