1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/ext/node/polyfills/internal_binding
Yoshiya Hinosawa d59599fc18
fix(ext/node): fix dns.lookup result ordering (#26264)
partially unblocks #25470

This PR aligns the resolution of `localhost` hostname to Node.js
behavior.

In Node.js `dns.lookup("localhost", (_, addr) => console.log(addr))`
prints ipv6 address `::1`, but it prints ipv4 address `127.0.0.1` in
Deno. That difference causes some errors in the work of enabling
`createConnection` option in `http.request` (#25470). This PR fixes the
issue by aligning `dns.lookup` behavior to Node.js.

This PR also changes the following behaviors (resolving TODOs):
- `http.createServer` now listens on ipv6 address `[::]` by default on
linux/mac
- `net.createServer` now listens on ipv6 address `[::]` by default on
linux/mac

These changes are also alignments to Node.js behaviors.
2024-10-16 20:58:44 +09:00
..
_libuv_winerror.ts refactor: migrate 'ext/node' extension to virtual ops module (#22157) 2024-01-29 14:58:08 +01:00
_listen.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_node.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_timingSafeEqual.ts fix(ext/node): timingSafeEqual account for AB byteOffset (#26292) 2024-10-16 14:27:28 +05:30
_utils.ts Revert "perf(ext/node): improve Buffer from string performance" (#24851) 2024-08-02 16:23:21 +02:00
ares.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
async_wrap.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
buffer.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
cares_wrap.ts fix(ext/node): fix dns.lookup result ordering (#26264) 2024-10-16 20:58:44 +09:00
connection_wrap.ts chore: update deno_lint for CI (#21802) 2024-01-05 15:03:06 +00:00
constants.ts refactor: Use virtul ops module (#22175) 2024-01-29 22:02:26 +01:00
crypto.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
handle_wrap.ts docs: fix typos (#24820) 2024-08-02 13:26:54 +02:00
mod.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
node_file.ts BREAKING(fs): remove Deno.seek[Sync]() (#25449) 2024-09-05 20:37:28 +10:00
node_options.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
pipe_wrap.ts feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
README.md feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
stream_wrap.ts fix(ext/node): avoid showing UNKNOWN error from TCP handle (#25550) 2024-09-11 19:19:02 +09:00
string_decoder.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
symbols.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
tcp_wrap.ts fix(ext/node): implement TCP.setNoDelay (#26263) 2024-10-15 14:47:12 +05:30
types.ts fix: strict type check for cross realms (#21669) 2024-01-04 09:42:38 +05:30
udp_wrap.ts feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
util.ts refactor: migrate 'ext/node' extension to virtual ops module (#22157) 2024-01-29 14:58:08 +01:00
uv.ts fix: android support (#19437) 2024-01-10 06:04:14 -07:00

Internal Bindings

The modules in this directory implement (simulate) C++ bindings implemented in the ./src/ directory of the Node.js repository.

These bindings are created in the Node.js source code by using NODE_MODULE_CONTEXT_AWARE_INTERNAL.

Please refer to https://github.com/nodejs/node/blob/master/src/README.md for further information.