Automattic/mongoose (mongoose)
### [`v8.4.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#840--2024-05-17)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/8.3.5...8.4.0)
\==================
- feat: upgrade mongodb -> 6.6.2 [#14584](https://togithub.com/Automattic/mongoose/issues/14584)
- feat: add transactionAsyncLocalStorage option to opt in to automatically setting session on all transactions [#14583](https://togithub.com/Automattic/mongoose/issues/14583) [#13889](https://togithub.com/Automattic/mongoose/issues/13889)
- feat: handle initially null driver when instantiating Mongoose for Rollup support [#14577](https://togithub.com/Automattic/mongoose/issues/14577) [#12335](https://togithub.com/Automattic/mongoose/issues/12335)
- feat(mongoose): export omitUndefined() helper [#14582](https://togithub.com/Automattic/mongoose/issues/14582) [#14569](https://togithub.com/Automattic/mongoose/issues/14569)
- feat: add Model.listSearchIndexes() [#14519](https://togithub.com/Automattic/mongoose/issues/14519) [#14450](https://togithub.com/Automattic/mongoose/issues/14450)
- feat(connection): add listDatabases() function [#14506](https://togithub.com/Automattic/mongoose/issues/14506) [#9048](https://togithub.com/Automattic/mongoose/issues/9048)
- feat(schema): add schema-level readConcern option to apply default readConcern for all queries [#14579](https://togithub.com/Automattic/mongoose/issues/14579) [#14511](https://togithub.com/Automattic/mongoose/issues/14511)
- fix(error): remove model property from CastError to avoid printing all model properties to console [#14568](https://togithub.com/Automattic/mongoose/issues/14568) [#14529](https://togithub.com/Automattic/mongoose/issues/14529)
- fix(model): make bulkWrite() and insertMany() throw if throwOnValidationError set and all ops invalid [#14587](https://togithub.com/Automattic/mongoose/issues/14587) [#14572](https://togithub.com/Automattic/mongoose/issues/14572)
- fix(document): ensure transform function passed to toObject() options applies to subdocs [#14600](https://togithub.com/Automattic/mongoose/issues/14600) [#14589](https://togithub.com/Automattic/mongoose/issues/14589)
- types: add inferRawDocType helper [#13900](https://togithub.com/Automattic/mongoose/issues/13900) [#13772](https://togithub.com/Automattic/mongoose/issues/13772)
- types(document): make document \_id type default to unknown instead of any [#14541](https://togithub.com/Automattic/mongoose/issues/14541)
### [`v8.3.5`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#835--2024-05-15)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/8.3.4...8.3.5)
\==================
- fix(query): shallow clone $or, $and if merging onto empty query filter [#14580](https://togithub.com/Automattic/mongoose/issues/14580) [#14567](https://togithub.com/Automattic/mongoose/issues/14567)
- types(model+query): pass TInstanceMethods to QueryWithHelpers so populated docs have methods [#14581](https://togithub.com/Automattic/mongoose/issues/14581) [#14574](https://togithub.com/Automattic/mongoose/issues/14574)
- docs(typescript): clarify that setting THydratedDocumentType on schemas is necessary for correct method context [#14575](https://togithub.com/Automattic/mongoose/issues/14575) [#14573](https://togithub.com/Automattic/mongoose/issues/14573)
Configuration
📅 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 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:
8.3.4
->8.4.0
Release Notes
Automattic/mongoose (mongoose)
### [`v8.4.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#840--2024-05-17) [Compare Source](https://togithub.com/Automattic/mongoose/compare/8.3.5...8.4.0) \================== - feat: upgrade mongodb -> 6.6.2 [#14584](https://togithub.com/Automattic/mongoose/issues/14584) - feat: add transactionAsyncLocalStorage option to opt in to automatically setting session on all transactions [#14583](https://togithub.com/Automattic/mongoose/issues/14583) [#13889](https://togithub.com/Automattic/mongoose/issues/13889) - feat: handle initially null driver when instantiating Mongoose for Rollup support [#14577](https://togithub.com/Automattic/mongoose/issues/14577) [#12335](https://togithub.com/Automattic/mongoose/issues/12335) - feat(mongoose): export omitUndefined() helper [#14582](https://togithub.com/Automattic/mongoose/issues/14582) [#14569](https://togithub.com/Automattic/mongoose/issues/14569) - feat: add Model.listSearchIndexes() [#14519](https://togithub.com/Automattic/mongoose/issues/14519) [#14450](https://togithub.com/Automattic/mongoose/issues/14450) - feat(connection): add listDatabases() function [#14506](https://togithub.com/Automattic/mongoose/issues/14506) [#9048](https://togithub.com/Automattic/mongoose/issues/9048) - feat(schema): add schema-level readConcern option to apply default readConcern for all queries [#14579](https://togithub.com/Automattic/mongoose/issues/14579) [#14511](https://togithub.com/Automattic/mongoose/issues/14511) - fix(error): remove model property from CastError to avoid printing all model properties to console [#14568](https://togithub.com/Automattic/mongoose/issues/14568) [#14529](https://togithub.com/Automattic/mongoose/issues/14529) - fix(model): make bulkWrite() and insertMany() throw if throwOnValidationError set and all ops invalid [#14587](https://togithub.com/Automattic/mongoose/issues/14587) [#14572](https://togithub.com/Automattic/mongoose/issues/14572) - fix(document): ensure transform function passed to toObject() options applies to subdocs [#14600](https://togithub.com/Automattic/mongoose/issues/14600) [#14589](https://togithub.com/Automattic/mongoose/issues/14589) - types: add inferRawDocType helper [#13900](https://togithub.com/Automattic/mongoose/issues/13900) [#13772](https://togithub.com/Automattic/mongoose/issues/13772) - types(document): make document \_id type default to unknown instead of any [#14541](https://togithub.com/Automattic/mongoose/issues/14541) ### [`v8.3.5`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#835--2024-05-15) [Compare Source](https://togithub.com/Automattic/mongoose/compare/8.3.4...8.3.5) \================== - fix(query): shallow clone $or, $and if merging onto empty query filter [#14580](https://togithub.com/Automattic/mongoose/issues/14580) [#14567](https://togithub.com/Automattic/mongoose/issues/14567) - types(model+query): pass TInstanceMethods to QueryWithHelpers so populated docs have methods [#14581](https://togithub.com/Automattic/mongoose/issues/14581) [#14574](https://togithub.com/Automattic/mongoose/issues/14574) - docs(typescript): clarify that setting THydratedDocumentType on schemas is necessary for correct method context [#14575](https://togithub.com/Automattic/mongoose/issues/14575) [#14573](https://togithub.com/Automattic/mongoose/issues/14573)Configuration
📅 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 this update again.
This PR has been generated by Mend Renovate. View repository job log here.