Automattic/mongoose (mongoose)
### [`v8.6.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#860--2024-08-28)
[Compare Source](https://togithub.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://togithub.com/Automattic/mongoose/issues/14813)
- feat(model+query): support options parameter for distinct() [#14772](https://togithub.com/Automattic/mongoose/issues/14772) [#8006](https://togithub.com/Automattic/mongoose/issues/8006)
- feat(QueryCursor): add getDriverCursor() function that returns the raw driver cursor [#14745](https://togithub.com/Automattic/mongoose/issues/14745)
- types: change query selector to disallow unknown top-level keys by default [#14764](https://togithub.com/Automattic/mongoose/issues/14764) [alex-statsig](https://togithub.com/alex-statsig)
- types: make toObject() and toJSON() not generic by default to avoid type widening [#14819](https://togithub.com/Automattic/mongoose/issues/14819) [#12883](https://togithub.com/Automattic/mongoose/issues/12883)
- types: avoid automatically inferring lean result type when assigning to explicitly typed variable [#14734](https://togithub.com/Automattic/mongoose/issues/14734)
### [`v8.5.5`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#855--2024-08-28)
[Compare Source](https://togithub.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://togithub.com/Automattic/mongoose/issues/14833) [#14827](https://togithub.com/Automattic/mongoose/issues/14827) [#14759](https://togithub.com/Automattic/mongoose/issues/14759)
- fix(discriminator): shallow clone Schema.prototype.obj before merging schemas to avoid modifying original obj [#14821](https://togithub.com/Automattic/mongoose/issues/14821)
- types: fix schema type based on timestamps schema options value [#14829](https://togithub.com/Automattic/mongoose/issues/14829) [#14825](https://togithub.com/Automattic/mongoose/issues/14825) [ark23CIS](https://togithub.com/ark23CIS)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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 contains the following updates:
8.5.4
->8.6.0
Release Notes
Automattic/mongoose (mongoose)
### [`v8.6.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#860--2024-08-28) [Compare Source](https://togithub.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://togithub.com/Automattic/mongoose/issues/14813) - feat(model+query): support options parameter for distinct() [#14772](https://togithub.com/Automattic/mongoose/issues/14772) [#8006](https://togithub.com/Automattic/mongoose/issues/8006) - feat(QueryCursor): add getDriverCursor() function that returns the raw driver cursor [#14745](https://togithub.com/Automattic/mongoose/issues/14745) - types: change query selector to disallow unknown top-level keys by default [#14764](https://togithub.com/Automattic/mongoose/issues/14764) [alex-statsig](https://togithub.com/alex-statsig) - types: make toObject() and toJSON() not generic by default to avoid type widening [#14819](https://togithub.com/Automattic/mongoose/issues/14819) [#12883](https://togithub.com/Automattic/mongoose/issues/12883) - types: avoid automatically inferring lean result type when assigning to explicitly typed variable [#14734](https://togithub.com/Automattic/mongoose/issues/14734) ### [`v8.5.5`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#855--2024-08-28) [Compare Source](https://togithub.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://togithub.com/Automattic/mongoose/issues/14833) [#14827](https://togithub.com/Automattic/mongoose/issues/14827) [#14759](https://togithub.com/Automattic/mongoose/issues/14759) - fix(discriminator): shallow clone Schema.prototype.obj before merging schemas to avoid modifying original obj [#14821](https://togithub.com/Automattic/mongoose/issues/14821) - types: fix schema type based on timestamps schema options value [#14829](https://togithub.com/Automattic/mongoose/issues/14829) [#14825](https://togithub.com/Automattic/mongoose/issues/14825) [ark23CIS](https://togithub.com/ark23CIS)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.