Releases: 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:
8.1.2
Mongoid 8.1.2 is a patch release in the 8.1 series, addressing the following issues:
- MONGOID-5631 Resolve Mongoid compatibility issues with bson-ruby deserializing decimal128 to BigDecimal
- MONGOID-5642 Queryable::Selector#merge! does not properly handle :$in/:$nin keys
- MONGOID-5632 update_all does not map :as option of the field properly
- MONGOID-5624 Error when using store_as after upgrade to Ruby 3.2.2 & Rails 7.0
- MONGOID-5643 Storable#add_field_expression add values with same operator keys using $and when value is a hash with symbol operator key
The following issue was also done, affecting only a clean-up of old documentation:
8.0.6
Mongoid 8.0.6 is a patch release in the 8.0 series, addressing the following issues:
- MONGOID-5631 Resolve Mongoid compatibility issues with bson-ruby deserializing decimal128 to BigDecimal
- MONGOID-5642 Queryable::Selector#merge! does not properly handle :$in/:$nin keys
- MONGOID-5632 update_all does not map :as option of the field properly
- MONGOID-5624 Error when using store_as after upgrade to Ruby 3.2.2 & Rails 7.0
- MONGOID-5643 Storable#add_field_expression add values with same operator keys using $and when value is a hash with symbol operator key
The following issue was also done, affecting only a clean-up of old documentation:
7.5.4
Mongoid 7.5.4 is a patch release in the 7.5 series, addressing the following issues:
- MONGOID-5642 Queryable::Selector#merge! does not properly handle :$in/:$nin keys
- MONGOID-5643 Storable#add_field_expression add values with same operator keys using $and when value is a hash with symbol operator key
The following issue was also done, affecting only a clean-up of old documentation:
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:
8.0.5
Mongoid 8.0.5 is a patch release in the 8.0 series with one bug fix:
8.1.0
Mongoid 8.1.0 is a feature release in 8.x series with the following significant new functionality:
- MONGOID-5370 API for creating time series collections
- MONGOID-4528 Support for 'saved_change_to_attribute', 'attribute_before_last_save' and 'will_save_change_to_attribute'
- MONGOID-5293 Add Rails-style defaults &
config.load_defaults.
- MONGOID-5445 Concurrent query execution
- MONGOID-5596 Deprecate Mongoid::QueryCache in favor of Mongo::QueryCache
The following issues were fixed:
- MONGOID-5542 Prevention of double calls in callbacks
- MONGOID-5600 Mongoid 8 breaks "build"
- MONGOID-5520 Criteria ordering fails for non-numeric values (ex: { '$meta' => 'textScore' })
- MONGOID-5582 Support shard keys based on subdocument fields
- MONGOID-5474 Raise Mongoid::Errors::ReadonlyDocument when saving readonly documents
- MONGOID-5417 Memory leak when using with()
- MONGOID-5539 Find requires Pipeline aggregation to be coerced into an array
- MONGOID-5547 rake db:mongoid:create_indexes fails for models that are stored outside of /app/models.
- MONGOID-3834 unable to access parent when setting child attribute
- MONGOID-5441 Thread.current[:session] is not prefixed
- MONGOID-5436 legacy_triple_equals used incorrectly
The following additional improvements were made:
- MONGOID-5465 Single-value .in should convert to .where (resolve deprecated .in scalar value behavior)
- MONGOID-5620 delete_one on embeds_many is callable and is not consistent with delete
- MONGOID-5617 Improve performance of _matches?()
- MONGOID-5595 Forward explain options to driver
- MONGOID-5590 Shard keys do not support fields with "." in their name
- MONGOID-5509 Deprecate feature flags which were introduced in Mongoid 7.x
- MONGOID-5226 Allow setting "store_in collection" on document subclass
- MONGOID-4698 Warn about attempts to define text_search scope (and others?)
- MONGOID-5458 Document fallbacks option on localized fields
- MONGOID-4403 Support Dirty Tracking changed from /to
- MONGOID-5438 Implement local override for i18n parameters
- MONGOID-5437 Extract fallback enabling logic into macro
- MONGOID-5334 Review mongoization/demongoization/evolution behavior for localized fields
- MONGOID-5490 Deprecate and remove use_activesupport_time_zone (should always be true)
- MONGOID-5228 Allow _ids to be modified in embedded documents
- MONGOID-5453 Add .none_of query method
- MONGOID-5363 Change #upsert to perform updating upsert rather than replacing upsert
- MONGOID-5281 Respect aliases in embedded documents when querying
- MONGOID-5100 ActiveRecord parity: allow selector arguments for .exists?
- MONGOID-5264 Add some way to strip out blank localized values before saving model
- MONGOID-5422 Mongoid.configure should allow arg-less block
- MONGOID-4979 Add :touch option to model save method
- MONGOID-5418 AR Feature Parity first!/last!/second etc.
8.0.4
Mongoid 8.0.4 is a patch release in 8.0 series with a few bug fixes:
- MONGOID-5520 Criteria ordering fails for non-numeric values (ex: { '$meta' => 'textScore' })
- MONGOID-5539 Find requires Pipeline aggregation to be coerced into an array
- MONGOID-5582 Support shard keys based on subdocument fields
- MONGOID-5600 Mongoid 8 breaks "build"
The following additional improvements were made:
- MONGOID-5465 Single-value .in should convert to .where (resolve deprecated .in scalar value behavior)
- MONGOID-5590 Shard keys do not support fields with "." in their name
- MONGOID-5560 delete_one on embeds_many is callable and is not consistent with delete
- MONGOID-5617 Improve performance of _matches?()
7.5.3
Mongoid 7.5.3 is a patch release in 7.5 series with a few bug fixes:
- MONGOID-5546 First/Last failures when empty hash passed as criteria
- MONGOID-5582 Support shard keys based on subdocument fields
- MONGOID-5352 Fix assign_attributes on replacing embeds_many
The following additional improvements were made:
8.0.3
This patch release in the 8.0 series fixes the following issues:
- MONGOID-5417 Memory leak when using with()
- MONGOID-5456 New "uncastable" behavior does't work with ActiveSupport::Duration
- MONGOID-5441 Thread.current[:session] is not prefixed
The the following minor improvement were added:
- MONGOID-4698 Warn about attempts to define text_search scope (and others?)
- MONGOID-5334 Review mongoization/demongoization/evolution behavior for localized fields
- MONGOID-5433 Rails 7 deprecates Time#to_s(format) and replaces it with Time#to_fs(format)
- MONGOID-5437 Extract fallback enabling logic into macro