summaryrefslogtreecommitdiff
path: root/ext/node/ops/idna.rs
AgeCommit message (Collapse)Author
2024-10-24refactor(ext/node): use concrete error types (#26419)Leo Kettmeir
2024-03-11fix(ext/node): Match punycode module behavior to node (#22847)Nathan Whitaker
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-01-01chore: update copyright to 2024 (#21753)David Sherret
2023-09-14refactor: rewrite ext/node to op2 (#20489)Bartek Iwańczuk
2023-04-24refactor(ext/node): reorganize ops (#18799)Bartek Iwańczuk
Move all op related code of "ext/node" to "ext/node/ops" module. These files were unnecessarily scattered around the extension.