Releases: 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:
7.0.4
This maintenance release of the 7.0.x series primarily addresses a class loading regression introduced in the 7.0.3 release. The following tickets have been resolved:
- MONGOID-4749 belongs_to :name, class_name: '::SomeClass' raises an exception
- MONGOID-4750 Association definitions can trigger autoloading and cause NameError's
- MONGOID-4742 String#numeric? can return values other than true & false
- MONGOID-4743 String#numeric? incorrectly uses ^ and $ anchors and groups
7.0.3
This maintenance release of the 7.0.x series has the following notable improvements:
- MONGOID-4728 Add Support for $eq operator in Matchable
- MONGOID-4729 Skip eager loading query if all keys are nil
- MONGOID-4524 Combine options when nesting PersistenceContexts on the same object
- MONGOID-4631 Log Mongoid runtime per Rails controller action
- MONGOID-4666 Allow Regexp fields to be set to nil
- MONGOID-4681 Replace BigDecimal.new with BigDecimal()
- MONGOID-4702 Add Symbol#within_box criterion for geo_spacial
The following notable issues have been fixed:
- MONGOID-4679 Can't clone documents with embeds_many and store_as on 7.0.x
- MONGOID-4598 In Mongoid 7.0.1 clone, dup method is not working with embeds_many -> embeds_many relations
- MONGOID-4733 Document#as_json with :compact option returns nil if none of the fields are nil
- MONGOID-4624 scoped text searches wipe all previous criteria
- MONGOID-4626 Querying unscoped associations ignores primary_key/foreign_key depending on association
- MONGOID-4630 without_default_scope suppresses default scopes of other models
- MONGOID-4645 belongs_to in namespaced children fails to detect a non-namespaced association
- MONGOID-4659 Query cache returns narrowed down results when a previous query used #first
- MONGOID-4521 QueryCache ignores getMore requests
6.4.4
This maintenance release in the 6.4.x series contains the following notable improvements:
- MONGOID-4681 Replace BigDecimal.new with BigDecimal()
- MONGOID-4631 Log Mongoid runtime per Rails controller action
- MONGOID-4666 Allow Regexp fields to be set to nil
- MONGOID-4702 Add Symbol#within_box criterion for geo_spacial
The following bugs were aso fixed:
- MONGOID-4624 scoped text searches wipe all previous criteria
- MONGOID-4630 without_default_scope suppresses default scopes of other models
- MONGOID-4733 Document#as_json with :compact option returns nil if none of the fields are nil
6.4.3 release was skipped due to a certificate issue.
6.4.2
This patch release has the following minor changes:
- MONGOID-4539 #create_with attrs should not be used in where query
- MONGOID-4578 Fix Settable: allow setting a nested value to a non-string
- MONGOID-4608 Add Nor matcher
- MONGOID-4612 Map reduce with preference test failure
- MONGOID-4576 drop_dups: mark deprecated
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
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
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
5.4.0
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)