Skip to content

Releases: mongodb/mongoid

6.1.1

06 Jun 12:28
Compare
Choose a tag to compare

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

05 Apr 10:00
Compare
Choose a tag to compare

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

26 Jan 15:55
Compare
Choose a tag to compare

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:

5.2.0

26 Jan 15:42
Compare
Choose a tag to compare

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:

6.1.0.rc0

22 Dec 15:33
Compare
Choose a tag to compare

This release candidate includes support for the new features of server version 3.4, among other smaller changes:

5.2.0.rc0

22 Dec 15:38
Compare
Choose a tag to compare

This release candidate includes support for the new features of server version 3.4, among other smaller changes:

6.0.3

02 Dec 10:49
Compare
Choose a tag to compare

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

01 Dec 14:16
Compare
Choose a tag to compare

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

20 Oct 09:15
Compare
Choose a tag to compare

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:

6.0.1

19 Oct 12:46
Compare
Choose a tag to compare

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)