A summary of data about the Ruby ecosystem.

Recent Releases of https://github.com/mongodb/mongoid

https://github.com/mongodb/mongoid - 9.0.10

The MongoDB Ruby team is pleased to announce version 9.0.10 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 9.0.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 9.0.10 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '9.0.10'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

  • MONGOID-5864 Include Rails framework version in client metadata on initial handshake (PR)

Bug Fixes

  • MONGOID-5899 Write conflict error when accessing embedded documents via [] operator after direct DB update (PR)
  • MONGOID-5919 Restrict Criteria.from_hash method (PR)

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 month ago

https://github.com/mongodb/mongoid - 8.1.12

The MongoDB Ruby team is pleased to announce version 8.1.12 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 8.1.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 8.1.12 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '8.1.12'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

  • MONGOID-4889 Optimize batch assignment of embedded documents (backport to 8.1) (PR)
  • MONGOID-5864 Include Rails framework version in client metadata on initial handshake (PR)

Bug Fixes

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 month ago

https://github.com/mongodb/mongoid - 8.0.12

The MongoDB Ruby team is pleased to announce version 8.0.12 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 8.0.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 8.0.12 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '8.0.12'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

  • MONGOID-5864 Include Rails framework version in client metadata on initial handshake (PR)

Bug Fixes

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 month ago

https://github.com/mongodb/mongoid - 7.6.1

The MongoDB Ruby team is pleased to announce version 7.6.1 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 7.6.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 7.6.1 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '7.6.1'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

  • MONGOID-5864 Include Rails framework version in client metadata on initial handshake (PR)

Bug Fixes

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 month ago

https://github.com/mongodb/mongoid - 9.0.9

The MongoDB Ruby team is pleased to announce version 9.0.9 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 9.0.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 9.0.9 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '9.0.9'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

Bug Fixes

- Ruby
Published by mongodb-dbx-release-bot[bot] 2 months ago

https://github.com/mongodb/mongoid - 7.6.0

The MongoDB Ruby team is pleased to announce version 7.6.0 of the mongoid gem - a Ruby ODM for MongoDB. This is a new minor release in the 7.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 7.6.0 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '7.6.0'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

  • 7.6.0 is now officially compatible with the actual version of the Mongo Ruby Driver (PR)

- Ruby
Published by mongodb-dbx-release-bot[bot] 3 months ago

https://github.com/mongodb/mongoid - 9.0.8

The MongoDB Ruby team is pleased to announce version 9.0.8 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 9.0.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 9.0.8 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '9.0.8'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

Bug Fixes

  • MONGOID-5852 Fix after_action_commit callbacks (PR)
  • MONGOID-4889 Optimize batch assignment of embedded documents (PR)
  • MONGOID-5888 Ensure deeply nested children are validated correctly (PR)
  • MONGOID-5885 Return value from transaction yield to caller instead of internal state (PR)
  • MONGOID-5895 Make Reload Properly Update new_record (PR)
  • MONGOID-5887 Include server hint for aggregate operations (PR)
  • MONGOID-5869 Fix incorrectly named global_executor_concurrency config in code comment (PR)

- Ruby
Published by mongodb-dbx-release-bot[bot] 6 months ago

https://github.com/mongodb/mongoid - 8.0.11

The MongoDB Ruby team is pleased to announce version 8.0.11 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 8.0.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 8.0.11 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '8.0.11'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

Bug Fixes

MONGOID-5848 Revert MONGOID-5822 (PR)

MONGOID-5822 attempted to fix a regression where child callbacks that depended on parent state were no longer invoked if the child had not changed. However, the fix itself introduced an unacceptable performance regression.

This PR restores the earlier functionality, which will break apps that depend on callbacks being invoked on unmodified children.

For now, the correct way to implement that behavior is to explicitly iterate over the children in a parent callback, e.g.:

class Parent
  include Mongoid::Document
  has_many :children
  after_save { children.each(&:parent_changed_callback) }
end

class Child
  include Mongoid::Document
  belongs_to :parent
  
  def parent_changed_callback
    # ...
  end
end

Other Bug Fixes

- Ruby
Published by mongodb-dbx-release-bot[bot] 7 months ago

https://github.com/mongodb/mongoid - 8.1.11

The MongoDB Ruby team is pleased to announce version 8.1.11 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 8.1.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 8.1.11 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '8.1.11'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

Bug Fixes

MONGOID-5848 Revert MONGOID-5822 (PR)

MONGOID-5822 attempted to fix a regression where child callbacks that depended on parent state were no longer invoked if the child had not changed. However, the fix itself introduced an unacceptable performance regression.

This PR restores the earlier functionality, which will break apps that depend on callbacks being invoked on unmodified children.

For now, the correct way to implement that behavior is to explicitly iterate over the children in a parent callback, e.g.:

class Parent
  include Mongoid::Document
  has_many :children
  after_save { children.each(&:parent_changed_callback) }
end

class Child
  include Mongoid::Document
  belongs_to :parent
  
  def parent_changed_callback
    # ...
  end
end

Other Bug Fixes

- Ruby
Published by mongodb-dbx-release-bot[bot] 7 months ago

https://github.com/mongodb/mongoid - 9.0.7

The MongoDB Ruby team is pleased to announce version 9.0.7 of the mongoid gem - a Ruby ODM for MongoDB. This is a new patch release in the 9.0.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 9.0.7 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '9.0.7'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

Bug Fixes

MONGOID-5848 Revert MONGOID-5822 (PR)

MONGOID-5822 attempted to fix a regression where child callbacks that depended on parent state were no longer invoked if the child had not changed. However, the fix itself introduced an unacceptable performance regression.

This PR restores the earlier functionality, which will break apps that depend on callbacks being invoked on unmodified children (for example, when a child callback depends simply on the parent having changed state).

For now, the correct way to implement that behavior is to explicitly iterate over the children in a parent callback, e.g.:

