Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Apr 13:43
· 7 commits to main since this release
v2.0.0
5328ef2

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

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.