Commit 5328ef2
committed
Bump version 1.1.4 → 2.0.0
Breaking changes
----------------
* `BeanieBaseUser` and `BeanieBaseAccessToken` are now pure mixins and doesn't inherit `Document` by default. This change was made to avoid Beanie from creating duplicate collections in your database. You now need to inherit from `Document` yourself when declaring your model.
* `BeanieBaseUser` now only supports `PydanticObjectId` as ID type.
**BEFORE**
```py
class User(BeanieBaseUser[PydanticObjectId]):
pass
```
**AFTER**
```py
class User(BeanieBaseUser, Document):
pass
```
**BEFORE**
```py
class AccessToken(BeanieBaseAccessToken[PydanticObjectId]):
pass
```
**AFTER**
```py
class AccessToken(BeanieBaseAccessToken, Document):
pass
```
Bug fixes
---------
* Fix support for Beanie >= 0.18.1 parent fab7f93 commit 5328ef2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments