build(deps): bump mongoose from 8.4.5 to 8.5.2 #495

Closed
dependabot[bot] wants to merge 1 commits from dependabot/npm_and_yarn/mongoose-8.5.2 into main
dependabot[bot] commented 2024-08-05 09:29:16 -07:00 (Migrated from github.com)

Bumps mongoose from 8.4.5 to 8.5.2.

Release notes

Sourced from mongoose's releases.

8.5.2 / 2024-07-30

  • perf(clone): avoid further unnecessary checks if cloning a primitive value #14762 #14394
  • fix: allow setting document array default to null #14769 #14717 #6691
  • fix(model): support session: null option for save() to opt out of automatic session option with transactionAsyncLocalStorage #14744 #14736
  • fix(model+document): avoid depopulating manually populated doc as getter value #14760 #14759
  • fix: correct shardkey access in buildBulkWriteOps #14753 #14752 adf0nt3s
  • fix(query): handle casting $switch in $expr #14755 #14751
  • types: allow calling SchemaType.cast() without parent and init parameters #14756 #14748 #9076
  • docs: fix a wrong example in v6 migration guide #14758 abdelrahman-elkady

8.5.1 / 2024-07-12

  • perf(model): performance improvements for insertMany() #14724
  • fix(model): avoid leaving subdoc defaults on top-level doc when setting subdocument to same value #14728 #14722
  • fix(model): handle transactionAsyncLocalStorage option with insertMany() #14743
  • types: make _id required on Document type #14735 #14660
  • types: fix ChangeStream.close to return a Promise like the driver #14740 orgads

8.5.0 / 2024-07-08

  • perf: memoize toJSON / toObject default options #14672
  • feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() #14699 #14268
  • feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema #14691
  • feat: allow setting array default value to null #14717 #6691
  • feat(mongoose): allow drivers to set global plugins #14682
  • feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set #14681 #14611
  • fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() #14732 #9885
  • fix(query): remove count() and findOneAndRemove() from query chaining #14692 #14689
  • fix: remove default connection if setting createInitialConnection to false after Mongoose instance created #14679 #8302
  • types(models+query): infer return type from schema for 1-level deep nested paths #14632
  • types(connection): make transaction() return type match the executor function #14661 #14656
  • docs: fix docs links in index.md mirasayon
Changelog

Sourced from mongoose's changelog.

8.5.2 / 2024-07-30

  • perf(clone): avoid further unnecessary checks if cloning a primitive value #14762 #14394
  • fix: allow setting document array default to null #14769 #14717 #6691
  • fix(model): support session: null option for save() to opt out of automatic session option with transactionAsyncLocalStorage #14744 #14736
  • fix(model+document): avoid depopulating manually populated doc as getter value #14760 #14759
  • fix: correct shardkey access in buildBulkWriteOps #14753 #14752 adf0nt3s
  • fix(query): handle casting $switch in $expr #14755 #14751
  • types: allow calling SchemaType.cast() without parent and init parameters #14756 #14748 #9076
  • docs: fix a wrong example in v6 migration guide #14758 abdelrahman-elkady

8.5.1 / 2024-07-12

  • perf(model): performance improvements for insertMany() #14724
  • fix(model): avoid leaving subdoc defaults on top-level doc when setting subdocument to same value #14728 #14722
  • fix(model): handle transactionAsyncLocalStorage option with insertMany() #14743
  • types: make _id required on Document type #14735 #14660
  • types: fix ChangeStream.close to return a Promise like the driver #14740 orgads

8.5.0 / 2024-07-08

  • perf: memoize toJSON / toObject default options #14672
  • feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() #14699 #14268
  • feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema #14691
  • feat: allow setting array default value to null #14717 #6691
  • feat(mongoose): allow drivers to set global plugins #14682
  • feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set #14681 #14611
  • fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() #14732 #9885
  • fix(query): remove count() and findOneAndRemove() from query chaining #14692 #14689
  • fix: remove default connection if setting createInitialConnection to false after Mongoose instance created #14679 #8302
  • types(models+query): infer return type from schema for 1-level deep nested paths #14632
  • types(connection): make transaction() return type match the executor function #14661 #14656
  • docs: fix docs links in index.md mirasayon
Commits
  • 986f5eb chore: release 8.5.2
  • e6918a4 Merge pull request #14769 from Automattic/vkarpov15/gh-6691-2
  • 9a2462c fix: allow setting document array default to null
  • f921c9a Merge pull request #14762 from Automattic/vkarpov15/perf-clone-primitives
  • 93684f8 Merge pull request #14760 from Automattic/vkarpov15/gh-14759
  • 2badd9e Merge pull request #14756 from Automattic/vkarpov15/gh-14748
  • 1ad7531 address code review comments and fix a couple of other spots where we get _id...
  • ad75131 perf(clone): avoid further unnecessary checks if cloning a primitive value
  • b51a730 Merge pull request #14758 from abdelrahman-elkady/patch-1
  • 8be1ae8 Merge pull request #14755 from Automattic/vkarpov15/gh-14751
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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)
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.4.5 to 8.5.2. <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.5.2 / 2024-07-30</h1> <ul> <li>perf(clone): avoid further unnecessary checks if cloning a primitive value <a href="https://redirect.github.com/Automattic/mongoose/issues/14762">#14762</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14394">#14394</a></li> <li>fix: allow setting document array default to null <a href="https://redirect.github.com/Automattic/mongoose/issues/14769">#14769</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14717">#14717</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/6691">#6691</a></li> <li>fix(model): support session: null option for save() to opt out of automatic session option with transactionAsyncLocalStorage <a href="https://redirect.github.com/Automattic/mongoose/issues/14744">#14744</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14736">#14736</a></li> <li>fix(model+document): avoid depopulating manually populated doc as getter value <a href="https://redirect.github.com/Automattic/mongoose/issues/14760">#14760</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14759">#14759</a></li> <li>fix: correct shardkey access in buildBulkWriteOps <a href="https://redirect.github.com/Automattic/mongoose/issues/14753">#14753</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14752">#14752</a> <a href="https://github.com/adf0nt3s">adf0nt3s</a></li> <li>fix(query): handle casting $switch in $expr <a href="https://redirect.github.com/Automattic/mongoose/issues/14755">#14755</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14751">#14751</a></li> <li>types: allow calling SchemaType.cast() without parent and init parameters <a href="https://redirect.github.com/Automattic/mongoose/issues/14756">#14756</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14748">#14748</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/9076">#9076</a></li> <li>docs: fix a wrong example in v6 migration guide <a href="https://redirect.github.com/Automattic/mongoose/issues/14758">#14758</a> <a href="https://github.com/abdelrahman-elkady">abdelrahman-elkady</a></li> </ul> <h1>8.5.1 / 2024-07-12</h1> <ul> <li>perf(model): performance improvements for insertMany() <a href="https://redirect.github.com/Automattic/mongoose/issues/14724">#14724</a></li> <li>fix(model): avoid leaving subdoc defaults on top-level doc when setting subdocument to same value <a href="https://redirect.github.com/Automattic/mongoose/issues/14728">#14728</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14722">#14722</a></li> <li>fix(model): handle transactionAsyncLocalStorage option with insertMany() <a href="https://redirect.github.com/Automattic/mongoose/issues/14743">#14743</a></li> <li>types: make _id required on Document type <a href="https://redirect.github.com/Automattic/mongoose/issues/14735">#14735</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14660">#14660</a></li> <li>types: fix ChangeStream.close to return a Promise<!-- raw HTML omitted --> like the driver <a href="https://redirect.github.com/Automattic/mongoose/issues/14740">#14740</a> <a href="https://github.com/orgads">orgads</a></li> </ul> <h1>8.5.0 / 2024-07-08</h1> <ul> <li>perf: memoize toJSON / toObject default options <a href="https://redirect.github.com/Automattic/mongoose/issues/14672">#14672</a></li> <li>feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() <a href="https://redirect.github.com/Automattic/mongoose/issues/14699">#14699</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14268">#14268</a></li> <li>feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema <a href="https://redirect.github.com/Automattic/mongoose/issues/14691">#14691</a></li> <li>feat: allow setting array default value to null <a href="https://redirect.github.com/Automattic/mongoose/issues/14717">#14717</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/6691">#6691</a></li> <li>feat(mongoose): allow drivers to set global plugins <a href="https://redirect.github.com/Automattic/mongoose/issues/14682">#14682</a></li> <li>feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set <a href="https://redirect.github.com/Automattic/mongoose/issues/14681">#14681</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14611">#14611</a></li> <li>fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() <a href="https://redirect.github.com/Automattic/mongoose/issues/14732">#14732</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/9885">#9885</a></li> <li>fix(query): remove count() and findOneAndRemove() from query chaining <a href="https://redirect.github.com/Automattic/mongoose/issues/14692">#14692</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14689">#14689</a></li> <li>fix: remove default connection if setting createInitialConnection to false after Mongoose instance created <a href="https://redirect.github.com/Automattic/mongoose/issues/14679">#14679</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/8302">#8302</a></li> <li>types(models+query): infer return type from schema for 1-level deep nested paths <a href="https://redirect.github.com/Automattic/mongoose/issues/14632">#14632</a></li> <li>types(connection): make transaction() return type match the executor function <a href="https://redirect.github.com/Automattic/mongoose/issues/14661">#14661</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14656">#14656</a></li> <li>docs: fix docs links in index.md <a href="https://github.com/mirasayon">mirasayon</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>8.5.2 / 2024-07-30</h1> <ul> <li>perf(clone): avoid further unnecessary checks if cloning a primitive value <a href="https://redirect.github.com/Automattic/mongoose/issues/14762">#14762</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14394">#14394</a></li> <li>fix: allow setting document array default to null <a href="https://redirect.github.com/Automattic/mongoose/issues/14769">#14769</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14717">#14717</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/6691">#6691</a></li> <li>fix(model): support session: null option for save() to opt out of automatic session option with transactionAsyncLocalStorage <a href="https://redirect.github.com/Automattic/mongoose/issues/14744">#14744</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14736">#14736</a></li> <li>fix(model+document): avoid depopulating manually populated doc as getter value <a href="https://redirect.github.com/Automattic/mongoose/issues/14760">#14760</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14759">#14759</a></li> <li>fix: correct shardkey access in buildBulkWriteOps <a href="https://redirect.github.com/Automattic/mongoose/issues/14753">#14753</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14752">#14752</a> <a href="https://github.com/adf0nt3s">adf0nt3s</a></li> <li>fix(query): handle casting $switch in $expr <a href="https://redirect.github.com/Automattic/mongoose/issues/14755">#14755</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14751">#14751</a></li> <li>types: allow calling SchemaType.cast() without parent and init parameters <a href="https://redirect.github.com/Automattic/mongoose/issues/14756">#14756</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14748">#14748</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/9076">#9076</a></li> <li>docs: fix a wrong example in v6 migration guide <a href="https://redirect.github.com/Automattic/mongoose/issues/14758">#14758</a> <a href="https://github.com/abdelrahman-elkady">abdelrahman-elkady</a></li> </ul> <h1>8.5.1 / 2024-07-12</h1> <ul> <li>perf(model): performance improvements for insertMany() <a href="https://redirect.github.com/Automattic/mongoose/issues/14724">#14724</a></li> <li>fix(model): avoid leaving subdoc defaults on top-level doc when setting subdocument to same value <a href="https://redirect.github.com/Automattic/mongoose/issues/14728">#14728</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14722">#14722</a></li> <li>fix(model): handle transactionAsyncLocalStorage option with insertMany() <a href="https://redirect.github.com/Automattic/mongoose/issues/14743">#14743</a></li> <li>types: make _id required on Document type <a href="https://redirect.github.com/Automattic/mongoose/issues/14735">#14735</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14660">#14660</a></li> <li>types: fix ChangeStream.close to return a Promise<!-- raw HTML omitted --> like the driver <a href="https://redirect.github.com/Automattic/mongoose/issues/14740">#14740</a> <a href="https://github.com/orgads">orgads</a></li> </ul> <h1>8.5.0 / 2024-07-08</h1> <ul> <li>perf: memoize toJSON / toObject default options <a href="https://redirect.github.com/Automattic/mongoose/issues/14672">#14672</a></li> <li>feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() <a href="https://redirect.github.com/Automattic/mongoose/issues/14699">#14699</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14268">#14268</a></li> <li>feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema <a href="https://redirect.github.com/Automattic/mongoose/issues/14691">#14691</a></li> <li>feat: allow setting array default value to null <a href="https://redirect.github.com/Automattic/mongoose/issues/14717">#14717</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/6691">#6691</a></li> <li>feat(mongoose): allow drivers to set global plugins <a href="https://redirect.github.com/Automattic/mongoose/issues/14682">#14682</a></li> <li>feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set <a href="https://redirect.github.com/Automattic/mongoose/issues/14681">#14681</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14611">#14611</a></li> <li>fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() <a href="https://redirect.github.com/Automattic/mongoose/issues/14732">#14732</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/9885">#9885</a></li> <li>fix(query): remove count() and findOneAndRemove() from query chaining <a href="https://redirect.github.com/Automattic/mongoose/issues/14692">#14692</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14689">#14689</a></li> <li>fix: remove default connection if setting createInitialConnection to false after Mongoose instance created <a href="https://redirect.github.com/Automattic/mongoose/issues/14679">#14679</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/8302">#8302</a></li> <li>types(models+query): infer return type from schema for 1-level deep nested paths <a href="https://redirect.github.com/Automattic/mongoose/issues/14632">#14632</a></li> <li>types(connection): make transaction() return type match the executor function <a href="https://redirect.github.com/Automattic/mongoose/issues/14661">#14661</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14656">#14656</a></li> <li>docs: fix docs links in index.md <a href="https://github.com/mirasayon">mirasayon</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Automattic/mongoose/commit/986f5eb3077120de530d5baea450ce95428f3266"><code>986f5eb</code></a> chore: release 8.5.2</li> <li><a href="https://github.com/Automattic/mongoose/commit/e6918a4aff67f1a6ae9065362707078c43837a4d"><code>e6918a4</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14769">#14769</a> from Automattic/vkarpov15/gh-6691-2</li> <li><a href="https://github.com/Automattic/mongoose/commit/9a2462c81f6fe74d8e3a05a28f5e9fd7227ea48e"><code>9a2462c</code></a> fix: allow setting document array default to <code>null</code></li> <li><a href="https://github.com/Automattic/mongoose/commit/f921c9a13be2299aa0af4c0eced37425073867c5"><code>f921c9a</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14762">#14762</a> from Automattic/vkarpov15/perf-clone-primitives</li> <li><a href="https://github.com/Automattic/mongoose/commit/93684f8d4a20de5057082851d181a2a5273d4da2"><code>93684f8</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14760">#14760</a> from Automattic/vkarpov15/<a href="https://redirect.github.com/Automattic/mongoose/issues/14759">gh-14759</a></li> <li><a href="https://github.com/Automattic/mongoose/commit/2badd9eba01c2eceefdeec412f8952c8c4df410a"><code>2badd9e</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14756">#14756</a> from Automattic/vkarpov15/<a href="https://redirect.github.com/Automattic/mongoose/issues/14748">gh-14748</a></li> <li><a href="https://github.com/Automattic/mongoose/commit/1ad7531bb7b7bacd506f909ff4d3363cca5ed3b2"><code>1ad7531</code></a> address code review comments and fix a couple of other spots where we get _id...</li> <li><a href="https://github.com/Automattic/mongoose/commit/ad75131f80d557ad2e1dbaef6a4eafadd3884082"><code>ad75131</code></a> perf(clone): avoid further unnecessary checks if cloning a primitive value</li> <li><a href="https://github.com/Automattic/mongoose/commit/b51a73027e85821ab12a3d976843eb110db246a3"><code>b51a730</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14758">#14758</a> from abdelrahman-elkady/patch-1</li> <li><a href="https://github.com/Automattic/mongoose/commit/8be1ae8f6522e695c90841985e02d0a8bde08559"><code>8be1ae8</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14755">#14755</a> from Automattic/vkarpov15/<a href="https://redirect.github.com/Automattic/mongoose/issues/14751">gh-14751</a></li> <li>Additional commits viewable in <a href="https://github.com/Automattic/mongoose/compare/8.4.5...8.5.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mongoose&package-manager=npm_and_yarn&previous-version=8.4.5&new-version=8.5.2)](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>
dependabot[bot] commented 2024-08-19 09:39:49 -07:00 (Migrated from github.com)

Superseded by #503.

Superseded by #503.

Pull request closed

Sign in to join this conversation.
No description provided.