Skip to content

v3.0.0 - Typescript rewrite

Compare
Choose a tag to compare
@remusao remusao released this 18 Sep 09:47
· 2433 commits to master since this release
7307bbf

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