@yarigai/iana-tlds 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,6 +9,8 @@
9
9
 
10
10
  Validate email and domain TLDs against the official IANA list, checked daily. Zero dependencies, fully typed, ESM + CJS.
11
11
 
12
+ Using Go? [`github.com/yarigai/iana-tlds-go`](https://github.com/yarigai/iana-tlds-go) is the official port, with the same behavior, the same TLD list and byte-identical JSON results.
13
+
12
14
  ## Why
13
15
 
14
16
  Most email and domain validators decide what a TLD is with a regex or a list someone copied years ago. Both fail in production. A pattern like `\.[a-z]{2,6}$` rejects real TLDs such as `.photography` or the internationalized `.xn--p1ai` (Russian `.рф`), and happily accepts typos like `.con` or `.comm`. Hardcoded lists go stale: IANA added `.web` in 2026, and it retires TLDs too (`.goo` is gone). This package checks the TLD against IANA's [root zone list](https://data.iana.org/TLD/tlds-alpha-by-domain.txt), bundled at build time, with no network call at runtime.