Automattic/mongoose (mongoose)
### [`v7.6.2`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#762--2023-10-13)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/7.6.1...7.6.2)
\==================
- perf: avoid storing a separate entry in schema subpaths for every element in an array [#13953](https://togithub.com/Automattic/mongoose/issues/13953) [#13874](https://togithub.com/Automattic/mongoose/issues/13874)
- fix(document): avoid triggering setter when initializing Model.prototype.collection to allow defining collection as a schema path name [#13968](https://togithub.com/Automattic/mongoose/issues/13968) [#13956](https://togithub.com/Automattic/mongoose/issues/13956)
- fix(model): make bulkSave() save changes in discriminator paths if calling bulkSave() on base model [#13959](https://togithub.com/Automattic/mongoose/issues/13959) [#13907](https://togithub.com/Automattic/mongoose/issues/13907)
- fix(document): allow calling $model() with no args for TypeScript [#13963](https://togithub.com/Automattic/mongoose/issues/13963) [#13878](https://togithub.com/Automattic/mongoose/issues/13878)
- fix(schema): handle embedded discriminators defined using Schema.prototype.discriminator() [#13958](https://togithub.com/Automattic/mongoose/issues/13958) [#13898](https://togithub.com/Automattic/mongoose/issues/13898)
- types(model): make InsertManyResult consistent with return type of insertMany [#13965](https://togithub.com/Automattic/mongoose/issues/13965) [#13904](https://togithub.com/Automattic/mongoose/issues/13904)
- types(models): add cleaner type definitions for insertMany() with no generics to prevent errors when using insertMany() in generic classes [#13964](https://togithub.com/Automattic/mongoose/issues/13964) [#13957](https://togithub.com/Automattic/mongoose/issues/13957)
- types(schematypes): allow defining map path using type: 'Map' in addition to type: Map [#13960](https://togithub.com/Automattic/mongoose/issues/13960) [#13755](https://togithub.com/Automattic/mongoose/issues/13755)
### [`v7.6.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#761--2023-10-09)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/7.6.0...7.6.1)
\==================
- fix: bump bson to match mongodb@5.9.0 exactly [#13947](https://togithub.com/Automattic/mongoose/issues/13947) [hasezoey](https://togithub.com/hasezoey)
- fix: raw result deprecation message [#13954](https://togithub.com/Automattic/mongoose/issues/13954) [simllll](https://togithub.com/simllll)
- type: add types for includeResultMetadata [#13955](https://togithub.com/Automattic/mongoose/issues/13955) [simllll](https://togithub.com/simllll)
- perf(npmignore): ignore newer files [#13946](https://togithub.com/Automattic/mongoose/issues/13946) [hasezoey](https://togithub.com/hasezoey)
- perf: move mocha config from package.json to mocharc [#13948](https://togithub.com/Automattic/mongoose/issues/13948) [hasezoey](https://togithub.com/hasezoey)
### [`v7.6.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#760--2023-10-06)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/7.5.4...7.6.0)
\==================
- feat: upgrade mongodb node driver -> 5.9.0 [#13927](https://togithub.com/Automattic/mongoose/issues/13927) [#13926](https://togithub.com/Automattic/mongoose/issues/13926) [sanguineti](https://togithub.com/sanguineti)
- fix: avoid CastError when passing different value of discriminator key in `$or` [#13938](https://togithub.com/Automattic/mongoose/issues/13938) [#13906](https://togithub.com/Automattic/mongoose/issues/13906)
Configuration
📅 Schedule: Branch creation - "on friday" (UTC), 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 this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
7.5.4
->7.6.2
Release Notes
Automattic/mongoose (mongoose)
### [`v7.6.2`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#762--2023-10-13) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.6.1...7.6.2) \================== - perf: avoid storing a separate entry in schema subpaths for every element in an array [#13953](https://togithub.com/Automattic/mongoose/issues/13953) [#13874](https://togithub.com/Automattic/mongoose/issues/13874) - fix(document): avoid triggering setter when initializing Model.prototype.collection to allow defining collection as a schema path name [#13968](https://togithub.com/Automattic/mongoose/issues/13968) [#13956](https://togithub.com/Automattic/mongoose/issues/13956) - fix(model): make bulkSave() save changes in discriminator paths if calling bulkSave() on base model [#13959](https://togithub.com/Automattic/mongoose/issues/13959) [#13907](https://togithub.com/Automattic/mongoose/issues/13907) - fix(document): allow calling $model() with no args for TypeScript [#13963](https://togithub.com/Automattic/mongoose/issues/13963) [#13878](https://togithub.com/Automattic/mongoose/issues/13878) - fix(schema): handle embedded discriminators defined using Schema.prototype.discriminator() [#13958](https://togithub.com/Automattic/mongoose/issues/13958) [#13898](https://togithub.com/Automattic/mongoose/issues/13898) - types(model): make InsertManyResult consistent with return type of insertMany [#13965](https://togithub.com/Automattic/mongoose/issues/13965) [#13904](https://togithub.com/Automattic/mongoose/issues/13904) - types(models): add cleaner type definitions for insertMany() with no generics to prevent errors when using insertMany() in generic classes [#13964](https://togithub.com/Automattic/mongoose/issues/13964) [#13957](https://togithub.com/Automattic/mongoose/issues/13957) - types(schematypes): allow defining map path using type: 'Map' in addition to type: Map [#13960](https://togithub.com/Automattic/mongoose/issues/13960) [#13755](https://togithub.com/Automattic/mongoose/issues/13755) ### [`v7.6.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#761--2023-10-09) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.6.0...7.6.1) \================== - fix: bump bson to match mongodb@5.9.0 exactly [#13947](https://togithub.com/Automattic/mongoose/issues/13947) [hasezoey](https://togithub.com/hasezoey) - fix: raw result deprecation message [#13954](https://togithub.com/Automattic/mongoose/issues/13954) [simllll](https://togithub.com/simllll) - type: add types for includeResultMetadata [#13955](https://togithub.com/Automattic/mongoose/issues/13955) [simllll](https://togithub.com/simllll) - perf(npmignore): ignore newer files [#13946](https://togithub.com/Automattic/mongoose/issues/13946) [hasezoey](https://togithub.com/hasezoey) - perf: move mocha config from package.json to mocharc [#13948](https://togithub.com/Automattic/mongoose/issues/13948) [hasezoey](https://togithub.com/hasezoey) ### [`v7.6.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#760--2023-10-06) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.5.4...7.6.0) \================== - feat: upgrade mongodb node driver -> 5.9.0 [#13927](https://togithub.com/Automattic/mongoose/issues/13927) [#13926](https://togithub.com/Automattic/mongoose/issues/13926) [sanguineti](https://togithub.com/sanguineti) - fix: avoid CastError when passing different value of discriminator key in `$or` [#13938](https://togithub.com/Automattic/mongoose/issues/13938) [#13906](https://togithub.com/Automattic/mongoose/issues/13906)Configuration
📅 Schedule: Branch creation - "on friday" (UTC), 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 this update again.
This PR has been generated by Mend Renovate. View repository job log here.