Pular para conteúdo

Release notes


v.1.6.3 - 2025-03-27

What's Changed

  • ♻️ Refactor skip and limit stages in pipeline by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.6.2...1.6.3


v1.6.2 - 2025-02-28

What's Changed

Fix

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.6.1...1.6.2


v1.6.1 - 2025-02-24

What's Changed

Fix

  • 🐛 Fix consolidate_dict and DbField comparison_operator for verify condition Decimal and DbDecimal by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.6.0...1.6.1


v1.6.0 - 2025-02-23

What's Changed

New feature

  • ✨ DbDecimal: A new model for using Decimal objects that are automatically converted to Decimal128 in MongoDB by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.5.1...1.6.0


v1.5.1 - 2025-02-19

What's Changed

  • ✨ Engines save and save_all with populate argument by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.5.0...1.5.1


v1.5.0 - 2025-02-18

What's Changed

Fix

New feature

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.6...1.5.0


v1.4.6 - 2025-01-16

What's Changed

Fix

  • 🚑 Fix pipeline set stage with correct index and set empty array when unwind index is null by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.5...1.4.6


v1.4.5 - 2025-01-15

What's Changed

Fix

  • 🚑 Added sort stage before group stage in pipeline. Unset after all nested group… by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.4...1.4.5


v1.4.4 - 2025-01-14

What's Changed

Fix

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.3...1.4.4


v1.4.3rc3 - 2024-11-22

What's Changed

Fix

  • ♻️ Refactor resolve reference pipeline by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.3rc2...1.4.3rc3


v1.4.3 - 2024-11-29

What's Changed

Same code of v1.4.3rc3

  • ♻️ Refactor: Enhance DbModel initialization and MongoDB aggregate pipeline construction by @mauro-andre

  • Improve test coverage by @mauro-andre

  • ➕ Update requirements by @mauro-andre

  • ♻️ Refactor resolve reference pipeline by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.2...1.4.3


v1.4.3rc2 - 2024-11-21

What's Changed

FIx

  • Minor modification to the __getattr__ method in the PyOdmongoMeta metaclass to improve compatibility with Pydantic 2.10.

Tests

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.3rc1...1.4.3rc2


v1.4.3rc1 - 2024-11-20

What's Changed

Fix

  • ♻️ Refactor: Enhance DbModel initialization and MongoDB aggregate pipeline construction by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.2...1.4.3rc1


v1.4.2 - 2024-11-09

What's Changed

Fix

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.0...1.4.2


v1.4.1 - 2024-10-07

What's Changed

New feature

  • ♻️ Nested persisted object with index creation by @mauro-andre

Fix

  • 🐛 Fix text index duplicate name by @mauro-andre

  • 🐛 Fix create index after in model after a nested attr by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.3.0...1.4.0


v1.4.0rc3 - 2024-10-07

What's Changed

  • 🐛 Fix create index after in model after a nested attr by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.4.0rc2...1.4.0rc3


v1.4.0rc2 - 2024-10-07


v1.4.0rc1 - 2024-10-07


v1.3.0 - 2024-10-03

What's Changed

New feature

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.2.2...1.3.0


v1.2.2 - 2024-07-29

What's Changed

Fix

  • 🐛 DbModel initialize empty lists by @mauro-andre (Issue reported by @manuelseeger)

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.2.1...1.2.2


v1.2.1 - 2024-07-18

What's Changed

Fix

New Contributors

  • @patrickpasquini made their first contribution in https://github.com/mauro-andre/pyodmongo/pull/142

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.2.0...1.2.1


v1.2.0 - 2024-07-02

What's Changed

New feature

  • ✨ Mount query operator with and or logical operators by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.1.2...1.2.0


v1.1.2 - 2024-06-26

What's Changed

Fix

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.1.1...1.1.2


v1.1.1 - 2024-06-26

What's Changed

Fix

  • 🐛 Fix KeyError in init DbModel when use a serialized class by @mauro-andre

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.1.0...1.1.1


v1.1.0rc2 - 2024-06-25

What's Changed

Fix

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.1.0rc1...1.1.0rc2


v1.1.0 - 2024-06-25

What's Changed

Refactor

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.0.1...1.1.0


v1.1.0rc1 - 2024-06-20

What's Changed

Refactor

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.0.1...1.1.0rc1


v1.0.1 - 2024-06-05

What's Changed

Fix

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/1.0.0...1.0.1


v1.0.0 - 2024-06-03

What's Changed

I'm excited to release version 1.0.0 of PyODMongo.

Although the library was built on top of Pydantic V2, from this release onwards the dependency on Pydantic is at a higher abstraction layer.

In the first versions of PyODMongo, to guarantee certain behaviors I had to rewrite the Pydantic metaclass, making some changes, I did the same thing with the Field function, this meant that with each Pydantic update I had to do countless tests to ensure that nothing broke .

In this new version of PyODMongo I created a new metaclass that inherits from the pydantic metaclass and adds certain behaviors, I followed the same reasoning with the Fields function.

Basically a lot of thing has been refactored to improve performance, code simplicity and a higher abstraction of Pydantic

Refactor

  • All sync and async engine methods: find_one, find_many, save, save_all and delete

  • There's no more SaveResponse or DeleteResponse, both have been replaced by DbResponse

  • DbModel now inherits from Pydantic's BaseModel and the new DbMeta metaclass

New features

  • DbMeta and PyOdmongoMeta

  • MainBaseModel class to use in embedded documents

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/0.10.2...1.0.0


v1.0.0rc1 - 2024-06-02

Release candidate

Full Changelog: https://github.com/mauro-andre/pyodmongo/compare/0.10.2...1.0.0rc1