tldts

JavaScript Library to extract domains, subdomains and public suffixes from complex URIs.

MIT License

Downloads
16.4M
Stars
482
Committers
22

Bot releases are hidden (Show)

tldts - v3.1.1

Published by remusao almost 6 years ago

  • Minify idna and rules files
tldts - v3.1.0

Published by remusao almost 6 years ago

  • #3 Various optimizations
    • Rules are now shipped in a parsed form in the bundle
    • Rules cannot be updated (opinionated)
    • Trie matching is now iterative
    • All rules are stored in their ASCII form instead of Unicode
    • Use ts-jest to run tests
    • Remove dist folder from source tree
    • Hostname parsing has been optimized
  • #2 Fix isPrivate being undefined
  • #4 Optimize the implementation of options' setDefaults
tldts - v3.0.2

Published by remusao about 6 years ago

tldts - v3.0.1

Published by remusao about 6 years ago

tldts - v3.0.0 - Typescript rewrite

Published by remusao about 6 years ago

This new version is a full rewrite of the very good tld.js into TypeScript. It now offers both a TypeScript code-base, type definitions and javascript bundles. It also benefits from performance improvements and more features (full IDNA handling, faster hostname extraction, easier customization using options, etc.).

  • Introduce two new options to enabled/disabled the Private/ICANN domains.
  • 'allowIcann' set to 'false' will ignore the ICANN section of the list.
  • 'allowPrivate' set to 'false' will ignore the PRIVATE section of the list.
  • Introduce 'lenient' mode for hostname validation.
  • typescript rewrite + toolchain improvements
  • Update travis config
  • Optimizations + idna compaction
  • Allow updating the rules
  • Use minified/optimized version in benchmark
  • Simplify tsconfig
tldts -

Published by remusao about 7 years ago