v9.0.1
版本发布时间: 2024-07-30 03:50:04
mongodb/mongoid最新发布版本:v9.0.1(2024-07-30 03:50:04)
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 https://github.com/mongodb/mongoid/pull/5814
- Fix mongoize update all array operators master by @JohnMaguir in https://github.com/mongodb/mongoid/pull/5823
- DOCSP-38361 - Add text to empty pages by @mongoKart in https://github.com/mongodb/mongoid/pull/5826
- MONGOID-5508 touch on custom field by @adviti-mishra in https://github.com/mongodb/mongoid/pull/5829
- RUBY-3489: Add empty SBOM lite file by @alcaeus in https://github.com/mongodb/mongoid/pull/5830
- MONGOID-5786: Fix some compatibility issues with Enumerable API by @cperezabo in https://github.com/mongodb/mongoid/pull/5831
- MONGOID-5785 allow named scopes to remove a default scope by @jamis in https://github.com/mongodb/mongoid/pull/5832
- MONGOID-5743 SSDLC Requirements by @jamis in https://github.com/mongodb/mongoid/pull/5834
- MONGOID-5789 database_field_name given nil or empty string should raise UnknownAttribute exception by @danhealy in https://github.com/mongodb/mongoid/pull/5836
- DOP-4809: Remove docs/ since it has been migrated to mongodb/docs-mongoid by @i80and in https://github.com/mongodb/mongoid/pull/5840
- MONGOID-5790 MONGOID-5791 Fix error caused by loading a referenced class prematurely by @jamis in https://github.com/mongodb/mongoid/pull/5839
- Modified the comment to rightly indicate the error being raised is In… by @adviti-mishra in https://github.com/mongodb/mongoid/pull/5841
- 5688: Run callbacks for children within fibers by @adviti-mishra in https://github.com/mongodb/mongoid/pull/5837
- Added a pointer to docs-mongoid in the README.md by @adviti-mishra in https://github.com/mongodb/mongoid/pull/5843
New Contributors
- @mongoKart made their first contribution in https://github.com/mongodb/mongoid/pull/5826
- @adviti-mishra made their first contribution in https://github.com/mongodb/mongoid/pull/5829
- @cperezabo made their first contribution in https://github.com/mongodb/mongoid/pull/5831
- @danhealy made their first contribution in https://github.com/mongodb/mongoid/pull/5836
- @i80and made their first contribution in https://github.com/mongodb/mongoid/pull/5840
Full Changelog: https://github.com/mongodb/mongoid/compare/v9.0.0...v9.0.1
1、 mongoid-9.0.1.gem 749KB
2、 mongoid-9.0.1.gem.sig 833B