Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v2.23.0 2024-08-19
What's Changed
- Adding 
clsreference toTypedDictSchemaby @sydney-runkle in #1410 - Breaking change: Change 
metadatatype hint fromAny->Dict[str, Any] | Noneby @sydney-runkle in #1411 
Full Changelog: v2.22.0...v2.23.0
v2.22.0 2024-08-15
What's Changed
- Expose 
AnySerializervia core schema by @BoxyUwU in #1394 - Don't embed 
RUSTFLAGSin final binary by @BoxyUwU in #1396 - Validate 
base64standard encoding by @josh-newman in #1395 - Show value of wrongly typed in serialization warning by @BoxyUwU in #1377
 - Try each option in union serializer before inference by @sydney-runkle in #1398
 - Stop clone-ing serializers by @davidhewitt in #1402
 - Fix float serialization behavior in 
strictmode by @sydney-runkle in #1400 - For missing fields, we don't warn on 
exclude_, so don't warn onexcludeby @sydney-runkle in #1403 - Use 
typing_extensions.TypedDicton Python < 3.12 by @candleindark in #1404 - Support 
complexnumbers by @changhc in #1331 - Adding tagged union serializer 🚀 by @sydney-runkle in #1397
 - Introduce 
exactnessintoDecimalvalidation logic by @sydney-runkle in #1405 
New Contributors
- @candleindark made their first contribution in #1404
 - @changhc made their first contribution in #1331
 
Full Changelog: v2.21.0...v2.22.0
v2.21.0 2024-08-05
What's Changed
Packaging
- Bump 
idnafrom 0.5.0 to 1.0.1 by @dependabot in #1358 - Bump 
pyo3from 0.22.0 to 0.22.2 by @dependabot in #1383 - Bump 
serde_jsonfrom 1.0.118 to 1.0.121 by @dependabot in #1384 - Bump 
serdefrom 1.0.203 to 1.0.204 by @dependabot in #1385 - Bump 
base64from 0.21.7 to 0.22.1 by @dependabot in #1386 
Fixes
- Fixes discriminated union bug regression when using enums by @kfreezen in #1286
 - string: Use 're.Pattern.search' instead of 're.Pattern.match' by @tinez in #1368
 - Fix model 
field_serializerwith computed field by @nix010 in #1349 - Clean up some string handling cases by @davidhewitt in #1381
 
Features
- Validate bytes based on 
ser_json_bytesby @josh-newman in #1308 - Support 
allow_partial='trailing-strings'by @sydney-runkle in #1390 
Performance
New Contributors
- @kfreezen made their first contribution in #1286
 - @tinez made their first contribution in #1368
 - @fft001 made their first contribution in #1362
 - @nix010 made their first contribution in #1349
 - @BoxyUwU made their first contribution in #1379
 
Full Changelog: v2.20.1...v2.21.0
v2.20.1 2024-07-03
What's Changed
- Restore 3.13 PGO builds by @davidhewitt in #1346
 - Bump 
pytest-examplesto get tests passing with ruffv0.5.0by @sydney-runkle in #1360 - Bump 
uuidfrom 1.9.0 to 1.9.1 by @dependabot in #1356 - Bump 
num-bigintfrom 0.4.5 to 0.4.6 by @dependabot in #1357 - Bump the python-packages group across 1 directory with 7 updates by @dependabot in #1361
 - Bump 
speedateto v0.14.1 and prep forv0.20.1by @sydney-runkle in #1347 
Full Changelog: v2.20.0...v2.20.1
v2.20.0 2024-06-24
What's Changed
- Tidy up 
tagged_union_schemaby @davidhewitt in #1333 - Improvements in 
Unionmatching logic during validation by @sydney-runkle in #1332 - Fix 
Unionvalidation logic whenextra='allow'by @sydney-runkle in #1334 - Add list 
fail_fastconfig option by @uriyyo in #1322 - Update to PyO3 0.22, add Python 3.13 support by @davidhewitt in #1340
 
