Bump mongoose from 8.0.2 to 8.0.4 #121

Closed
dependabot[bot] wants to merge 1 commits from dependabot/npm_and_yarn/mongoose-8.0.4 into main
dependabot[bot] commented 2024-01-15 08:14:56 -08:00 (Migrated from github.com)

Bumps mongoose from 8.0.2 to 8.0.4.

Release notes

Sourced from mongoose's releases.

8.0.4 / 2024-01-08

  • fix(update): set CastError path to full path if casting update fails #14161 #14114
  • fix: cast error when there is an elemMatch in the and clause #14171 tosaka-n
  • fix: allow defining index on base model that applies to all discriminators #14176 peplin
  • fix(model): deep clone bulkWrite() updateOne arguments to avoid mutating documents in update #14197 #14164
  • fix(populate): handle deselecting _id with array of fields in populate() #14242 #14231
  • types(model+query): use stricter typings for updateX(), replaceOne(),deleteX() Model functions #14228 #14204
  • types: fix return types for findByIdAndDelete overrides #14196 #14190
  • types(schema): add missing omit() method #14235 amitbeck
  • types(model): add missing strict property to bulkWrite() top level options #14239
  • docs(compatibility): add note that Mongoose 5.13 is fully compatible with MongoDB server 5 #14230 #14149
  • docs: add shared schemas guide #14211
  • docs: update TLS/SSL guide for Mongoose v8 - MongoDB v6 driver deprecations #14170 andylwelch
  • docs: update findOneAndUpdate tutorial to use includeResultMetadata #14208 #14207
  • docs: clarify disabling _id on subdocs #14195 #14194

8.0.3 / 2023-12-07

  • fix(schema): avoid creating unnecessary clone of schematype in nested array so nested document arrays use correct constructor #14128 #14101
  • docs(connections): add example of registering connection event handlers #14150
  • docs(populate): add example of using refPath and ref functions #14133 #13834
  • types: handle using BigInt global class in schema definitions #14160 #14147
  • types: make findOneAndDelete() without options return result doc, not ModifyResult #14153 #14130
  • types(model): add no-generic override for insertMany() with options #14152 #13999
  • types: add missing Type for applyDefaults #14159 jaypea
Changelog

Sourced from mongoose's changelog.

8.0.4 / 2024-01-08

  • fix(update): set CastError path to full path if casting update fails #14161 #14114
  • fix: cast error when there is an elemMatch in the and clause #14171 tosaka-n
  • fix: allow defining index on base model that applies to all discriminators #14176 peplin
  • fix(model): deep clone bulkWrite() updateOne arguments to avoid mutating documents in update #14197 #14164
  • fix(populate): handle deselecting _id with array of fields in populate() #14242 #14231
  • types(model+query): use stricter typings for updateX(), replaceOne(),deleteX() Model functions #14228 #14204
  • types: fix return types for findByIdAndDelete overrides #14196 #14190
  • types(schema): add missing omit() method #14235 amitbeck
  • types(model): add missing strict property to bulkWrite() top level options #14239
  • docs(compatibility): add note that Mongoose 5.13 is fully compatible with MongoDB server 5 #14230 #14149
  • docs: add shared schemas guide #14211
  • docs: update TLS/SSL guide for Mongoose v8 - MongoDB v6 driver deprecations #14170 andylwelch
  • docs: update findOneAndUpdate tutorial to use includeResultMetadata #14208 #14207
  • docs: clarify disabling _id on subdocs #14195 #14194

7.6.8 / 2024-01-08

  • perf(schema): remove unnecessary lookahead in numeric subpath check
  • fix(discriminator): handle reusing schema with embedded discriminators defined using Schema.prototype.discriminator #14202 #14162
  • fix(ChangeStream): avoid suppressing errors in closed change stream #14206 #14177

6.12.5 / 2024-01-03

  • perf(schema): remove unnecessary lookahead in numeric subpath check
  • fix(document): allow setting nested path to null #14226
  • fix(document): avoid flattening dotted paths in mixed path underneath nested path #14198 #14178
  • fix: add ignoreAtomics option to isModified() for better backwards compatibility with Mongoose 5 #14213

6.12.4 / 2023-12-27

  • fix: upgrade mongodb driver -> 4.17.2
  • fix(document): avoid treating nested projection as inclusive when applying defaults #14173 #14115
  • fix: account for null values when assigning isNew property #14172 #13883

