1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 21:08:56 -05:00
denoland-deno/ext/node/polyfills/internal
Nathan Whitaker a77b2987bc
fix(ext/node): Match punycode module behavior to node (#22847)
Fixes #19214.

We were using the `idna` crate to implement our polyfill for
`punycode.toASCII` and `punycode.toUnicode`. The `idna` crate is
correct, and adheres to the IDNA2003/2008 spec, but it turns out
`node`'s implementations don't really follow any spec! Instead, node
splits the domain by `'.'` and punycode encodes/decodes each part. This
means that node's implementations will happily work on codepoints that
are disallowed by the IDNA specs, causing the error in #19214.

While fixing this, I went ahead and matched the node behavior on all of
the punycode functions and enabled node's punycode test in our
`node_compat` suite.
2024-03-11 15:49:43 -07:00
..
console refactor: Use virtul ops module (#22175) 2024-01-29 22:02:26 +01:00
crypto refactor: Use virtul ops module (#22175) 2024-01-29 22:02:26 +01:00
dns chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
fs feat: deprecate Deno.close() (#22066) 2024-01-24 15:59:55 +01:00
process refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
readline chore: upgrade to dprint 0.39 (#19768) 2023-07-08 18:34:08 +00:00
streams chore: upgrade to dprint 0.39 (#19768) 2023-07-08 18:34:08 +00:00
test chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
util feat(node/util): styleText (#22758) 2024-03-07 00:45:28 +01:00
assert.mjs refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041) 2023-03-08 12:44:54 +01:00
async_hooks.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
buffer.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
buffer.mjs refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
child_process.ts fix(node): errno property when command missing (#22691) 2024-03-04 16:35:44 +00:00
cli_table.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
constants.ts refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
dgram.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
dtrace.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
error_codes.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
errors.ts fix(ext/node): http2.createServer (#22708) 2024-03-07 19:28:46 +05:30
event_target.mjs chore: upgrade to dprint 0.39 (#19768) 2023-07-08 18:34:08 +00:00
fixed_queue.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
hide_stack_frames.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
http.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
idna.ts fix(ext/node): Match punycode module behavior to node (#22847) 2024-03-11 15:49:43 -07:00
net.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
normalize_encoding.mjs chore(ext/node): disable prefer-primordials on a per-file basis (#19553) 2023-06-27 15:18:22 +09:00
options.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
primordials.mjs chore(ext/node): disable prefer-primordials on a per-file basis (#19553) 2023-06-27 15:18:22 +09:00
querystring.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
stream_base_commons.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
timers.mjs fix(ext/node): Add Immediate class to mirror NodeJS.Immediate (#22808) 2024-03-08 15:58:43 -08:00
url.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
util.mjs chore: upgrade to dprint 0.39 (#19768) 2023-07-08 18:34:08 +00:00
validators.mjs refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00