What's Changed
- fix fastapi test version by @CAPITAINMARVEL in #1273
- fix: tests failing due to using outdated supercharge/mongodb-action by @adeelsohailahmed in #1277
- docs: clarify state management description by @smahn9123 in #1248
- PYTHON-4238 - Add Beanie version to handshake metadata by @NoahStapp in #1255
- Fix FindQuery.count() ignoring pymongo_kwargs by @veeceey in #1269
- chore: drop EOL Python 3.9, MongoDB 4.4/6.0, Pydantic v1 by @roman-right in #1287
- added docstring to class DocumentWithSoftDelete #928 by @gugu-py in #1241
- Fix OperationFailure when saving with keep_nulls=False and no None values by @veeceey in #1271
- improve class filter and is/is not for enum comparison by @CAPITAINMARVEL in #1275
- Speed up init by avoiding duplicate db commands by @vvuk in #1276
- chore: Uplift pytest and related dependencies by @staticxterm in #1291
- use class from self.class when serializing BackLinks with fetched data by @alexdlukens in #1207
- remove pydantic v1 by @CAPITAINMARVEL in #1290
- Fix fetch_links=True on View raising AttributeError by @roman-right in #1280
- Fix save() OperationFailure with use_revision=True and keep_nulls=False by @roman-right in #1281
- Do not raise DeprecationWarning internally when accessing
bucket_rounding_seconddeprecated field by @staticxterm in #1238 - fix: preserve fetched BackLink values after save() by @roman-right in #1285
- Fix update() raising RevisionIdWasChanged for non-revision DuplicateKeyError by @veeceey in #1270
- chore: modernize Beanie codebase and types for py310+ by @staticxterm in #1293
- docs: add soft delete tutorial (#928) by @smahn9123 in #1297
- Fix decorator type hint by @CAPITAINMARVEL in #1296
- perf(tests): significantly improve test execution time by @staticxterm in #1298
- fix: global logger override in migrations executor by @staticxterm in #1300
- fix: set module metadata before executing migration scripts by @staticxterm in #1299
- Feat/custom class ID by @volfpeter in #1252
- fix: support frozen fields on save() and replace() (#863) by @roman-right in #1282
- fix: handle RootModel with custom iter in save() by @roman-right in #1284
- fix: handle BackLink types in fetch_link and fetch_all_links by @roman-right in #1286
- Fix before_event changes not persisted to DB by @roman-right in #1279
- fix: resolve Pydantic field aliases in nested expression field queries by @roman-right in #1278
- Do not ignore deprecation warnings in tests by @Viicos in #1123
- add support with_children on delete_all by @CAPITAINMARVEL in #1310
- release: 2.1.0 by @roman-right in #1305
- fix: switch publish workflows to OIDC trusted publisher by @roman-right in #1311
New Contributors
- @smahn9123 made their first contribution in #1248
- @NoahStapp made their first contribution in #1255
- @veeceey made their first contribution in #1269
- @gugu-py made their first contribution in #1241
- @vvuk made their first contribution in #1276
- @alexdlukens made their first contribution in #1207
- @volfpeter made their first contribution in #1252
Full Changelog: 2.0.1...2.1.0