|
2 | 2 | <!-- markdownlint-disable descriptive-link-text --> |
3 | 3 | <!-- markdownlint-disable-next-line first-line-heading --> |
4 | 4 |
|
| 5 | +## v2.14.0 (2026-10-07) |
| 6 | + |
| 7 | +[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.14.0) |
| 8 | + |
| 9 | +### What's Changed |
| 10 | + |
| 11 | +The highlights of the v2.14 release are available in the [blog post](https://pydantic.dev/articles/pydantic-v2-14-release). |
| 12 | +Several minor changes (considered non-breaking changes according to our [versioning policy](https://pydantic.dev/docs/validation/2.14/get-started/version-policy/#pydantic-v2)) |
| 13 | +are also included in this release. Make sure to look into them before upgrading. |
| 14 | + |
| 15 | +This release drops support for Python 3.9 and adds support for Python 3.15. |
| 16 | + |
| 17 | +#### New Features |
| 18 | + |
| 19 | +* Add support for `multiple_of` constraint in `fraction` and `timedelta` core schemas by @Viicos in [#13873](https://github.com/pydantic/pydantic/pull/13873) |
| 20 | +* Add `__namespace__` parameter to `create_model()` by @Viicos in [#13895](https://github.com/pydantic/pydantic/pull/13895) |
| 21 | + |
| 22 | +#### Changes |
| 23 | + |
| 24 | +* Add an `ordered-dict` core schema by @Viicos in [#13796](https://github.com/pydantic/pydantic/pull/13796) |
| 25 | +* Add a `counter` core schema by @Viicos in [#13824](https://github.com/pydantic/pydantic/pull/13824) |
| 26 | +* Do not mutate `model_config` attribute by @Viicos in [#13825](https://github.com/pydantic/pydantic/pull/13825) |
| 27 | +* Reject newlines in `NameEmail` validation by @Viicos in [#13897](https://github.com/pydantic/pydantic/pull/13897) |
| 28 | + |
| 29 | +#### Fixes |
| 30 | + |
| 31 | +* Call enum constructors in both validation modes by @Viicos in [#13792](https://github.com/pydantic/pydantic/pull/13792) |
| 32 | +* Fix documentation examples not raising and remove unused `string_sub_type` unused error code by @Viicos in [#13821](https://github.com/pydantic/pydantic/pull/13821) |
| 33 | +* Catch `OverflowError` during `ByteSize` validation by @Viicos in [#13850](https://github.com/pydantic/pydantic/pull/13850) |
| 34 | +* Require `multiple_of` constraints to be positive by @Viicos in [#13862](https://github.com/pydantic/pydantic/pull/13862) |
| 35 | +* Always pop field name and model type stacks during schema generation by @saquibjawedbit in [#13859](https://github.com/pydantic/pydantic/pull/13859) |
| 36 | +* Handle `TypeError` gracefully during docstring extraction by @Viicos in [#13874](https://github.com/pydantic/pydantic/pull/13874) |
| 37 | +* Respect config in `TypeAdapter.json_schemas()` by @Viicos in [#13890](https://github.com/pydantic/pydantic/pull/13890) |
| 38 | +* Fix config propagation of stdlib dataclasses and `TypedDict`s in JSON Schema by @Viicos in [#13891](https://github.com/pydantic/pydantic/pull/13891) |
| 39 | +* Don't apply `ser_json_timedelta` to all datetime types in serialization inference by @Viicos in [#13892](https://github.com/pydantic/pydantic/pull/13892) |
| 40 | +* Encode JSON Schema defaults with a consistent configuration by @Viicos in [#13893](https://github.com/pydantic/pydantic/pull/13893) |
| 41 | +* Propagate `init` and `kw_only=False` from `Field()` to stdlib dataclass fields by @Viicos in [#13898](https://github.com/pydantic/pydantic/pull/13898) |
| 42 | +* Respect propagated extra config in the JSON Schema of stdlib dataclasses by @Viicos in [#13899](https://github.com/pydantic/pydantic/pull/13899) |
| 43 | +* Handle OS errors during `ZoneInfo` validation by @Viicos in [#13912](https://github.com/pydantic/pydantic/pull/13912) |
| 44 | +* Handle exceptions during `Decimal` validation by @Viicos in [#13940](https://github.com/pydantic/pydantic/pull/13940) |
| 45 | +* Rebuild incomplete types during serialization inference by @Viicos in [#13922](https://github.com/pydantic/pydantic/pull/13922) |
| 46 | +* Reject large exponents in `Fraction` validation by @Viicos in [#13944](https://github.com/pydantic/pydantic/pull/13944) |
| 47 | +* Avoid validating URL prefix multiple times in multi host URLs by @Viicos in [#13945](https://github.com/pydantic/pydantic/pull/13945) |
| 48 | + |
| 49 | +### New Contributors |
| 50 | + |
| 51 | +* @saquibjawedbit made their first contribution in [#13859](https://github.com/pydantic/pydantic/pull/13859) |
| 52 | + |
5 | 53 | ## v2.14.0b2 (2026-09-09) |
6 | 54 |
|
7 | 55 | [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.14.0b2) |
|
0 commit comments