danielfsousa / express-rest-boilerplate

⌛️ Express starter for building RESTful APIs
MIT License
2.36k stars 623 forks source link

Bump mongoose from 5.13.5 to 6.2.3 #559

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps mongoose from 5.13.5 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
  • fix(index.d.ts): add supressReservedKeysWarning option to schema #11439 hiukky
  • 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 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

6.2.2 / 2022-02-16

  • fix: fix QueryCursor and AggregationCursor compatibility with Node v17.5 #11381 benjamingr
  • fix: better esm support, no necessity for setting allowSyntheticDefaultImports and esModuleInterop #11343 Uzlopak
  • fix(model): apply projection parameter to hydrate() #11375
  • fix: fix issue with creating arrays of length > 10000 #11405 Uzlopak
  • fix(document): minimize single nested subdocs #11247
  • fix(connection): handle reopening base connection with useDb() #11240
  • perf: use property access instead of get() helper where possible #11389 Uzlopak
  • fix: use isArray() instead of instanceof Array #11393 Uzlopak
  • perf: improve performance of cast$expr() #11388 Uzlopak
  • perf: remove startsWith() from isOperator() #11400 Uzlopak
  • fix(index.d.ts): extract PipelineStage into separate file #11368 Uzlopak
  • fix(index.d.ts): fix $search highlight path option type #11373 lmX2015
  • docs: update changelog file to CHANGELOG.md #11365 AbdelrahmanHafez
  • docs: fix broken links #11388 #11377 saibbyweb
  • docs: remove double determiners in connections docs #11340 Erma32

6.2.1 / 2022-02-07

  • perf: improve performance especially of validate and clone #11298 Uzlopak
  • perf: remove regexp-clone #11327 Uzlopak
  • fix(document): handle initing nested properties in non-strict documents #11309
  • fix(query): cast $elemMatch underneath $all #11314
  • fix(populate): respect schema-level strictPopulate option #11290
  • fix: set default for dotted path projection #11293 noseworthy
  • fix(model): correctly handle writeConcern.w = 0 when saving #11300
  • fix(model): throw VersionError when saving with no changes and optimisticConcurrency = true #11295
  • fix(query): avoid adding $each to $addToSet on mixed arrays #11284
  • fix(index.d.ts): allow using type: [Schema.Types.ObjectId] for ObjectId arrays #11194

... (truncated)

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
  • fix(index.d.ts): add supressReservedKeysWarning option to schema #11439 hiukky
  • 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 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

6.2.2 / 2022-02-16

  • fix: fix QueryCursor and AggregationCursor compatibility with Node v17.5 #11381 benjamingr
  • fix: better esm support, no necessity for setting allowSyntheticDefaultImports and esModuleInterop #11343 Uzlopak
  • fix(model): apply projection parameter to hydrate() #11375
  • fix: fix issue with creating arrays of length > 10000 #11405 Uzlopak
  • fix(document): minimize single nested subdocs #11247
  • fix(connection): handle reopening base connection with useDb() #11240
  • perf: use property access instead of get() helper where possible #11389 Uzlopak
  • fix: use isArray() instead of instanceof Array #11393 Uzlopak
  • perf: improve performance of cast$expr() #11388 Uzlopak
  • perf: remove startsWith() from isOperator() #11400 Uzlopak
  • fix(index.d.ts): extract PipelineStage into separate file #11368 Uzlopak
  • fix(index.d.ts): fix $search highlight path option type #11373 lmX2015
  • docs: update changelog file to CHANGELOG.md #11365 AbdelrahmanHafez
  • docs: fix broken links #11388 #11377 saibbyweb
  • docs: remove double determiners in connections docs #11340 Erma32

6.2.1 / 2022-02-07

  • perf: improve performance especially of validate and clone #11298 Uzlopak
  • perf: remove regexp-clone #11327 Uzlopak
  • fix(document): handle initing nested properties in non-strict documents #11309
  • fix(query): cast $elemMatch underneath $all #11314
  • fix(populate): respect schema-level strictPopulate option #11290
  • fix: set default for dotted path projection #11293 noseworthy
  • fix(model): correctly handle writeConcern.w = 0 when saving #11300
  • fix(model): throw VersionError when saving with no changes and optimisticConcurrency = true #11295
  • fix(query): avoid adding $each to $addToSet on mixed arrays #11284
  • fix(index.d.ts): allow using type: [Schema.Types.ObjectId] for ObjectId arrays #11194

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #561.