Migrate from psl to tldts for public suffix detection

This commit is contained in:
2025-10-10 10:29:29 -04:00
parent a030817d27
commit bfcecc5eff
6 changed files with 86 additions and 121 deletions
+1
View File
@@ -181,6 +181,7 @@ Project layout:
- Some TLDs provide no RDAP service; `rdapOnly: true` will fail for them.
- Registries may throttle or block WHOIS; respect rate limits and usage policies.
- Field presence depends on source and privacy policies (e.g., redaction/withholding).
- Public suffix detection uses `tldts` with ICANNonly defaults (Private section is ignored). If you need behavior closer to `psl` that considers private suffixes, see the `allowPrivateDomains` option in the `tldts` docs (rdapper currently sticks to ICANNonly by default). See: [tldts migration notes](https://github.com/remusao/tldts#migrating-from-other-libraries).
## License