dependabot[bot] opened a new pull request, #21: URL: https://github.com/apache/casbin-node-casbin-mongo-changestream-watcher/pull/21
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.19.3 to 8.23.1. <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>8.23.1 / 2026-04-23</h1> <ul> <li>fix(model): support sort option in Model.bulkWrite() updateOne and replaceOne operations <a href="https://redirect.github.com/Automattic/mongoose/issues/16091">#16091</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/16079">#16079</a></li> <li>fix(setDefaultsOnInsert): check child filter paths before applying defaults (backport <a href="https://redirect.github.com/Automattic/mongoose/issues/16031">#16031</a> to 8.x) <a href="https://redirect.github.com/Automattic/mongoose/issues/16219">#16219</a> <a href="https://github.com/marklai1998">marklai1998</a></li> <li>fix(schema): always pass raw string value to error validators, only trim to 30 chars for maxlength validator <a href="https://redirect.github.com/Automattic/mongoose/issues/16238">#16238</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/16236">#16236</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15550">#15550</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15571">#15571</a></li> </ul> <h1>8.23.0 / 2026-02-09</h1> <ul> <li>feat(document): add flattenUUIDs option to toObject() and toJSON() (backport <a href="https://redirect.github.com/Automattic/mongoose/issues/15021">#15021</a> to 8.x)</li> </ul> <h1>8.22.1 / 2025-02-04</h1> <ul> <li>fix: handle other top-level query operators in sanitizeFilter</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/15910">#15910</a></li> <li>types: add toBSON() to documents <a href="https://redirect.github.com/Automattic/mongoose/issues/15927">#15927</a></li> </ul> <h1>8.22.0 / 2026-01-27</h1> <ul> <li>feat(model): allow passing strict option to hydrate() <a href="https://redirect.github.com/Automattic/mongoose/issues/15944">#15944</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15940">#15940</a></li> </ul> <h2>8.21.1</h2> <ul> <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://github.com/AbdelrahmanHafez">AbdelrahmanHafez</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>fix: respect currentTime schema option in bulkWrite updates <a href="https://redirect.github.com/Automattic/mongoose/issues/15976">#15976</a> <a href="https://github.com/sderrow">sderrow</a></li> <li>types(models): support Mongoose query casting in AnyBulkWriteOperation filter property <a href="https://redirect.github.com/Automattic/mongoose/issues/15910">#15910</a></li> <li>types: add toBSON() to documents <a href="https://redirect.github.com/Automattic/mongoose/issues/15927">#15927</a></li> </ul> <h1>8.21.0 / 2025-12-29</h1> <ul> <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>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>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> <h1>8.20.3 / 2025-12-15</h1> <ul> <li>perf: use Object.hasOwn instead of Object#hasOwnProperty <a href="https://redirect.github.com/Automattic/mongoose/issues/15875">#15875</a> <a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li> <li>fix: improve error when calling Document.prototype.init() with null/undefined <a href="https://redirect.github.com/Automattic/mongoose/issues/15812">#15812</a> <a href="https://github.com/Vegapunk-debug">Vegapunk-debug</a></li> <li>types(schema): avoid treating paths with default: null as required <a href="https://redirect.github.com/Automattic/mongoose/issues/15889">#15889</a></li> <li>types(schema): allow partial statics to schema.statics() <a href="https://redirect.github.com/Automattic/mongoose/issues/15780">#15780</a></li> </ul> <h1>8.20.2 / 2025-12-05</h1> <ul> <li>fix(model): bump version if necessary after successful bulkSave() <a href="https://redirect.github.com/Automattic/mongoose/issues/15809">#15809</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15800">#15800</a></li> <li>fix(bulkWrite): pass overwriteImmutable option to castUpdate fixes <a href="https://redirect.github.com/Automattic/mongoose/issues/15789">#15789</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15782">#15782</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15781">#15781</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Automattic/mongoose/blob/8.23.1/CHANGELOG.md">mongoose's changelog</a>.</em></p> <blockquote> <h1>8.23.1 / 2026-04-23</h1> <ul> <li>fix(model): support sort option in Model.bulkWrite() updateOne and replaceOne operations <a href="https://redirect.github.com/Automattic/mongoose/issues/16091">#16091</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/16079">#16079</a></li> <li>fix(setDefaultsOnInsert): check child filter paths before applying defaults (backport <a href="https://redirect.github.com/Automattic/mongoose/issues/16031">#16031</a> to 8.x) <a href="https://redirect.github.com/Automattic/mongoose/issues/16219">#16219</a> <a href="https://github.com/marklai1998">marklai1998</a></li> <li>fix(schema): always pass raw string value to error validators, only trim to 30 chars for maxlength validator <a href="https://redirect.github.com/Automattic/mongoose/issues/16238">#16238</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/16236">#16236</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15550">#15550</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15571">#15571</a></li> </ul> <h1>8.23.0 / 2026-02-09</h1> <ul> <li>feat(document): add flattenUUIDs option to toObject() and toJSON() (backport <a href="https://redirect.github.com/Automattic/mongoose/issues/15021">#15021</a> to 8.x)</li> </ul> <h1>8.22.1 / 2026-02-04</h1> <ul> <li>fix: handle other top-level query operators in sanitizeFilter</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/15910">#15910</a></li> <li>types: add toBSON() to documents <a href="https://redirect.github.com/Automattic/mongoose/issues/15927">#15927</a></li> </ul> <h1>7.8.9 / 2026-02-04</h1> <ul> <li>fix: handle other top-level query operators in sanitizeFilter</li> </ul> <h1>8.22.0 / 2026-01-27</h1> <ul> <li>feat(model): allow passing strict option to hydrate() <a href="https://redirect.github.com/Automattic/mongoose/issues/15944">#15944</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/15940">#15940</a></li> </ul> <h1>8.21.1 / 2026-01-23</h1> <ul> <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://github.com/AbdelrahmanHafez">AbdelrahmanHafez</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>fix: respect currentTime schema option in bulkWrite updates <a href="https://redirect.github.com/Automattic/mongoose/issues/15976">#15976</a> <a href="https://github.com/sderrow">sderrow</a></li> <li>types(models): support Mongoose query casting in AnyBulkWriteOperation filter property <a href="https://redirect.github.com/Automattic/mongoose/issues/15910">#15910</a></li> <li>types: add toBSON() to documents <a href="https://redirect.github.com/Automattic/mongoose/issues/15927">#15927</a></li> </ul> <h1>8.21.0 / 2025-12-29</h1> <ul> <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>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>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> <h1>8.20.3 / 2025-12-15</h1> <ul> <li>perf: use Object.hasOwn instead of Object#hasOwnProperty <a href="https://redirect.github.com/Automattic/mongoose/issues/15875">#15875</a> <a href="https://github.com/AbdelrahmanHafez">AbdelrahmanHafez</a></li> <li>fix: improve error when calling Document.prototype.init() with null/undefined <a href="https://redirect.github.com/Automattic/mongoose/issues/15812">#15812</a> <a href="https://github.com/Vegapunk-debug">Vegapunk-debug</a></li> <li>types(schema): avoid treating paths with default: null as required <a href="https://redirect.github.com/Automattic/mongoose/issues/15889">#15889</a></li> <li>types(schema): allow partial statics to schema.statics() <a href="https://redirect.github.com/Automattic/mongoose/issues/15780">#15780</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Automattic/mongoose/commit/2302290b8084a2986cdca0a89f59413f559da7b4"><code>2302290</code></a> chore: release 8.23.1</li> <li><a href="https://github.com/Automattic/mongoose/commit/03224e1d52d2ac2ff4080eb2931fc523d0cf56e1"><code>03224e1</code></a> Merge branch '8.23' into 8.x</li> <li><a href="https://github.com/Automattic/mongoose/commit/d8a0dba19997d74838e86ca2056153c24ba91599"><code>d8a0dba</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/16219">#16219</a> from marklai1998/fix/set-default-on-insert</li> <li><a href="https://github.com/Automattic/mongoose/commit/86037f329ba988d43e56d8309f7b8a21b5633065"><code>86037f3</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/16238">#16238</a> from Automattic/vkarpov15/<a href="https://redirect.github.com/Automattic/mongoose/issues/16236">gh-16236</a></li> <li><a href="https://github.com/Automattic/mongoose/commit/634e9e25fc0fa934ff3df978508fa15cf17515f2"><code>634e9e2</code></a> Potential fix for pull request finding</li> <li><a href="https://github.com/Automattic/mongoose/commit/dee02943fe8dd96d6c1e7da5d8c380ed8c5544cb"><code>dee0294</code></a> fix(schema): always pass raw string value to error validators, only trim to 3...</li> <li><a href="https://github.com/Automattic/mongoose/commit/55c5cd127886d6b2b066b756a0382b20c1f95f2a"><code>55c5cd1</code></a> chore: empty commit to retrigger CI</li> <li><a href="https://github.com/Automattic/mongoose/commit/9ddf06f4879fd1f3e393f16a2506a864f40a0288"><code>9ddf06f</code></a> chore: fix lint error</li> <li><a href="https://github.com/Automattic/mongoose/commit/6e5db6fc6f94ba30e2c995570f458eac76fe479e"><code>6e5db6f</code></a> fix(setDefaultsOnInsert): check child filter paths before applying defaults</li> <li><a href="https://github.com/Automattic/mongoose/commit/7db8ab7806b0443b03a1f44b215d5640a5d49edb"><code>7db8ab7</code></a> Fix Model.bulkWrite sorting in 8.x (<a href="https://redirect.github.com/Automattic/mongoose/issues/16091">#16091</a>)</li> <li>Additional commits viewable in <a href="https://github.com/Automattic/mongoose/compare/8.19.3...8.23.1">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by <a href="https://www.npmjs.com/~GitHub%20Actions">GitHub Actions</a>, 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 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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/apache/casbin-node-casbin-mongo-changestream-watcher/network/alerts). </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
