Releases: fastapi-users/fastapi-users-db-beanie
Releases · fastapi-users/fastapi-users-db-beanie
v3.0.0
v2.0.0
Bump version 1.1.4 → 2.0.0
Breaking changes
BeanieBaseUser
andBeanieBaseAccessToken
are now pure mixins and doesn't inheritDocument
by default. This change was made to avoid Beanie from creating duplicate collections in your database. You now need to inherit fromDocument
yourself when declaring your model.BeanieBaseUser
now only supportsPydanticObjectId
as ID type.
BEFORE
class User(BeanieBaseUser[PydanticObjectId]):
pass
AFTER
class User(BeanieBaseUser, Document):
pass
BEFORE
class AccessToken(BeanieBaseAccessToken[PydanticObjectId]):
pass
AFTER
class AccessToken(BeanieBaseAccessToken, Document):
pass
Bug fixes
- Fix support for Beanie >= 0.18.
v1.1.4
Bump version 1.1.3 → 1.1.4
Improvements
- Bump dependencies
beanie >=1.11.0,<2.0.0
v1.1.3
Bump version 1.1.2 → 1.1.3
Improvements
- Enable Python 3.11 support
- Bump dependencies:
beanie >=1.11.0,<1.17
v1.1.2
Bump version 1.1.1 → 1.1.2
Improvements
- Bump dependencies:
beanie >=1.11.0,<1.14
v1.1.1
Bug fixes and improvements
- Fix #2 Beanie depreciation warning: base model now uses
Settings
metaclass instead ofCollection
. Thanks @vittoriozamboni 🎉 - Fix warning during unit tests in Python 3.10. Thanks @vittoriozamboni 🎉
v1.1.0
Improvements
- Bump dependencies:
beanie >=1.11.0,<1.12
Thanks @schwannden 🎉