tldts is a JavaScript library for extracting hostnames, domains, subdomains, and public suffixes from URLs and hostnames. It also supports parsing email addresses and detecting IPv4 and IPv6, and includes TypeScript type definitions.
Project status
- The source appears actively maintained, with recent tagged updates (v7.4.0 through v7.4.2) and an upstream push on 2026-06-07.
- The update cadence looks fairly frequent in late May to early June 2026, with updates on 2026-05-25 (v7.4.0), 2026-05-30 (v7.4.1 and v7.4.2), suggesting a roughly weekly rhythm during that period.
AI summary generated Today
Recent updates
v7.4.2
1 week agov7.4.2 updates the bundled public suffix list and regenerates related internal data used for domain/TLD parsing. It also bumps the eslint-plugin-prettier dependency (and, via lockfile resolution, some related transitive tooling dependencies).
v7.4.1
1 week agov7.4.1 mainly updates the bundled public suffix list data used by tldts across the core and ICANN/experimental variants. The release also bumps a couple of build-time dependencies and adds a README benchmark throughput chart. No code-level API changes (exports or function signatures) are evident in the provided diff.
v7.4.0
1 week agov7.4.0 introduces a new API, getFullDomain, across tldts, tldts-icann, and tldts-experimental. It returns the normalized full hostname (subdomain plus registrable domain) when a registrable domain exists, otherwise it returns null.
Featuresv7.3.1
1 week agov7.3.1 introduces a targeted bug fix to reject hostnames that contain labels starting with a hyphen. The change is implemented in the core hostname validation logic and reflected by additional test coverage.
Breakingv7.3.0
1 week agov7.3.0 is positioned as a performance-focused release that validates hostnames inline during extraction to remove a redundant hostname validation scan. The code implements a validation “fusion” between `extractHostname` and `parseImpl`, and adds test coverage to lock in the intended behavior.
v7.2.1
1 week agov7.2.1 is a small patch release focused on hostname extraction in `tldts-core`. The main fix ensures unbracketed IPv6 literals are extracted correctly instead of being mangled/truncated, with corresponding test coverage in `tldts-tests`.
v7.2.0
1 week agov7.2.0 adds opt-in detection for IANA special-use domain names (RFC 6761 and extensions) and exposes the result from `parse()` as `isSpecialUse`. The feature is disabled by default to avoid extra work on the common path, and it is accompanied by new unit tests and README documentation.
Featuresv7.1.2
2 weeks agov7.1.2 mainly tightens IPv6 “probably an IP” heuristics and adds related tests, alongside documentation and some dependency/tooling bumps. A new defensive guard prevents a potential infinite loop in the internal base directory discovery utility.
BreakingSecurityv7.1.1
2 weeks agoRelease v7.1.1 is a focused polish release that updates hostname extraction behavior in tldts-core to better align with WHATWG URL host-boundary semantics. It also adds substantial test coverage by vendoring Web Platform Tests URL hostname cases and introducing dedicated unit tests for extractHostname.
v7.1.0
2 weeks agov7.1.0 claims performance improvements and reduced memory allocations across the main tldts packages. The release notes do not describe the underlying implementation changes, which include a significant rework of suffix trie/lookup internals and changes to how default options and hostname validation are handled.