class Parent
  include Mongoid::Document
  has_many :children
  after_save { children.each(&:parent_changed_callback) }
end

class Child
  include Mongoid::Document
  belongs_to :parent
  
  def parent_changed_callback
    # ...
  end
end

Other Bug Fixes

- Ruby
Published by mongodb-dbx-release-bot[bot] 7 months ago

https://github.com/mongodb/mongoid - 8.0.10

Version 8.0.10 of the Mongoid ODM for MongoDB is now available.

Release Highlights

Mongoid 8.0.10 is a patch release that includes the following bug fix:

  • MONGOID-5844: querying the number of elements in a has_and_belongs_to_many association could return the wrong count in specific situations.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 8.0.10 mongoid

Full Changelog: https://github.com/mongodb/mongoid/compare/v8.0.9...v8.0.10

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 year ago

https://github.com/mongodb/mongoid - 8.1.10

Version 8.1.10 of the Mongoid ODM for MongoDB is now available.

Release Highlights

Mongoid 8.1.10 is a patch release that includes the following bug fix:

  • MONGOID-5844: querying the number of elements in a has_and_belongs_to_many association could return the wrong count in specific situations.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 8.1.10 mongoid

Full Changelog: https://github.com/mongodb/mongoid/compare/v8.1.9...v8.1.10

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 year ago

https://github.com/mongodb/mongoid - 9.0.6

Version 9.0.6 of the Mongoid ODM for MongoDB is now available.

Release Highlights

This is a patch release that includes the following bug fix:

  • MONGOID-5844: querying the number of elements in a has_and_belongs_to_many association could return the wrong count in specific situations.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 9.0.6 mongoid

Full Changelog: https://github.com/mongodb/mongoid/compare/v9.0.5...v9.0.6

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 year ago

https://github.com/mongodb/mongoid - 9.0.5

Version 9.0.5 of the Mongoid ODM for MongoDB is now available.

