Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency tldextract to v5 #2031

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 9, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
tldextract ^2.2.0 -> ^5.0.0 age adoption passing confidence

Release Notes

john-kurkowski/tldextract (tldextract)

v5.1.3

Compare Source

  • Bugfixes
    • Reduce logging errors (921a825)
    • Drop support for EOL Python 3.8 (#​340)
    • Support Python 3.13 (#​341)
    • Update bundled snapshot
  • Documentation
    • Clarify how to use your own definitions
    • Clarify first-successful definitions vs. merged definitions
  • Misc.
    • Switch from Black to Ruff (#​333)
    • Switch from pip to uv, during tox (#​324)

v5.1.2

Compare Source

  • Bugfixes
    • Remove socket.inet_pton, to fix platform-dependent IP parsing (#​318)
    • Use non-capturing groups for IPv4 address detection, for a slight speed boost (#​323)
  • Misc.
    • Add CI for PyPy3.9 and PyPy3.10 (#​316)
    • Add script to automate package release process (#​325)
    • Update LICENSE copyright years

v5.1.1

Compare Source

  • Bugfixes
    • Fix path join on Windows (#​314)
    • Support Python 3.12

v5.1.0

Compare Source

  • Features
    • Allow passing in requests.Session (#​311)
    • Add "-j, --json" option to support output in json format (#​313)
  • Docs
    • Improve clarity of absolute path (#​312)
  • Misc.
    • Extract all testing deps from tox.ini to pyproject.toml extras (#​310)
    • Work around responses type union error, in tests

v5.0.1

Compare Source

  • Bugfixes
    • Indicate MD5 not used in a security context (FIPS compliance) (#​309)
  • Misc.
    • Increase typecheck aggression

v5.0.0

Compare Source

  • Breaking Changes
    • Migrate ExtractResult from namedtuple to dataclass (#​306)
      • This means no more iterating/indexing/slicing/unpacking the result
        object returned by this library. It is no longer a tuple. You must
        directly reference the fields you're interested in.

        For example, the
        following will no longer work.

        tldextract.extract("example.com")[1:3]

TypeError: 'ExtractResult' object is not subscriptable

      ```
      Instead, use the following.
      ```python
      ext = tldextract.extract("example.com")
      (ext.domain, ext.suffix)
      ```
  • Bugfixes
    • Drop support for EOL Python 3.7
  • Misc.
    • Switch from pycodestyle and Pylint to Ruff (#​304)
    • Consolidate config files
    • Type tests
    • Require docstrings in tests
    • Remove obsolete tests

v4.0.0

Compare Source

  • Breaking bugfixes
    • Always include suffix if private suffix enabled and private suffix exists (#​300)
      • Add a 4th field is_private: bool, to the ExtractResult
        namedtuple, indicating whether the extraction came from the PSL's
        private domains or not.
      • This could cause issues when iterating over the tuple and assuming
        only 3 fields.
      • Previously, the docs promoted iteration to rejoin parts of the tuple.
        This is better achieved by individual access of fields of interest
        (e.g. ExtractResult.subdomain) or convenience properties (e.g.
        ExtractResult.{fqdn,registered_domain}).

This is the same content as version 3.6.0, originally released 2023-09-19,
which was yanked.

v3.6.0

Compare Source

v3.5.0

Compare Source

  • Features
  • Bugfixes
    • Accept only 4 decimal octet IPv4 addresses (#​292)
    • Support IPv4 addresses with unicode dots (#​292)
    • Reject IPv4 addresses with trailing whitespaces + non-whitespaces (#​293)
  • Misc.
    • Migrate setup.py to pyproject.toml (#​299)

v3.4.4

Compare Source

  • Bugfixes
    • Honor private domains flag on self, not only when passed to __call__ (#​289)

v3.4.3

Compare Source

  • Bugfixes
    • Speed up 10-15% over all inputs
      • Refactor suffix_index() to use a trie (#​285)
  • Docs
    • Adopt PEP257 doc style

v3.4.2

Compare Source

  • Bugfixes
    • Speed up 10-40% on "average" inputs, and even more on pathological inputs, like long subdomains
      • Optimize suffix_index(): search from right to left (#​283)
      • Optimize netloc extraction: switch from regex to if/else (#​284)

v3.4.1

Compare Source

  • Bugfixes
    • Fix Pyright not finding tldextract public interface (#​279)
    • Fix various Pyright checks
    • Use SPDX license identifier (#​280)
    • Support Python 3.11
  • Docs
    • Add FAQ about private domains
  • Misc.
    • Update bundled snapshot
    • Fix lint in newer pylint

v3.4.0

Compare Source

  • Features
    • Add method extract_urllib to extract from a urllib.parse.{ParseResult,SplitResult} (#​274)
  • Bugfixes
    • Fix internal type-var error, in newer versions of mypy (#​275)

v3.3.1

Compare Source

  • Bugfixes
    • Fix documented types, in README and in exception message (#​265)
  • Misc.
    • Format source code

v3.3.0

Compare Source

  • Features
    • Add CLI flag --suffix_list_url to set the suffix list URL(s) or source file(s) (#​197)
    • Add CLI flag --no_fallback_to_snapshot to not fall back to the snapshot (#​260)
    • Add alias --include_psl_private_domains for CLI flag --private_domains
  • Bugfixes
    • Handle more internationalized domain name dots (#​253)
  • Misc.
    • Update bundled snapshot
    • Add basic CLI test coverage

v3.2.1

Compare Source

  • Bugfixes
    • Fix incorrect namespace used for caching function returns (#​258)
    • Remove redundant encode (6e2c0e0)
    • Remove redundant lowercase (226bfc2)
    • Remove unused try/except path (#​255)
    • Add types to the private API (disallow untyped calls and defs) (#​256)
    • Rely on python_requires instead of runtime check (#​247)
  • Docs
    • Fix docs with updated types
    • Fix link in Travis CI badge (#​248)
    • Rewrite documentation intro
    • Remove unnecessary subheading
    • Unify case

v3.2.0

Compare Source

  • Features
    • Add types to the public API (#​244)
  • Bugfixes
    • Add support for Python 3.10 (#​246)
    • Drop support for EOL Python 3.6 (#​246)
    • Remove py2 tag from wheel (#​245)
    • Remove extra backtick in README (#​240)

v3.1.2

Compare Source

  • Misc.
    • Only run pylint in Tox environments, i.e. CI, not by default in tests (#​230)

v3.1.1

Compare Source

  • Bugfixes
    • Support Python 3.9
    • Drop support for EOL Python 3.5

v3.1.0

Compare Source

  • Features
    • Prefer to cache in XDG cache directory in user folder, vs. in Python install folder (#​213)
  • Bugfixes
    • Fix AttributeError on --update (#​215)

v3.0.2

Compare Source

  • Bugfixes
    • Catch permission error when making cache dir, as well as cache file (#​211)

v3.0.1

Compare Source

  • Bugfixes
    • Fix tlds property AttributeError (#​210)
    • Allow include_psl_private_domains in global extract too (#​210)

v3.0.0

Compare Source

No changes since 3.0.0.rc1.


Configuration

📅 Schedule: Branch creation - "every weekend" in timezone US/Eastern, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/tldextract-5.x branch 16 times, most recently from e5e4873 to 290de5f Compare February 12, 2025 20:47
@renovate renovate bot force-pushed the renovate/tldextract-5.x branch from 290de5f to 5641d2b Compare February 12, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants