Repository navigation
chore: update the IANA TLD list to version 2026102100 - #534
Merged
Merged
Conversation
_tld.txt was last refreshed from the IANA list in May 2024 (version 2024052400). Since then 13 TLDs have been retired from the root zone and .merck and .web have been delegated, so consider_tld accepted names under retired TLDs and rejected names under the new ones. Replace it with https://data.iana.org/TLD/tlds-alpha-by-domain.txt, version 2026102100 (md5 275d627bb5615a6049fd0282962448a5, matching the published checksum).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/validators/_tld.txtwas last refreshed in May 2024 (IANA version2024052400). Since then, 13 TLDs have been retired from the root zone and 2 have been delegated, soconsider_tld=Trueaccepted names under retired TLDs and rejected names under new ones.This replaces it with
tlds-alpha-by-domain.txtversion2026102100. The file's MD5 is275d627bb5615a6049fd0282962448a5, which matches IANA's published.md5. It is plain ASCII with one label per line, in the same layout as before.No tests or docs used a retired TLD. I added
somerandomexample.web(valid) andsomerandomexample.goo(invalid) to theconsider_tldtests; both fail with the old list. The full suite passes with and withoutPYVLD_CACHE_TLD=True, and the built wheel and sdist both still include_tld.txt.