Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v2.41.1 2025-10-06
What's Changed
Full Changelog: v2.41.0...v2.41.1
v2.41.0 2025-10-06
What's Changed
- Do not call default factories taking the data argument if a validation error already occurred by @Viicos in #1623
- fix
default_factory
which takes data on more types by @davidhewitt in #1822 - ci: avoid timeout on aarch64 tests by @davidhewitt in #1821
- make _pydantic_core._pydantic_core pub for static linking by @Gentle in #1820
- Preserve order for
collections.OrderedDict
by @CloseChoice in #1801
New Contributors
- @Gentle made their first contribution in #1820
- @CloseChoice made their first contribution in #1801
Full Changelog: v2.40.1...v2.41.0
v2.40.1 2025-10-02
What's Changed
- Reapply "Match return type of SerializationInfo.mode() to mode of model_dump() (#1770)" (#1797) by @Viicos in #1815
- Add quotes to field name in serialization warning by @Viicos in #1816
- Only create class instance after validation in
ModelValidator.validate_construct()
by @Viicos in #1818
Full Changelog: v2.40.0...v2.40.1
v2.40.0 2025-10-01
What's Changed
- Add
extra
parameter to the validate functions by @anvilpete in #1722 - chore: Correct grammar in docstring by @willsawyerrrr in #1784
- bump pyo3 to 0.26, jiter to 0.11 by @davidhewitt in #1785
- Add GraalPy 3.12 to CI, build GraalPy wheels for more platforms by @msimacek in #1790
- Add fail-fast for dicts by @uriyyo in #1543
- fix
EitherString::as_cow
implementation by @davidhewitt in #1794 - Reuse basic validators and serializers by @davidhewitt in #1795
- Add option to preserve empty URL paths by @davidhewitt in #1789
- Bump idna from 1.0.3 to 1.1.0 by @dependabot[bot] in #1806
- Bump uuid from 1.17.0 to 1.18.1 by @dependabot[bot] in #1802
- Bump serde_json from 1.0.142 to 1.0.145 by @dependabot[bot] in #1811
- Add field name in serialization error by @NicolasPllr1 in #1799
- Bump regex from 1.11.1 to 1.11.3 by @dependabot[bot] in #1804
New Contributors
- @anvilpete made their first contribution in #1722
- @willsawyerrrr made their first contribution in #1784
- @l00ptr made their first contribution in #1770
- @NicolasPllr1 made their first contribution in #1799
Full Changelog: v2.39.0...v2.40.0
v2.39.0 2025-08-11
What's Changed
- docs: improve onboarding by @PrettyWood in #1775
- build: bump pytest to 8.4 by @PrettyWood in #1781
- Add
exclude_computed_fields
serialization option by @Viicos in #1780
Full Changelog: v2.38.0...v2.39.0
v2.38.0 2025-08-04
What's Changed
- Switch to PEP 639 license information by @Viicos in #1769
- Simplify
ValidationError.from_exception_data()
docstring by @kinuax in #1768 - feat: make TzInfo instantiable without any arguments by @PrettyWood in #1777
- fix: make everything work on nightly by @PrettyWood in #1776
- Bump serde_json from 1.0.140 to 1.0.142 by @dependabot[bot] in #1772
- Build wheels for GraalPy by @msimacek in #1771
- bump speedate to 0.17 by @davidhewitt in #1778
- Implement val_temporal_unit for deciding how datetimes and dates timestamps get validated. by @ollz272 in #1751
New Contributors
Full Changelog: v2.37.2...v2.38.0
v2.37.2 2025-07-26
What's Changed
Full Changelog: v2.37.1...v2.37.2
v2.37.1 2025-07-25
What's Changed
Identical to v2.37.0.
v2.37.0 2025-07-25
v2.36.0 2025-07-23
What's Changed
- Stop testing free-threaded on 3.13 by @Viicos in #1738
- Bump smallvec from 1.15.0 to 1.15.1 by @dependabot[bot] in #1752
- Bump uuid from 1.16.0 to 1.17.0 by @dependabot[bot] in #1754
- Bump pyo3 from 0.25.0 to 0.25.1 by @dependabot[bot] in #1753
- Implement ser_json_temporal config option by @ollz272 in #1743
- Properly coerce fractions as int by @Viicos in #1757
- Add
exclude_if
logic at the field level by @andresliszt in #1535
Full Changelog: v2.35.2...v2.36.0