Releases: 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
7.3.1
This patch release in the 7.3 series adds compatibility with Ruby 3.
The following bug was fixed:
7.2.4
7.1.9
7.3.0
This feature release of Mongoid adds the following new functionality:
- MONGOID-5036 Delegate to driver's query cache middleware when available
- MONGOID-4812 Allow id to be a regular field in models (not an alias of _id)
- MONGOID-4906 Add missing general-purpose operators to embedded matchers
- MONGOID-4757 Mongoid now warns about unknown options given at top level in YAML configuration
The following significant changes were made:
- MONGOID-4753 Make global Boolean definition opt-in
- MONGOID-3468 Always touch parents of embedded documents when embedded documents are touched
- MONGOID-5023 Expand all conditions in a single argument together in
where
path - MONGOID-4706 Remove the internal Targets module
- MONGOID-5060 #delete no longer causes dependent associations to be destroyed
- MONGOID-5073
Mongoid.purge!
andMongoid.truncate
respect global persistence context overrides
The following bugs were fixed:
- MONGOID-4982 Cannot update a field on embedded association member, add another member and add a nested association to the first member in the same save call
- MONGOID-5020 Condition lifting breaks with symbol operators on Ruby <= 2.6
- MONGOID-5032 Hash attribute access/read_attribute fails on embedded field when parent loaded with only
Please see the upgrading documentation for more detailed descriptions of the changes.
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:
7.1.8
This patch release in the 7.1 series fixes the following issues:
7.0.13
This patch release in the 7.0 series fixes the following issues:
- MONGOID-5042 rails g mongoid:config is not working on Rails 6.1
- MONGOID-5059
set
nilifies attributes excluded viaonly
- MONGOID-4672 Default order in
embeds_many
association causes association to use/return stale data - MONGOID-5076 reload fails to find document when the document's sharded field has been updated
7.2.2
This patch release in the 7.2 series repairs a Rails 6.1 incompatibility in the Mongoid config generator and fixes several user-reported problems. The following issues have been resolved:
- MONGOID-5042 rails g mongoid:config is not working on Rails 6.1
- MONGOID-5063 Support numeric path components as hash keys when embedded matching
- MONGOID-5069 Support numeric path components resolving to hash keys under arrays when embedded matching
- MONGOID-5059
set
nilifies attributes excluded viaonly
- MONGOID-5068 ElemMatch matcher operates on pre-stringified keys in condition verification path against impossible values
- MONGOID-5076 reload fails to find document when the document's sharded field has been updated
7.2.1
This patch release in the 7.2 series adds compatibility with Rails 6.1 and fixes the following issues: