Skip to content

Releases: pydantic/pydantic

v2.8.2 (2024-07-03)

04 Jul 02:47
Compare
Choose a tag to compare

What's Changed

Fixes

  • Fix issue with assertion caused by pluggable schema validator by @dmontagu in #9838

Full Changelog: v2.8.1...v2.8.2

v2.8.1 (2024-07-03)

03 Jul 22:58
Compare
Choose a tag to compare

What's Changed

Packaging

Fixes

New Contributors

Full Changelog: v2.8.0...v2.8.1

v2.8.0 (2024-07-01)

01 Jul 15:44
1609e2a
Compare
Choose a tag to compare

The code released in v2.8.0 is functionally identical to that of v2.8.0b1.

Check out our blog post to learn more about the release highlights!

What's Changed

Packaging

New Features

Changes

  • Add warning when "alias" is set in ignored Annotated field by @nix010 in #9170
  • Support serialization of some serializable defaults in JSON schema by @sydney-runkle in #9624
  • Relax type specification for __validators__ values in create_model by @sydney-runkle in #9697
  • Breaking Change: Improve smart union matching logic by @sydney-runkle in pydantic/pydantic-core#1322
    You can read more about our smart union matching logic here. In some cases, if the old behavior
    is desired, you can switch to left-to-right mode and change the order of your Union members.

Performance

Internal Improvements

  • ⚑️ Speed up _display_error_loc() by 25% in pydantic/v1/error_wrappers.py by @misrasaurabh1 in #9653
  • ⚑️ Speed up _get_all_json_refs() by 34% in pydantic/json_schema.py by @misrasaurabh1 in #9650
  • ⚑️ Speed up is_pydantic_dataclass() by 41% in pydantic/dataclasses.py by @misrasaurabh1 in #9652
  • ⚑️ Speed up to_snake() by 27% in pydantic/alias_generators.py by @misrasaurabh1 in #9747
  • ⚑️ Speed up unwrap_wrapped_function() by 93% in pydantic/_internal/_decorators.py by @misrasaurabh1 in #9727

Fixes

New Contributors

Read more

v2.8.0b1 (2024-06-27)

27 Jun 14:22
764e148
Compare
Choose a tag to compare
v2.8.0b1 (2024-06-27) Pre-release
Pre-release

What's Changed

Packaging

New Features

Changes

  • Add warning when "alias" is set in ignored Annotated field by @nix010 in #9170
  • Support serialization of some serializable defaults in JSON schema by @sydney-runkle in #9624
  • Relax type specification for __validators__ values in create_model by @sydney-runkle in #9697
  • Breaking Change: Improve smart union matching logic by @sydney-runkle in pydantic/pydantic-core#1322
    You can read more about our smart union matching logic here. In some cases, if the old behavior
    is desired, you can switch to left-to-right mode and change the order of your Union members.

Performance

Internal Improvements

  • ⚑️ Speed up _display_error_loc() by 25% in pydantic/v1/error_wrappers.py by @misrasaurabh1 in #9653
  • ⚑️ Speed up _get_all_json_refs() by 34% in pydantic/json_schema.py by @misrasaurabh1 in #9650
  • ⚑️ Speed up is_pydantic_dataclass() by 41% in pydantic/dataclasses.py by @misrasaurabh1 in #9652
  • ⚑️ Speed up to_snake() by 27% in pydantic/alias_generators.py by @misrasaurabh1 in #9747
  • ⚑️ Speed up unwrap_wrapped_function() by 93% in pydantic/_internal/_decorators.py by @misrasaurabh1 in #9727

Fixes

New Contributors

Read more

v1.10.17 (2024-06-20)

20 Jun 14:01
b9b8eb7
Compare
Choose a tag to compare

What's Changed

  • Advertise Python 3.12 for 1.10.x! Part Deux by @vfazio in #9644
  • Mirrored modules in v1 namespace to fix typing and object resolution in python>3.11 by @exs-dwoodward in #9660
  • setup: remove upper bound from python_requires by @vfazio in #9685

Full Changelog: v1.10.16...v1.10.17

v2.7.4 (2024-06-12)

12 Jun 13:46
1ab655a
Compare
Choose a tag to compare

What's Changed

Packaging

Fixes

  • Specify recursive_guard as kwarg in FutureRef._evaluate by @vfazio in #9612

Full Changelog: v2.7.3...v2.7.4

v1.10.16 (2024-06-11)

11 Jun 18:58
211910e
Compare
Choose a tag to compare

What's Changed

  • Import modules/objects directly from v1 namespace by @exs-dwoodward in #9162
  • Fix mypy v1 plugin for upcoming mypy release by @cdce8p in #9586
  • Specify recursive_guard as kwarg in FutureRef._evaluate by @vfazio in #9612

New Contributors

Full Changelog: v1.10.15...v1.10.16

v2.7.3 (2024-06-03)

03 Jun 18:36
9f48fc2
Compare
Choose a tag to compare

What's Changed

Packaging

Fixes

Full Changelog: v2.7.2...v2.7.3/*

v2.7.2 (2024-05-28)

28 May 18:01
Compare
Choose a tag to compare

What's Changed

Packaging

Fixes

Full Changelog: v2.7.1...v2.7.2/

v2.7.1 (2024-04-23)

23 Apr 13:11
2612947
Compare
Choose a tag to compare

What's Changed

Packaging

New Features

Changes

  • Use field description for RootModel schema description when there is … by @LouisGobert in #9214

Fixes

New Contributors

Full Changelog: v2.7.0...v2.7.1/