Skip to content

Commit

Permalink
chore: release 6.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Apr 13, 2022
1 parent 63af194 commit 87cda35
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
6.2.11 / 2022-04-13
===================
* fix(document): handle validation with triply nested document arrays #11564
* fix(query): skip applying string schema setters on $regex #11426
* fix: skip findOneAndReplace() validation if runValidators = false #11559
* fix(model): correctly handle schema-level collations in syncIndexes() #7621
* fix(types): correct populate query return type with lean #11560 [mohammad0-0ahmad](https://github.com/mohammad0-0ahmad)
* fix(types): allow using { type: Mixed } as schema type definition for any path #10900
* docs: fix example on Schema.prototype.post() #11648 [EmilienLeroy](https://github.com/EmilienLeroy)
* docs: fix typo in methods/index.js #11651 [eltociear](https://github.com/eltociear)

6.2.10 / 2022-04-04
===================
* fix(types): improve lastErrorObject typing for rawResults #11602 [simllll](https://github.com/simllll)
Expand Down
1 change: 1 addition & 0 deletions lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ Schema.prototype.interpretAsType = function(path, obj, options) {
if (options.hasOwnProperty('strict')) {
childSchemaOptions.strict = options.strict;
}

if (this._userProvidedOptions.hasOwnProperty('_id')) {
childSchemaOptions._id = this._userProvidedOptions._id;
} else if (Schema.Types.DocumentArray.defaultOptions._id != null) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mongoose",
"description": "Mongoose MongoDB ODM",
"version": "6.2.10",
"version": "6.2.11",
"author": "Guillermo Rauch <guillermo@learnboost.com>",
"keywords": [
"mongodb",
Expand Down

0 comments on commit 87cda35

Please sign in to comment.