Skip to content

Releases: john-kurkowski/tldextract

5.1.2

19 Mar 04:11
Compare
Choose a tag to compare

What's Changed

  • 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

New Contributors

Contributors

Full Changelog: 5.1.1...5.1.2

5.1.1

17 Nov 03:47
Compare
Choose a tag to compare

What's Changed

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

Contributors

Full Changelog: 5.1.0...5.1.1

5.1.0

06 Nov 06:15
Compare
Choose a tag to compare

What's Changed

  • 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

New Contributors

Contributors

Full Changelog: 5.0.1...5.1.0

5.0.1

17 Oct 20:08
Compare
Choose a tag to compare

What's Changed

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

New Contributors

Full Changelog: 5.0.0...5.0.1

5.0.0

11 Oct 08:31
Compare
Choose a tag to compare

What's Changed

  • 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.

        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

Contributors

Full Changelog: 4.0.0...5.0.0

4.0.0

11 Oct 07:59
Compare
Choose a tag to compare

What's Changed

  • 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}).

Contributors

Full Changelog: 3.5.0...4.0.0

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

3.5.0

07 Sep 01:12
Compare
Choose a tag to compare

What's Changed

  • Features
    • Support IPv6 addresses (#298)
  • 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)

New Contributors

Contributors

Full Changelog: 3.4.4...3.5.0