Releases: mongodb/mongoid
6.1.0
This minor release supports version 3.4 of the MongoDB server. It has all the changes listed for version 6.1.0.rc0 as well as the following:
- Add filename and line number to class_eval and module_eval calls (@ivanovaleksey)
- Documentation updates (@artfuldodger)
- Address Ruby warnings (@amatsuda)
- Documentation updates (@rakusai)
- Update Relations::Reflections.reflect_on_all_associations method (@ivanovaleksey)
- Consider nested hashes when updating (@sivagollapalli)
- MONGOID-4405 Fix querying on Models with cyclic relations
5.2.0
This minor release supports version 3.4 of the MongoDB server. It has all the changes listed for version 5.2.0.rc0 as well as the following:
- Add filename and line number to class_eval and module_eval calls (@ivanovaleksey)
- Documentation updates (@artfuldodger)
- Address Ruby warnings (@amatsuda)
- Documentation updates (@rakusai)
- Update Relations::Reflections.reflect_on_all_associations method (@ivanovaleksey)
- Consider nested hashes when updating (@sivagollapalli)
- MONGOID-4405 Fix querying on Models with cyclic relations
6.1.0.rc0
This release candidate includes support for the new features of server version 3.4, among other smaller changes:
- Refactored map reduce internals
- MONGOID-4398 Synchronize driver client creation
- Don't use unless with else (@ivanovaleksey)
- MONGOID-4237 Extend BSON::Decimal128 so it can be evolved in queries
- MONGOID-4326 Support collation in queries
- MONGOID-4328 Allow app_name to be set in mongoid.yml
- MONGOID-4327 Ensure that max_staleness is exposed as a read pref option
5.2.0.rc0
This release candidate includes support for the new features of server version 3.4, among other smaller changes:
- Refactored map reduce internals
- MONGOID-4398 Synchronize driver client creation
- Don't use unless with else (@ivanovaleksey)
- MONGOID-4237 Extend BSON::Decimal128 so it can be evolved in queries
- MONGOID-4326 Support collation in queries
- MONGOID-4328 Allow app_name to be set in mongoid.yml
- MONGOID-4327 Ensure that max_staleness is exposed as a read pref option
6.0.3
This patch release has the following fixes:
- MONGOID-3490 Fix Fields::Localized#lookup to work with boolean.
- MONGOID-4360 Fix text search used in Aggregation pipeline.
- MONGOID-4365 Allow partial iteration when eager loading.
- Allow map_reduce to use read preference of client (@cesar-tonnoir)
- Prefix Readonly#_loaded? method to avoid namespace pollution (@romanlehnert)
- Bypass the query cache when reloading a document (@eugeneius)
5.1.6
This patch release has the following fixes:
- MONGOID-3490 Fix Fields::Localized#lookup to work with boolean.
- MONGOID-4360 Fix text search used in Aggregation pipeline.
- MONGOID-4365 Allow partial iteration when eager loading.
- Allow map_reduce to use read preference of client (@cesar-tonnoir)
- Include sort option in cache key (@jefmathiot)
- Bypass the query cache when reloading a document (@eugeneius)
6.0.2
This release only has one change but was necessary because of a bug introduced into 6.0.1 by the fix to ticket MONGOID-4310
The bug reports can be found here:
- MONGOID-4357, MONGOID-4358 Fix merging criteria selectors when objects in a list do not respond to the #| method.
6.0.1
This patch level release has the following bug fixes:
- MONGOID-4315 Eager load objects when criteria docs are enumerated multiple times
- MONGOID-4350 Fix counter_cache update when foreign_key isn't default (@TheSmartnik)
- MONGOID-4313, MONGOID-4317 Fix Includes throwing NoMethodError when document is nil
- MONGOID-3407 Fix setting a hash field with atomic operator
- MONGOID-4310 Chained $in clauses should be an intersection.
- Add docs for create/remove indexes called on models (@miguelgraz)
- Don't fail when doing a localized attribute lookup which has a nil value after object initialization (@nicolasblanco)
- Add support for clone documents that have nil legacy attributes. (@okoriko)
5.1.5
This patch level release has the following bug fixes:
- MONGOID-4315 Eager load objects when criteria docs are enumerated multiple times
- MONGOID-4350 Fix counter_cache update when foreign_key isn't default (@TheSmartnik)
- MONGOID-4313, MONGOID-4317 Fix Includes throwing NoMethodError when document is nil
- MONGOID-3407 Fix setting a hash field with atomic operator
- Use right database when override_database + options. (@sylvain-8422)
6.0.0
This is the general release of Mongoid 6.0, which supports Rails 5.
Please see the release notes for version 6.0.0.beta and 6.0.0.rc0 for more details on changes since the 5.x series.
Please note that JRuby 9.0 preforms much slower and uses more memory than we've seen with previous JRuby and Mongoid versions. You may want to put off upgrading to JRuby 9.0 + Mongoid 6.0 until the JRuby team has resolved some performance issues. Here is the relevant github issue with the JRuby project.
This release contains the following changes in addition to those list in the beta and rc0 versions of Mongoid 6.0.0.
- Require Ruby driver >= 2.3 so that keys can be validated upon insert.
- MONGOID-3843 Ensure that the output db is queried in mapReduce operations.
- MONGOID-4173 Fix nested eager loading.
- MONGOID-4280 Allow both Strings and Symbols to be used when accessing values in the as_document object.
- MONGOID-4313 Fix nil errors in Eager loading.
- Avoid NoMethodError when using #nested (@quinn)
- Update list of tested Ruby versions in Readme (@tricknotes)
- Documentation updates for 6.0