4.2.0
What's Changed
- Added support for
$ifNullmulti field support,$isNumber,$isArrayby @David-Taub in https://github.com/mongomock/mongomock/pull/749 - Add
read_concernkwarg toget_database. by @pcorpet in https://github.com/mongomock/mongomock/pull/790 - Add support for
$isNumberand$isArray(added on v4.4). by @pcorpet in https://github.com/mongomock/mongomock/pull/789 - Support date timezone by @kepricon in https://github.com/mongomock/mongomock/pull/791
- Adding support for
$dateFromPartsaggregation command by @maximkir-fl in https://github.com/mongomock/mongomock/pull/796 - Improve field validation for documents by @plaan in https://github.com/mongomock/mongomock/pull/769
- Use
importlib.metadata.versioninstead of deprecatedpkg_resourcescall by @ml-evs in https://github.com/mongomock/mongomock/pull/834 - Modernize project infrastructure by @mdomke in https://github.com/mongomock/mongomock/pull/876
- Switch to hatch as build system.
- Switch to PEP 621 compliant project setup.
- Updated the license to ISC.
- The setuptools specific files e.g.
setup.cfgandsetup.pyhave been removed in the scope of the switch tohatch. - Remove support for deprecated Python versions (everything prior to 3.8)
- Switch to GitHub Actions as CI/CD solution
What happened to the 4.1.3 release
The previous CI/CD solution (Travis CI) was refusing to run the publish pipelines due to usage quota issues.
New Contributors
- @David-Taub made their first contribution in https://github.com/mongomock/mongomock/pull/749
- @kepricon made their first contribution in https://github.com/mongomock/mongomock/pull/791
- @maximkir-fl made their first contribution in https://github.com/mongomock/mongomock/pull/796
- @plaan made their first contribution in https://github.com/mongomock/mongomock/pull/769
Full Changelog: https://github.com/mongomock/mongomock/compare/4.1.2...4.2.0-post.1