public_suffix 1.2.0
public_suffix: ^1.2.0 copied to clipboard
A domain parser based on the Public Suffix List, for identifying the root and suffix/TLD of URLs.
1.2.0 #
- Added a hash map-based
ruleMaptoSuffixRulesto speed up the performance when matching rules. - Added
subdomainandicannSubdomaintoPublicSuffix. - Added
isSubdomainOf,hasKnownSuffixandhasValidDomaintoPublicSuffix. - Added
DomainUtilswith the following static functions:isSubdomainOfisSubdomainisKnownSuffixhasValidDomain
- Added
PublicSuffix.fromStringas a convenience method forPublicSuffix(Uri.parse(string)). - Updated docs and parameter names to say URL instead of URI, which is more correct (
PublicSuffix.sourceUriis unchanged to avoid breaking changes).
1.1.0 #
- Added primary library
public_suffix.dart, which can be used withoutdart:ioanddart:html(but still requires to be initialised with a suffix list).
1.0.0 #
- Load suffix rule lists from strings or URIs.
- Parse URLs against suffix lists to obtain:
- public suffix (e.g.
co.uk) - root domain (e.g.
google) - registrable domain (e.g.
google.co.uk)
- public suffix (e.g.
- Obtain results with and without private (i.e. non-ICANN/IANA) suffix rules.
- Obtain punycode encoded and decoded results (if a punycoded URL is parsed).