Open renovate[bot] opened 9 months ago
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nestjs/common@10.3.1
npm error Found: reflect-metadata@0.2.1
npm error node_modules/reflect-metadata
npm error reflect-metadata@"0.2.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer reflect-metadata@"^0.1.12" from @nestjs/common@10.3.1
npm error node_modules/@nestjs/common
npm error @nestjs/common@"10.3.1" from the root project
npm error peer @nestjs/common@"^10.0.0" from @nestjs/core@10.3.1
npm error node_modules/@nestjs/core
npm error @nestjs/core@"10.3.1" from the root project
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error
npm error Conflicting peer dependency: reflect-metadata@0.1.14
npm error node_modules/reflect-metadata
npm error peer reflect-metadata@"^0.1.12" from @nestjs/common@10.3.1
npm error node_modules/@nestjs/common
npm error @nestjs/common@"10.3.1" from the root project
npm error peer @nestjs/common@"^10.0.0" from @nestjs/core@10.3.1
npm error node_modules/@nestjs/core
npm error @nestjs/core@"10.3.1" from the root project
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-05-06T21_28_21_822Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-05-06T21_28_21_822Z-debug-0.log
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nestjs/common@10.3.1
npm error Found: reflect-metadata@0.2.1
npm error node_modules/reflect-metadata
npm error reflect-metadata@"0.2.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer reflect-metadata@"^0.1.12" from @nestjs/common@10.3.1
npm error node_modules/@nestjs/common
npm error @nestjs/common@"10.3.1" from the root project
npm error peer @nestjs/common@"^10.0.0" from @nestjs/core@10.3.1
npm error node_modules/@nestjs/core
npm error @nestjs/core@"10.3.1" from the root project
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error
npm error Conflicting peer dependency: reflect-metadata@0.1.14
npm error node_modules/reflect-metadata
npm error peer reflect-metadata@"^0.1.12" from @nestjs/common@10.3.1
npm error node_modules/@nestjs/common
npm error @nestjs/common@"10.3.1" from the root project
npm error peer @nestjs/common@"^10.0.0" from @nestjs/core@10.3.1
npm error node_modules/@nestjs/core
npm error @nestjs/core@"10.3.1" from the root project
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-05-06T21_28_27_084Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-05-06T21_28_27_084Z-debug-0.log
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nestjs/sequelize@10.0.0
npm ERR! Found: reflect-metadata@0.2.1
npm ERR! node_modules/reflect-metadata
npm ERR! dev reflect-metadata@"0.2.1" from the root project
npm ERR! peer reflect-metadata@"^0.1.12 || ^0.2.0" from @nestjs/common@10.3.2
npm ERR! node_modules/@nestjs/common
npm ERR! dev @nestjs/common@"10.3.2" from the root project
npm ERR! peer @nestjs/common@"^8.0.0 || ^9.0.0 || ^10.0.0" from @mikro-orm/nestjs@5.2.3
npm ERR! node_modules/@mikro-orm/nestjs
npm ERR! dev @mikro-orm/nestjs@"5.2.3" from the root project
npm ERR! 11 more (@nestjs/axios, @nestjs/core, @nestjs/mapped-types, ...)
npm ERR! 7 more (@nestjs/core, @nestjs/mapped-types, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer reflect-metadata@"^0.1.13" from @nestjs/sequelize@10.0.0
npm ERR! node_modules/@nestjs/sequelize
npm ERR! dev @nestjs/sequelize@"10.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: reflect-metadata@0.1.14
npm ERR! node_modules/reflect-metadata
npm ERR! peer reflect-metadata@"^0.1.13" from @nestjs/sequelize@10.0.0
npm ERR! node_modules/@nestjs/sequelize
npm ERR! dev @nestjs/sequelize@"10.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/renovate/cache/others/npm/_logs/2024-05-06T21_28_33_229Z-debug-0.log
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nestjs/common@10.3.1
npm error Found: reflect-metadata@0.2.1
npm error node_modules/reflect-metadata
npm error reflect-metadata@"0.2.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer reflect-metadata@"^0.1.12" from @nestjs/common@10.3.1
npm error node_modules/@nestjs/common
npm error @nestjs/common@"10.3.1" from the root project
npm error peer @nestjs/common@"^10.0.0" from @nestjs/core@10.3.1
npm error node_modules/@nestjs/core
npm error @nestjs/core@"10.3.1" from the root project
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error
npm error Conflicting peer dependency: reflect-metadata@0.1.14
npm error node_modules/reflect-metadata
npm error peer reflect-metadata@"^0.1.12" from @nestjs/common@10.3.1
npm error node_modules/@nestjs/common
npm error @nestjs/common@"10.3.1" from the root project
npm error peer @nestjs/common@"^10.0.0" from @nestjs/core@10.3.1
npm error node_modules/@nestjs/core
npm error @nestjs/core@"10.3.1" from the root project
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-11-08T19_11_54_118Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-11-08T19_11_54_118Z-debug-0.log
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nestjs/common@10.3.1
npm error Found: reflect-metadata@0.2.1
npm error node_modules/reflect-metadata
npm error reflect-metadata@"0.2.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer reflect-metadata@"^0.1.12" from @nestjs/common@10.3.1
npm error node_modules/@nestjs/common
npm error @nestjs/common@"10.3.1" from the root project
npm error peer @nestjs/common@"^10.0.0" from @nestjs/core@10.3.1
npm error node_modules/@nestjs/core
npm error @nestjs/core@"10.3.1" from the root project
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error
npm error Conflicting peer dependency: reflect-metadata@0.1.14
npm error node_modules/reflect-metadata
npm error peer reflect-metadata@"^0.1.12" from @nestjs/common@10.3.1
npm error node_modules/@nestjs/common
npm error @nestjs/common@"10.3.1" from the root project
npm error peer @nestjs/common@"^10.0.0" from @nestjs/core@10.3.1
npm error node_modules/@nestjs/core
npm error @nestjs/core@"10.3.1" from the root project
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error 4 more (@nestjs/mongoose, @nestjs/platform-express, ...)
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-11-08T19_11_58_075Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-11-08T19_11_58_075Z-debug-0.log
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nestjs/sequelize@10.0.0
npm ERR! Found: reflect-metadata@0.2.1
npm ERR! node_modules/reflect-metadata
npm ERR! dev reflect-metadata@"0.2.1" from the root project
npm ERR! peer reflect-metadata@"^0.1.12 || ^0.2.0" from @nestjs/common@10.3.2
npm ERR! node_modules/@nestjs/common
npm ERR! dev @nestjs/common@"10.3.2" from the root project
npm ERR! peer @nestjs/common@"^8.0.0 || ^9.0.0 || ^10.0.0" from @mikro-orm/nestjs@5.2.3
npm ERR! node_modules/@mikro-orm/nestjs
npm ERR! dev @mikro-orm/nestjs@"5.2.3" from the root project
npm ERR! 11 more (@nestjs/axios, @nestjs/core, @nestjs/mapped-types, ...)
npm ERR! 7 more (@nestjs/core, @nestjs/mapped-types, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer reflect-metadata@"^0.1.13" from @nestjs/sequelize@10.0.0
npm ERR! node_modules/@nestjs/sequelize
npm ERR! dev @nestjs/sequelize@"10.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: reflect-metadata@0.1.14
npm ERR! node_modules/reflect-metadata
npm ERR! peer reflect-metadata@"^0.1.13" from @nestjs/sequelize@10.0.0
npm ERR! node_modules/@nestjs/sequelize
npm ERR! dev @nestjs/sequelize@"10.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/renovate/cache/others/npm/_logs/2024-11-08T19_12_07_199Z-debug-0.log
This PR contains the following updates:
8.0.3
->8.8.1
7.6.8
->8.8.1
Release Notes
Automattic/mongoose (mongoose)
### [`v8.8.1`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#881--2024-11-08) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.8.0...8.8.1) \================== - perf: make a few micro-optimizations to help speed up findOne() [#15022](https://redirect.github.com/Automattic/mongoose/issues/15022) [#14906](https://redirect.github.com/Automattic/mongoose/issues/14906) - fix: apply embedded discriminators to subdoc schemas before compiling top level model so middleware applies correctly [#15001](https://redirect.github.com/Automattic/mongoose/issues/15001) [#14961](https://redirect.github.com/Automattic/mongoose/issues/14961) - fix(query): add overwriteImmutable option to allow updating immutable properties without disabling strict mode [#15000](https://redirect.github.com/Automattic/mongoose/issues/15000) [#8619](https://redirect.github.com/Automattic/mongoose/issues/8619) ### [`v8.8.0`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#880--2024-10-31) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.7.3...8.8.0) \================== - feat: upgrade mongodb -> ~6.10 [#14991](https://redirect.github.com/Automattic/mongoose/issues/14991) [#14877](https://redirect.github.com/Automattic/mongoose/issues/14877) - feat(query): add schemaLevelProjections option to query to disable schema-level select: false [#14986](https://redirect.github.com/Automattic/mongoose/issues/14986) [#11474](https://redirect.github.com/Automattic/mongoose/issues/11474) - feat: allow defining virtuals on arrays, not just array elements [#14955](https://redirect.github.com/Automattic/mongoose/issues/14955) [#2326](https://redirect.github.com/Automattic/mongoose/issues/2326) - feat(model): add applyTimestamps() function to apply all schema timestamps, including subdocuments, to a given POJO [#14943](https://redirect.github.com/Automattic/mongoose/issues/14943) [#14698](https://redirect.github.com/Automattic/mongoose/issues/14698) - feat(model): add hideIndexes option to syncIndexes() and cleanIndexes() [#14987](https://redirect.github.com/Automattic/mongoose/issues/14987) [#14868](https://redirect.github.com/Automattic/mongoose/issues/14868) - fix(query): make sanitizeFilter disable implicit $in [#14985](https://redirect.github.com/Automattic/mongoose/issues/14985) [#14657](https://redirect.github.com/Automattic/mongoose/issues/14657) - fix(model): avoid unhandled error if createIndex() throws a sync error [#14995](https://redirect.github.com/Automattic/mongoose/issues/14995) - fix(model): avoid throwing TypeError if bulkSave()'s bulkWrite() fails with a non-BulkWriteError [#14993](https://redirect.github.com/Automattic/mongoose/issues/14993) - types: added toJSON:flattenObjectIds effect [#14989](https://redirect.github.com/Automattic/mongoose/issues/14989) - types: add `__v` to lean() result type and ModifyResult [#14990](https://redirect.github.com/Automattic/mongoose/issues/14990) [#12959](https://redirect.github.com/Automattic/mongoose/issues/12959) - types: use globalThis instead of global for NativeDate [#14992](https://redirect.github.com/Automattic/mongoose/issues/14992) [#14988](https://redirect.github.com/Automattic/mongoose/issues/14988) - docs(change-streams): fix markdown syntax highlighting for script output example [#14994](https://redirect.github.com/Automattic/mongoose/issues/14994) ### [`v8.7.3`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#873--2024-10-25) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.7.2...8.7.3) \================== - fix(cursor): close underlying query cursor when calling destroy() [#14982](https://redirect.github.com/Automattic/mongoose/issues/14982) [#14966](https://redirect.github.com/Automattic/mongoose/issues/14966) - types: add JSONSerialized helper that can convert HydratedDocument to JSON output type [#14981](https://redirect.github.com/Automattic/mongoose/issues/14981) [#14451](https://redirect.github.com/Automattic/mongoose/issues/14451) - types(model): convert InsertManyResult to interface and remove unnecessary insertedIds override [#14977](https://redirect.github.com/Automattic/mongoose/issues/14977) - types(connection): add missing sanitizeFilter option [#14975](https://redirect.github.com/Automattic/mongoose/issues/14975) - types: improve goto definition for inferred schema definitions [#14968](https://redirect.github.com/Automattic/mongoose/issues/14968) [forivall](https://redirect.github.com/forivall) - docs(migration-guide-v7): correct link to the section "Id Setter" [#14973](https://redirect.github.com/Automattic/mongoose/issues/14973) [rb-ntnx](https://redirect.github.com/rb-ntnx) ### [`v8.7.2`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#872--2024-10-17) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.7.1...8.7.2) \================== - fix(document): recursively clear modified subpaths when setting deeply nested subdoc to null [#14963](https://redirect.github.com/Automattic/mongoose/issues/14963) [#14952](https://redirect.github.com/Automattic/mongoose/issues/14952) - fix(populate): handle array of ids with parent refPath [#14965](https://redirect.github.com/Automattic/mongoose/issues/14965) - types: make Buffers into mongodb.Binary in lean result type to match runtime behavior [#14967](https://redirect.github.com/Automattic/mongoose/issues/14967) - types: correct schema type inference when using nested typeKey like type: { type: String } [#14956](https://redirect.github.com/Automattic/mongoose/issues/14956) [#14950](https://redirect.github.com/Automattic/mongoose/issues/14950) - types: re-export DeleteResult and UpdateResult from MongoDB Node.js driver [#14947](https://redirect.github.com/Automattic/mongoose/issues/14947) [#14946](https://redirect.github.com/Automattic/mongoose/issues/14946) - docs(documents): add section on setting deeply nested properties, including warning about nullish coalescing assignment [#14972](https://redirect.github.com/Automattic/mongoose/issues/14972) - docs(model): add more info on acknowledged: false, specifically that Mongoose may return that if the update was empty [#14957](https://redirect.github.com/Automattic/mongoose/issues/14957) ### [`v8.7.1`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#871--2024-10-09) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.7.0...8.7.1) \================== - fix: set flattenObjectIds to false when calling toObject() for internal purposes [#14938](https://redirect.github.com/Automattic/mongoose/issues/14938) - fix: add mongodb 8 to test matrix [#14937](https://redirect.github.com/Automattic/mongoose/issues/14937) - fix: handle buffers stored in MongoDB as EJSON representation with { $binary } [#14932](https://redirect.github.com/Automattic/mongoose/issues/14932) - docs: indicate that Mongoose 8.7 is required for full MongoDB 8 support [#14937](https://redirect.github.com/Automattic/mongoose/issues/14937) ### [`v8.7.0`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#870--2024-09-27) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.6.4...8.7.0) \================== - feat(model): add Model.applyVirtuals() to apply virtuals to a POJO [#14905](https://redirect.github.com/Automattic/mongoose/issues/14905) [#14818](https://redirect.github.com/Automattic/mongoose/issues/14818) - feat: upgrade mongodb -> 6.9.0 [#14914](https://redirect.github.com/Automattic/mongoose/issues/14914) - feat(query): cast $rename to string [#14887](https://redirect.github.com/Automattic/mongoose/issues/14887) [#3027](https://redirect.github.com/Automattic/mongoose/issues/3027) - feat(SchemaType): add getEmbeddedSchemaType() method to SchemaTypes [#14880](https://redirect.github.com/Automattic/mongoose/issues/14880) [#8389](https://redirect.github.com/Automattic/mongoose/issues/8389) - fix(model): throw MongooseBulkSaveIncompleteError if bulkSave() didn't completely succeed [#14884](https://redirect.github.com/Automattic/mongoose/issues/14884) [#14763](https://redirect.github.com/Automattic/mongoose/issues/14763) - fix(connection): avoid returning readyState = connected if connection state is stale [#14812](https://redirect.github.com/Automattic/mongoose/issues/14812) [#14727](https://redirect.github.com/Automattic/mongoose/issues/14727) - fix: depopulate if push() or addToSet() with an ObjectId on a populated array [#14883](https://redirect.github.com/Automattic/mongoose/issues/14883) [#1635](https://redirect.github.com/Automattic/mongoose/issues/1635) - types: make \__v a number, only set \__v on top-level documents [#14892](https://redirect.github.com/Automattic/mongoose/issues/14892) ### [`v8.6.4`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#864--2024-09-26) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.6.3...8.6.4) \================== - fix(document): avoid massive perf degradation when saving new doc with 10 level deep subdocs [#14910](https://redirect.github.com/Automattic/mongoose/issues/14910) [#14897](https://redirect.github.com/Automattic/mongoose/issues/14897) - fix(model): skip applying static hooks by default if static name conflicts with aggregate middleware [#14904](https://redirect.github.com/Automattic/mongoose/issues/14904) [dragontaek-lee](https://redirect.github.com/dragontaek-lee) - fix(model): filter applying static hooks by default if static name conflicts with mongoose middleware [#14908](https://redirect.github.com/Automattic/mongoose/issues/14908) [dragontaek-lee](https://redirect.github.com/dragontaek-lee) ### [`v8.6.3`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#863--2024-09-17) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.6.2...8.6.3) \================== - fix: make getters convert uuid to string when calling toObject() and toJSON() [#14890](https://redirect.github.com/Automattic/mongoose/issues/14890) [#14869](https://redirect.github.com/Automattic/mongoose/issues/14869) - fix: fix missing Aggregate re-exports for ESM [#14886](https://redirect.github.com/Automattic/mongoose/issues/14886) [wongsean](https://redirect.github.com/wongsean) - types(document): add generic param to depopulate() to allow updating properties [#14891](https://redirect.github.com/Automattic/mongoose/issues/14891) [#14876](https://redirect.github.com/Automattic/mongoose/issues/14876) ### [`v8.6.2`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#862--2024-09-11) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.6.1...8.6.2) \================== - fix: make set merge deeply nested objects [#14870](https://redirect.github.com/Automattic/mongoose/issues/14870) [#14861](https://redirect.github.com/Automattic/mongoose/issues/14861) [ianHeydoc](https://redirect.github.com/ianHeydoc) - types: allow arbitrary keys in query filters again (revert [#14764](https://redirect.github.com/Automattic/mongoose/issues/14764)) [#14874](https://redirect.github.com/Automattic/mongoose/issues/14874) [#14863](https://redirect.github.com/Automattic/mongoose/issues/14863) [#14862](https://redirect.github.com/Automattic/mongoose/issues/14862) [#14842](https://redirect.github.com/Automattic/mongoose/issues/14842) - types: make SchemaType static setters property accessible in TypeScript [#14881](https://redirect.github.com/Automattic/mongoose/issues/14881) [#14879](https://redirect.github.com/Automattic/mongoose/issues/14879) - type(inferrawdoctype): infer Date types as JS dates rather than Mongoose SchemaType Date [#14882](https://redirect.github.com/Automattic/mongoose/issues/14882) [#14839](https://redirect.github.com/Automattic/mongoose/issues/14839) ### [`v8.6.1`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#861--2024-09-03) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.6.0...8.6.1) \================== - fix(document): avoid unnecessary clone() in applyGetters() that was preventing getters from running on 3-level deep subdocuments [#14844](https://redirect.github.com/Automattic/mongoose/issues/14844) [#14840](https://redirect.github.com/Automattic/mongoose/issues/14840) [#14835](https://redirect.github.com/Automattic/mongoose/issues/14835) - fix(model): throw error if bulkSave() did not insert or update any documents [#14837](https://redirect.github.com/Automattic/mongoose/issues/14837) [#14763](https://redirect.github.com/Automattic/mongoose/issues/14763) - fix(cursor): throw error in ChangeStream constructor if changeStreamThunk() throws a sync error [#14846](https://redirect.github.com/Automattic/mongoose/issues/14846) - types(query): add $expr to RootQuerySelector [#14845](https://redirect.github.com/Automattic/mongoose/issues/14845) - docs: update populate.md to fix missing match: { } [#14847](https://redirect.github.com/Automattic/mongoose/issues/14847) [makhoulshbeeb](https://redirect.github.com/makhoulshbeeb) ### [`v8.6.0`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#860--2024-08-28) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.5...8.6.0) \================== - feat: upgrade mongodb -> 6.8.0, handle throwing error on closed cursor in Mongoose with `MongooseError` instead of `MongoCursorExhaustedError` [#14813](https://redirect.github.com/Automattic/mongoose/issues/14813) - feat(model+query): support options parameter for distinct() [#14772](https://redirect.github.com/Automattic/mongoose/issues/14772) [#8006](https://redirect.github.com/Automattic/mongoose/issues/8006) - feat(QueryCursor): add getDriverCursor() function that returns the raw driver cursor [#14745](https://redirect.github.com/Automattic/mongoose/issues/14745) - types: change query selector to disallow unknown top-level keys by default [#14764](https://redirect.github.com/Automattic/mongoose/issues/14764) [alex-statsig](https://redirect.github.com/alex-statsig) - types: make toObject() and toJSON() not generic by default to avoid type widening [#14819](https://redirect.github.com/Automattic/mongoose/issues/14819) [#12883](https://redirect.github.com/Automattic/mongoose/issues/12883) - types: avoid automatically inferring lean result type when assigning to explicitly typed variable [#14734](https://redirect.github.com/Automattic/mongoose/issues/14734) ### [`v8.5.5`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#855--2024-08-28) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.4...8.5.5) \================== - fix(populate): fix a couple of other places where Mongoose gets the document's \_id with getters [#14833](https://redirect.github.com/Automattic/mongoose/issues/14833) [#14827](https://redirect.github.com/Automattic/mongoose/issues/14827) [#14759](https://redirect.github.com/Automattic/mongoose/issues/14759) - fix(discriminator): shallow clone Schema.prototype.obj before merging schemas to avoid modifying original obj [#14821](https://redirect.github.com/Automattic/mongoose/issues/14821) - types: fix schema type based on timestamps schema options value [#14829](https://redirect.github.com/Automattic/mongoose/issues/14829) [#14825](https://redirect.github.com/Automattic/mongoose/issues/14825) [ark23CIS](https://redirect.github.com/ark23CIS) ### [`v8.5.4`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#854--2024-08-23) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.3...8.5.4) \================== - fix: add empty string check for collection name passed [#14806](https://redirect.github.com/Automattic/mongoose/issues/14806) [Shubham2552](https://redirect.github.com/Shubham2552) - docs(model): add 'throw' as valid strict value for bulkWrite() and add some more clarification on throwOnValidationError [#14809](https://redirect.github.com/Automattic/mongoose/issues/14809) ### [`v8.5.3`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#853--2024-08-13) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.2...8.5.3) \================== - fix(document): call required functions on subdocuments underneath nested paths with correct context [#14801](https://redirect.github.com/Automattic/mongoose/issues/14801) [#14788](https://redirect.github.com/Automattic/mongoose/issues/14788) - fix(populate): avoid throwing error when no result and `lean()` set [#14799](https://redirect.github.com/Automattic/mongoose/issues/14799) [#14794](https://redirect.github.com/Automattic/mongoose/issues/14794) [#14759](https://redirect.github.com/Automattic/mongoose/issues/14759) [MohOraby](https://redirect.github.com/MohOraby) - fix(document): apply virtuals to subdocuments if parent schema has virtuals: true for backwards compatibility [#14774](https://redirect.github.com/Automattic/mongoose/issues/14774) [#14771](https://redirect.github.com/Automattic/mongoose/issues/14771) [#14623](https://redirect.github.com/Automattic/mongoose/issues/14623) [#14394](https://redirect.github.com/Automattic/mongoose/issues/14394) - types: make HydratedSingleSubdocument and HydratedArraySubdocument merge types instead of using & [#14800](https://redirect.github.com/Automattic/mongoose/issues/14800) [#14793](https://redirect.github.com/Automattic/mongoose/issues/14793) - types: support schema type inference based on schema options timestamps as well [#14773](https://redirect.github.com/Automattic/mongoose/issues/14773) [#13215](https://redirect.github.com/Automattic/mongoose/issues/13215) [ark23CIS](https://redirect.github.com/ark23CIS) - types(cursor): indicate that cursor.next() can return null [#14798](https://redirect.github.com/Automattic/mongoose/issues/14798) [#14787](https://redirect.github.com/Automattic/mongoose/issues/14787) - types: allow mongoose.connection.db to be undefined [#14797](https://redirect.github.com/Automattic/mongoose/issues/14797) [#14789](https://redirect.github.com/Automattic/mongoose/issues/14789) - docs: add schema type widening advice [#14790](https://redirect.github.com/Automattic/mongoose/issues/14790) [JstnMcBrd](https://redirect.github.com/JstnMcBrd) ### [`v8.5.2`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#852--2024-07-30) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.1...8.5.2) \================== - perf(clone): avoid further unnecessary checks if cloning a primitive value [#14762](https://redirect.github.com/Automattic/mongoose/issues/14762) [#14394](https://redirect.github.com/Automattic/mongoose/issues/14394) - fix: allow setting document array default to null [#14769](https://redirect.github.com/Automattic/mongoose/issues/14769) [#14717](https://redirect.github.com/Automattic/mongoose/issues/14717) [#6691](https://redirect.github.com/Automattic/mongoose/issues/6691) - fix(model): support session: null option for save() to opt out of automatic session option with transactionAsyncLocalStorage [#14744](https://redirect.github.com/Automattic/mongoose/issues/14744) [#14736](https://redirect.github.com/Automattic/mongoose/issues/14736) - fix(model+document): avoid depopulating manually populated doc as getter value [#14760](https://redirect.github.com/Automattic/mongoose/issues/14760) [#14759](https://redirect.github.com/Automattic/mongoose/issues/14759) - fix: correct shardkey access in buildBulkWriteOps [#14753](https://redirect.github.com/Automattic/mongoose/issues/14753) [#14752](https://redirect.github.com/Automattic/mongoose/issues/14752) [adf0nt3s](https://redirect.github.com/adf0nt3s) - fix(query): handle casting $switch in $expr [#14755](https://redirect.github.com/Automattic/mongoose/issues/14755) [#14751](https://redirect.github.com/Automattic/mongoose/issues/14751) - types: allow calling SchemaType.cast() without parent and init parameters [#14756](https://redirect.github.com/Automattic/mongoose/issues/14756) [#14748](https://redirect.github.com/Automattic/mongoose/issues/14748) [#9076](https://redirect.github.com/Automattic/mongoose/issues/9076) - docs: fix a wrong example in v6 migration guide [#14758](https://redirect.github.com/Automattic/mongoose/issues/14758) [abdelrahman-elkady](https://redirect.github.com/abdelrahman-elkady) ### [`v8.5.1`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#851--2024-07-12) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.0...8.5.1) \================== - perf(model): performance improvements for insertMany() [#14724](https://redirect.github.com/Automattic/mongoose/issues/14724) - fix(model): avoid leaving subdoc defaults on top-level doc when setting subdocument to same value [#14728](https://redirect.github.com/Automattic/mongoose/issues/14728) [#14722](https://redirect.github.com/Automattic/mongoose/issues/14722) - fix(model): handle transactionAsyncLocalStorage option with insertMany() [#14743](https://redirect.github.com/Automattic/mongoose/issues/14743) - types: make \_id required on Document type [#14735](https://redirect.github.com/Automattic/mongoose/issues/14735) [#14660](https://redirect.github.com/Automattic/mongoose/issues/14660) - types: fix ChangeStream.close to return a PromiseConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.