Version 9.0.1 of the Mongoid ODM for MongoDB is now available.
Release Highlights
- MONGOID-5786: In accordance with Ruby’s enumerable API, the #sum method now accepts an optional block. Thank you to Cristián Pérez for your contributions!
- MONGOID-5688: Problematic recursive callstacks in cascading callbacks have been linearized using Ruby Fibers to prevent SystemStackErrors with greater numbers of embedded documents. Thank you to Adviti Mishra for your contributions!
- MONGOID-5769: $pop and $pull are now mongoized the same way as #addToSet or $push to ensure update_all functions as intended. Thank you to John Maguir and Michael Deryugin for your contributions!
- MONGOID-5789: querying an attribute with a nil name now returns an empty string, rather than raising an exception. Thank you to Dan Healy for your contribution!
- MONGOID-5785: if you set Mongoid.allow_scopes_to_unset_default_scope = true, you can invoke (e.g.) unscoped in a named scope to reset the current scope. This is useful for overriding default scopes inside of a named scope. This option will default to true in Mongoid 10.
- MONGOID-5791: If the parent document class is not loaded at the time of loading the embedded document class, a NameError used to be raised. This has been fixed.
- MONGOID-5796: The docs previously present in the Mongoid repository have been moved to the docs-mongoid repository.
Documentation
Documentation is available at MongoDB.com.
Installation
You may install this version via RubyGems, with:
gem install --version 9.0.1 mongoid
What’s Changed
- Mongoize is not called on update_all, when $set operator is used by @dem in Mongoize is not called on update_all, when $set operator is used by dem · Pull Request #5814 · mongodb/mongoid · GitHub
- Fix mongoize update all array operators master by @JohnMaguir in Fix mongoize update all array operators master by JohnMaguir · Pull Request #5823 · mongodb/mongoid · GitHub
- DOCSP-38361 - Add text to empty pages by @mongoKart in DOCSP-38361 - Add text to empty pages by mongoKart · Pull Request #5826 · mongodb/mongoid · GitHub
- MONGOID-5508 touch on custom field by @adviti-mishra in MONGOID-5508 touch on custom field by adviti-mishra · Pull Request #5829 · mongodb/mongoid · GitHub
- RUBY-3489: Add empty SBOM lite file by @alcaeus in RUBY-3489: Add empty SBOM lite file by alcaeus · Pull Request #5830 · mongodb/mongoid · GitHub
- MONGOID-5786: Fix some compatibility issues with Enumerable API by @cperezabo in MONGOID-5786: Fix some compatibility issues with Enumerable API by cperezabo · Pull Request #5831 · mongodb/mongoid · GitHub
- MONGOID-5785 allow named scopes to remove a default scope by @jamis in MONGOID-5785 allow named scopes to remove a default scope by jamis · Pull Request #5832 · mongodb/mongoid · GitHub
- MONGOID-5743 SSDLC Requirements by @jamis in MONGOID-5743 SSDLC Requirements by jamis · Pull Request #5834 · mongodb/mongoid · GitHub
- MONGOID-5789 database_field_name given nil or empty string should raise UnknownAttribute exception by @danhealy in MONGOID-5789 database_field_name given nil or empty string should raise UnknownAttribute exception by danhealy · Pull Request #5836 · mongodb/mongoid · GitHub
- DOP-4809: Remove docs/ since it has been migrated to mongodb/docs-mongoid by @i80and in DOP-4809: Remove docs/ since it has been migrated to mongodb/docs-mongoid by i80and · Pull Request #5840 · mongodb/mongoid · GitHub
- MONGOID-5790 MONGOID-5791 Fix error caused by loading a referenced class prematurely by @jamis in MONGOID-5790 MONGOID-5791 Fix error caused by loading a referenced class prematurely by jamis · Pull Request #5839 · mongodb/mongoid · GitHub
- Modified the comment to rightly indicate the error being raised is In… by @adviti-mishra in Modified the comment to rightly indicate the error being raised is In… by adviti-mishra · Pull Request #5841 · mongodb/mongoid · GitHub
- 5688: Run callbacks for children within fibers by @adviti-mishra in 5688: Run callbacks for children within fibers by adviti-mishra · Pull Request #5837 · mongodb/mongoid · GitHub
- Added a pointer to docs-mongoid in the README.md by @adviti-mishra in Added a pointer to docs-mongoid in the README.md by adviti-mishra · Pull Request #5843 · mongodb/mongoid · GitHub
New Contributors
- @mongoKart made their first contribution in DOCSP-38361 - Add text to empty pages by mongoKart · Pull Request #5826 · mongodb/mongoid · GitHub
- @adviti-mishra made their first contribution in MONGOID-5508 touch on custom field by adviti-mishra · Pull Request #5829 · mongodb/mongoid · GitHub
- @cperezabo made their first contribution in MONGOID-5786: Fix some compatibility issues with Enumerable API by cperezabo · Pull Request #5831 · mongodb/mongoid · GitHub
- @danhealy made their first contribution in MONGOID-5789 database_field_name given nil or empty string should raise UnknownAttribute exception by danhealy · Pull Request #5836 · mongodb/mongoid · GitHub
- @i80and made their first contribution in DOP-4809: Remove docs/ since it has been migrated to mongodb/docs-mongoid by i80and · Pull Request #5840 · mongodb/mongoid · GitHub
Full Changelog: Comparing v9.0.0...v9.0.1 · mongodb/mongoid · GitHub