Release Highlights

  • MONGOID-5836 - Callbacks were being duplicated on deeply embedded children.
  • MONGOID-5839 - When using single-collection inheritance, eager loading (with #includes) was not producing the correct query when the root of the query was the document subclass.
  • MONGOID-5825 - The Mongoid::Timestamps module would (in certain cases) attempt to timestamp deleted documents, which resulted in a FrozenError being raised.
  • MONGOID-5822 - Perform validations on embedded documents even if the embedded documents have not changed.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 9.0.5 mongoid

Full Changelog: https://github.com/mongodb/mongoid/compare/v9.0.4...v9.0.5

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 year ago

https://github.com/mongodb/mongoid - 8.1.9

Version 8.1.9 of the Mongoid ODM for MongoDB is now available.

Release Highlights

  • MONGOID-5836 - Callbacks were being duplicated on deeply embedded children.
  • MONGOID-5839 - When using single-collection inheritance, eager loading (with #includes) was not producing the correct query when the root of the query was the document subclass.
  • MONGOID-5825 - The Mongoid::Timestamps module would (in certain cases) attempt to timestamp deleted documents, which resulted in a FrozenError being raised.
  • MONGOID-5822 - Perform validations on embedded documents even if the embedded documents have not changed.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 8.1.9 mongoid

Full Changelog: https://github.com/mongodb/mongoid/compare/v8.1.8...v8.1.9

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 year ago

https://github.com/mongodb/mongoid - 8.0.9

Version 8.0.9 of the Mongoid ODM for MongoDB is now available.

Release Highlights

  • MONGOID-5836 - Callbacks were being duplicated on deeply embedded children. A related issue (MONGOID-5542) was also backported to 8.0, exposing the Mongoid.prevent_multiple_calls_of_embedded_callbacks setting to preserve backwards compatibility in most cases (defaults to false).
  • MONGOID-5757 - Child validations were being short-circuited, resulting in subsequent validation callbacks not being called after the first failing validation.
  • MONGOID-5797 - Accessing the parent document from an embedded document was failing with an error when the original query applied a projection.
  • MONGOID-5810 - When Mongoid.legacy_attributes is true, the #as_document method was returning a hash that leaked internal model state. The hash is now deep-duplicated before being returned (which may have performance implications for large documents or complex hashes).
  • MONGOID-5839 - When using single-collection inheritance, eager loading (with #includes) was not producing the correct query when the root of the query was the document subclass.
  • MONGOID-5825 - The Mongoid::Timestamps module would (in certain cases) attempt to timestamp deleted documents, which resulted in a FrozenError being raised.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 8.0.9 mongoid

Full Changelog: https://github.com/mongodb/mongoid/compare/v8.0.8...v8.0.9

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 year ago

https://github.com/mongodb/mongoid - 9.0.4

Version 9.0.4 of the Mongoid ODM for MongoDB is now available.

Release Highlights

There is one new feature in this release:

MONGOID-5829 adds Mongoid.ignore_paths, which specifies an array of glob patterns. Any file matching any of these patterns will not be automatically loaded during autoloading (e.g. Mongoid.load_models). This fixes a problem encountered when non-model files (e.g. "concerns") are stored under the traditional model directories.

The following bug fixes are included in this release.

  • MONGOID-5830 fixes a bug caused by an earlier optimization that forgot to account for the fact that the client name may be provided a as a Proc.
  • MONGOID-5831 fixes an incompatibility with Rails 8.0.1 and later due to the inadvertent use of an internal Rails API.
  • MONGOID-5737 fixes an error that occurred when comparing a Mongoid::Document instance with an object that was not a Mongoid::Document instance.
  • MONGOID-5780 ensures that calling not multiple times (e.g. Model.where.not.not) will toggle the criteria's negation state, rather than simply setting it to true.
  • MONGOID-5816 prevents attr_readonly from leaking into sibling classes, which was making it difficult to specify that certain attributes are only read-only in certain parts of an inheritance tree.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 9.0.4 mongoid

Full Changelog: https://github.com/mongodb/mongoid/compare/v9.0.3...v9.0.4

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 year ago

https://github.com/mongodb/mongoid - 8.1.8

Version 8.1.8 of the Mongoid ODM for MongoDB is now available.

Release Highlights

This is a patch release with the following bug fixes:

  • MONGOID-5810 -- Internal model state was being leaked via #as_document, allowing the state to be unexpectedly mutated when the returned document was mutated.
  • MONGOID-5737 -- Comparing a model with a non-model was causing an error.
  • MONGOID-5780 -- Chaining multiple not predicates together was not toggling the negation state (e.g. Model.where.not.not.not)
  • MONGOID-5816 -- attr_readonly was leaking into sibling classes, making it difficult to mark attributes read-only for only parts of an inheritance heirarchy.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 8.1.8 mongoid

What's Changed

Full Changelog: https://github.com/mongodb/mongoid/compare/v8.1.7...v8.1.8

- Ruby
Published by mongodb-dbx-release-bot[bot] about 1 year ago

https://github.com/mongodb/mongoid - 9.0.3

Version 9.0.3 of the Mongoid ODM for MongoDB is now available.

Release Highlights

This patch release adds support for Ruby 3.3 and Rails 8 to Mongoid 9.0.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 9.0.3 mongoid

What's Changed

Full Changelog: https://github.com/mongodb/mongoid/compare/v9.0.2...v9.0.3

- Ruby
Published by mongodb-dbx-release-bot[bot] over 1 year ago

https://github.com/mongodb/mongoid - 8.1.7

Version 8.1.7 of the Mongoid ODM for MongoDB is now available.

Release Highlights

This patch release adds support for Ruby 3.3 and Rails 8 to Mongoid 8.1.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 8.1.7 mongoid

What's Changed

Full Changelog: https://github.com/mongodb/mongoid/compare/v8.1.6...v8.1.7

- Ruby
Published by mongodb-dbx-release-bot[bot] over 1 year ago

https://github.com/mongodb/mongoid - 8.1.6

Version 8.1.6 of the Mongoid ODM for MongoDB is now available.

Release Highlights

  • MONGOID-5806: Rails 7.2 support.
  • MONGOID-5769: Fix error with the $pull and $pop operators not being handled correctly by updateAll.
  • MONGOID-5789: Fix behavior when requesting an attribute with nil as the name. Previously raised a spurious exception, now returns an empty string.
  • MONGOID-5797: When using a projection on a model with an embeds_many relation, accessing the inverse (parent) relation was failing. This has been fixed.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 8.1.6 mongoid

What's Changed

Full Changelog: https://github.com/mongodb/mongoid/compare/v8.1.5...v8.1.6

- Ruby
Published by mongodb-dbx-release-bot[bot] over 1 year ago

https://github.com/mongodb/mongoid - 9.0.2

Version 9.0.2 of the Mongoid ODM for MongoDB is now available.

Release Highlights

This patch release adds support for Rails 7.2. It also adds support for custom polymorphic types, and includes bug fixes.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 9.0.2 mongoid

What's Changed

New Contributors

Full Changelog: https://github.com/mongodb/mongoid/compare/v9.0.1...v9.0.2

- Ruby
Published by mongodb-dbx-release-bot[bot] over 1 year ago

https://github.com/mongodb/mongoid - 9.0.1

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

New Contributors

Full Changelog: https://github.com/mongodb/mongoid/compare/v9.0.0...v9.0.1

- Ruby
Published by mongodb-dbx-release-bot[bot] over 1 year ago

https://github.com/mongodb/mongoid - Mongoid 9.0

Mongoid 9.0 is a new major update to the Mongoid ODM. It includes many bug fixes, updates, improvements, and new features.

Significant new features include the following:

  • You can now create and manage Atlas search indexes directly from Mongoid, by specifying your search index definitions directly on the relevant models. (MONGOID-5601)
  • You can now declare a transaction with a block, using syntax that should be familiar to Rails programmers. (You must still be using a MongoDB topology that supports transactions, like a replica-set or sharded topology.) Along with this new syntax, support has also been added for after_commit and after_rollback callbacks. (MONGOID-5530, MONGOID-5531 and MONGOID-5708)
  • Around callbacks on embedded documents are now disabled by default, for performance reasons. If a parent document has a large number (hundreds) of embedded documents, it is possible for the stack to be exhausted while processing "around" callbacks for those embedded documents. If you need around callbacks for your embedded documents, and you are confident that you will not have large numbers of embedded documents in a single parent, you can enable around callbacks with the Mongoid.around_embedded_document_callbacks configuration option. (MONGOID-5658)
  • A new serializer has been added to allow BSON::ObjectId instances to be serialized and deserialized by ActiveJob. (MONGOID-5611)
  • If you specify custom storage options when loading a model (e.g. overriding its collection name, database name, or the named client), you will not need to explicitly specify those same options when saving the model. The model will remember the storage options that were active when it was loaded. (MONGOID-5472)
  • Support for "sandbox mode" in the Rails console has been added. As long as you are using a supported topology (replica-set or sharded, for example), when you specify --sandbox when starting the Rails console, your console session will be wrapped in a transaction. (MONGOID-4901)
  • You can now enjoy Client-Side Field Level Encryption (CSFLE) in Mongoid with supported database server versions. Declare your CSFLE schemas in your documents, configure your encryption in mongoid.yml or config.rb, and generate new data keys via rake. (MONGOID-5585, MONGOID-5587, MONGOID-5589, MONGOID-5592, MONGOID-5613, MONGOID-5615.)

Many other changes are included as well, including the following:

  • Support for Rails 2.6 and Rails 5 have been dropped. (MONGOID-5574)
  • Support has been added for JRuby 9.4, and BSON 5. (MONGOID-5575, MONGOID-5739, RUBY-2846)
  • Added Mongoid.reconnect_clients in conjunction with improving documentation about working with forking webservers. (MONGOID-5758)
  • Saving a model in a session other than the one that loaded it will now result in a warning message (as this is generally considered a bug.) (MONGOID-5552)
  • Eager loading now works with embedded associations. These associations cannot actually be eager loaded, but this allows you to chain eager loading through embedded associations, for example with has-and-belongs-to-many associations. (MONGOID-5052)
  • For embedded associations, the default is now touch: true. This means that when you update an embedded document, its parent is automatically touched (or saved, with the timestamps updated) as well. (MONGOID-5016)
  • You can now prevent Mongoid from type-casting a given value in a query by wrapping it with Mongoid::RawValue. This makes it easier to deal with legacy data that does not conform to an expected type. (MONGOID-5408)
  • The Rails generator for Mongoid (rails g mongoid:config) now additionally generates a default config/initializers/mongoid.rb. (MONGOID-5439)
  • When calling #touch on a model, Mongoid now clears the 'changed' state of the model. Previously, #touch left the model in a 'changed' state, even though it had been persisted by the touch operation. (MONGOID-5504)
  • Mongoid's db:mongoid:create_indexes rake task was not always loading all models before creating the indexes, resulting in some missing indexes. This is now fixed. (MONGOID-5547)
  • Added support for $min, $max, and $mul operators (via set_min, set_max, and mul), as well as $setOnInsert when doing an upsert (via a new :set_on_insert option to #upsert). (MONGOID-5442)
  • A timezone configured in your app (via Time.zone=) will now be used when typecasting dates for time-valued fields. (MONGOID-5488)
  • Typecasting strings for numeric fields now correctly converts the strings into BigDecimal values. (MONGOID-5484)
  • Field aliases are now honored in index specifications. (MONGOID-5314)
  • Fixed an issue where an empty list in a HABTM association needed special handling (instead of blindly using an empty list with $in). (MONGOID-5164)
  • Attempting to call estimated_count when a default scope is active on a collection now raises a dedicated exception (Mongoid::Errors::InvalidEstimatedCountScoping) (MONGOID-4960)
  • Mongoid now raises Mongoid::Errors:AttributeNotLoaded when a program attempts to access a field that is defined on the model, but which was excluded by the query's projection. Previously, ActiveModel::MissingAttributeError was raised in this situation. (MONGOID-5467)
  • When assigning an array of Hashes to a field, the hashes are always converted to a BSON::Document. This makes the behavior consistent with how those fields are loaded from the database. (MONGOID-5410)

Additionally, a number of methods that were monkey-patched onto core modules have been deprecated, including the following:

  • Array#multi_arged? (MONGOID-5669)
  • BigDecimal#__to_inc__ (MONGOID-5662)
  • Hash#__consolidate__ (MONGOID-5654)
  • Hash#__mongoid_unsatisfiable_criteria? (MONGOID-5671)
  • Hash#__nested__ (MONGOID-5653)
  • Hash#delete_id (MONGOID-5670)
  • Hash#extract_id (MONGOID-5670)
  • Hash#to_criteria (MONGOID-5677)
  • Integer#unconvertable_to_bson?
  • Object#__find_args__ (MONGOID-5665)
  • Object#__mongoize_fk__ (MONGOID-5675)
  • Object#__setter__ (MONGOID-5664)
  • Object#__sortable__ (MONGOID-5663)
  • Object#__to_inc__ (MONGOID-5662)
  • Object#blank_criteria? (MONGOID-5671)
  • Object#do_or_do_not (MONGOID-5673)
  • Object#regexp? (MONGOID-5674)
  • Object#you_must (MONGOID-5673)
  • String#mongoid_id? (MONGOID-5668)
  • String#unconvertable_to_bson? (MONGOID-5667)
  • Symbol#mongoid_id? (MONGOID-5668)
  • Time#configured (MONGOID-5676)

Also, Criteria#for_js has been deprecated (MONGOID-5651), and Mongoid::QueryCache (which was previously deprecated) has been removed (MONGOID-5625).

- Ruby
Published by jamis almost 2 years ago

https://github.com/mongodb/mongoid - 8.1.5

This patch release includes the following fixes:

MONGOID-5704: By default, associations (like belongs_to) are validated when a document is saved. However, Mongoid was aggressively loading persisted associations and validating them, which led to a significant performance regression in Mongoid 8+ (versus Mongoid 7.x). This patch fixes this regression by only validating associations that are (1) currently in-memory, and (2) either unpersisted or modified.

MONGOID-5709: has_and_belongs_to_many associations on embedded docments were broken, and attempting to use them would result in an "InvalidPath" exception. This patch release fixes that bug.

- Ruby
Published by jamis about 2 years ago

https://github.com/mongodb/mongoid - 8.0.8

This patch release includes the following fixes:

MONGOID-5704: By default, associations (like belongs_to) are validated when a document is saved. However, Mongoid was aggressively loading persisted associations and validating them, which led to a significant performance regression in Mongoid 8+ (versus Mongoid 7.x). This patch fixes this regression by only validating associations that are (1) currently in-memory, and (2) either unpersisted or modified.

MONGOID-5709: has_and_belongs_to_many associations on embedded docments were broken, and attempting to use them would result in an "InvalidPath" exception. This patch release fixes that bug.

- Ruby
Published by jamis about 2 years ago

https://github.com/mongodb/mongoid - 8.1.4

This is a patch release in 8.1.x series fixes the following issue:

We strongly recommend to upgrade to this version if you use 8.1.3.

This release also adds the following improvement:

- Ruby
Published by comandeo over 2 years ago

https://github.com/mongodb/mongoid - 8.1.3

This is a patch release in 8.1.x series that adds support for Rails 7.1.

The following issues were fixed:

- Ruby
Published by comandeo over 2 years ago

https://github.com/mongodb/mongoid - 8.0.7

This is a patch release in 8.0.x series that adds support for Rails 7.1.

The following issues were fixed:

- Ruby
Published by comandeo over 2 years ago

https://github.com/mongodb/mongoid - 7.5.4

Mongoid 7.5.4 is a patch release in the 7.5 series, addressing the following issues:

The following issue was also done, affecting only a clean-up of old documentation:

- Ruby
Published by jamis over 2 years ago

https://github.com/mongodb/mongoid - 8.1.1

Mongoid 8.1.1 is a patch release in the 8.x series. It fixes the following issue:

It also corrects the following documentation error:

- Ruby
Published by jamis over 2 years ago

https://github.com/mongodb/mongoid - 8.0.5

Mongoid 8.0.5 is a patch release in the 8.0 series with one bug fix:

- Ruby
Published by jamis over 2 years ago

https://github.com/mongodb/mongoid - 8.1.0

Mongoid 8.1.0 is a feature release in 8.x series with the following significant new functionality:

The following issues were fixed:

The following additional improvements were made:

- Ruby
Published by comandeo over 2 years ago

https://github.com/mongodb/mongoid - 7.5.2

This patch release in the 7.5 series adds the following minor improvements and bug fixes:

  • MONGOID-5255 Do not allow reuse of a closed client
  • MONGOID-5417 Fix memory leak when call 'with'
  • MONGOID-5452 Add legacy_attributes to 7.5
  • MONGOID-5433 Replace calls of Time#to_s(format) with Time#to_formatted_s

- Ruby
Published by comandeo over 3 years ago

https://github.com/mongodb/mongoid - 8.0.2

This patch release in the 8.0 series adds the following minor improvement:

The following issues have been fixed:

Also read the full Mongoid 8.0 release notes.

- Ruby
Published by p-mongo over 3 years ago

https://github.com/mongodb/mongoid - 7.5.1

This patch release in the 7.4 series fixes the following issues:

- Ruby
Published by p-mongo over 3 years ago

https://github.com/mongodb/mongoid - 7.4.3

This patch release in the 7.4 series fixes the following issue:

- Ruby
Published by p-mongo over 3 years ago

https://github.com/mongodb/mongoid - 8.0.1

Mongoid 8.0 is a feature release with the following significant new functionality:

The following additional improvements were made:

The following minor improvements were made:

The following functionality was deprecated:

The following functionality was removed:

The following issues were fixed:

Mongoid 8 requires MongoDB 3.6 or newer, Ruby 2.6 or newer, JRuby 9.3 or newer, ActiveSupport 5.2 or newer. Older versions of these libraries and environments are not supported.

Mongoid 8.0.1 is the first release in the 8.0 series. The 8.0.0 release was yanked due to incorrect gem dependency on a pre-release driver version.

- Ruby
Published by p-mongo over 3 years ago

https://github.com/mongodb/mongoid - 7.5.0

This release in the 7.x series is primarily intended to assist with migration to Mongoid 8. To this end, Mongoid 7.5 adds deprecation warnings for functionality removed in Mongoid 8. Some of the new functionality in Mongoid 8 is also available in 7.5, as follows:

The following deprecations have been added:

The following issues were fixed:

Mongoid 7.5 adds support for JRuby 9.3 and deprecates support for JRuby 9.2. Mongoid 8 will require JRuby 9.3 or newer.

- Ruby
Published by p-mongo over 3 years ago

https://github.com/mongodb/mongoid - 7.4.1

This patch release in the 7.4 series adds support for MongoDB 6.0 and the following improvement:

The following issues have been fixed:

- Ruby
Published by p-mongo over 3 years ago

https://github.com/mongodb/mongoid - 7.3.5

This patch release in the 7.3 series fixes the following issues:

- Ruby
Published by p-mongo over 3 years ago

https://github.com/mongodb/mongoid - 7.4.0

Mongoid 7.4.0 is a feature release fully compatible with 7.3. All behavior changes described below are optional and must be opted-into by toggling the respective configuration options.

Mongoid 7.4 formally supports Ruby 3.1.

Mongoid 7.4 formally supports MongoDB server 5.0 and deprecates support for servers 3.4 and earlier. Mongoid 8 will require server 3.6 or newer.

For a more thorough description of the new functionality, and the options needed to enable it, please review the release notes.

The following major improvements are available in 7.4.0:

The following bugs were fixed and, where previously the functionality worked in a different way rather than was completely unusable, must also be explicitly requested via the respective options:

- Ruby
Published by p-mongo almost 4 years ago

https://github.com/mongodb/mongoid - 7.3.4

This patch release in the 7.3 series adds compatibility with Rails 7.

The following bug was fixed:

- Ruby
Published by comandeo about 4 years ago

https://github.com/mongodb/mongoid - 7.3.2

This patch release in the 7.3 series fixes the following bug:

  • MONGOID-5123 Association proxies method_missing does not handle keyword args

- Ruby
Published by comandeo over 4 years ago

https://github.com/mongodb/mongoid - 7.2.5

This patch release in the 7.2 series fixes the following bug:

  • MONGOID-5123 Association proxies method_missing does not handle keyword args

- Ruby
Published by comandeo over 4 years ago

https://github.com/mongodb/mongoid - 7.1.10

This patch release in the 7.1 series fixes the following bug:

  • MONGOID-5123 Association proxies method_missing does not handle keyword args

- Ruby
Published by comandeo over 4 years ago

https://github.com/mongodb/mongoid - 7.1.9

This patch release in the 7.1 series adds compatibility with Ruby 3.

- Ruby
Published by comandeo over 4 years ago

https://github.com/mongodb/mongoid - 7.2.4

This patch release in the 7.2 series adds compatibility with Ruby 3.

- Ruby
Published by comandeo over 4 years ago

https://github.com/mongodb/mongoid - 7.3.1

This patch release in the 7.3 series adds compatibility with Ruby 3.

The following bug was fixed:

- Ruby
Published by comandeo over 4 years ago

https://github.com/mongodb/mongoid - 7.2.3

This patch release in the 7.2 series adds an upgrading note for the following change that was made in 7.2.0 release:

- Ruby
Published by p-mongo almost 5 years ago

https://github.com/mongodb/mongoid - 7.0.12

This patch release in the 7.0 series adds compatibility with Rails 6.1.

- Ruby
Published by p-mongo about 5 years ago

https://github.com/mongodb/mongoid - 7.2.0

This feature release of Mongoid includes the following principal changes:

  • Embedded matchers have been largely rewritten. In several cases the behavior of Mongoid matchers was changed to match MongoDB server. Please see the upgrading guide section for detailed changes.
  • Model#count is now implemented using the aggregation pipeline $count stage. Model#estimated_count method was added to provide the estimated count that Model#count used to provide. This change should be transparent to most applications but may increase runtime for applications that call #count, especially with complex conditions (with the benefit being of #count producing accurate results). See this upgrading guide section for further details.
  • Discriminator key and value can now be overridden for models using inheritance.
  • Shard key is now used when reloading models for improved performance in sharded deployments.
  • The query cache was moved to the driver. Mongoid 7.2 will transparently use the query cache implementation in driver versions 2.14 and higher, with a fallback on the legacy query cache implementation that will continue to be provided for when Mongoid is used with older driver versions. The driver's query cache implementation provides new features such as caching the aggregation pipelines and more fine grained cache expiration. Both the driver's query cache implementation and Mongoid's legacy query cache implementation also contain fixes to known issues like inability to cache results when they are returned in multiple batches from the server.

The following additional improvements were made:

The following bugs have been fixed:

Support for Ruby MRI versions 2.3 and 2.4 has been deprecated as of this release. See this ticket for more details. We intend to stop supporting these Ruby versions as of Mongoid 7.3.

Please read the upgrading guide for the detailed list of changes, major new features and upgrading guidance.

- Ruby
Published by p-mongo over 5 years ago

https://github.com/mongodb/mongoid - 7.1.6

This patch release in the 7.1 series fixes the following issue:

- Ruby
Published by p-mongo over 5 years ago

https://github.com/mongodb/mongoid - 6.4.8

This is a patch release in the Mongoid 6.4 series. This release fixes the following bug:

- Ruby
Published by egiurleo over 5 years ago

https://github.com/mongodb/mongoid - 7.0.11

This is a patch release in the Mongoid 7.0 series. This release fixes the following bug:

- Ruby
Published by egiurleo over 5 years ago

https://github.com/mongodb/mongoid - 7.1.5

This is a patch release in the Mongoid 7.1 series. This release fixes the following bug:

- Ruby
Published by egiurleo over 5 years ago

https://github.com/mongodb/mongoid - 7.2.0.rc1

This is a preview of the next feature release of Mongoid.

Mongoid 7.2 includes the following principal changes:

  • Embedded matchers have been largely rewritten. In several cases the behavior of Mongoid matchers was changed to match MongoDB server. Please see the upgrading guide section for detailed changes.
  • Model#count is now implemented using the aggregation pipeline $count stage. Model#estimated_count method was added to provide the estimated count that Model#count used to provide. This change should be transparent to most applications but may increase runtime for applications that call #count, especially with complex conditions (with the benefit being of #count producing accurate results). See this upgrading guide section for further details.
  • Discriminator key and value can now be overridden for models using inheritance.
  • Shard key is now used when reloading models for improved performance in sharded deployments.
  • The query cache was moved to the driver. Mongoid 7.2 will transparently use the query cache implementation in driver versions 2.14 and higher, with a fallback on the legacy query cache implementation that will continue to be provided for when Mongoid is used with older driver versions. The driver's query cache implementation provides new features such as caching the aggregation pipelines and more fine grained cache expiration. Both the driver's query cache implementation and Mongoid's legacy query cache implementation also contain fixes to known issues like inability to cache results when they are returned in multiple batches from the server.

The following additional improvements were made:

The following bugs have been fixed:

Support for Ruby MRI versions 2.3 and 2.4 has been deprecated as of this release. See this ticket for more details. We intend to stop supporting these Ruby versions as of Mongoid 7.3.

Please read the upgrading guide for the detailed list of changes, major new features and upgrading guidance.

- Ruby
Published by egiurleo over 5 years ago

https://github.com/mongodb/mongoid - 6.4.7

This is a patch release in the Mongoid 6.4 series which introduces the following bug fixes in the query cache:

This release replaces the 6.4.6 patch release, which was unsigned.

- Ruby
Published by egiurleo over 5 years ago

https://github.com/mongodb/mongoid - 6.4.5

This patch release in the 6.4 series provides improved compatibility with Ruby 2.7/3.0 by eliminating some of the deprecation warnings produced by Ruby 2.7.

- Ruby
Published by p-mongo over 5 years ago

https://github.com/mongodb/mongoid - 7.0.7

This patch release in the 7.0 series fixes one issue:

- Ruby
Published by p-mongo almost 6 years ago

https://github.com/mongodb/mongoid - 7.1.1

This patch release in the 7.1 series improves usability of and ease of migration to Mongoid 7.1.

Breaking change: Based on user feedback, the behavior of any_of was reverted to what it was in Mongoid 7.0, and also matches the behavior of or in Mongoid 7.0. or behaves the same in Mongoid 7.1.0 and 7.1.1. More details here.

Mongoid 7.1.1 also fixes the conflict with ActiveSupport delegation.

As of this release, Mongoid documentation includes a section listing major changes in 7.1 together with upgrading guidance. This should assist users looking to upgrade to Mongoid 7.1.

The following additional improvements were made:

The following notable bugs were additionally fixed:

- Ruby
Published by p-mongo almost 6 years ago

https://github.com/mongodb/mongoid - 7.1.0

Breaking change: the principal improvement in Mongoid 7.1 is the unified treatment of logical operations when building queries (i.e., operating on Criteria objects). This makes Mongoid's behavior match that of ActiveRecord, and results in consistent queries being constructed regardless of the mechanism used to construct them. Please carefully review the documentation here, specifically the section on operator combinations, and audit your application for uses of logical operations that changed behavior.

The following improvements have been made since 7.1.0.rc0:

The following changes have been made since 7.1.0.rc0:

The following bugs have been fixed:

As of version 7.1, Mongoid supports Ruby 2.3+ and JRuby 9.2. Support for Ruby 2.2 and JRuby 9.1 has been dropped.

- Ruby
Published by p-mongo almost 6 years ago

https://github.com/mongodb/mongoid - 7.1.0.rc0

This is a preview release of the next feature release of Mongoid - version 7.1.0.

The principal improvement in Mongoid 7.1 is the unified treatment of logical operations when building queries (i.e., operating on Criteria objects). This makes Mongoid's behavior match that of ActiveRecord, and results in consistent queries being constructed regardless of the mechanism used to construct them. The following tickets cover individual changes made:

Mongoid 7.1 also includes the following other query-related bug fixes:

The following other assorted improvements and bug fixes have been made:

- Ruby
Published by p-mongo about 6 years ago

https://github.com/mongodb/mongoid - 5.4.1

This is a bug fix release in the Mongoid 5.x line addressing one issue:

- Ruby
Published by p-mongo over 6 years ago

https://github.com/mongodb/mongoid - 7.0.5

This maintenance release of the 7.0.x series primarily adds support for Rails 6.0. The following tickets have been resolved:

- Ruby
Published by p-mongo over 6 years ago

https://github.com/mongodb/mongoid - 6.4.2

This patch release has the following minor changes:

- Ruby
Published by saghm over 7 years ago

https://github.com/mongodb/mongoid - 7.0.2

This patch release has the following minor changes:

  • MONGOID-4542 embedded_in with polymorphic and touch results in load_missing_constant
  • MONGOID-4543 accepts_nested_attributes_for no longer sets autosave: true
  • MONGOID-4544 Model#touch results in NoMethodError: undefined method `touch'
  • MONGOID-4549 Dependents are tracked incorrectly through sibling documents
  • MONGOID-4559 Setting an embeds_one to nil does not persist
  • MONGOID-4560 Cloning documents with deep embedded documents don't work
  • MONGOID-4608 Add Nor matcher
  • MONGOID-4609 Fix Settable: allow setting a nested value to a non-string (on 7.x)
  • MONGOID-4610 Mongoid::Clients::Factory test is failing with driver_master
  • MONGOID-4612 Map reduce with preference test failure
  • MONGOID-4532 Namespaced models in relations are not found
  • MONGOID-4576 drop_dups: mark deprecated

- Ruby
Published by saghm over 7 years ago

https://github.com/mongodb/mongoid - 7.0.1

This patch release has the following minor changes:

  • fix before_remove and after_remove relation callbacks and add shift relation method
  • MONGOID-4536 Change session accessor name on a model to avoid name clash

- Ruby
Published by estolfo almost 8 years ago

https://github.com/mongodb/mongoid - 6.4.1

  • MONGOID-4536 Internal API conflict with relation or attribute named 'session'
  • MONGOID-4525 set modifier method don't persist change with a empty hash
  • MONGOID-4526 Update mongoid.yml to point user to driver client documentation for options

- Ruby
Published by estolfo almost 8 years ago

https://github.com/mongodb/mongoid - 5.4.0

This minor release has the following changes:

  • Drop support for MongoDB server version 2.4
  • Require ruby driver version >= 2.5.1
  • MONGOID-4499 Support $push + $each instead of $pushAll. (@TreyE)

- Ruby
Published by estolfo almost 8 years ago

https://github.com/mongodb/mongoid - 7.0.0

This major version of Mongoid has a number of significant refactors, bug fixes, and behavior corrections. Please refer to the list of changes in version 7.0.0.beta and the following list for a complete picture of the changes.

These are the behavior changes:

  • Fixup the falsey logic of nested (@nolaneo)
  • MONGOID-4477 Don't report destroyed count with unacknowledged writes

These are the bug fixes and API/feature additions:

  • Drop support for MongoDB server version 2.4.0 / require at least server version 2.6.0.
  • Require at least Ruby driver version 2.5.1
  • remove warning: instance variable @__parent not initialized (@qbantek)
  • MONGOID-4470 Add id_sort :none option to enumerable #first and #last
  • MONGOID-4485 Remove Ruby 1.9 temporal fix removing Symbol:Size from Ruby's Symbol class (@ColinTheRobot)
  • MONGOID-4487: Fix atomically to support empty updates (@gingerhendrix)
  • Use old value of shar key when calculating Mongoid::Shardableshard_key_selector (@intale)
  • Fix typo in documentation for And.rb (@kattak)
  • add support for using $not in $elemMatch (@loganyu)
  • Ensure the persistence context is unset when invalid (@benknowles)
  • fix cloning document with polymorphic embedded documents with multiple language field (@tomasc)
  • Add support for .inc to contextual (@johnnyshields)
  • Travis test improvements (@johnnyshields)
  • MONGOID-4497 Covert type to String before looking up in attributes hash.
  • Remove QueryCache#read_or_server_selector (@koraktor)
  • MONGOID-4505 Fix typo in tutorial for default_scope
  • MONGOID-4499 Replace uses of pushAll with push and each
  • MONGOID-3362 Don't allow Relations::Marcros methods to be field names
  • MONGOID-4503 Support passing array_filters to update methods
  • MONGOID-4483 Demongoize attribute values when accessing via #read_attribute or #[]
  • MONGOID-2882 Set base relation on has_many enumerable objects
  • MONGOID-4508 Ensure that fields are evolved properly when chaining criterion
  • Fix Mongoid::Errors::UnknownModel (@Fudoshiki)
  • MONGOID-4506 Support sessions
  • fix query date parser with ActiveSupport timezone (@infernalmaster)

- Ruby
Published by estolfo almost 8 years ago

https://github.com/mongodb/mongoid - 7.0.0.beta

This is a beta release of Mongoid 7.0. It's is meant for testing and not for production. The API may also evolve as further betas and release candidates are released. Please report any issues in the jira project for Mongoid.

The release contains a large refactor of the way associations are defined between models. There are some behavior changes but the API is mostly unchanged. Please see the below list for details on bug fixes, behavior changes and API adjustments:

These are the behavior changes:

  • MONGOID-4354 Provide more helpful error message when _type field doesn't correspond to a Class name
  • MONGOID-4455 Make readonly attributes behavior consistent with ActiveRecord
  • MONGOID-3831 Mongoize to a String when Range#mongoize receives a string instead of Range
  • MONGOID-3678 Change #matches? to #_matches? to avoid relation name clash

These are the bug fixes and API/feature additions:

  • Provide all dependent options that ActiveRecord has (documentation here)
  • MONGOID-3261 Objects are built twice when relation is specified in the constructor.
  • MONGOID-3586 Persistence inconsistency.
  • MONGOID-3765 determine_inverse_foreign_key does not observe customized foreign key
  • MONGOID-3797 HABM relations are not saved correctly on both sides if providing just model_ids
  • MONGOID-3809 Duplicate embedded document created on save (repro included)
  • MONGOID-3829 Setting referenced-in relation breaks substitution of the inverse relation.
  • MONGOID-3830 Range field type/extension seems to have a weird bug if given a string
  • MONGOID-3850 Coexisting instances are able to bypass the uniqueness validator on embedded docs
  • MONGOID-3876 delete_all conditions don't work with aliased fields.
  • MONGOID-3893 Adding pointers in embedded document corrupts the pointed document
  • MONGOID-3901 Create the dependent behavior restrict_with_error
  • MONGOID-3917 Create child object with inheritance and nested attributes.
  • MONGOID-4054 (Works as designed) Mongoid localized field not being set in first form submission
  • MONGOID-4100 Ensure that type gets set for first_or methods on polymorphic objects
  • MONGOID-4210 Embedded document unexpected autosave behavior
  • MONGOID-4273 Self-referencing has_and_belongs_to_many not updated properly
  • MONGOID-4282 Foreign key string are not properly evolved to ObjectIds in #where for polymorphic relations
  • MONGOID-4309 Infinite Loop In Callbacks
  • MONGOID-4427 Updating an embedded document triggers an unnecessary unset
  • MONGOID-4435 Cloning Criteria does not preserve read preference
  • MONGOID-4436 Duplicate of MONGOID-2882
  • MONGOID-4442 Missing Mongoid::Relations::Cascading::DeleteAll
  • MONGOID-4444 Field names display and options are on prohibited_methods list
  • MONGOID-4258 Autosave does not cascade unless all items are "dirty"
  • MONGOID-4259 "dependent: :destroy" option destroys out-of-date relation
  • MONGOID-4431 Avoid using synced and syncable internally so as not to clash with potential attribute names
  • MONGOID-4445 Remove unnecessary extra inverse criterion when retrieving has_many objects
  • MONGOID-4447 Support passing a document to $unwind operator in aggregation
  • MONGOID-4448 Add global config option to always create indexes in the background
  • MONGOID-4449 Avoid using #base and #target method names on proxy objects
  • MONGOID-4461 Encourage referring to MongoDB docs for supported map reduce options

- Ruby
Published by estolfo almost 8 years ago

https://github.com/mongodb/mongoid - 6.4.0

This version of Mongoid most notably adds support for sessions.
The full list of changes is as follows:

  • Require at least version 2.5.1 of the Ruby driver
  • MONGOID-4517 Implement sessions support
  • MONGOID-4508 Chained "in" when querying on ids should evolve to ObjectId before the value comparison
  • MONGOID-4477 Ensure that Model.destroy_all returns 0 for unacknowledged write concern

- Ruby
Published by estolfo almost 8 years ago

https://github.com/mongodb/mongoid - 6.3.0

This release of Mongoid depends on at least Ruby driver version 2.5.0, which supports MongoDB server version 3.6 and which drops supports for MongoDB server version 2.4. This requirement addresses MONGOID-4504.

In other words, this version of Mongoid supports MongoDB server versions 2.6 - 3.6.

The following bug fixes and changes are in this release:

  • MONGOID-3362 Don't allow associations to be a Model field name, as it conflicts with the internal API.
  • MONGOID-4499 Use $push and $each instead of $pushAll
  • MONGOID-4470 Add id_sort :none option to enumerable #first and #last
  • MONGOID-4497 Allow _type to be a Symbol or String. (@pacop)
  • MONGOID-4505 Fix typo in documentation.
  • MONGOID-4503 Support passing array_filters to update methods.
  • Ensure that Persistence Context is cleared, even when error is raised in accessing client. (@benknowles)

- Ruby
Published by estolfo about 8 years ago

https://github.com/mongodb/mongoid - 6.2.1

  • MONGOID-4444 Don't include PersistenceContext methods in prohibted field names, include Clients::Options instead
  • MONGOID-4466 Duplicate of MONGOID-4444
  • MONGOID-4453 Ignore attr_readonly when defined on foreign key fields
  • MONGOID-4445 Remove unnecessary extra inverse criterion when retrieving has_many objects
  • MONGOID-4451 Unexpected exception when using a "destructive" field
  • Make _destroy alias flagged_for_destroy? (@danielfarrell)

- Ruby
Published by estolfo over 8 years ago

https://github.com/mongodb/mongoid - 6.2.0

This version of Mongoid supports (and requires at least) Rails 5.1.

- Ruby
Published by estolfo over 8 years ago

https://github.com/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:

- Ruby
Published by estolfo over 8 years ago

https://github.com/mongodb/mongoid - 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.

- Ruby
Published by estolfo almost 9 years ago