Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v2.12.0 2023-11-06
What's Changed
- Bump regex from 1.10.1 to 1.10.2 by @dependabot in #1036
- Bump uuid from 1.4.1 to 1.5.0 by @dependabot in #1035
- Bump ahash from 0.8.3 to 0.8.4 by @dependabot in #1034
- Bump base64 from 0.21.4 to 0.21.5 by @dependabot in #1033
- Bump ruff from 0.0.292 to 0.1.1 by @dependabot in #1032
- Bump griffe from 0.36.5 to 0.36.7 by @dependabot in #1031
- Bump pyright from 1.1.331 to 1.1.332 by @dependabot in #1029
- Bump mypy from 1.6.0 to 1.6.1 by @dependabot in #1030
- Bump black from 23.9.1 to 23.10.0 by @dependabot in #1028
- Don't accept NaN in float and decimal constraints by @davidhewitt in #1037
- Add lax_str and lax_int support for enum values not inherited from str/int by @michaelhly in #1015
- Support subclasses in lists in
Union
ofList
types by @sydney-runkle in #1039 - Allow validation against
max_digits
anddecimals
to pass if normalized or non-normalized input is valid by @sydney-runkle in #1049 - fix: proper pluralization in validation error messages by @Iipin in #1050
- Bump serde from 1.0.189 to 1.0.190 by @dependabot in #1047
- Bump ahash from 0.8.4 to 0.8.6 by @dependabot in #1046
- Bump actions/setup-node from 3 to 4 by @dependabot in #1045
- Bump pytest from 7.4.2 to 7.4.3 by @dependabot in #1044
- Bump ruff from 0.1.1 to 0.1.3 by @dependabot in #1043
- Bump griffe from 0.36.7 to 0.36.9 by @dependabot in #1041
- Bump pyright from 1.1.332 to 1.1.334 by @dependabot in #1055
- jiter by @samuelcolvin in #974
- Bump black from 23.10.0 to 23.10.1 by @dependabot in #1057
- Bump serde_json from 1.0.107 to 1.0.108 by @dependabot in #1058
- Uprev to 2.12.0 by @samuelcolvin in #1061
- uprev speedate, prevent
-
sign as datetime by @samuelcolvin in #1060 - check not type in serialization by @samuelcolvin in #962
- reduce dependabot frequency by @davidhewitt in #1059
- fix: nan inf float by @davidhewitt in #1062
New Contributors
- @michaelhly made their first contribution in #1015
- @Iipin made their first contribution in #1050
Full Changelog: v2.11.0...v2.12.0
v2.11.0 2023-10-17
What's Changed
- Replace definitions
Vec
withOnceLock
slots by @davidhewitt in #992 - Fix type-checking when using deprecated
FieldValidationInfo
by @sisp in #995 - Fix pydantic 7715 by @sydney-runkle in #1002
- Fix
regex_engine
being rejected byvalidate_core_schema
by @davidhewitt in #1011 - Add
SchemaSerializer.__reduce__
method to enablepickle
serialization by @edoakes in #1006 - Fix
definition-ref
bug withDict
keys by @sydney-runkle in #1014 - Update PyO3 to 0.20 by @davidhewitt in #1003
- feat: add
ser_json_bytes
mode'hex'
by @PrettyWood in #1016 - Bump strum_macros from 0.25.2 to 0.25.3 by @dependabot in #1021
- Bump serde from 1.0.188 to 1.0.189 by @dependabot in #1019
- Bump regex from 1.9.6 to 1.10.1 by @dependabot in #1020
- Fix bug allowing validation of
bool
types withcoerce_numbers_to_str=True
by @sydney-runkle in #1017 - Bump version to 2.11.0 by @davidhewitt in #1027
New Contributors
Full Changelog: v2.10.1...v2.11.0
v2.10.1 2023-09-26
What's Changed
- Bump smallvec from 1.11.0 to 1.11.1 by @dependabot in #988
- improve quality of too short / too long error messages by @davidhewitt in #990
Full Changelog: v2.10.0...v2.10.1
v2.10.0 2023-09-21
What's Changed
- use
TypedDict
fromtyping_extensions
on <3.12 by @davidhewitt in #978 - add switch to change regex engine from Rust to Python by @davidhewitt in #983
- 🐛 Fix handling of
UUID
values havingUUID.version=None
by @samuelcolvin in #981 - Add
validate_core_schema
function and remove validation fromSchemaValidator
andSchemaSerializer
constructors by @davidhewitt in #982 - add strict flag to validate_core_schema by @adriangb in #984
- make
field_name
anddata
available onValidationInfo
by @samuelcolvin in #980
Full Changelog: v2.9.0...v2.10.0
v2.9.0 2023-09-20
What's Changed
- fix function-after validator changing validation mode to Python by @davidhewitt in #967
- implementing
validate_strings
by @samuelcolvin in #883 - Fix serialization of model subclasses via unions when definition referneces are used by @adriangb in #977
- ✨ Implement optional
number
tostr
coercion by @lig in #975 - Add support for hiding input in errors and json by @sydney-runkle in #973
- 🔖 Bump version to 2.9.0 by @lig in #979
New Contributors
- @sydney-runkle made their first contribution in #973
Full Changelog: v2.8.0...v2.9.0
v2.8.0 2023-09-18
What's Changed
- Fix typo in
MultiHostUrl.build
docstring by @Viicos in #938 - Bump regex from 1.9.4 to 1.9.5 by @dependabot in #944
- Bump pytest from 7.4.0 to 7.4.1 by @dependabot in #939
- Bump ruff from 0.0.286 to 0.0.287 by @dependabot in #942
- Bump griffe from 0.35.2 to 0.36.0 by @dependabot in #940
- Bump pyright from 1.1.324 to 1.1.325 by @dependabot in #941
- Bump griffe from 0.35.2 to 0.36.1 by @dependabot in #946
- Update pytz by @adriangb in #949
- Fix parsing int from large decimals by @adriangb in #948
- make error "duplicate" cheaper by @davidhewitt in #950
- Bump actions/checkout from 3 to 4 by @dependabot in #958
- Bump pytest from 7.4.1 to 7.4.2 by @dependabot in #956
- Bump griffe from 0.36.1 to 0.36.2 by @dependabot in #954
- Bump serde_json from 1.0.105 to 1.0.106 by @dependabot in #951
- Bump base64 from 0.21.3 to 0.21.4 by @dependabot in #952
- update to coverage_attribute feature by @davidhewitt in #966
- Update pytest-codspeed requirement from ~=2.1.0 to ~=2.2.0 by @dependabot in #953
- Bump black from 23.7.0 to 23.9.1 by @dependabot in #955
- Implementation of cause for ValidationError using ExceptionGroups by @zakstucke in #780
- Bump pyright from 1.1.325 to 1.1.327 by @dependabot in #970
- Bump serde_json from 1.0.106 to 1.0.107 by @dependabot in #971
- Bump ruff from 0.0.287 to 0.0.290 by @dependabot in #968
- Populate defs from defs schema by @adriangb in #972
New Contributors
- @Viicos made their first contribution in #938
- @zakstucke made their first contribution in #780
Full Changelog: v2.7.0...v2.8.0
v2.7.0 2023-08-29
What's Changed
- Allow customizing serialization of extras by @adriangb in #911
- Fix max length error on conlist with type int by @yvalencia91 in #902
- snipe off some unsafe code by @davidhewitt in #922
- Make round trip exclude computed fields by @dmontagu in #934
- Update version to 2.7.0 by @adriangb in #936
- Bump base64 from 0.21.2 to 0.21.3 by @dependabot in #933
- Bump url from 2.4.0 to 2.4.1 by @dependabot in #932
- Bump regex from 1.9.3 to 1.9.4 by @dependabot in #930
- Bump ruff from 0.0.285 to 0.0.286 by @dependabot in #928
- Bump griffe from 0.34.0 to 0.35.2 by @dependabot in #927
- Bump pyright from 1.1.323 to 1.1.324 by @dependabot in #926
- Bump num-bigint from 0.4.3 to 0.4.4 by @dependabot in #931
- Bump serde from 1.0.185 to 1.0.188 by @dependabot in #929
Full Changelog: v2.6.3...v2.7.0
v2.6.3 2023-08-23
What's Changed
- fix big int subclass extraction by @samuelcolvin in #919
- Bump pydantic-core to 2.6.3 by @adriangb in #920
Full Changelog: v2.6.2...v2.6.3
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