Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v2.3.0
What's Changed
- fix borrow error when serializing recursive models by @davidhewitt in #764
- Update speedate and truncate microseconds by default by @adriangb in #762
- Consider
exclude_none
incomputed_field
serialization by @hramezani in #768 - Type validation context as
dict[str, Any] | None
by @adriangb in #709 - Update speedate to 0.11.0 by @adriangb in #769
- Make TzInfo picklable by @adriangb in #770
- Make validating assignment work properly with allowed extra by @dmontagu in #766
Full Changelog: v2.2.0...v2.3.0
v2.2.0 2023-07-11
What's Changed
- 🐛 Fix
max_length
for unicode strings by @lig in #758 - feat: add build method back to multihosturl by @ollz272 in #730
- serde for JSON integers larger than 64 bits by @davidhewitt in #745
New Contributors
Full Changelog: v2.1.3...v2.2.0
v2.1.3 2023-07-10
What's Changed
- Fix: micro typo in README #737 by @ShIRannx in #738
- Always build PGO using
RUSTFLAGS
by @messense in #739 - use new in .pyi for Rust types by @davidhewitt in #743
- fix segfaults on tests in debug builds for PyPy by @davidhewitt in #744
- use timedelta repr as constraint in error messages by @davidhewitt in #747
- Properly truncate characters when splitting up strings in error repr by @adriangb in #746
- add build-pgo make target by @davidhewitt in #741
- remove pydantic V1 comparisons from benchmark suite by @davidhewitt in #748
- Bump speedate and pydantic-core versions by @adriangb in #752
- add
build_info
to_pydantic_core
by @samuelcolvin in #749 - Add enum error type by @hramezani in #751
- fix pypy tests on windows by @davidhewitt in #757
- use pydantic's version in error messages by @davidhewitt in #759
- Preserve exception instances and their context in ValidationError by @adriangb in #753
New Contributors
Full Changelog: v2.1.2...v2.1.3
v2.1.2 2023-03-04
v2.1.1 2023-07-03
v2.1.0 2023-07-03
What's Changed
- Add benchmark for field validator functions by @adriangb in #726
- try testing and building for 3.12 by @samuelcolvin in #629
- basic tidy-ups to core_schema.py by @davidhewitt in #713
- Don't warn on missing fields if exclude_* are used by @adriangb in #727
- update to PyO3 0.19.1 by @davidhewitt in #731
- Move
field_name
from runtime to schema generation time by @adriangb in #715 - build with PGO on x86_64 ubuntu and windows by @davidhewitt in #678
- build pypy3.10 wheels on PGO platforms by @davidhewitt in #733
- Bump version to 2.1.0 by @adriangb in #734
Full Changelog: v2.0.2...v2.1.0
v2.0.2 2023-07-02
What's Changed
- allow typing-extensions-4.7.0+ on pypy3.9+ by @mgorny in #723
- Make
__pydantic_extra__ = None
whenextra='forbid'
by @dmontagu in #725 - Simplify typing_extensions pin by @AlexWaygood in #728
New Contributors
- @mgorny made their first contribution in #723
- @AlexWaygood made their first contribution in #728
Full Changelog: v2.0.1...v2.0.2
v2.0.1 2023-06-30
What's Changed
- fix
_pydantic_core.pyi
to be compatible with 3.7 by @samuelcolvin in bd4cc93 - update
README.md
in d45cc57
Full Changelog: v2.0.0...v2.0.1
v2.0.0 2023-06-30
What's Changed
- move
pydantic_core
->python/pydantic_core
by @davidhewitt in #705 - small cleanups after move to
python/
source dir by @davidhewitt in #708 - run stubtest on
_pydantic_core.pyi
by @davidhewitt in #702 - Add
EitherFloat
by @JeanArhancet in #691 - fix stubtest issue post-merge by @davidhewitt in #711
- Use
from __future__ import annotations
instead of string type hints inpython/pydantic_core/_pydantic_core.pyi
by @adriangb in #710 - Fix installation with pypy3.7 and pypy3.8 by @adriangb in #716
- PYD-137: Implement
PydanticUseDefault
error by @adriangb in #714 - Add faster int inequality by @JeanArhancet in #694
- PYD-147 Better model error messages by @samuelcolvin in #719
- prepare to release v2.0.0 by @samuelcolvin in #720
Full Changelog: v0.42.0...v2.0.0
v0.42.0 2023-06-27
What's Changed
- expand allowed errors from hypothesis test for url parsing by @davidhewitt in #684
- update pydantic-core version in Cargo.lock by @davidhewitt in #689
- bump maturin version to 1.0 by @davidhewitt in #687
- add PULL_REQUEST_TEMPLATE by @davidhewitt in #688
- 🐛 Raise
PydanticSerializationUnexpectedValue
in root model serializer only if strict check is enabled by @lig in #690 - 🚸 Expose
PydanticUndefinedType
by @Kludex in #693 - Extend clippy to include
clippy::pedantic
by @davidhewitt in #695 - fix context may be None by @FynnBe in #696
- 🔧 Add
assignees
list to the hooky config by @lig in #699 - reconcile _pydantic_core.pyi against the Rust implementation by @davidhewitt in #701
- Remove unused bool error by @dmontagu in #704
- Allow proper subclasses of strings by @adriangb in #706
New Contributors
Full Changelog: v0.41.0...v0.42.0