Skip to content

Commit 87cda35

Browse files
committed
chore: release 6.2.11
1 parent 63af194 commit 87cda35

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
6.2.11 / 2022-04-13
2+
===================
3+
* fix(document): handle validation with triply nested document arrays #11564
4+
* fix(query): skip applying string schema setters on $regex #11426
5+
* fix: skip findOneAndReplace() validation if runValidators = false #11559
6+
* fix(model): correctly handle schema-level collations in syncIndexes() #7621
7+
* fix(types): correct populate query return type with lean #11560 [mohammad0-0ahmad](https://github.com/mohammad0-0ahmad)
8+
* fix(types): allow using { type: Mixed } as schema type definition for any path #10900
9+
* docs: fix example on Schema.prototype.post() #11648 [EmilienLeroy](https://github.com/EmilienLeroy)
10+
* docs: fix typo in methods/index.js #11651 [eltociear](https://github.com/eltociear)
11+
112
6.2.10 / 2022-04-04
213
===================
314
* fix(types): improve lastErrorObject typing for rawResults #11602 [simllll](https://github.com/simllll)

lib/schema.js

+1
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,7 @@ Schema.prototype.interpretAsType = function(path, obj, options) {
10101010
if (options.hasOwnProperty('strict')) {
10111011
childSchemaOptions.strict = options.strict;
10121012
}
1013+
10131014
if (this._userProvidedOptions.hasOwnProperty('_id')) {
10141015
childSchemaOptions._id = this._userProvidedOptions._id;
10151016
} else if (Schema.Types.DocumentArray.defaultOptions._id != null) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mongoose",
33
"description": "Mongoose MongoDB ODM",
4-
"version": "6.2.10",
4+
"version": "6.2.11",
55
"author": "Guillermo Rauch <[email protected]>",
66
"keywords": [
77
"mongodb",

0 commit comments

Comments
 (0)