msanvarov / nest-rest-mongo-boilerplate

🍱 backend with nest (typescript), mongoose, and authentication
https://msanvarov.github.io/nest-rest-mongo-boilerplate/
MIT License
284 stars 42 forks source link

Update dependency mongoose to v6.4.0 #1170

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongoose (source) 6.2.9 -> 6.4.0 age adoption passing confidence

Release Notes

Automattic/mongoose ### [`v6.4.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​640--2022-06-17) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.9...6.4.0) \================== - feat: upgrade mongodb driver -> 4.7.0 [#​11909](https://togithub.com/Automattic/mongoose/issues/11909) [AbdelrahmanHafez](https://togithub.com/AbdelrahmanHafez) - feat(types+document): add $assertPopulated() for working with manually populated paths in TypeScript [#​11843](https://togithub.com/Automattic/mongoose/issues/11843) - feat(mongoose): add setDriver() function to allow overwriting driver in a more consistent way [#​11900](https://togithub.com/Automattic/mongoose/issues/11900) - feat(types): add helpers to infer schema type automatically [#​11563](https://togithub.com/Automattic/mongoose/issues/11563) [mohammad0-0ahmad](https://togithub.com/mohammad0-0ahmad) - feat: add `transform` option to `lean()` [#​10423](https://togithub.com/Automattic/mongoose/issues/10423) [IslandRhythms](https://togithub.com/IslandRhythms) - feat(base): add support to set default immutable for createdAt globally [#​11888](https://togithub.com/Automattic/mongoose/issues/11888) [AbdelrahmanHafez](https://togithub.com/AbdelrahmanHafez) - fix: make doValidate() on document array elements run validation on the whole subdoc [#​11902](https://togithub.com/Automattic/mongoose/issues/11902) - feat(types): add expression typings to Aggregate stages [#​11370](https://togithub.com/Automattic/mongoose/issues/11370) [Uzlopak](https://togithub.com/Uzlopak) - fix: remove `on` from schema reserved keys [#​11580](https://togithub.com/Automattic/mongoose/issues/11580) [IslandRhythms](https://togithub.com/IslandRhythms) ### [`v6.3.9`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​639--2022-06-17) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.8...6.3.9) \================== - fix(document): handle nested paths underneath subdocuments when getting all subdocuments for pre save hooks [#​11917](https://togithub.com/Automattic/mongoose/issues/11917) - fix(types): correct typing in post aggregate hooks [#​11924](https://togithub.com/Automattic/mongoose/issues/11924) [GCastilho](https://togithub.com/GCastilho) - docs: remove connect-option reconnectTries and reconnectInterval [#​11930](https://togithub.com/Automattic/mongoose/issues/11930) [Uzlopak](https://togithub.com/Uzlopak) ### [`v6.3.8`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​638--2022-06-13) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.7...6.3.8) \================== - fix: revert [`670b445`](https://togithub.com/Automattic/mongoose/commit/670b445b0fc) perf optimizations that caused some test failures [#​11541](https://togithub.com/Automattic/mongoose/issues/11541) ### [`v6.3.7`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​637--2022-06-13) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.6...6.3.7) \================== - fix(schema+document): allow disabling \_id on subdocuments by default [#​11541](https://togithub.com/Automattic/mongoose/issues/11541) - fix(update): respect global strictQuery option when casting array filters [#​11836](https://togithub.com/Automattic/mongoose/issues/11836) - perf(document): avoid unnecessarily creating new options object on every `$set` [#​11541](https://togithub.com/Automattic/mongoose/issues/11541) - fix: toJSON with undefined path [#​11922](https://togithub.com/Automattic/mongoose/issues/11922) [kerryChen95](https://togithub.com/kerryChen95) - fix: add refPath to SchemaTypeOptions class [#​11862](https://togithub.com/Automattic/mongoose/issues/11862) - fix(types): handle boolean default functions [#​11828](https://togithub.com/Automattic/mongoose/issues/11828) - docs(populate): make path names in refPath section consistent [#​11724](https://togithub.com/Automattic/mongoose/issues/11724) ### [`v6.3.6`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​636--2022-06-07) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.5...6.3.6) \================== - fix(update): apply timestamps to nested subdocs within $push and $addToSet [#​11775](https://togithub.com/Automattic/mongoose/issues/11775) - fix(document): use shallow clone instead of deep clone for `toObject()` options [#​11776](https://togithub.com/Automattic/mongoose/issues/11776) - fix: avoid checking for ObjectId with instanceof [#​11891](https://togithub.com/Automattic/mongoose/issues/11891) [noseworthy](https://togithub.com/noseworthy) - fix(types): Allow sorting by text score [#​11893](https://togithub.com/Automattic/mongoose/issues/11893) - fix(types): allow schematype get() functions to return undefined [#​11561](https://togithub.com/Automattic/mongoose/issues/11561) - fix(types): add Schema.discriminator [#​11855](https://togithub.com/Automattic/mongoose/issues/11855) [Uzlopak](https://togithub.com/Uzlopak) - fix(types): discriminator generic type not being passed to schema [#​11898](https://togithub.com/Automattic/mongoose/issues/11898) [GCastilho](https://togithub.com/GCastilho) ### [`v6.3.5`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​635--2022-05-30) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.4...6.3.5) \================== - fix(document): avoid infinite recursion when calling toObject() on self-referencing document [#​11756](https://togithub.com/Automattic/mongoose/issues/11756) - fix(document): avoid manually populating documents that are manually populated in another doc with different unpopulatedValue [#​11442](https://togithub.com/Automattic/mongoose/issues/11442) - fix(document): fix ObjectId conversion for external schemas [#​11841](https://togithub.com/Automattic/mongoose/issues/11841) [coyotte508](https://togithub.com/coyotte508) - fix: fix codeql warnings [#​11817](https://togithub.com/Automattic/mongoose/issues/11817) [Uzlopak](https://togithub.com/Uzlopak) - fix(types): allow passing TVirtuals to Schema class [#​11543](https://togithub.com/Automattic/mongoose/issues/11543) - fix(types): Type of Connection.transaction() [#​11825](https://togithub.com/Automattic/mongoose/issues/11825) [dwrss](https://togithub.com/dwrss) - docs(typescript): add coverage for TypeScript query helpers [#​11709](https://togithub.com/Automattic/mongoose/issues/11709) - docs: fix documention of error handling [#​11844](https://togithub.com/Automattic/mongoose/issues/11844) [Uzlopak](https://togithub.com/Uzlopak) - docs: typings mongoose.Error should reference to MongooseError [#​11850](https://togithub.com/Automattic/mongoose/issues/11850) [Uzlopak](https://togithub.com/Uzlopak) - chore: improve issue templates [#​11794](https://togithub.com/Automattic/mongoose/issues/11794) [Uzlopak](https://togithub.com/Uzlopak) - chore: use ts-benchmark instead of internal TS benchmarking [#​11798](https://togithub.com/Automattic/mongoose/issues/11798) [mohammad0-0ahmad](https://togithub.com/mohammad0-0ahmad) ### [`v6.3.4`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​634--2022-05-19) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.3...6.3.4) \================== - fix(schema): disallow using schemas with schema-level projection with map subdocuments [#​11698](https://togithub.com/Automattic/mongoose/issues/11698) - fix(document): avoid setting nested paths to null when they're undefined [#​11723](https://togithub.com/Automattic/mongoose/issues/11723) - fix: allow using comment with findOneAndUpdate(), count(), `distinct()` and `hint` with `findOneAndUpdate()` [#​11793](https://togithub.com/Automattic/mongoose/issues/11793) - fix(document): clean modified subpaths when setting nested path to null after modifying subpaths [#​11764](https://togithub.com/Automattic/mongoose/issues/11764) - fix(types): allow calling `deleteModel()` with RegExp in TypeScript [#​11812](https://togithub.com/Automattic/mongoose/issues/11812) - docs(typescript): add section on PopulatedDoc to TypeScript populate docs [#​11685](https://togithub.com/Automattic/mongoose/issues/11685) ### [`v6.3.3`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​633--2022-05-09) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.2...6.3.3) \================== - perf: avoid leaking memory when using populate() with QueryCursor because of reusing populate options with `_docs` [#​11641](https://togithub.com/Automattic/mongoose/issues/11641) - fix(types): add `_id` back for LeanDocument [#​11769](https://togithub.com/Automattic/mongoose/issues/11769) [#​11761](https://togithub.com/Automattic/mongoose/issues/11761) [taxilian](https://togithub.com/taxilian) - fix(model): add skipValidation option for bulkWrite() to allow skipping validation for `insertOne` and `replaceOne` [#​11663](https://togithub.com/Automattic/mongoose/issues/11663) - fix(document): correctly $\__reset() subdocuments that are under nested paths [#​11672](https://togithub.com/Automattic/mongoose/issues/11672) - fix(query): handle casting BSONRegExp instances as RegExps in queries [#​11597](https://togithub.com/Automattic/mongoose/issues/11597) - fix: correctly cast $not in $expr [#​11689](https://togithub.com/Automattic/mongoose/issues/11689) - perf: optimize size of browser bundle, use buffer v.5.7.1 package to match buffer package of mongodb in browser bundle [#​11765](https://togithub.com/Automattic/mongoose/issues/11765) [Uzlopak](https://togithub.com/Uzlopak) - docs: Query.populate docs do not include using an array of strings for the path param [#​11768](https://togithub.com/Automattic/mongoose/issues/11768) [#​11641](https://togithub.com/Automattic/mongoose/issues/11641) [AbdelrahmanHafez](https://togithub.com/AbdelrahmanHafez) - chore: add GitHub workflow to close stale "can't reproduce", "help", "needs clarification" issues [#​11753](https://togithub.com/Automattic/mongoose/issues/11753) [Uzlopak](https://togithub.com/Uzlopak) - chore: remove Makefile dependency for compiling docs [#​11751](https://togithub.com/Automattic/mongoose/issues/11751) [Uzlopak](https://togithub.com/Uzlopak) ### [`v6.3.2`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​632--2022-05-02) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.1...6.3.2) \================== - perf: avoid registering event listeners on subdocuments to reduce memory usage [#​11541](https://togithub.com/Automattic/mongoose/issues/11541) - fix(setDefaultsOnInsert): set default if sibling of nested path is $set [#​11668](https://togithub.com/Automattic/mongoose/issues/11668) - perf(document): remove unnecessary workaround for ignoring subpaths of arrays [#​11541](https://togithub.com/Automattic/mongoose/issues/11541) - fix(types): various fixes and improvements for types [#​11650](https://togithub.com/Automattic/mongoose/issues/11650) [taxilian](https://togithub.com/taxilian) - fix(types): make mongoose typings work without esmModuleInterop true [#​11695](https://togithub.com/Automattic/mongoose/issues/11695) [Uzlopak](https://togithub.com/Uzlopak) - fix(types): support populate(path, fields, model) syntax [#​11649](https://togithub.com/Automattic/mongoose/issues/11649) [#​11598](https://togithub.com/Automattic/mongoose/issues/11598) [mohammad0-0ahmad](https://togithub.com/mohammad0-0ahmad) - fix(types): correct SchemaTypeOptions.get function signature [#​11561](https://togithub.com/Automattic/mongoose/issues/11561) - fix: fix browser build for Webpack 5 [#​11717](https://togithub.com/Automattic/mongoose/issues/11717) - docs: improve readme [#​11705](https://togithub.com/Automattic/mongoose/issues/11705) [mahendrap1512](https://togithub.com/mahendrap1512) ### [`v6.3.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​631--2022-04-21) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.3.0...6.3.1) \================== - perf: improve perf of key order [#​11639](https://togithub.com/Automattic/mongoose/issues/11639) [Uzlopak](https://togithub.com/Uzlopak) - fix(timestamps): set createdAt when creating new single nested subdocuments [#​11603](https://togithub.com/Automattic/mongoose/issues/11603) - fix: improve CastError message when throwing StrictModeError [#​11506](https://togithub.com/Automattic/mongoose/issues/11506) - fix: upgrade bson to match mongodb@4.5 [#​11676](https://togithub.com/Automattic/mongoose/issues/11676) - fix(populate): avoid populating single nested subdocs underneath arrays if there's no `ref` [#​11538](https://togithub.com/Automattic/mongoose/issues/11538) - fix: handle { capped: number } in schema definition with `createCollection()` [#​11539](https://togithub.com/Automattic/mongoose/issues/11539) - fix: call markModified before setting changes in Array and in DocumentArray methods [#​11660](https://togithub.com/Automattic/mongoose/issues/11660) [josegl](https://togithub.com/josegl) - fix: only allow using minus path to remove auto-selected discriminatorKey from projection [#​11546](https://togithub.com/Automattic/mongoose/issues/11546) - fix(types): set context on virtual getters/setters by default [#​11543](https://togithub.com/Automattic/mongoose/issues/11543) - fix(types): correct return type for Connection.prototype.transaction [#​9919](https://togithub.com/Automattic/mongoose/issues/9919) - fix(types): allow model as document interface key when using `extends Document` [#​11629](https://togithub.com/Automattic/mongoose/issues/11629) - docs: improve populate typing [#​11690](https://togithub.com/Automattic/mongoose/issues/11690) [onichandame](https://togithub.com/onichandame) - docs: add information regarding typings-tests [#​11691](https://togithub.com/Automattic/mongoose/issues/11691) [Uzlopak](https://togithub.com/Uzlopak) - docs: fix jsdoc for mongoose.createConnection [#​11693](https://togithub.com/Automattic/mongoose/issues/11693) [Uzlopak](https://togithub.com/Uzlopak) ### [`v6.3.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​630--2022-04-14) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.2.11...6.3.0) \================== - fix: upgrade mongodb driver -> 4.5.0 [#​11623](https://togithub.com/Automattic/mongoose/issues/11623) [AbdelrahmanHafez](https://togithub.com/AbdelrahmanHafez) - feat(schema): allow defining discriminators on schema and in schema definition [#​7971](https://togithub.com/Automattic/mongoose/issues/7971) [IslandRhythms](https://togithub.com/IslandRhythms) - feat(base): add option to set allowDiskUse globally [#​11554](https://togithub.com/Automattic/mongoose/issues/11554) [AbdelrahmanHafez](https://togithub.com/AbdelrahmanHafez) - feat(schema): add `removeIndex()` and `clearIndex()` [#​11547](https://togithub.com/Automattic/mongoose/issues/11547) [IslandRhythms](https://togithub.com/IslandRhythms) - feat(cursor): add `continueOnError` option to allow executing `eachAsync()` on all docs even if error occurs [#​6355](https://togithub.com/Automattic/mongoose/issues/6355) - feat(query): add `versionKey` option to `lean()` for removing version key from lean docs [#​8934](https://togithub.com/Automattic/mongoose/issues/8934) [IslandRhythms](https://togithub.com/IslandRhythms) - feat(types): create new ProjectionType type for select(), find(), etc. [#​11437](https://togithub.com/Automattic/mongoose/issues/11437) - chore: use webpack 5 for browser build [#​11584](https://togithub.com/Automattic/mongoose/issues/11584) [AbdelrahmanHafez](https://togithub.com/AbdelrahmanHafez) ### [`v6.2.11`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​6211--2022-04-13) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.2.10...6.2.11) \=================== - fix(document): handle validation with triply nested document arrays [#​11564](https://togithub.com/Automattic/mongoose/issues/11564) - fix(query): skip applying string schema setters on $regex [#​11426](https://togithub.com/Automattic/mongoose/issues/11426) - fix: skip findOneAndReplace() validation if runValidators = false [#​11559](https://togithub.com/Automattic/mongoose/issues/11559) - fix(model): correctly handle schema-level collations in syncIndexes() [#​7621](https://togithub.com/Automattic/mongoose/issues/7621) - fix(types): correct populate query return type with lean [#​11560](https://togithub.com/Automattic/mongoose/issues/11560) [mohammad0-0ahmad](https://togithub.com/mohammad0-0ahmad) - fix(types): allow using { type: Mixed } as schema type definition for any path [#​10900](https://togithub.com/Automattic/mongoose/issues/10900) - docs: fix example on Schema.prototype.post() [#​11648](https://togithub.com/Automattic/mongoose/issues/11648) [EmilienLeroy](https://togithub.com/EmilienLeroy) - docs: fix typo in methods/index.js [#​11651](https://togithub.com/Automattic/mongoose/issues/11651) [eltociear](https://togithub.com/eltociear) ### [`v6.2.10`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#​6210--2022-04-04) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.2.9...6.2.10) \=================== - fix(types): improve lastErrorObject typing for rawResults [#​11602](https://togithub.com/Automattic/mongoose/issues/11602) [simllll](https://togithub.com/simllll) - docs(typescript): add note about deprecating extends Document [#​11619](https://togithub.com/Automattic/mongoose/issues/11619) [AbdelrahmanHafez](https://togithub.com/AbdelrahmanHafez) - docs: consistent syntax highlighting with upgraded highlight.js [#​11579](https://togithub.com/Automattic/mongoose/issues/11579) [AbdelrahmanHafez](https://togithub.com/AbdelrahmanHafez)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication