Skip to content

Commit

Permalink
Release 0.9.0 馃殌
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Sep 25, 2022
1 parent d6828b5 commit fe746d0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 21 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down

0 comments on commit fe746d0

Please sign in to comment.