FAQ | This is a LIVE service | Changelog

fix(deps): update dependency pydantic to v2

This MR contains the following updates:

Package Change Age Confidence
pydantic (changelog) ^1.9 -> ^2.0.0 age confidence

Release Notes

pydantic/pydantic (pydantic)

v2.12.5

Compare Source

GitHub release

This is the fifth 2.12 patch release, addressing an issue with the MISSING sentinel and providing several documentation improvements.

The next 2.13 minor release will be published in a couple weeks, and will include a new polymorphic serialization feature addressing the remaining unexpected changes to the serialize as any behavior.

  • Fix pickle error when using model_construct() on a model with MISSING as a default value by @​ornariece in #​12522.
  • Several updates to the documentation by @​Viicos.

v2.12.4: 2025-11-05

Compare Source

v2.12.4 (2025-11-05)

This is the fourth 2.12 patch release, fixing more regressions, and reverting a change in the build() method of the AnyUrl and Dsn types.

This patch release also fixes an issue with the serialization of IP address types, when serialize_as_any is used. The next patch release will try to address the remaining issues with serialize as any behavior by introducing a new polymorphic serialization feature, that should be used in most cases in place of serialize as any.

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.12.3...v2.12.4

v2.12.3

Compare Source

GitHub release

What's Changed

This is the third 2.12 patch release, fixing issues related to the FieldInfo class, and reverting a change to the supported after model validator function signatures.

  • Raise a warning when an invalid after model validator function signature is raised by @​Viicos in #​12414. Starting in 2.12.0, using class methods for after model validators raised an error, but the error wasn't raised concistently. We decided to emit a deprecation warning instead.
  • Add FieldInfo.asdict() method, improve documentation around FieldInfo by @​Viicos in #​12411. This also add back support for mutations on FieldInfo classes, that are reused as Annotated metadata. However, note that this is still not a supported pattern. Instead, please refer to the added example in the documentation.

The blog post section on changes was also updated to document the changes related to serialize_as_any.

v2.12.2

Compare Source

GitHub release

