From fe746d0e6966dad58abe145477a86d25887ba58a Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Sun, 25 Sep 2022 18:26:17 +0200 Subject: [PATCH] =?UTF-8?q?Release=200.9.0=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 23 +++++++++++++++++++++-- pyproject.toml | 2 +- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f134b61..5f7b884e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Create new types instead of changing type args for structural types ([#240](https://github.com/art049/odmantic/pull/240) by [@art049](https://github.com/art049)) +## [0.9.0] - 2022-09-25 + +#### Added + + +- Create new generic types to support generic collection types ([#240](https://github.com/art049/odmantic/pull/240) by [@erny](https://github.com/erny) & [@art049](https://github.com/art049)) + + Thus, it's now possible to define models like this in python **3.9+** 🚀: + ```python + class User(Model): + scopes: list[str] + friendsIds: list[ObjectId] + skills: set[str] + ``` - Allow using generators with `in_` and `not_in` ([#270](https://github.com/art049/odmantic/pull/270) by [@art049](https://github.com/art049)) +#### Fixed + + - Fix `EmbeddedModel` generics definition with a custom `key_name` ([#269](https://github.com/art049/odmantic/pull/269) by [@art049](https://github.com/art049)) +- Raise a `TypeError` when defining a `Reference` in a generic(List, Dict, Tuple, ...) containing EmbeddedModels ([#269](https://github.com/art049/odmantic/pull/269) by [@art049](https://github.com/art049)) + ## [0.8.0] - 2022-09-09 #### Added @@ -297,4 +315,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [0.7.0]: https://github.com/art049/odmantic/compare/v0.6.0...v0.7.0 [0.7.1]: https://github.com/art049/odmantic/compare/v0.7.0...v0.7.1 [0.8.0]: https://github.com/art049/odmantic/compare/v0.7.1...v0.8.0 -[unreleased]: https://github.com/art049/odmantic/compare/v0.8.0...HEAD +[0.9.0]: https://github.com/art049/odmantic/compare/v0.8.0...v0.9.0 +[unreleased]: https://github.com/art049/odmantic/compare/v0.9.0...HEAD diff --git a/pyproject.toml b/pyproject.toml index ab239508..9f1f2d2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "odmantic" -version = "0.8.0" +version = "0.9.0" description = "ODMantic, an AsyncIO MongoDB Object Document Mapper for Python using type hints " authors = [{ name = "Arthur Pastel", email = "arthur.pastel@gmail.com" }] license = { file = "LICENSE" }