|
1 |
| -## v2.9.0b2 (2024-08-30) |
2 |
| - |
3 |
| -[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.9.0b2) |
4 |
| - |
5 |
| -### What's Changed |
6 |
| - |
7 |
| -#### Packaging |
8 |
| - |
9 |
| -* Bump `pydantic-core` to `v2.23.1` and other minor version bumps by @sydney-runkle in [#10269](https://github.com/pydantic/pydantic/pull/10269) |
10 |
| - |
11 |
| -#### Changes |
12 |
| - |
13 |
| -* Raise helpful warning when `self` isn't returned from model validator by @sydney-runkle in [#10255](https://github.com/pydantic/pydantic/pull/10255) |
14 |
| - |
15 |
| -#### Performance |
16 |
| - |
17 |
| -* Update ns stack with already copied ns by @sydney-runkle in [#10267](https://github.com/pydantic/pydantic/pull/10267) |
| 1 | +## v2.9.0 (2024-09-05) |
18 | 2 |
|
19 |
| -#### Fixes |
20 |
| - |
21 |
| -* Fix new warnings assertions to use `pytest.warns()` by @mgorny in [#10241](https://github.com/pydantic/pydantic/pull/10241) |
22 |
| -* Fix a crash when cleaning the namespace in `ModelMetaclass` by @Viicos in [#10242](https://github.com/pydantic/pydantic/pull/10242) |
23 |
| -* Fix parent namespace issue with model rebuilds by @sydney-runkle in [#10257](https://github.com/pydantic/pydantic/pull/10257) |
24 |
| -* Remove defaults filter for namespace by @sydney-runkle in [#10261](https://github.com/pydantic/pydantic/pull/10261) |
25 |
| -* Use identity instead of equality after validating model in `__init__` by @Viicos in [#10264](https://github.com/pydantic/pydantic/pull/10264) |
26 |
| -* Support `BigInt` serialization for `int` subclasses by @kxx317 in [pydantic/pydantic-core#1417](https://github.com/pydantic/pydantic-core/pull/1417) |
| 3 | +[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.9.0) |
27 | 4 |
|
28 |
| -### New Contributors |
29 |
| - |
30 |
| -* @AdolfoVillalobos made their first contribution in [#10240](https://github.com/pydantic/pydantic/pull/10240) |
31 |
| -* @bllchmbrs made their first contribution in [#10270](https://github.com/pydantic/pydantic/pull/10270) |
32 |
| - |
33 |
| -## v2.9.0b1 (2024-08-26) |
34 |
| - |
35 |
| -[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.9.0b1) |
| 5 | +The code released in v2.9.0 is practically identical to that of v2.9.0b2. |
36 | 6 |
|
37 | 7 | ### What's Changed
|
38 | 8 |
|
|
41 | 11 | * Bump `ruff` to `v0.5.0` and `pyright` to `v1.1.369` by @sydney-runkle in [#9801](https://github.com/pydantic/pydantic/pull/9801)
|
42 | 12 | * Bump `pydantic-extra-types` to `v2.9.0` by @sydney-runkle in [#9832](https://github.com/pydantic/pydantic/pull/9832)
|
43 | 13 | * Support compatibility with `pdm v2.18.1` by @Viicos in [#10138](https://github.com/pydantic/pydantic/pull/10138)
|
44 |
| -* Bump `pydantic-core` to v2.23.0 by @sydney-runkle in [#10180](https://github.com/pydantic/pydantic/pull/10180) |
45 | 14 | * Bump `v1` version stub to `v1.10.18` by @sydney-runkle in [#10214](https://github.com/pydantic/pydantic/pull/10214)
|
| 15 | +* Bump `pydantic-core` to `v2.23.2` by @sydney-runkle in [#10311](https://github.com/pydantic/pydantic/pull/10311) |
46 | 16 |
|
47 | 17 | #### New Features
|
48 | 18 |
|
|
70 | 40 | * Use `re.Pattern.search` instead of `re.Pattern.match` for consistency with `rust` behavior by @tinez in [pydantic/pydantic-core#1368](https://github.com/pydantic/pydantic-core/pull/1368)
|
71 | 41 | * Show value of wrongly typed data in `pydantic-core` serialization warning by @BoxyUwU in [pydantic/pydantic-core#1377](https://github.com/pydantic/pydantic-core/pull/1377)
|
72 | 42 | * Breaking Change: in `pydantic-core`, change `metadata` type hint in core schemas from `Any` -> `Dict[str, Any] | None` by @sydney-runkle in [pydantic/pydantic-core#1411](https://github.com/pydantic/pydantic-core/pull/1411)
|
| 43 | +* Raise helpful warning when `self` isn't returned from model validator by @sydney-runkle in [#10255](https://github.com/pydantic/pydantic/pull/10255) |
73 | 44 |
|
74 | 45 | #### Performance
|
75 | 46 |
|
|
78 | 49 | * Simplify internal generics logic - remove generator overhead by @sydney-runkle in [#10059](https://github.com/pydantic/pydantic/pull/10059)
|
79 | 50 | * Remove default module globals from types namespace by @sydney-runkle in [#10123](https://github.com/pydantic/pydantic/pull/10123)
|
80 | 51 | * Performance boost: skip caching parent namespaces in most cases by @sydney-runkle in [#10113](https://github.com/pydantic/pydantic/pull/10113)
|
| 52 | +* Update ns stack with already copied ns by @sydney-runkle in [#10267](https://github.com/pydantic/pydantic/pull/10267) |
81 | 53 |
|
82 | 54 | ##### Minor Internal Improvements
|
83 | 55 | * ⚡️ Speed up `multiple_of_validator()` by 31% in `pydantic/_internal/_validators.py` by @misrasaurabh1 in [#9839](https://github.com/pydantic/pydantic/pull/9839)
|
|
140 | 112 | * Try each option in `Union` serializer before inference by @sydney-runkle in [pydantic/pydantic-core#1398](https://github.com/pydantic/pydantic-core/pull/1398)
|
141 | 113 | * Fix `float` serialization behavior in `strict` mode by @sydney-runkle in [pydantic/pydantic-core#1400](https://github.com/pydantic/pydantic-core/pull/1400)
|
142 | 114 | * Introduce `exactness` into Decimal validation logic to improve union validation behavior by @sydney-runkle in in [pydantic/pydantic-core#1405](https://github.com/pydantic/pydantic-core/pull/1405)
|
| 115 | +* Fix new warnings assertions to use `pytest.warns()` by @mgorny in [#10241](https://github.com/pydantic/pydantic/pull/10241) |
| 116 | +* Fix a crash when cleaning the namespace in `ModelMetaclass` by @Viicos in [#10242](https://github.com/pydantic/pydantic/pull/10242) |
| 117 | +* Fix parent namespace issue with model rebuilds by @sydney-runkle in [#10257](https://github.com/pydantic/pydantic/pull/10257) |
| 118 | +* Remove defaults filter for namespace by @sydney-runkle in [#10261](https://github.com/pydantic/pydantic/pull/10261) |
| 119 | +* Use identity instead of equality after validating model in `__init__` by @Viicos in [#10264](https://github.com/pydantic/pydantic/pull/10264) |
| 120 | +* Support `BigInt` serialization for `int` subclasses by @kxx317 in [pydantic/pydantic-core#1417](https://github.com/pydantic/pydantic-core/pull/1417) |
| 121 | +* Support signature for wrap validators without `info` by @sydney-runkle in [#10277](https://github.com/pydantic/pydantic/pull/10277) |
| 122 | +* Ensure `__pydantic_complete__` is set when rebuilding `dataclasses` by @Viicos in [#10291](https://github.com/pydantic/pydantic/pull/10291) |
| 123 | +* Respect `schema_generator` config value in `TypeAdapter` by @sydney-runkle in [#10300](https://github.com/pydantic/pydantic/pull/10300) |
143 | 124 |
|
144 | 125 | ### New Contributors
|
145 | 126 |
|
|
162 | 143 | * @aditkumar72 made their first contribution in [#10128](https://github.com/pydantic/pydantic/pull/10128)
|
163 | 144 | * @changhc made their first contribution in [#9654](https://github.com/pydantic/pydantic/pull/9654)
|
164 | 145 | * @insumanth made their first contribution in [#10229](https://github.com/pydantic/pydantic/pull/10229)
|
165 |
| - |
| 146 | +* @AdolfoVillalobos made their first contribution in [#10240](https://github.com/pydantic/pydantic/pull/10240) |
| 147 | +* @bllchmbrs made their first contribution in [#10270](https://github.com/pydantic/pydantic/pull/10270) |
166 | 148 |
|
167 | 149 | #### `pydantic-core`
|
168 | 150 |
|
|
174 | 156 | * @candleindark made their first contribution in [pydantic/pydantic-core#1404](https://github.com/pydantic/pydantic-core/pull/1404)
|
175 | 157 | * @changhc made their first contribution in [pydantic/pydantic-core#1331](https://github.com/pydantic/pydantic-core/pull/1331)
|
176 | 158 |
|
| 159 | +## v2.9.0b2 (2024-08-30) |
| 160 | + |
| 161 | +Pre-release, see [the GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.9.0b2) for details. |
| 162 | + |
| 163 | +## v2.9.0b1 (2024-08-26) |
| 164 | + |
| 165 | +Pre-release, see [the GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.9.0b1) for details. |
| 166 | + |
177 | 167 | ## v2.8.2 (2024-07-03)
|
178 | 168 |
|
179 | 169 | [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.8.2)
|
|
0 commit comments