Skip to content

1.2.0

Choose a tag to compare

@Komposten Komposten released this 04 Sep 15:31
· 42 commits to master since this release

Additions

  • Added a hash map-based ruleMap to SuffixRules to speed up the performance when matching rules.
  • Added subdomain and icannSubdomain to PublicSuffix.
  • Added isSubdomainOf, hasKnownSuffix and hasValidDomain to PublicSuffix.
  • Added DomainUtils with the following static functions:
    • isSubdomainOf
    • isSubdomain
    • isKnownSuffix
    • hasValidDomain
  • Added PublicSuffix.fromString as a convenience method for PublicSuffix(Uri.parse(string)).

Changes

  • Updated docs and parameter names to say URL instead of URI, which is more correct (PublicSuffix.sourceUri is unchanged to avoid breaking changes).