What's Changed
Fixes
  • Release a new pydantic-core version, as a corrupted CPython 3.10 manylinux2014_aarch64 wheel got uploaded (pydantic-core#1843).
  • Fix issue with recursive generic models with a parent model class by @​Viicos in #​12398

v2.12.1

Compare Source

GitHub release

What's Changed

This is the first 2.12 patch release, addressing most (but not all yet) regressions from the initial 2.12.0 release.

Fixes
New Contributors

v2.12.0

Compare Source

GitHub release

What's Changed

This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support. Several minor changes (considered non-breaking changes according to our versioning policy) are also included in this release. Make sure to look into them before upgrading.

Note that Pydantic V1 is not compatible with Python 3.14 and greater.

Changes (see the alpha and beta releases for additional changes since 2.11):

Packaging
New Features
Fixes
New Contributors

v2.11.10

Compare Source

GitHub release

What's Changed
Fixes

v2.11.9: 2025-09-13

Compare Source

What's Changed
Fixes

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.11.8...v2.11.9

v2.11.8: 2025-09-13

Compare Source

v2.11.8 (2025-09-13)

What's Changed
Fixes

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.11.7...v2.11.8

v2.11.7

Compare Source

GitHub release

What's Changed
Fixes

v2.11.6

Compare Source

GitHub release

What's Changed
Fixes

v2.11.5

Compare Source

GitHub release

What's Changed
Fixes

v2.11.4

Compare Source

GitHub release

What's Changed
Packaging
Changes
  • Allow config and bases to be specified together in create_model() by @​Viicos in #​11714. This change was backported as it was previously possible (although not meant to be supported) to provide model_config as a field, which would make it possible to provide both configuration and bases.
Fixes

v2.11.3

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.11.2

Compare Source

GitHub release

What's Changed
Fixes

v2.11.1

Compare Source

GitHub release

What's Changed
Fixes
  • Do not override 'definitions-ref' schemas containing serialization schemas or metadata by @​Viicos in #​11644

v2.11.0

Compare Source

GitHub release

What's Changed

Pydantic v2.11 is a version strongly focused on build time performance of Pydantic models (and core schema generation in general). See the blog post for more details.

Packaging
New Features
Fixes
  • Allow generic typed dictionaries to be used for unpacked variadic keyword parameters by @​Viicos in #​11571
  • Fix runtime error when computing model string representation involving cached properties and self-referenced models by @​Viicos in #​11579
  • Preserve other steps when using the ellipsis in the pipeline API by @​Viicos in #​11626
  • Fix deferred discriminator application logic by @​Viicos in #​11591
New Contributors

v2.10.6

Compare Source

GitHub release

What's Changed
Fixes

v2.10.5

Compare Source

GitHub release

What's Changed
Fixes

v2.10.4

Compare Source

GitHub release

What's Changed
Packaging
Fixes
New Contributors

v2.10.3

Compare Source

GitHub release

What's Changed
Fixes

v2.10.2

Compare Source

GitHub release

What's Changed
Fixes

v2.10.1

Compare Source

GitHub release

What's Changed
Packaging
Fixes
New Contributors

v2.10.0

Compare Source

The code released in v2.10.0 is practically identical to that of v2.10.0b2.

GitHub release

See the v2.10 release blog post for the highlights!

What's Changed
Packaging
New Features
Changes
Performance
Fixes
New Contributors

v2.9.2

Compare Source

GitHub release

What's Changed
Fixes

v2.9.1

Compare Source

GitHub release

What's Changed
Fixes

v2.9.0

Compare Source

GitHub release

The code released in v2.9.0 is practically identical to that of v2.9.0b2.

What's Changed
Packaging
New Features
Changes
Performance
Minor Internal Improvements
Fixes
New Contributors
pydantic
pydantic-core

v2.8.2

Compare Source

GitHub release

What's Changed
Fixes

v2.8.1

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.8.0

Compare Source

GitHub release

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

What's Changed
Packaging
New Features
Changes
Performance
Internal Improvements
Fixes
New Contributors

v2.7.4

Compare Source

Github release

What's Changed
Packaging
Fixes

v2.7.3

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.7.2

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.7.1

Compare Source

GitHub release

What's Changed
Packaging
New Features
Changes
Fixes
New Contributors

v2.7.0

Compare Source

GitHub release

The code released in v2.7.0 is practically identical to that of v2.7.0b1.

What's Changed
Packaging
New Features

Finalized in v2.7.0, rather than v2.7.0b1:

Changes
Performance
Fixes
New Contributors

v2.6.4

Compare Source

GitHub release

What's Changed
Fixes

v2.6.3

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.6.2

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.6.1

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.6.0

Compare Source

GitHub release

The code released in v2.6.0 is practically identical to that of v2.6.0b1.

What's Changed
Packaging
New Features
Changes
Performance
Fixes
New Contributors
pydantic
pydantic-core

v2.5.3

Compare Source

GitHub release

What's Changed
Packaging
  • uprev pydantic-core to 2.14.6
Fixes

v2.5.2

Compare Source

GitHub release

What's Changed
Packaging
  • uprev pydantic-core to 2.14.5
New Features
Fixes

v2.5.1

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.5.0

Compare Source

GitHub release

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

What's Changed
Packaging
  • Update pydantic-core from 2.10.1 to 2.14.1, significant changes from these updates are described below, full changelog here
  • Update to pyright==1.1.335 by @​Viicos in #​8075
New Features
Changes
  • Significant Change: replace ultra_strict with new smart union implementation, the way unions are validated has changed significantly to improve performance and correctness, we have worked hard to absolutely minimise the number of cases where behaviour has changed, see the MR for details - by @​davidhewitt in pydantic/pydantic-core#867
  • Add support for instance method reassignment when extra='allow' by @​sydney-runkle in #​7683
  • Support JSON schema generation for Enum types with no cases by @​sydney-runkle in #​7927
  • Warn if a class inherits from Generic before BaseModel by @​alexmojaki in #​7891
Performance
Fixes
New Contributors
pydantic
pydantic-core

v2.4.2

Compare Source

GitHub release

What's Changed
Fixes
New Contributors

v2.4.1

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.4.0

Compare Source

GitHub release

What's Changed
Packaging
New Features
Changes
Performance
Fixes
New Contributors

v2.3.0

Compare Source

GitHub release

v2.2.1

Compare Source

GitHub release

v2.2.0

Compare Source

GitHub release

v2.1.1

Compare Source

GitHub release

v2.1.0

Compare Source

GitHub release

v2.0.3

Compare Source

GitHub release

v2.0.2

Compare Source

GitHub release

See the full changelog here

v2.0.1

Compare Source

GitHub release

First patch release of Pydantic V2

See the full changelog here

v2.0

Compare Source

GitHub release

What's Changed

This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support. Several minor changes (considered non-breaking changes according to our versioning policy) are also included in this release. Make sure to look into them before upgrading.

Note that Pydantic V1 is not compatible with Python 3.14 and greater.

Changes (see the alpha and beta releases for additional changes since 2.11):

Packaging
New Features
Fixes
New Contributors

v1.10.24

Compare Source

GitHub release

What's Changed

This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support. Several minor changes (considered non-breaking changes according to our versioning policy) are also included in this release. Make sure to look into them before upgrading.

Note that Pydantic V1 is not compatible with Python 3.14 and greater.

Changes (see the alpha and beta releases for additional changes since 2.11):

Packaging
New Features
Fixes
New Contributors

Configuration

📅 Schedule: Branch creation - Monday through Friday ( * * * * 1-5 ) in timezone Europe/London, Automerge - At any time (no schedule defined).

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

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

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


  • [ ] If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by uis-devops-renovatebot

Merge request reports

Loading