1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/ext
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
..
broadcast_channel chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
cache chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
canvas chore: replace 'call' to 'execute' in error messages (#22579) 2024-03-10 02:23:14 +00:00
console chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
cron chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
crypto chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
fetch chore: replace 'call' to 'execute' in error messages (#22579) 2024-03-10 02:23:14 +00:00
ffi chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
fs fix(ext/node): support junction symlinks on Windows (#22762) 2024-03-09 09:07:29 +05:30
http chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
io chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
kv chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
napi chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
net chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
node fix(ext/node): Match punycode module behavior to node (#22847) 2024-03-11 15:49:43 -07:00
tls chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
url chore: replace 'call' to 'execute' in error messages (#22579) 2024-03-10 02:23:14 +00:00
web fix(ext/node) implement receiveMessageOnPort for node:worker_threads (#22766) 2024-03-11 00:23:06 +01:00
webgpu chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
webidl chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00
websocket fix(ext/websocket): do not continue reading if socket rid closes (#21849) 2024-03-09 09:36:17 +05:30
webstorage chore: forward v1.41.2 release commit to main (#22793) 2024-03-08 09:12:36 +00:00