Skip to content

v17.0.1

Choose a tag to compare

@SorinGFS SorinGFS released this 29 Aug 17:29
· 1 commit to master since this release

Performance

Add a validated fast path for non-reserved ASCII LDH hostnames. Hostnames whose labels contain only ASCII letters, digits, and internal hyphens, satisfy the 63-character label and 253-character presentation limits, and do not contain -- in positions 3 and 4 now avoid Unicode mapping, Punycode, contextual, and bidi validation.

Reserved labels, including xn-- A-label candidates, continue through the complete IDNA pipeline. idnHostname continues to apply UTS #46 mapping when producing output, including lowercase conversion of uppercase ASCII input.

On Node.js 24.20.0, the fast path validated the representative 86-character ASCII hostnames at approximately 1.14 million validations per second on the benchmark system.

Verification

  • All 122 package tests passed.
  • All 6,190 applicable nontransitional Unicode 17.0 IdnaTestV2.txt vectors passed.