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 visible (Hide)

tldts - v6.0.16

Published by github-actions[bot] about 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

Authors: 1

tldts - v6.0.15

Published by github-actions[bot] about 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

🔩 Dependencies

Authors: 2

tldts - v6.0.14

Published by github-actions[bot] about 1 year ago

📜 Update Public Suffix List

Authors: 1

tldts - v6.0.13

Published by github-actions[bot] about 1 year ago

📜 Update Public Suffix List

🔩 Dependencies

Authors: 2

tldts - v6.0.12

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

⚠️ Pushed to master

🏠 Internal

🔩 Dependencies

Authors: 2

tldts - v6.0.11

Published by github-actions[bot] over 1 year ago

🐛 Bug Fix

Authors: 1

tldts - v6.0.10

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

🔩 Dependencies

Authors: 2

tldts - v6.0.9

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

🔩 Dependencies

Authors: 2

tldts - v6.0.8

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

Authors: 1

tldts - v6.0.7

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

Authors: 1

tldts - v6.0.6

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

🔩 Dependencies

Authors: 2

tldts - v6.0.5

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

Authors: 1

tldts - v6.0.4

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

🏠 Internal

🔩 Dependencies

Authors: 2

tldts - v6.0.3

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-core, tldts-experimental, tldts-utils, tldts

🔩 Dependencies

Authors: 2

tldts - v6.0.2

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

Authors: 1

tldts - v6.0.1

Published by github-actions[bot] over 1 year ago

🐛 Bug Fix

  • tldts-experimental
    • Extended tests and fix in wildcard matching from tldts-experimental #1593 (@remusao)

Authors: 1

tldts - v6.0.0

Published by github-actions[bot] over 1 year ago

Release Notes

Be more lenient in accepting leading underscores and dots in hostnames (#1553)

Handling of leading dot(s) in input URIs and hostnames:

- expect(isValidHostname('.github.com')).to.equal(false);
+ expect(isValidHostname('.github.com')).to.equal(true);

- expect(getDomain('.github.com')).to.equal(null);
+ expect(getDomain('.github.com')).to.equal('github.com');

- expect(getDomain('.remusao.github.io')).to.equal(null);
+ expect(getDomain('.remusao.github.io')).to.equal('github.io');

Handling of leading underscores in input URIs and hostnames:

- expect(getDomain('_0f6879.bsg-1418.bryanjswift.com')).to.equal(null);
+ expect(getDomain('_0f6879.bsg-1418.bryanjswift.com')).to.equal('bryanjswift.com');

Lastly, increase test coverage using test cases found in the whatwg spec.

This is a breaking change because some might rely on the previous behavior to consider leading dots and underscores as invalid hostnames or domains.

Resolves #1534
Resolves #1523

tooling: migrate to eslint + TypeScript v5 + prettier (#1575)

Updated internal representation of the DAWG used to encode the public suffix list, resulting in ~5% size reduction of minified bundle for identical performance (and likely a faster parsing/loading time of the source, although I did not measure that particular aspect yet).

Migrate from deprecated tslint to eslint with TypeScript support and fix most of the issues encountered, resulting in tighter typing. Bump TypeScript to v5 as well and make sure code-base is formatted according to prettier's preset.


💥 Breaking Change

  • tldts-core, tldts-experimental, tldts
    • Be more lenient in accepting leading underscores and dots in hostnames #1553 (@remusao)

🏠 Internal

  • tldts-core, tldts-experimental, tldts
    • tooling: migrate to eslint + TypeScript v5 + prettier #1575 (@remusao)

Authors: 1

tldts - v5.7.112

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

Authors: 1

tldts - v5.7.111

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

🔩 Dependencies

Authors: 2

tldts - v5.7.110

Published by github-actions[bot] over 1 year ago

📜 Update Public Suffix List

  • tldts-experimental, tldts

🏠 Internal

  • tldts-core, tldts-experimental, tldts

🔩 Dependencies

Authors: 2