Update dependency beanie to v2 #1107
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
<2.0.0,>=1.21.0-><2.1.0,>=2.0.1Release Notes
BeanieODM/beanie (beanie)
v2.0.1Compare Source
Note
This release specifies and limits the last major supported version of Python to 3.13.
No version of Beanie is yet compatible with Python 3.14 and above.
What's Changed
New Contributors
Full Changelog: BeanieODM/beanie@2.0.0...2.0.1
v2.0.0Compare Source
Breaking
This release moves away from Motor in favor of the PyMongo Async API.
As a consequence of this, some Beanie internal fields and method names have been renamed to remove references to Motor.
If you have used the Motor API in your project, please check the official Motor to PyMongo Async migration guide to see what has changed and how to update your code.
Lastly, please check the updated Beanie documentation as well.
Beanie API changes
Document
Document.get_motor_collection()→Document.get_pymongo_collection()Document.get_settings().motor_db→Document.get_settings().pymongo_dbDocument.get_settings().motor_collection→Document.get_settings().pymongo_collectionUnion Document
UnionDocument.get_motor_collection()→UnionDocument.get_pymongo_collection()UnionDocument.get_settings().motor_db→UnionDocument.get_settings().pymongo_dbUnionDocument.get_settings().motor_collection→UnionDocument.get_settings().pymongo_collectionViews
View.aggregate(...).motor_cursor→View.aggregate(...).get_cursor()View.get_settings().motor_db→View.get_settings().pymongo_dbView.get_settings().motor_collection→View.get_settings().pymongo_collectionQueries
DocumentModel.aggregate(...).motor_cursor→DocumentModel.aggregate(...).get_cursor()DocumentModel.find(...).aggregate(...).motor_cursor→DocumentModel.find(...).aggregate(...).get_cursor()Fields
IndexModelField.from_motor_index_information()→IndexModelField.from_pymongo_index_information()Initializer
multiprocessing_modeattribute was removed from theInitializerclass and as a parameter toinit_beanie().What's Changed
New Contributors
Full Changelog: BeanieODM/beanie@1.30.0...2.0.0
v1.30.0Compare Source
Breaking
This release drops support for Python 3.8.
What's Changed
BulkWriter.__init__bug when it hasobject_class paraminput by @hagd0520 in #1107first_or_noneno longer mutates FindMany object (#1116) by @egorzh01 in #1178bucket_rounding_secondin favor ofbucket_rounding_secondsin TimeSeriesConfig by @m00rex in #1162New Contributors
Full Changelog: BeanieODM/beanie@1.29.0...1.30.0
v1.29.0Compare Source
Note
This release fixes a regression introduced in Version 1.28.0 that caused errors with the generated JSON Schema. Shout-out to @staticxterm for helping us resolve the issue.
What's Changed
Ownermodel missing ininit_beaniein Inheritance documentation's Inserts example by @ksayer in #1090diacritic_sensitiveparameter optional to support $text operator on Cosmos DB by @mykolaskrynnyk in #1089New Contributors
Full Changelog: BeanieODM/beanie@1.28.0...1.29.0
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.