Skip to content

Releases: mongodb/mongoid

5.1.5

19 Oct 10:49
Compare
Choose a tag to compare

This patch level release has the following bug fixes:

6.0.0

21 Sep 09:35
Compare
Choose a tag to compare

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

5.1.4

12 Aug 07:26
Compare
Choose a tag to compare

This patch release has the following bug fixes:

  • MONGOID-4300 Don't double set a relation.
  • MONGOID-4289 Fix cloning with embedded translations.
  • MONGOID-4275 Ensure existing translations are used when a field is localized.
  • Criteria#map uses #pluck, not #only (@Benjamin-Dobell)
  • MONGOID-4296 Fix regression with #only and embedded fields
  • Add mongodb.com docs to repository

6.0.0.rc0

09 Aug 14:46
Compare
Choose a tag to compare
6.0.0.rc0 Pre-release
Pre-release

This is the first release candidate of Mongoid 6.0, which supports Rails 5.

The following changes are in rc0, in addition to the changes noted for the 6.0 beta release.

Bug fixes

API and behavior changes

Improvements and features

  • MONGOID-4301 Support $elemMatch in Matchable#matches? (@jonhyman)
  • Make Proxy undef regex more precise (@marshalium)
  • Incorporated Mongoid documentation into repository.
  • MONGOID-4274 Add QueryChache to the docs and take out Origin references
  • Improve test suite performance and ensure that new connections get closed

6.0.0.beta

13 Jul 11:44
Compare
Choose a tag to compare
6.0.0.beta Pre-release
Pre-release

This is a beta release of Mongoid 6.0, which supports Rails 5.

Mongoid 6.0 has a number of bug fixes, API changes, and improvements:

Bug fixes

  • MONGOID-3243 #find_or_create_by does not respect dynamic collection setting.
  • MONGOID-3551 Fix adding nested documents to nested relation using accepts_nested_attributes_for
  • MONGOID-4228 Fix using $not, $and, $or on embedded document queries. (@jonhyman)
  • MONGOID-4241 Only update timestamp when calling #touch, regardless of what other changes are pending. (@connerfritz)
  • MONGOID-4272 Fix replacing relation when it is already set as an instance variable.

API and behavior changes

Improvements and features

  • MONGOID-4012 Add max_time_ms as an option on Criteria.
  • MONGOID-4261, MONGOID-3887 Assign hash attributes in #first_or_* methods on Criteria.
  • MONGOID-3074 Consider time zones when returning distinct query results
  • MONGOID-3158 DateTime#mongoize and Date#mongoize return nil for invalid strings.
  • MONGOID-3842 Allow cache timestamp format to be changed. (@DouweM)
  • MONGOID-3875 Note in documentation that Mongoid::Attributes::Dynamic is needed when using counter_cache.
  • MONGOID-4129 Close connections opened by calling #with.
  • MONGOID-4218 Support Rails 5
  • MONGOID-4225 Incorporate separate Origin gem into Mongoid's codebase.
  • MONGOID-4266 Support passing multiple contexts to #valid?
  • MONGOID-4267 Support #attr_name_previously_changed? and #attr_name_previous_change
  • Add sorting options to the cache key (@jefmathiot)
  • Don't allow method names containing hyphens (@tdonia)

Closed tickets without fix needed

5.1.3

21 Apr 10:50
Compare
Choose a tag to compare

This patch-level release has the following fixes:

5.1.2

31 Mar 16:49
Compare
Choose a tag to compare

This patch-level release has the following fixes:

5.1.1

18 Feb 11:17
Compare
Choose a tag to compare

This patch-level release has the following changes and fixes:

  • Fix for handling $not in $and and $or Matchers (@jonhyman)
  • MONGOID-3551 Fix adding documents to nested relation using accepts_nested_attributes_for. (@hck)
  • MONGOID-3558 Spec added to show it's no longer an issue.
  • MONGOID-4233 Don't override Rails logger levels with Mongoid's config.
  • MONGOID-4238 Reset readonly state after reloading document.
  • Update the mongoid config template comments to reflect that ssl_verify is on by default. (@danarnold)

5.1.0

26 Jan 16:12
Compare
Choose a tag to compare

This minor release of Mongoid has the following bug fixes and new features:

v5.0.2

22 Dec 11:54
Compare
Choose a tag to compare

This release has a number of fixes for bugs in the backlog, community contributions, and tests added to show some issues no longer exist.