Commit c46a33c
chore(deps): bump mongoose from 9.0.2 to 9.1.4 (#985)
Bumps [mongoose](https://github.com/Automattic/mongoose) from 9.0.2 to
9.1.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Automattic/mongoose/releases">mongoose's
releases</a>.</em></p>
<blockquote>
<h1>9.1.4 / 2026-01-15</h1>
<ul>
<li>fix: attach sessions to docs retrieved by cursor <a
href="https://redirect.github.com/Automattic/mongoose/issues/15953">#15953</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15949">#15949</a>
<a href="https://github.com/mjfwalsh">mjfwalsh</a></li>
<li>fix(model): make hydrate() handle nested schema arrays <a
href="https://redirect.github.com/Automattic/mongoose/issues/15964">#15964</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15956">#15956</a></li>
<li>fix(clone): fix parent doc for map subdocuments and array
subdocuments <a
href="https://redirect.github.com/Automattic/mongoose/issues/15958">#15958</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15954">#15954</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
<li>fix: prevent crash when accessing nested paths on prototype <a
href="https://redirect.github.com/Automattic/mongoose/issues/15962">#15962</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15961">#15961</a>
<a href="https://github.com/som14062005">som14062005</a></li>
</ul>
<h1>9.1.3 / 2026-01-09</h1>
<ul>
<li>fix(model): support timestamps option to insertMany() as both
boolean and QueryTimestampsConfig <a
href="https://redirect.github.com/Automattic/mongoose/issues/15941">#15941</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15938">#15938</a></li>
<li>fix(query): include preview of current and incoming update in error
when merging normal update with pipeline <a
href="https://redirect.github.com/Automattic/mongoose/issues/15939">#15939</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15928">#15928</a></li>
<li>types(model): apply basic type casting to paths underneath
subdocuments <a
href="https://redirect.github.com/Automattic/mongoose/issues/15948">#15948</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15947">#15947</a></li>
<li>types(utility): make WithLevel1NestedPaths correctly handle
PopulatedDoc and other TypeScript unions with Document members <a
href="https://redirect.github.com/Automattic/mongoose/issues/15942">#15942</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15923">#15923</a></li>
<li>docs(schema): expose "DocumentArrayElement" <a
href="https://redirect.github.com/Automattic/mongoose/issues/15590">#15590</a>
<a href="https://github.com/hasezoey">hasezoey</a></li>
</ul>
<h1>9.1.2 / 2025-01-05</h1>
<ul>
<li>fix(subdocs): pass options to pre-save hooks for subdocs <a
href="https://redirect.github.com/Automattic/mongoose/issues/15921">#15921</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15920">#15920</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
<li>perf(model): select only _id when checking document existence during
save() <a
href="https://redirect.github.com/Automattic/mongoose/issues/15919">#15919</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
</ul>
<h1>9.1.1 / 2025-12-30</h1>
<ul>
<li>fix(document): avoid 'Cannot mix array and object updates' on
doc.updateOne() with pipeline <a
href="https://redirect.github.com/Automattic/mongoose/issues/15928">#15928</a></li>
<li>docs: update default search version to 9.x <a
href="https://redirect.github.com/Automattic/mongoose/issues/15926">#15926</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15925">#15925</a></li>
</ul>
<h1>9.1.0 / 2025-12-29</h1>
<ul>
<li>feat(model): make pathsToSave handle saving just a subpath of a
modified path <a
href="https://redirect.github.com/Automattic/mongoose/issues/15896">#15896</a></li>
<li>feat(document+model): pass options to pre('deleteOne') and
update+options to pre('updateOne') hooks <a
href="https://redirect.github.com/Automattic/mongoose/issues/15908">#15908</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15870">#15870</a></li>
<li>feat(versioning): optimistic concurrency exclude option, update docs
for optimisticConcurrency options <a
href="https://redirect.github.com/Automattic/mongoose/issues/15917">#15917</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15915">#15915</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15912">#15912</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
<li>feat(document): add support for getAtomics() to allow custom
container types to utilize atomics <a
href="https://redirect.github.com/Automattic/mongoose/issues/15817">#15817</a></li>
<li>perf: optimize Object.keys() checks and optional chaining <a
href="https://redirect.github.com/Automattic/mongoose/issues/15865">#15865</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
<li>fix: add support for typescript style enums <a
href="https://redirect.github.com/Automattic/mongoose/issues/15914">#15914</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15913">#15913</a>
<a href="https://github.com/mjfwebb">mjfwebb</a></li>
<li>fix(document): when cloning a doc with subdocs, make sure the
subdocs parent is the cloned doc <a
href="https://redirect.github.com/Automattic/mongoose/issues/15904">#15904</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15901">#15901</a></li>
<li>types(models): support Mongoose query casting in
AnyBulkWriteOperation filter property <a
href="https://redirect.github.com/Automattic/mongoose/issues/15918">#15918</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15910">#15910</a></li>
<li>types: allow calling create() with TRawDocType for better generics
support <a
href="https://redirect.github.com/Automattic/mongoose/issues/15903">#15903</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15902">#15902</a></li>
<li>types(document): add id virtual getter by default to
HydrateDocument<> if TOverrides is Record<string, never> <a
href="https://redirect.github.com/Automattic/mongoose/issues/15906">#15906</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15900">#15900</a></li>
<li>docs(schema): add lean to list of schema options <a
href="https://redirect.github.com/Automattic/mongoose/issues/15907">#15907</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15894">#15894</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/12081">#12081</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md">mongoose's
changelog</a>.</em></p>
<blockquote>
<h1>9.1.4 / 2026-01-15</h1>
<ul>
<li>fix: attach sessions to docs retrieved by cursor <a
href="https://redirect.github.com/Automattic/mongoose/issues/15953">#15953</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15949">#15949</a>
<a href="https://github.com/mjfwalsh">mjfwalsh</a></li>
<li>fix(model): make hydrate() handle nested schema arrays <a
href="https://redirect.github.com/Automattic/mongoose/issues/15964">#15964</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15956">#15956</a></li>
<li>fix(clone): fix parent doc for map subdocuments and array
subdocuments <a
href="https://redirect.github.com/Automattic/mongoose/issues/15958">#15958</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15954">#15954</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
<li>fix: prevent crash when accessing nested paths on prototype <a
href="https://redirect.github.com/Automattic/mongoose/issues/15962">#15962</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15961">#15961</a>
<a href="https://github.com/som14062005">som14062005</a></li>
</ul>
<h1>9.1.3 / 2026-01-09</h1>
<ul>
<li>fix(model): support timestamps option to insertMany() as both
boolean and QueryTimestampsConfig <a
href="https://redirect.github.com/Automattic/mongoose/issues/15941">#15941</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15938">#15938</a></li>
<li>fix(query): include preview of current and incoming update in error
when merging normal update with pipeline <a
href="https://redirect.github.com/Automattic/mongoose/issues/15939">#15939</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15928">#15928</a></li>
<li>types(model): apply basic type casting to paths underneath
subdocuments <a
href="https://redirect.github.com/Automattic/mongoose/issues/15948">#15948</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15947">#15947</a></li>
<li>types(utility): make WithLevel1NestedPaths correctly handle
PopulatedDoc and other TypeScript unions with Document members <a
href="https://redirect.github.com/Automattic/mongoose/issues/15942">#15942</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15923">#15923</a></li>
<li>docs(schema): expose "DocumentArrayElement" <a
href="https://redirect.github.com/Automattic/mongoose/issues/15590">#15590</a>
<a href="https://github.com/hasezoey">hasezoey</a></li>
</ul>
<h1>9.1.2 / 2026-01-05</h1>
<ul>
<li>fix(subdocs): pass options to pre-save hooks for subdocs <a
href="https://redirect.github.com/Automattic/mongoose/issues/15921">#15921</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15920">#15920</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
<li>perf(model): select only _id when checking document existence during
save() <a
href="https://redirect.github.com/Automattic/mongoose/issues/15919">#15919</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
</ul>
<h1>9.1.1 / 2025-12-30</h1>
<ul>
<li>fix(document): avoid 'Cannot mix array and object updates' on
doc.updateOne() with pipeline <a
href="https://redirect.github.com/Automattic/mongoose/issues/15928">#15928</a></li>
<li>docs: update default search version to 9.x <a
href="https://redirect.github.com/Automattic/mongoose/issues/15926">#15926</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15925">#15925</a></li>
</ul>
<h1>9.1.0 / 2025-12-29</h1>
<ul>
<li>feat(model): make pathsToSave handle saving just a subpath of a
modified path <a
href="https://redirect.github.com/Automattic/mongoose/issues/15896">#15896</a></li>
<li>feat(document+model): pass options to pre('deleteOne') and
update+options to pre('updateOne') hooks <a
href="https://redirect.github.com/Automattic/mongoose/issues/15908">#15908</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15870">#15870</a></li>
<li>feat(versioning): optimistic concurrency exclude option, update docs
for optimisticConcurrency options <a
href="https://redirect.github.com/Automattic/mongoose/issues/15917">#15917</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15915">#15915</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15912">#15912</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
<li>feat(document): add support for getAtomics() to allow custom
container types to utilize atomics <a
href="https://redirect.github.com/Automattic/mongoose/issues/15817">#15817</a></li>
<li>perf: optimize Object.keys() checks and optional chaining <a
href="https://redirect.github.com/Automattic/mongoose/issues/15865">#15865</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
<li>fix: add support for typescript style enums <a
href="https://redirect.github.com/Automattic/mongoose/issues/15914">#15914</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15913">#15913</a>
<a href="https://github.com/mjfwebb">mjfwebb</a></li>
<li>fix(document): when cloning a doc with subdocs, make sure the
subdocs parent is the cloned doc <a
href="https://redirect.github.com/Automattic/mongoose/issues/15904">#15904</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15901">#15901</a></li>
<li>types(models): support Mongoose query casting in
AnyBulkWriteOperation filter property <a
href="https://redirect.github.com/Automattic/mongoose/issues/15918">#15918</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15910">#15910</a></li>
<li>types: allow calling create() with TRawDocType for better generics
support <a
href="https://redirect.github.com/Automattic/mongoose/issues/15903">#15903</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15902">#15902</a></li>
<li>types(document): add id virtual getter by default to
HydrateDocument<> if TOverrides is Record<string, never> <a
href="https://redirect.github.com/Automattic/mongoose/issues/15906">#15906</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15900">#15900</a></li>
<li>docs(schema): add lean to list of schema options <a
href="https://redirect.github.com/Automattic/mongoose/issues/15907">#15907</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15894">#15894</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/12081">#12081</a></li>
</ul>
<h1>8.21.0 / 2025-12-29</h1>
<ul>
<li>feat(document+model): pass options to pre('deleteOne') and
update+options to pre('updateOne') hooks <a
href="https://redirect.github.com/Automattic/mongoose/issues/15908">#15908</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15870">#15870</a></li>
<li>feat(document): add support for getAtomics() to allow custom
container types to utilize atomics <a
href="https://redirect.github.com/Automattic/mongoose/issues/15817">#15817</a></li>
<li>fix: add support for typescript style enums <a
href="https://redirect.github.com/Automattic/mongoose/issues/15914">#15914</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15913">#15913</a>
<a href="https://github.com/mjfwebb">mjfwebb</a></li>
</ul>
<h1>8.20.4 / 2025-12-18</h1>
<ul>
<li>fix(model): ensure $isDeleted is set after calling doc.deleteOne()
successfully <a
href="https://redirect.github.com/Automattic/mongoose/issues/15898">#15898</a></li>
<li>fix(document): use bitwise OR to accumulate version mode flags <a
href="https://redirect.github.com/Automattic/mongoose/issues/15893">#15893</a>
<a
href="https://redirect.github.com/Automattic/mongoose/issues/15888">#15888</a>
<a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Automattic/mongoose/commit/9949bdbf701ebebccf5c38403904fd029d670304"><code>9949bdb</code></a>
chore: release 9.1.4</li>
<li><a
href="https://github.com/Automattic/mongoose/commit/7eefe8eb4fe44f80caa763494339ea8e6bce8bb4"><code>7eefe8e</code></a>
Merge pull request <a
href="https://redirect.github.com/Automattic/mongoose/issues/15963">#15963</a>
from Automattic/vkarpov15/<a
href="https://redirect.github.com/Automattic/mongoose/issues/15952">gh-15952</a></li>
<li><a
href="https://github.com/Automattic/mongoose/commit/4ebf0dc068f833859bd15c03d8e7494d26e20ee5"><code>4ebf0dc</code></a>
Update docs/typescript/virtuals.md</li>
<li><a
href="https://github.com/Automattic/mongoose/commit/9a9396867d84d268eeafbd1dc5e37711fe2475b7"><code>9a93968</code></a>
Merge pull request <a
href="https://redirect.github.com/Automattic/mongoose/issues/15964">#15964</a>
from Automattic/vkarpov15/<a
href="https://redirect.github.com/Automattic/mongoose/issues/15956">gh-15956</a></li>
<li><a
href="https://github.com/Automattic/mongoose/commit/5a84e483d328be0a1325993c74933d984ea507a0"><code>5a84e48</code></a>
fix(model): make hydrate() handle nested schema arrays</li>
<li><a
href="https://github.com/Automattic/mongoose/commit/522fb8a607b0a6ebc6304f9d98944a2d640cfbc3"><code>522fb8a</code></a>
Merge pull request <a
href="https://redirect.github.com/Automattic/mongoose/issues/15962">#15962</a>
from som14062005/fix-prototype-getter-issue-15961</li>
<li><a
href="https://github.com/Automattic/mongoose/commit/56abc824fa69cbf625fc4c0e76bbdc8f9822a2e6"><code>56abc82</code></a>
Merge pull request <a
href="https://redirect.github.com/Automattic/mongoose/issues/15958">#15958</a>
from Automattic/fix/clone-edge-cases</li>
<li><a
href="https://github.com/Automattic/mongoose/commit/1b15d528a3270962aace37286a397affd8e20f75"><code>1b15d52</code></a>
clean up trailing whitespace</li>
<li><a
href="https://github.com/Automattic/mongoose/commit/2dba115dbd18d7cdb212ee3f0f890f43b93ad782"><code>2dba115</code></a>
clean up trailing whitespace</li>
<li><a
href="https://github.com/Automattic/mongoose/commit/4d93a5c91afe9cc3c0a3391e5f9eceb9965c3939"><code>4d93a5c</code></a>
docs: add another note about schema.virtual()</li>
<li>Additional commits viewable in <a
href="https://github.com/Automattic/mongoose/compare/9.0.2...9.1.4">compare
view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by [GitHub Actions](<a
href="https://www.npmjs.com/~GitHub">https://www.npmjs.com/~GitHub</a>
Actions), a new releaser for mongoose since your current version.</p>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
</details>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christopher Ward <cdurianward@gmail.com>1 parent 8f1708a commit c46a33c
2 files changed
+11
-11
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments