Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v2.34.1
v2.34.0 2025-04-17
What's Changed
- fix clippy lints for Rust 1.86 by @davidhewitt in #1682
- Bump uuid from 1.15.1 to 1.16.0 by @dependabot in #1678
- Bump serde_json from 1.0.138 to 1.0.140 by @dependabot in #1679
- Bump pyo3 from 0.24.0 to 0.24.1 by @dependabot in #1677
- Allow JSON
BigInt
to validate againstfloat
schema by @Viicos in #1685 - Ensure
ValidationInfo.field_name
is correct on validator reuse by @DouweM in #1692 - Bump version to v2.34.0 by @Viicos in #1694
- Fix CI condition for
release
job by @Viicos in #1695 - Fix CI condition for
release
job x2 by @Viicos in #1696
New Contributors
Full Changelog: v2.33.1...v2.34.0
v2.33.1 2025-04-02
What's Changed
- Coerce
'timedelta'
schema constraints by @Viicos in #1676 - Pin
inline-snapshot
with an upper bound to fix wasm build by @davidhewitt in #1680 - Bump version to v2.33.1 by @Viicos in #1681
Full Changelog: v2.33.0...v2.33.1
v2.33.0 2025-03-26
What's Changed
- Add support for extra keys validation for model fields by @Viicos in #1671
- Revert
by_alias
default 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-v3
schema 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
serde
from 1.0.217 to 1.0.218 by @dependabot in #1657 - Bump
uuid
from 1.12.1 to 1.15.1 by @dependabot in #1655 - Bump
smallvec
from 1.13.2 to 1.14.0 by @dependabot in #1654
Performance
- Clean up
PydanticUnexpectedValueError
by @sydney-runkle in #1652
Fixes
- Skip reusing wrap validators / serializers for prebuilt variants by @sydney-runkle in #1660
- Add
cls_name
totyped-dict
schema 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
SchemaValidator
s 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
LookupKey
logic to reduce redundancy by @davidhewitt in #1635 - Add support for UUIDv6 and UUIDv8 validation by @astei in #1636
- Remove unneeded
Option
map inPyMultiHostUrl.build
by @Viicos in #1643 - Add API documentation for
ErrorDetails.url
by @Viicos in #1642 - Fix typo in
InitErrorDetails.type
documentation 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
uuid
from 1.11.0 to 1.12.1 by @dependabot in #1618 - Bump
serde_json
from 1.0.134 to 1.0.138 by @dependabot in #1617 - Always use maturin for the
uv
commands in Makefile by @davidhewitt in #1622 - build PGO wheels on
macos-latest
runners by @davidhewitt in #1624
Fixes
- Fix float
multiple_of
validation 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
SchemaValidator
andSchemaSerializer
by @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-a
dependency 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
PydanticUseDefault
docstring by @Viicos in #1571 - Forward
default_value
calls to the underlying schema forDefinitionRefValidator
by @Viicos in #1573 - fix type hint for
SerializationInfo.round_trip
by @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
ValueError
on 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
pyupgrade
as an explicit linting dependency by @sydney-runkle in #1606 - Fix:
dataclass
InitVar
s 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