Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v2.6.2 2023-08-23
What's Changed
- Bump ruff from 0.0.284 to 0.0.285 by @dependabot in #909
- Bump serde_json from 1.0.104 to 1.0.105 by @dependabot in #905
- Bump mypy from 1.5.0 to 1.5.1 by @dependabot in #908
- Bump serde from 1.0.183 to 1.0.185 by @dependabot in #904
- Bump griffe from 0.32.3 to 0.34.0 by @dependabot in #906
- Bump pyright from 1.1.322 to 1.1.323 by @dependabot in #907
- fix json-or-python serializer as JSON object key by @davidhewitt in #903
- Fix
pytest tests/benchmarks --benchmark-enable
by @dmontagu in #912 - Convert datetime error message to human friendly message by @yvalencia91 in #915
- Allow using type() in tests by @adriangb in #916
- remove dict validation macro by @samuelcolvin in #917
- avoid coercing int subclasses to floats by @samuelcolvin in #914
- 👽 Implement
tzinfo.fromutc
forTzInfo
by @lig in #864 - Bump pydantic-core to 2.6.2 by @adriangb in #918
New Contributors
- @yvalencia91 made their first contribution in #915
Full Changelog: v2.6.1...v2.6.2
v2.6.1 2023-08-18
What's Changed
- Replace MiMalloc w/ default allocator by @adriangb in #900
- Prepare for 2.6.1 release by @adriangb in #901
Full Changelog: v2.6.0...v2.6.1
v2.6.0 2023-08-16
What's Changed
- Bump
pytest-codspeed
to v2.1.0 by @art049 in #875 - Allow parsing numbers w/ underscores (e.g. 1_000) from strings by @adriangb in #868
- special case of datetime as not allowed in date serializer by @davidhewitt in #873
- Bump mypy from 1.4.1 to 1.5.0 by @dependabot in #876
- Bump pyright from 1.1.320 to 1.1.322 by @dependabot in #878
- Bump uraimo/run-on-arch-action from 2.5.0 to 2.5.1 by @dependabot in 8000 #880
- running cargo clippy by @samuelcolvin in #885
- custom behaviour for timedelta subclasses by @samuelcolvin in #881
- Support manually specifying case labels for union validators by @dmontagu in #841
- Bump ruff from 0.0.282 to 0.0.284 by @dependabot in #877
- fix serialization of subclasses by @samuelcolvin in #860
- Update to speedate 0.12 by @davidhewitt in #887
- collapse arguments into ValidationState by @davidhewitt in #886
- remove
's
lifetime fromvalidate
andvalidate_assignment
by @davidhewitt in #890 - add
left_to_right
union mode by @davidhewitt in #889 - limit test requirements so that all platforms can build by @davidhewitt in #892
- don't install pytest-codspeed on non x86_64 machines by @davidhewitt in #895
- add some missing pypy builds for macos by @davidhewitt in #894
- disable mimalloc on manylinux cross-compiles by @davidhewitt in #893
- Bump version to 2.6.0 by @dmontagu in #896
Full Changelog: v2.5.0...v2.6.0
v2.5.0 2023-08-10
What's Changed
- Fix error context type annotations by @MarkusSintonen in #809
- Fix wasm preview by @JeffersGlass in #835
- Fix typehint of discriminator for tagged_union_schema by @dmontagu in #827
- Bump serde_json from 1.0.103 to 1.0.104 by @dependabot in #846
- Bump serde from 1.0.175 to 1.0.179 by @dependabot in #845
- optimize Python float validation by @davidhewitt in #826
- update to PyO3 0.19.2 by @davidhewitt in #844
- Build wheels for arm64 Windows by @messense in #856
- Fix PydanticKnownError user context handling issues by @MarkusSintonen in #839
- Bump regex from 1.9.1 to 1.9.3 by @dependabot in #859
- fix: cargo include by @vvanglro in #852
- special case serialization for int as input to float by @samuelcolvin in #866
- Bump strum_macros from 0.25.1 to 0.25.2 by @dependabot in #858
- Bump serde from 1.0.179 to 1.0.183 by @dependabot in #857
- fix inconsistency with strict mode of date validation by @davidhewitt in #870
- add decimal validator by @davidhewitt in #763
New Contributors
- @MarkusSintonen made their first contribution in #809
- @JeffersGlass made their first contribution in #835
- @vvanglro made their first contribution in #852
Full Changelog: v2.4.0...v2.5.0
v2.4.0 2023-07-24
What's Changed
- correct name of "AssignmentVali 8000 datorCallable" by @davidhewitt in #789
- Always convert str subclasses to str by @adriangb in #788
- Remove patch version number from error link by @hramezani in #794
- add weekly dependabot configuration by @davidhewitt in #791
- Bump dirty-equals from 0.5.0 to 0.6.0 by @dependabot in #808
- Bump pytest-mock from 3.10.0 to 3.11.1 by @dependabot in #807
- Bump coverage from 7.2.2 to 7.2.7 by @dependabot in #801
- Bump pytz from 2022.7.1 to 2023.3 by @dependabot in #799
- Bump actions/cache from 2 to 3 by @dependabot in #802
- Bump strum_macros from 0.24.3 to 0.25.1 by @dependabot in #797
- Bump mymindstorm/setup-emsdk from 11 to 12 by @dependabot in #804
- Bump idna from 0.3.0 to 0.4.0 by @dependabot in #798
- Bump serde from 1.0.171 to 1.0.174 by @dependabot in #803
- Bump serde_json from 1.0.100 to 1.0.103 by @dependabot in #800
- add profiling make target and instructions by @davidhewitt in #793
- Bump base64 from 0.13.1 to 0.21.2 by @dependabot in #805
- Add uuid validator by @JeanArhancet in #772
- Bump serde from 1.0.174 to 1.0.175 by @dependabot in #811
- Bump uuid from 1.3.4 to 1.4.1 by @dependabot in #810
- Bump pyright from 1.1.296 to 1.1.318 by @dependabot in #816
- Bump pytest-pretty from 1.1.1 to 1.2.0 by @dependabot in #815
- Bump pytest from 7.2.1 to 7.4.0 by @dependabot in #812
- use github continue-on-error to avoid red CI with test-pydantic-integration by @davidhewitt in #817
- Bump pytest-examples from 0.0.4 to 0.0.10 by @dependabot in #814
- adding docstrings by @samuelcolvin in #795
New Contributors
- @dependabot made their first contribution in #808
Full Changelog: v2.3.1...v2.4.0
v2.3.1 2023-07-19
What's Changed
- Fix scientific floats by @dmontagu in #774
- Fix scientific floats with uppercase E by @kzrnm in #779
- set up stable Rust toolchain on all rust builds by @davidhewitt in #782
- fix type annotations for Url & MultiHostUrl build by @davidhewitt in #781
- Fix ValidationInfo repr by @adriangb in #776
- Special case bool literals by @adriangb in #784
- run pydantic tests as an allowed-to-fail job by @davidhewitt in #767
- 🐛 Fix handling of bool literals by @lig in #783
- reject is_instance inputs based on their type, not the mode by @davidhewitt in #765
- fix python GC traversal for validators and serializers by @davidhewitt in #787
- bump version to 2.3.1 by @davidhewitt in #790
New Contributors
Full Changelog: v2.3.0...v2.3.1
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