Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v2.33.0 2025-03-26
What's Changed
- Add support for extra keys validation for model fields by @Viicos in #1671
- Revert
by_aliasdefault value change forto_json()andto_jsonable_python()by @Viicos in #1672
Full Changelog: v2.32.0...v2.33.0
v2.32.0 2025-03-14
What's Changed
- bump jiter to 0.9, pyo3 to 0.24 by @davidhewitt in #1667
- update authors by @davidhewitt in #1668
- Add new
arguments-v3schema by @Viicos in #1641 - Add
TzInfo.__new__stub method by @Viicos in #1611 - Bump version to v2.32.0 by @Viicos in #1670
Full Changelog: v2.31.1...v2.32.0
v2.31.1 2025-03-06
What's Changed
- Skip reusing after validators in prebuilt schemas by @sydney-runkle in #1663
Full Changelog: v2.31.0...v2.31.1
v2.31.0 2025-03-05
What's Changed
Packaging
- Bump
serdefrom 1.0.217 to 1.0.218 by @dependabot in #1657 - Bump
uuidfrom 1.12.1 to 1.15.1 by @dependabot in #1655 - Bump
smallvecfrom 1.13.2 to 1.14.0 by @dependabot in #1654
Performance
- Clean up
PydanticUnexpectedValueErrorby @sydney-runkle in #1652
Fixes
- Skip reusing wrap validators / serializers for prebuilt variants by @sydney-runkle in #1660
- Add
cls_nametotyped-dictschema by @Viicos in #1659 - Coerce validator constraints to their valid type by @Viicos in #1661
Full Changelog: v2.30.0...v2.31.0
v2.30.0 2025-02-25
What's Changed
- Use core schema fns to initalize
SchemaValidators in the test suite. by @mikeedjones in #1631 - Bump url from 2.5.2 to 2.5.4 by @dependabot in #1585
- Fix enum strict JSON validation when validators are present by @Viicos in #1632
- Add support for validating v7 UUIDs by @astei in #1634
- Refactor
LookupKeylogic to reduce redundancy by @davidhewitt in #1635 - Add support for UUIDv6 and UUIDv8 validation by @astei in #1636
- Remove unneeded
Optionmap inPyMultiHostUrl.buildby @Viicos in #1643 - Add API documentation for
ErrorDetails.urlby @Viicos in #1642 - Fix typo in
InitErrorDetails.typedocumentation by @sobolevn in #1645 - bump to PyO3 0.23.5, support PyPy 3.11 by @davidhewitt in #1646
- Fix strict behavior for unions by @sydney-runkle in #1638
- Update python3-dll-a for PyPy 3.11 by @davidhewitt in #1647
- Improving the alias configuration API for validation and serialization by @sydney-runkle in #1640
New Contributors
Full Changelog: v2.29.0...v2.30.0
v2.29.0 2025-02-07
What's Changed
Packaging
- Bump
uuidfrom 1.11.0 to 1.12.1 by @dependabot in #1618 - Bump
serde_jsonfrom 1.0.134 to 1.0.138 by @dependabot in #1617 - Always use maturin for the
uvcommands in Makefile by @davidhewitt in #1622 - build PGO wheels on
macos-latestrunners by @davidhewitt in #1624
Fixes
- Fix float
multiple_ofvalidation for negative numbers by @K-dash in #1373 - Fix wasm preview by @samuelcolvin in #1621
- Raise validation error when unhashable items added to a set by @mikeedjones in #1619
- Fix condition before using prebuilt validator/serializer by @Viicos in #1625
Performance
- Memory usage optimization via reuse of
SchemaValidatorandSchemaSerializerby @sydney-runkle in #1616
New Features
- Support free-threaded Python 3.13t by @davidhewitt in #1628
New Contributors
- @K-dash made their first contribution in #1373
- @mikeedjones made their first contribution in #1619
Full Changelog: v2.28.0...v2.29.0
v2.28.0 2025-01-30
What's Changed
- minimal upgrade to PyO3 0.23 (ignoring deprecations) by @davidhewitt in #1556
- Bump serde_json from 1.0.132 to 1.0.133 by @dependabot in #1564
- Bump idna from 1.0.2 to 1.0.3 by @dependabot in #1567
- Bump serde from 1.0.214 to 1.0.215 by @dependabot in #1565
- remove
python3-dll-adependency by @davidhewitt in #1568 - Use UserWarning from pyo3 by @changhc in #1559
- bump jiter to 0.8.2, PyO3 to 0.23.3 by @davidhewitt in #1570
- Fix typo in
PydanticUseDefaultdocstring by @Viicos in #1571 - Forward
default_valuecalls to the underlying schema forDefinitionRefValidatorby @Viicos in #1573 - fix type hint for
SerializationInfo.round_tripby @davidhewitt in #1576 - Include JSON Schema input core schema in function schemas by @Viicos in #1572
- fix wasteful
to_python()calls checking for undefined by @davidhewitt in #1580 - Fix
ValueErroron year zero by @davidhewitt in #1583 - Bump serde from 1.0.215 to 1.0.216 by @dependabot in #1586
- optimize refcounting op in datetime creation by @davidhewitt in #1590
- Bump astral-sh/setup-uv from 4 to 5 by @dependabot in #1596
- Bump serde from 1.0.216 to 1.0.217 by @dependabot in #1595
- Bump serde_json from 1.0.133 to 1.0.134 by @dependabot in #1594
- Drop 3.8 support by @sydney-runkle in #1604
- Remove
pyupgradeas an explicit linting dependency by @sydney-runkle in #1606 - Fix:
dataclassInitVars shouldn't be required on serialization by @sydney-runkle in #1602 - Bump version to v2.28.0 by @Viicos in #1615
Full Changelog: v2.27.1...v2.28.0
v2.27.2 2024-12-18
What's Changed
- fix linux PGO wheel build by @davidhewitt in #1557
- Forward
default_valuecalls to the underlying schema forDefinitionRefValidatorby @Viicos in #1573 - Include JSON Schema input core schema in function schemas by @Viicos in #1572
- fix
ValueErroron year zero by @davidhewitt in #1583
Full Changelog: v2.27.1...v2.27.2
v2.27.1 2024-11-21
What's Changed
- Simplify shared union serializer logic by @sydney-runkle in #1538
- Tidy up some uses of
Bound<'_, PyString>::to_strby @davidhewitt in #1544 - Fix serialization inference for
complextypes inpythonby @sydney-runkle in #1549 - Bump to PyO3 v0.22.6 by @davidhewitt in #1550
- Fix performance regression for JSON tagged union by @davidhewitt in #1552
Full Changelog: v2.27.0...v2.27.1
v2.27.0 2024-11-12
What's Changed
- Remove
UrlandMultiHostUrldocstrings, we moved them to pydantic by @sydney-runkle in #1531 - Fix panic in
validate_assignmentwhen field has gone missing by @davidhewitt in #1532 - Fix for
Unionserializer: do not raise warnings in nested unions by @lukapeschke in #1513 - Fix
_IncExtype alias to be compatible with mypy by @Viicos in #1537 - More union serialization tidying by @sydney-runkle in #1536
- Fix
wrapserializer breaking union serialization in presence of extra fields by @davidhewitt in #1530 - Support
trailing-stringswithallow_partialby @samuelcolvin in #1539
New Contributors
- @lukapeschke made their first contribution in #1513
Full Changelog: v2.26.0...v2.27.0