Skip to content

Commit ed92d0a

Browse files
Prep for v2.9 release (#10311)
1 parent eecde7b commit ed92d0a

File tree

5 files changed

+188
-196
lines changed

5 files changed

+188
-196
lines changed

Diff for: CITATION.cff

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ keywords:
4242
- hints
4343
- typing
4444
license: MIT
45-
version: v2.7.4
46-
date-released: 2024-06-12
45+
version: v2.9.0
46+
date-released: 2024-09-05

Diff for: HISTORY.md

+25-35
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,8 @@
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)
182

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)
274

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.
366

377
### What's Changed
388

@@ -41,8 +11,8 @@
4111
* Bump `ruff` to `v0.5.0` and `pyright` to `v1.1.369` by @sydney-runkle in [#9801](https://github.com/pydantic/pydantic/pull/9801)
4212
* Bump `pydantic-extra-types` to `v2.9.0` by @sydney-runkle in [#9832](https://github.com/pydantic/pydantic/pull/9832)
4313
* 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)
4514
* 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)
4616

4717
#### New Features
4818

@@ -70,6 +40,7 @@
7040
* 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)
7141
* 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)
7242
* 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)
7344

7445
#### Performance
7546

@@ -78,6 +49,7 @@
7849
* Simplify internal generics logic - remove generator overhead by @sydney-runkle in [#10059](https://github.com/pydantic/pydantic/pull/10059)
7950
* Remove default module globals from types namespace by @sydney-runkle in [#10123](https://github.com/pydantic/pydantic/pull/10123)
8051
* 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)
8153

8254
##### Minor Internal Improvements
8355
* ⚡️ Speed up `multiple_of_validator()` by 31% in `pydantic/_internal/_validators.py` by @misrasaurabh1 in [#9839](https://github.com/pydantic/pydantic/pull/9839)
@@ -140,6 +112,15 @@
140112
* Try each option in `Union` serializer before inference by @sydney-runkle in [pydantic/pydantic-core#1398](https://github.com/pydantic/pydantic-core/pull/1398)
141113
* Fix `float` serialization behavior in `strict` mode by @sydney-runkle in [pydantic/pydantic-core#1400](https://github.com/pydantic/pydantic-core/pull/1400)
142114
* 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)
143124

144125
### New Contributors
145126

@@ -162,7 +143,8 @@
162143
* @aditkumar72 made their first contribution in [#10128](https://github.com/pydantic/pydantic/pull/10128)
163144
* @changhc made their first contribution in [#9654](https://github.com/pydantic/pydantic/pull/9654)
164145
* @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)
166148

167149
#### `pydantic-core`
168150

@@ -174,6 +156,14 @@
174156
* @candleindark made their first contribution in [pydantic/pydantic-core#1404](https://github.com/pydantic/pydantic-core/pull/1404)
175157
* @changhc made their first contribution in [pydantic/pydantic-core#1331](https://github.com/pydantic/pydantic-core/pull/1331)
176158

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+
177167
## v2.8.2 (2024-07-03)
178168

179169
[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.8.2)

0 commit comments

Comments
 (0)