Skip to content

Releases: python-validators/validators

0.23.0

19 Mar 07:53
Compare
Choose a tag to compare

Breaking

No breaking changes were introduced in this version.

Features

Maintenance

Full Changelog: 0.22.0...0.23.0

0.22.0

02 Sep 09:07
71b40bd
Compare
Choose a tag to compare

Breaking ⚠️

  • A new keyword parameter host_bit = True, is added to validators.ipv4 and validators.ipv6.

Features

No features were introduced in this version.

Maintenance

  • fix: url validator considers urls with /#/ as valid by @adrienthiery in #289
  • Add note about ValidationFailure to ValidationError in changes.md by @tswfi in #291
  • fix: simple hostname validation regex by @yozachar in #294
  • fix: strict CIDR IP validation; bump version by @yozachar in #295

Full Changelog: 0.21.2...0.22.0

0.21.2

07 Aug 08:55
Compare
Choose a tag to compare

Breaking ⚠️

Features

Maintenance

Full Changelog: 0.21.1...0.21.2

0.21.1

13 Apr 01:35
506d22b
Compare
Choose a tag to compare

Breaking

No breaking changes were introduced in this version.

Features

No features were introduced in this version.

Maintenance

Full Changelog: 0.21.0...0.21.1

v0.21.0

27 Mar 09:27
9ae6e8e
Compare
Choose a tag to compare

Breaking ⚠️

  • Drops support for all Python versions below v3.8.
  • Makes API's primary parameter, positional, and the remaining, keyword-only.
  • Keyword-only parameters like max and min, has been renamed to max_val and min_val respectively.
  • domain API now accepts two new keyword-only arguments: rfc_1034: bool = False and rfc_2782: bool = False.
  • extremes.py renamed to _extremes.py and is no longer exposed.
  • truthy was discarded in favour of simple bool() function.
  • ipv4_cidr() and ipv6_cidr() has been dropped in favour of cidr: bool = True and cidr: bool = True keyword-only parameters.
  • email() API now accepts the following keyword-only arguments:
    • simple_host: bool = False,
    • ipv6_address: bool = False,
    • ipv4_address: bool = False,
    • rfc_1034: bool = False and
    • rfc_2782: bool = False.
  • whitelist=None has been removed from email().
  • url() has been refactored, it accepts the following keyword-only arguments:
    • skip_ipv6_addr: bool = False,
    • skip_ipv4_addr: bool = False,
    • may_have_port: bool = True,
    • simple_host: bool = False,
    • rfc_1034: bool = False and
    • rfc_2782: bool = False.
  • public=False keyword argument has been removed from url().
  • Exposes i18n functions directly via __init__.py.
  • @validator decorator catches Exception.

Features

  • Adds hostname validator.

Maintenance

Full Changelog: 0.20.0...0.21.0