From 3edadd7196e1850835e341255e4f835a6e951ab3 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Mon, 21 Feb 2022 14:09:42 -0500 Subject: [PATCH] chore: release 6.2.3 --- CHANGELOG.md | 19 +++++++++++++++++++ package.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bbae517963..39e69548067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +6.2.3 / 2022-02-21 +================== + * fix(model): avoid dropping base model indexes when using discriminators with `Connection.prototype.syncIndexes()` #11424 #11421 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez) + * fix(document): handle array defaults when selecting element underneath array #11376 + * fix(populate): correctly handle depopulating populated subdocuments #11436 + * fix(utils): improve deepEqual() handling for comparing objects with non-objects #11417 + * fix(schema): allow declaring array of arrays using `[{ type: [String] }]` #11252 + * perf: improve validation sync and async by replacing forEach with classic for loops #11414 [Uzlopak](https://github.com/Uzlopak) + * perf: make hasDollarKeys faster #11401 [Uzlopak](https://github.com/Uzlopak) + * fix(index.d.ts): ValidationError `errors` only contains CastError or ValidationError #11369 [Uzlopak](https://github.com/Uzlopak) + * fix(index.d.ts): make InsertManyResult.insertedIds return an array of Types.ObjectId by default #11197 + * fix(index.d.ts): allow pre('save') middleware with pre options #11257 + * docs(connections): improve replica set hostname docs with correct error message and info about `err.reason.servers` #11200 + * docs(populate): add virtual populate match option documentation #11411 [remirobichet](https://github.com/remirobichet) + * docs(document): add note to API docs that flattenMaps defaults to `true` for `toJSON()` but not `toObject()` #11213 + * docs(document+model): add populate option to populate() API docs #11170 + * docs(migrating_to_6): add additional info about removing omitUndefined #11038 + * docs(migrating_to_6): add model.exists breaking change returning doument instead of boolean [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez) + 6.2.2 / 2022-02-16 ================== * fix: fix QueryCursor and AggregationCursor compatibility with Node v17.5 #11381 [benjamingr](https://github.com/benjamingr) diff --git a/package.json b/package.json index 58400661648..e8416331f82 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mongoose", "description": "Mongoose MongoDB ODM", - "version": "6.2.2", + "version": "6.2.3", "author": "Guillermo Rauch ", "keywords": [ "mongodb",