dependabot npm(deps): bump mongoose from 6.2.2 to 6.2.3
Bumps mongoose from 6.2.2 to 6.2.3.
Release notes
Sourced from mongoose's releases.
6.2.3 / 2022-02-21
- fix(model): avoid dropping base model indexes when using discriminators with
Connection.prototype.syncIndexes()
#11424 #11421 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
- perf: make hasDollarKeys faster #11401 Uzlopak
- fix(index.d.ts): ValidationError
errors
only contains CastError or ValidationError #11369 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
- docs(document): add note to API docs that flattenMaps defaults to
true
fortoJSON()
but nottoObject()
#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
Changelog
Sourced from mongoose's changelog.
6.2.3 / 2022-02-21
- fix(model): avoid dropping base model indexes when using discriminators with
Connection.prototype.syncIndexes()
#11424 #11421 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
- perf: make hasDollarKeys faster #11401 Uzlopak
- fix(index.d.ts): ValidationError
errors
only contains CastError or ValidationError #11369 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
- docs(document): add note to API docs that flattenMaps defaults to
true
fortoJSON()
but nottoObject()
#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
Commits
-
3edadd7
chore: release 6.2.3 -
85361a4
Merge pull request #11369 from Uzlopak/types-errors -
7d6c7bb
Merge pull request #11415 from Uzlopak/improve-validation-benchmark -
c39fb46
Merge pull request #11424 from AbdelrahmanHafez/gh-11421 -
2cf50d4
fix(populate): correctly handle depopulating populated subdocuments -
c30a1b0
Merge branch 'master' of github.com:Automattic/mongoose -
ac7e68b
chore: update opencollective sponsors -
4e800da
fix lint re #11439 -
98ed1e5
Merge pull request #11439 from hiukky/patch-1 -
c26ff4e
chore: update declarations for schema options - Additional commits viewable in compare view