microlinkhq / metascraper

Get unified metadata from websites using Open Graph, Microdata, RDFa, Twitter Cards, JSON-LD, HTML, and more.
https://metascraper.js.org
MIT License
2.35k stars 168 forks source link

build(deps): bump tldts from 5.7.112 to 6.0.1 #631

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps tldts from 5.7.112 to 6.0.1.

Release notes

Sourced from tldts's releases.

v6.0.1

:bug: Bug Fix

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

Authors: 1

v6.0.0

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.


:boom: Breaking Change

... (truncated)

Changelog

Sourced from tldts's changelog.

v6.0.1 (Sat Apr 01 2023)

:bug: Bug Fix

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

Authors: 1


v6.0.0 (Sat Apr 01 2023)

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.

... (truncated)

Commits
  • 5d31741 Bump version to: v6.0.1 [skip ci]
  • 72fb9ce Update CHANGELOG.md [skip ci]
  • 5aab0ba Extended tests and fix in wildcard matching from tldts-experimental (#1593)
  • bc3d527 Bump version to: v6.0.0 [skip ci]
  • 835538c Update CHANGELOG.md [skip ci]
  • 266d290 Be more lenient in accepting leading underscores and dots in hostnames (#1553)
  • 46f2b6d tooling: migrate to eslint + TypeScript v5 + prettier (#1575)
  • See full diff in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)