Automattic/mongoose
### [`v6.8.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#681--2022-12-19)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/6.8.0...6.8.1)
\==================
- fix(query): avoid throwing circular dependency error if same object is used in multiple properties [#12774](https://togithub.com/Automattic/mongoose/issues/12774) [orgads](https://togithub.com/orgads)
- fix(map): return value from super.delete() [#12777](https://togithub.com/Automattic/mongoose/issues/12777) [danbrud](https://togithub.com/danbrud)
- fix(populate): handle virtual populate underneath document array with justOne=true and sort set where 1 element has only 1 result [#12815](https://togithub.com/Automattic/mongoose/issues/12815) [#12730](https://togithub.com/Automattic/mongoose/issues/12730)
- fix(update): handle embedded discriminators when casting array filters [#12802](https://togithub.com/Automattic/mongoose/issues/12802) [#12565](https://togithub.com/Automattic/mongoose/issues/12565)
- fix(populate): avoid calling transform if there's no populate results and using lean [#12804](https://togithub.com/Automattic/mongoose/issues/12804) [#12739](https://togithub.com/Automattic/mongoose/issues/12739)
- fix(model): prevent index creation on syncIndexes if not necessary [#12785](https://togithub.com/Automattic/mongoose/issues/12785) [#12250](https://togithub.com/Automattic/mongoose/issues/12250) [lpizzinidev](https://togithub.com/lpizzinidev)
- fix(types): correctly infer this when using pre('updateOne') with { document: true, query: false } [#12778](https://togithub.com/Automattic/mongoose/issues/12778)
- fix(types): make InferSchemaType: consider { required: boolean } required if it isn't explicitly false [#12784](https://togithub.com/Automattic/mongoose/issues/12784) [JavaScriptBach](https://togithub.com/JavaScriptBach)
- docs: replace many occurrences of "localhost" with "127.0.0.1" [#12811](https://togithub.com/Automattic/mongoose/issues/12811) [#12741](https://togithub.com/Automattic/mongoose/issues/12741) [hasezoey](https://togithub.com/hasezoey) [SadiqOnGithub](https://togithub.com/SadiqOnGithub)
- docs(mongoose): Added missing options to set [#12810](https://togithub.com/Automattic/mongoose/issues/12810) [lpizzinidev](https://togithub.com/lpizzinidev)
- docs: add info on `$locals` parameters to getters/setters tutorial [#12814](https://togithub.com/Automattic/mongoose/issues/12814) [#12550](https://togithub.com/Automattic/mongoose/issues/12550) [IslandRhythms](https://togithub.com/IslandRhythms)
- docs: make Document.prototype.$clone() public [#12803](https://togithub.com/Automattic/mongoose/issues/12803)
- docs(query): updated explanation for slice [#12776](https://togithub.com/Automattic/mongoose/issues/12776) [#12474](https://togithub.com/Automattic/mongoose/issues/12474) [lpizzinidev](https://togithub.com/lpizzinidev)
- docs(middleware): fix broken links [#12787](https://togithub.com/Automattic/mongoose/issues/12787) [lpizzinidev](https://togithub.com/lpizzinidev)
- docs(queries): fixed broken links [#12790](https://togithub.com/Automattic/mongoose/issues/12790) [lpizzinidev](https://togithub.com/lpizzinidev)
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:
6.8.0
->6.8.1
Release Notes
Automattic/mongoose
### [`v6.8.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#681--2022-12-19) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.8.0...6.8.1) \================== - fix(query): avoid throwing circular dependency error if same object is used in multiple properties [#12774](https://togithub.com/Automattic/mongoose/issues/12774) [orgads](https://togithub.com/orgads) - fix(map): return value from super.delete() [#12777](https://togithub.com/Automattic/mongoose/issues/12777) [danbrud](https://togithub.com/danbrud) - fix(populate): handle virtual populate underneath document array with justOne=true and sort set where 1 element has only 1 result [#12815](https://togithub.com/Automattic/mongoose/issues/12815) [#12730](https://togithub.com/Automattic/mongoose/issues/12730) - fix(update): handle embedded discriminators when casting array filters [#12802](https://togithub.com/Automattic/mongoose/issues/12802) [#12565](https://togithub.com/Automattic/mongoose/issues/12565) - fix(populate): avoid calling transform if there's no populate results and using lean [#12804](https://togithub.com/Automattic/mongoose/issues/12804) [#12739](https://togithub.com/Automattic/mongoose/issues/12739) - fix(model): prevent index creation on syncIndexes if not necessary [#12785](https://togithub.com/Automattic/mongoose/issues/12785) [#12250](https://togithub.com/Automattic/mongoose/issues/12250) [lpizzinidev](https://togithub.com/lpizzinidev) - fix(types): correctly infer this when using pre('updateOne') with { document: true, query: false } [#12778](https://togithub.com/Automattic/mongoose/issues/12778) - fix(types): make InferSchemaType: consider { required: boolean } required if it isn't explicitly false [#12784](https://togithub.com/Automattic/mongoose/issues/12784) [JavaScriptBach](https://togithub.com/JavaScriptBach) - docs: replace many occurrences of "localhost" with "127.0.0.1" [#12811](https://togithub.com/Automattic/mongoose/issues/12811) [#12741](https://togithub.com/Automattic/mongoose/issues/12741) [hasezoey](https://togithub.com/hasezoey) [SadiqOnGithub](https://togithub.com/SadiqOnGithub) - docs(mongoose): Added missing options to set [#12810](https://togithub.com/Automattic/mongoose/issues/12810) [lpizzinidev](https://togithub.com/lpizzinidev) - docs: add info on `$locals` parameters to getters/setters tutorial [#12814](https://togithub.com/Automattic/mongoose/issues/12814) [#12550](https://togithub.com/Automattic/mongoose/issues/12550) [IslandRhythms](https://togithub.com/IslandRhythms) - docs: make Document.prototype.$clone() public [#12803](https://togithub.com/Automattic/mongoose/issues/12803) - docs(query): updated explanation for slice [#12776](https://togithub.com/Automattic/mongoose/issues/12776) [#12474](https://togithub.com/Automattic/mongoose/issues/12474) [lpizzinidev](https://togithub.com/lpizzinidev) - docs(middleware): fix broken links [#12787](https://togithub.com/Automattic/mongoose/issues/12787) [lpizzinidev](https://togithub.com/lpizzinidev) - docs(queries): fixed broken links [#12790](https://togithub.com/Automattic/mongoose/issues/12790) [lpizzinidev](https://togithub.com/lpizzinidev)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.