Automattic/mongoose (mongoose)
### [`v8.5.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#850--2024-07-08)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/8.4.5...8.5.0)
\==================
- perf: memoize toJSON / toObject default options [#14672](https://togithub.com/Automattic/mongoose/issues/14672)
- feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() [#14699](https://togithub.com/Automattic/mongoose/issues/14699) [#14268](https://togithub.com/Automattic/mongoose/issues/14268)
- feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema [#14691](https://togithub.com/Automattic/mongoose/issues/14691)
- feat: allow setting array default value to null [#14717](https://togithub.com/Automattic/mongoose/issues/14717) [#6691](https://togithub.com/Automattic/mongoose/issues/6691)
- feat(mongoose): allow drivers to set global plugins [#14682](https://togithub.com/Automattic/mongoose/issues/14682)
- feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set [#14681](https://togithub.com/Automattic/mongoose/issues/14681) [#14611](https://togithub.com/Automattic/mongoose/issues/14611)
- fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() [#14732](https://togithub.com/Automattic/mongoose/issues/14732) [#9885](https://togithub.com/Automattic/mongoose/issues/9885)
- fix(query): remove count() and findOneAndRemove() from query chaining [#14692](https://togithub.com/Automattic/mongoose/issues/14692) [#14689](https://togithub.com/Automattic/mongoose/issues/14689)
- fix: remove default connection if setting createInitialConnection to false after Mongoose instance created [#14679](https://togithub.com/Automattic/mongoose/issues/14679) [#8302](https://togithub.com/Automattic/mongoose/issues/8302)
- types(models+query): infer return type from schema for 1-level deep nested paths [#14632](https://togithub.com/Automattic/mongoose/issues/14632)
- types(connection): make transaction() return type match the executor function [#14661](https://togithub.com/Automattic/mongoose/issues/14661) [#14656](https://togithub.com/Automattic/mongoose/issues/14656)
- docs: fix docs links in index.md [mirasayon](https://togithub.com/mirasayon)
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.
[ ] 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.4.5
->8.5.0
Release Notes
Automattic/mongoose (mongoose)
### [`v8.5.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#850--2024-07-08) [Compare Source](https://togithub.com/Automattic/mongoose/compare/8.4.5...8.5.0) \================== - perf: memoize toJSON / toObject default options [#14672](https://togithub.com/Automattic/mongoose/issues/14672) - feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() [#14699](https://togithub.com/Automattic/mongoose/issues/14699) [#14268](https://togithub.com/Automattic/mongoose/issues/14268) - feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema [#14691](https://togithub.com/Automattic/mongoose/issues/14691) - feat: allow setting array default value to null [#14717](https://togithub.com/Automattic/mongoose/issues/14717) [#6691](https://togithub.com/Automattic/mongoose/issues/6691) - feat(mongoose): allow drivers to set global plugins [#14682](https://togithub.com/Automattic/mongoose/issues/14682) - feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set [#14681](https://togithub.com/Automattic/mongoose/issues/14681) [#14611](https://togithub.com/Automattic/mongoose/issues/14611) - fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() [#14732](https://togithub.com/Automattic/mongoose/issues/14732) [#9885](https://togithub.com/Automattic/mongoose/issues/9885) - fix(query): remove count() and findOneAndRemove() from query chaining [#14692](https://togithub.com/Automattic/mongoose/issues/14692) [#14689](https://togithub.com/Automattic/mongoose/issues/14689) - fix: remove default connection if setting createInitialConnection to false after Mongoose instance created [#14679](https://togithub.com/Automattic/mongoose/issues/14679) [#8302](https://togithub.com/Automattic/mongoose/issues/8302) - types(models+query): infer return type from schema for 1-level deep nested paths [#14632](https://togithub.com/Automattic/mongoose/issues/14632) - types(connection): make transaction() return type match the executor function [#14661](https://togithub.com/Automattic/mongoose/issues/14661) [#14656](https://togithub.com/Automattic/mongoose/issues/14656) - docs: fix docs links in index.md [mirasayon](https://togithub.com/mirasayon)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.