8.0.3 / 2023-12-07

  • fix(schema): avoid creating unnecessary clone of schematype in nested array so nested document arrays use correct constructor #14128 #14101
  • docs(connections): add example of registering connection event handlers #14150
  • docs(populate): add example of using refPath and ref functions #14133 #13834
  • types: handle using BigInt global class in schema definitions #14160 #14147
  • types: make findOneAndDelete() without options return result doc, not ModifyResult #14153 #14130
  • types(model): add no-generic override for insertMany() with options #14152 #13999
  • types: add missing Type for applyDefaults #14159 jaypea

7.6.7 / 2023-12-06

  • fix: avoid minimizing single nested subdocs if they are required #14151 #14058
  • fix(populate): allow deselecting discriminator key when populating #14155 #3230

... (truncated)

Commits

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.0.2 to 8.0.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>8.0.4 / 2024-01-08</h1> <ul> <li>fix(update): set CastError path to full path if casting update fails <a href="https://redirect.github.com/Automattic/mongoose/issues/14161">#14161</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14114">#14114</a></li> <li>fix: cast error when there is an elemMatch in the and clause <a href="https://redirect.github.com/Automattic/mongoose/issues/14171">#14171</a> <a href="https://github.com/tosaka-n">tosaka-n</a></li> <li>fix: allow defining index on base model that applies to all discriminators <a href="https://redirect.github.com/Automattic/mongoose/issues/14176">#14176</a> <a href="https://github.com/peplin">peplin</a></li> <li>fix(model): deep clone bulkWrite() updateOne arguments to avoid mutating documents in update <a href="https://redirect.github.com/Automattic/mongoose/issues/14197">#14197</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14164">#14164</a></li> <li>fix(populate): handle deselecting _id with array of fields in populate() <a href="https://redirect.github.com/Automattic/mongoose/issues/14242">#14242</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14231">#14231</a></li> <li>types(model+query): use stricter typings for updateX(), replaceOne(),deleteX() Model functions <a href="https://redirect.github.com/Automattic/mongoose/issues/14228">#14228</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14204">#14204</a></li> <li>types: fix return types for findByIdAndDelete overrides <a href="https://redirect.github.com/Automattic/mongoose/issues/14196">#14196</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14190">#14190</a></li> <li>types(schema): add missing omit() method <a href="https://redirect.github.com/Automattic/mongoose/issues/14235">#14235</a> <a href="https://github.com/amitbeck">amitbeck</a></li> <li>types(model): add missing strict property to bulkWrite() top level options <a href="https://redirect.github.com/Automattic/mongoose/issues/14239">#14239</a></li> <li>docs(compatibility): add note that Mongoose 5.13 is fully compatible with MongoDB server 5 <a href="https://redirect.github.com/Automattic/mongoose/issues/14230">#14230</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14149">#14149</a></li> <li>docs: add shared schemas guide <a href="https://redirect.github.com/Automattic/mongoose/issues/14211">#14211</a></li> <li>docs: update TLS/SSL guide for Mongoose v8 - MongoDB v6 driver deprecations <a href="https://redirect.github.com/Automattic/mongoose/issues/14170">#14170</a> <a href="https://github.com/andylwelch">andylwelch</a></li> <li>docs: update findOneAndUpdate tutorial to use includeResultMetadata <a href="https://redirect.github.com/Automattic/mongoose/issues/14208">#14208</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14207">#14207</a></li> <li>docs: clarify disabling _id on subdocs <a href="https://redirect.github.com/Automattic/mongoose/issues/14195">#14195</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14194">#14194</a></li> </ul> <h1>8.0.3 / 2023-12-07</h1> <ul> <li>fix(schema): avoid creating unnecessary clone of schematype in nested array so nested document arrays use correct constructor <a href="https://redirect.github.com/Automattic/mongoose/issues/14128">#14128</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14101">#14101</a></li> <li>docs(connections): add example of registering connection event handlers <a href="https://redirect.github.com/Automattic/mongoose/issues/14150">#14150</a></li> <li>docs(populate): add example of using <code>refPath</code> and <code>ref</code> functions <a href="https://redirect.github.com/Automattic/mongoose/issues/14133">#14133</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/13834">#13834</a></li> <li>types: handle using BigInt global class in schema definitions <a href="https://redirect.github.com/Automattic/mongoose/issues/14160">#14160</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14147">#14147</a></li> <li>types: make findOneAndDelete() without options return result doc, not ModifyResult <a href="https://redirect.github.com/Automattic/mongoose/issues/14153">#14153</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14130">#14130</a></li> <li>types(model): add no-generic override for insertMany() with options <a href="https://redirect.github.com/Automattic/mongoose/issues/14152">#14152</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/13999">#13999</a></li> <li>types: add missing Type for applyDefaults <a href="https://redirect.github.com/Automattic/mongoose/issues/14159">#14159</a> <a href="https://github.com/jaypea">jaypea</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.0.4 / 2024-01-08</h1> <ul> <li>fix(update): set CastError path to full path if casting update fails <a href="https://redirect.github.com/Automattic/mongoose/issues/14161">#14161</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14114">#14114</a></li> <li>fix: cast error when there is an elemMatch in the and clause <a href="https://redirect.github.com/Automattic/mongoose/issues/14171">#14171</a> <a href="https://github.com/tosaka-n">tosaka-n</a></li> <li>fix: allow defining index on base model that applies to all discriminators <a href="https://redirect.github.com/Automattic/mongoose/issues/14176">#14176</a> <a href="https://github.com/peplin">peplin</a></li> <li>fix(model): deep clone bulkWrite() updateOne arguments to avoid mutating documents in update <a href="https://redirect.github.com/Automattic/mongoose/issues/14197">#14197</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14164">#14164</a></li> <li>fix(populate): handle deselecting _id with array of fields in populate() <a href="https://redirect.github.com/Automattic/mongoose/issues/14242">#14242</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14231">#14231</a></li> <li>types(model+query): use stricter typings for updateX(), replaceOne(),deleteX() Model functions <a href="https://redirect.github.com/Automattic/mongoose/issues/14228">#14228</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14204">#14204</a></li> <li>types: fix return types for findByIdAndDelete overrides <a href="https://redirect.github.com/Automattic/mongoose/issues/14196">#14196</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14190">#14190</a></li> <li>types(schema): add missing omit() method <a href="https://redirect.github.com/Automattic/mongoose/issues/14235">#14235</a> <a href="https://github.com/amitbeck">amitbeck</a></li> <li>types(model): add missing strict property to bulkWrite() top level options <a href="https://redirect.github.com/Automattic/mongoose/issues/14239">#14239</a></li> <li>docs(compatibility): add note that Mongoose 5.13 is fully compatible with MongoDB server 5 <a href="https://redirect.github.com/Automattic/mongoose/issues/14230">#14230</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14149">#14149</a></li> <li>docs: add shared schemas guide <a href="https://redirect.github.com/Automattic/mongoose/issues/14211">#14211</a></li> <li>docs: update TLS/SSL guide for Mongoose v8 - MongoDB v6 driver deprecations <a href="https://redirect.github.com/Automattic/mongoose/issues/14170">#14170</a> <a href="https://github.com/andylwelch">andylwelch</a></li> <li>docs: update findOneAndUpdate tutorial to use includeResultMetadata <a href="https://redirect.github.com/Automattic/mongoose/issues/14208">#14208</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14207">#14207</a></li> <li>docs: clarify disabling _id on subdocs <a href="https://redirect.github.com/Automattic/mongoose/issues/14195">#14195</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14194">#14194</a></li> </ul> <h1>7.6.8 / 2024-01-08</h1> <ul> <li>perf(schema): remove unnecessary lookahead in numeric subpath check</li> <li>fix(discriminator): handle reusing schema with embedded discriminators defined using Schema.prototype.discriminator <a href="https://redirect.github.com/Automattic/mongoose/issues/14202">#14202</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14162">#14162</a></li> <li>fix(ChangeStream): avoid suppressing errors in closed change stream <a href="https://redirect.github.com/Automattic/mongoose/issues/14206">#14206</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14177">#14177</a></li> </ul> <h1>6.12.5 / 2024-01-03</h1> <ul> <li>perf(schema): remove unnecessary lookahead in numeric subpath check</li> <li>fix(document): allow setting nested path to null <a href="https://redirect.github.com/Automattic/mongoose/issues/14226">#14226</a></li> <li>fix(document): avoid flattening dotted paths in mixed path underneath nested path <a href="https://redirect.github.com/Automattic/mongoose/issues/14198">#14198</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14178">#14178</a></li> <li>fix: add ignoreAtomics option to isModified() for better backwards compatibility with Mongoose 5 <a href="https://redirect.github.com/Automattic/mongoose/issues/14213">#14213</a></li> </ul> <h1>6.12.4 / 2023-12-27</h1> <ul> <li>fix: upgrade mongodb driver -&gt; 4.17.2</li> <li>fix(document): avoid treating nested projection as inclusive when applying defaults <a href="https://redirect.github.com/Automattic/mongoose/issues/14173">#14173</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14115">#14115</a></li> <li>fix: account for null values when assigning isNew property <a href="https://redirect.github.com/Automattic/mongoose/issues/14172">#14172</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/13883">#13883</a></li> </ul> <h1>8.0.3 / 2023-12-07</h1> <ul> <li>fix(schema): avoid creating unnecessary clone of schematype in nested array so nested document arrays use correct constructor <a href="https://redirect.github.com/Automattic/mongoose/issues/14128">#14128</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14101">#14101</a></li> <li>docs(connections): add example of registering connection event handlers <a href="https://redirect.github.com/Automattic/mongoose/issues/14150">#14150</a></li> <li>docs(populate): add example of using <code>refPath</code> and <code>ref</code> functions <a href="https://redirect.github.com/Automattic/mongoose/issues/14133">#14133</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/13834">#13834</a></li> <li>types: handle using BigInt global class in schema definitions <a href="https://redirect.github.com/Automattic/mongoose/issues/14160">#14160</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14147">#14147</a></li> <li>types: make findOneAndDelete() without options return result doc, not ModifyResult <a href="https://redirect.github.com/Automattic/mongoose/issues/14153">#14153</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14130">#14130</a></li> <li>types(model): add no-generic override for insertMany() with options <a href="https://redirect.github.com/Automattic/mongoose/issues/14152">#14152</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/13999">#13999</a></li> <li>types: add missing Type for applyDefaults <a href="https://redirect.github.com/Automattic/mongoose/issues/14159">#14159</a> <a href="https://github.com/jaypea">jaypea</a></li> </ul> <h1>7.6.7 / 2023-12-06</h1> <ul> <li>fix: avoid minimizing single nested subdocs if they are required <a href="https://redirect.github.com/Automattic/mongoose/issues/14151">#14151</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/14058">#14058</a></li> <li>fix(populate): allow deselecting discriminator key when populating <a href="https://redirect.github.com/Automattic/mongoose/issues/14155">#14155</a> <a href="https://redirect.github.com/Automattic/mongoose/issues/3230">#3230</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/ec4191ee9c3b641ab4005b119c6949002088bcb1"><code>ec4191e</code></a> chore: release 8.0.4</li> <li><a href="https://github.com/Automattic/mongoose/commit/3bc4482573129a0da6a8a8480ccb06dcf398ee16"><code>3bc4482</code></a> Merge branch '7.x'</li> <li><a href="https://github.com/Automattic/mongoose/commit/2c2377d39b4c08d8887412ba94dafb2fdf2f8193"><code>2c2377d</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14242">#14242</a> from Automattic/vkarpov15/<a href="https://redirect.github.com/Automattic/mongoose/issues/14231">gh-14231</a></li> <li><a href="https://github.com/Automattic/mongoose/commit/ac9af5be89cf190e323ee81f2be49ff5ac754bc5"><code>ac9af5b</code></a> docs: add unnecessary lookahead fix to changelog</li> <li><a href="https://github.com/Automattic/mongoose/commit/6ffb123cc3448cd5aeb9963934d992e6a32f17d6"><code>6ffb123</code></a> chore: release 7.6.8</li> <li><a href="https://github.com/Automattic/mongoose/commit/9b759bc601a8abdab51a7f49446c19c6fdf0b37e"><code>9b759bc</code></a> fix(populate): handle deselecting <code>_id</code> with array of fields in <code>populate()</code></li> <li><a href="https://github.com/Automattic/mongoose/commit/889a41de8b803df5e2395e86f17a1b3db2b4b28a"><code>889a41d</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14240">#14240</a> from Automattic/vkarpov15/<a href="https://redirect.github.com/Automattic/mongoose/issues/14236">gh-14236</a></li> <li><a href="https://github.com/Automattic/mongoose/commit/3d4274ee3c254807e36a872072546abf19b2a88c"><code>3d4274e</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14239">#14239</a> from Automattic/vkarpov15/<a href="https://redirect.github.com/Automattic/mongoose/issues/14234">gh-14234</a></li> <li><a href="https://github.com/Automattic/mongoose/commit/62223bf078cafa169190f68cd2fa1f912e9463fb"><code>62223bf</code></a> Merge pull request <a href="https://redirect.github.com/Automattic/mongoose/issues/14235">#14235</a> from amitbeck/types/schema_omit</li> <li><a href="https://github.com/Automattic/mongoose/commit/3b2a13834a8be0cf4e865b4647e9dfcf0452e38b"><code>3b2a138</code></a> fix(query): avoid double-calling query <code>transform()</code> with <code>findOne()</code></li> <li>Additional commits viewable in <a href="https://github.com/Automattic/mongoose/compare/8.0.2...8.0.4">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.0.2&new-version=8.0.4)](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-01-22 08:58:06 -08:00 (Migrated from github.com)

Superseded by #126.

Superseded by #126.

Pull request closed

Sign in to join this conversation.
No description provided.