New Contributors
Full Changelog: v2.19.0...v2.20.0
v2.19.0 2024-06-11
What's Changed
Packaging
Fixes
- Make 
ValidatorFunctionWrapHandlerpositional only by @Viicos in #1323 - Reuse 
re.Patternobject in regex patterns by @sydney-runkle in #1318 
Features
- Add ser_json_inf_nan='strings' mode to produce valid JSON by @josh-newman in #1307
 
New Contributors
- @tiran made their first contribution in #1316
 - @wxpppp made their first contribution in #1317
 - @josh-newman made their first contribution in #1307
 
Full Changelog: v2.18.4...v2.19.0
v2.18.4 2024-06-03
What's Changed
Packaging
- Bump uuid from 1.7.0 to 1.8.0 by @dependabot in #1311
 - Bump serde from 1.0.197 to 1.0.203 by @dependabot in #1310
 - Bump the python-packages group with 6 updates by @dependabot in #1312
 - Uprev 
jiterto v0.4.1 by @sydney-runkle in #1306 
Fixes
- Fix 
contexttype hints by @OhioDschungel6 in #1303 
New Contributors
- @OhioDschungel6 made their first contribution in #1303
 
Full Changelog: v2.18.3...v2.18.4
v2.18.3 2024-05-28
What's Changed
Packaging
- Bump 
serde_jsonfrom 1.0.114 to 1.0.116 by @dependabot in #1281 - Bump the python-packages group with 7 updates by @dependabot in #1280
 - Bump 
regexfrom 1.10.3 to 1.10.4 by @dependabot in #1282 - Bump 
pyo3from 0.21.1 to 0.21.2 by @dependabot in #1283 - Bump 
uraimo/run-on-arch-actionfrom 2.7.1 to 2.7.2 by @dependabot in #1284 
Fixes
- CI: lint fixes for rust 1.78 by @davidhewitt in #1289
 - Fix validation of 
ints with leading unary minus by @RajatRajdeep in #1291 - Defer to PyO3 
i64extraction to avoid implicit integer casts by @davidhewitt in #1288 - Fix: keyword only non default argument by @JeanArhancet in #1290
 - Fix 
strsubclass validation for enums by @sydney-runkle in #1273 - Support 
BigInts inLiterals andEnums by @samuelcolvin in #1297 - Fix: uuid - allow 
strsubclass as input by @davidhewitt in #1296 - Fix case of checking truthiness of 
NotImplementedby @davidhewitt in #1298 - Fix generate_self_schema for Python 3.12+ by @JelleZijlstra in #1299
 
New Contributors
- @RajatRajdeep made their first contribution in #1291
 - @JelleZijlstra made their first contribution in #1299
 
Full Changelog: v2.18.2...v2.18.3
v2.18.2 2024-04-22
What's Changed
- Support multiple zeros as an 
intby @samuelcolvin in #1269 - Fix validation of 
ints with leading unary plus by @cknv in #1272 - Fix interaction between 
extra != 'ignore'andfrom_attributes=Trueby @davidhewitt in #1275 - Handle error from 
Enum'smissingfunction asValidationErrorby @sydney-runkle in #1274 - Fix memory leak with 
Iterablevalidation by @davidhewitt in #1271 
New Contributors
Full Changelog: v2.18.1...v2.18.2
v2.18.1 2024-04-11
What's Changed
- allow serialization functions to upgrade warnings to exceptions by @Lance-Drane in #1258
 - Fix: add 
coerce_numbers_to_str optioninStringSchemaby @NeevCohen in #1262 - Trim leading zeros before parsing 
str->intby @samuelcolvin in #1266 - Prevent trailing dots in integers by @samuelcolvin in #1267
 
New Contributors
- @Lance-Drane made their first contribution in #1258
 
Full Changelog: v2.18.0...v2.18.1