Skip to content

Releases: remusao/tldts

v5.3.1

17 Jul 10:32
Compare
Choose a tag to compare
  • clean-up dead folder + update rules #199

v5.2.1

01 Jul 15:28
Compare
Choose a tag to compare
  • ship both cjs and es6 source + only minified bundles #183

v5.2.0

21 Jun 11:51
0e9c42b
Compare
Choose a tag to compare
  • Exclude unnecessary files from package.json #177

v5.1.0

06 Jun 15:35
9765f76
Compare
Choose a tag to compare
  • #164 Update rules + add fast path for experimental bundle as well

v5.0.3

29 May 08:14
15d828d
Compare
Choose a tag to compare

v5.0.2

24 May 08:28
721a52a
Compare
Choose a tag to compare

v5.0.1

23 May 15:35
02d3a0c
Compare
Choose a tag to compare

v5.0.0

23 May 12:24
3ecbd9e
Compare
Choose a tag to compare
  • Performance improvements in all methods of public API (up to x2 faster)
    • extractHostname: will now avoid lower-casing the result in some cases
    • extractHostname: handles single or triple '/' after protocol
    • extractHostname: has fast-path for validation of common protocols (e.g. https)
    • isProbablyIpv4: performs first quick check on length of hostname
    • isProbablyIpv6: performs first quick check on length of hostname
    • isValidHostname: make use of charCodeAt instead of codePointAt
    • lookupInTrie: makes use of Trie with more stable structure (faster)
    • lookupInTrie: lazily allocate memory for result
    • suffixLookup: uses fast-path for most common suffixes (massive speed-up)
    • suffixLookup: does not allocate memory for result anymore
    • setDefaults: fast-path in case no argument was provided
    • getSubdomain: fast-path if subdomain is empty
  • Add more options to fine-tune behavior and performance
    • detectIp allows to disable IP check
    • mixedInput allows to specify if we expect a mix of URLs and hostnames as
      input. If only hostnames are expected then extractHostname can be set to
      false to speed-up parsing. If only URLs are expected then mixedInputs
      can be set to false. The mixedInputs is only a hint and will not
      change the behavior of the library.
    • validateHostname can be set to false to disable validation and
      speed-up processing further.
  • Check that input is string before parsing
  • Fix support for reserved keywords in hostnames
  • Add tests and bring back coverage to 100%
  • Minified bundle is now also tested with the same suite
  • Migrate utils scripts from bin/ folder to TypeScript
  • Add small tldts cli which can be used to parse URLs
  • Update README with more accurate information

v4.0.6

15 Apr 11:31
f17ce70
Compare
Choose a tag to compare
  • #123 Update Public Suffix Lists to 033221af7f600bcfce38dcbfafe03b9a2269c4cc

v4.0.4

29 Mar 09:26
f17ce70
Compare
Choose a tag to compare
  • #100 Update Public Suffix Lists