Releases: mongodb/mongoid
6.1.1
This patch release has the following changes:
- Update config template (@ivanovaleksey)
- MONGOID-3806 use where with delete conditions instead of driver API for #delete_all.
- Fix YARD doc for Criteria#merge method (@ivanovaleksey)
- Add support for matching index of an array (@loganyu)
- Refactor eager preload to avoid stack overflow (@Val)
- Small improvement to spec for Touchable (@johnnyshields)
- MONGOID-4415 Ensure that storage options of parent are used for embedded docs when persisting
- MONGOID-4319 Don't replace relation if new one is identical to existing.
- Fix sort to id_sort option typos (@hartator)
- MONGOID-4416 Don't run touch callbacks when #touch is called on an object from a relation's callback
- MONGOID-4418 Don't allow PersistenceContext method as field names
- Fix compatibility of Mongoid::Contextual::None with other contexts by adding distinct (@ElMassimo)
- Update mongoid-queries.txt (@wndfly)
- Update mongoid-queries.txt with valid ruby (@arbourd)
- RUBY-1207 Note that username and password are required for most auth mechanisms.
- MONGOID-4426 Account for nil value in Hash field before setting
- Allow raw bson regexp query criteria on fields specified as Strings
- MONGOID-4425 #as_document continues to return BSON::Document, but use internal api method #as_attributes otherwise
- MONGOID-4431 Avoid use of certain names in Synchronization module so not to interfer with attribute names
- MONGOID-3678 Change #matches? to #_matches? to avoid relation name clash
- MONGOID-4435 Don't convert option keys to String from Symbols when cloning criteria
- Travis and Evergreen improvements
- API docs available at https://docs.mongodb.com/mongoid/6.1/api/
Tickets that are closed as of this release without changes:
5.2.1
This patch level release has the following changes:
- Add support for matching the index of an array (@loganyu)
- MONGOID-4428 Ensure that a BSON::Regexp::Raw object is serialized to a BSON regex when querying a field with type String. Also allow a BSON::Regexp::Raw object to be compiled to a native Ruby Regexp when querying in-memory documents. Please ensure that all uses of Ruby's Regexp class refer to it with the explicit syntax:
::Regexp
.
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)