Skip to content

[Snyk] Upgrade mongoose from 8.0.0 to 8.1.1

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade mongoose from 8.0.0 to 8.1.1.

Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 6 versions ahead of your current version.
  • The recommended version was released a month ago, on 2024-01-24.
Release notes
Package name: mongoose
  • 8.1.1 - 2024-01-24

    8.1.1 / 2024-01-24

    • fix(model): throw readable error when calling Model() with a string instead of model() #14288 #14281
    • fix(document): handle setting nested path to spread doc with extra properties #14287 #14269
    • types(query): add back context and setDefaultsOnInsert as Mongoose-specific query options #14284 #14282
    • types(query): add missing runValidators back to MongooseQueryOptions #14278 #14275
  • 8.1.0 - 2024-01-16

    8.1.0 / 2024-01-16

    • feat: upgrade MongoDB driver -> 6.3.0 #14241 #14189 #14108 #14104
    • feat: add Atlas search index helpers to Models and Schemas #14251 #14232
    • feat(connection): add listCollections() helper to connections #14257
    • feat(schematype): merge rather than overwrite default schematype validators #14124 #14070
    • feat(types): support type hints in InferSchemaType #14008 JavaScriptBach
  • 8.0.4 - 2024-01-09

    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
  • 8.0.2 - 2023-11-28
  • 8.0.1 - 2023-11-15
  • 8.0.0 - 2023-10-31
from mongoose GitHub release notes
Commit messages
Package name: mongoose
  • 6b3f998 chore: release 8.1.1
  • 0d54bea Merge pull request #14288 from Automattic/vkarpov15/gh-14281
  • 2a7fdef Merge pull request #14287 from Automattic/vkarpov15/gh-14269
  • 59ea552 docs: fix markdown typo, fix #14290
  • a36a180 fix(model): throw readable error when calling `Model()` with a string instead of `model()`
  • 943d6b0 fix(document): handle setting nested path to spread doc with extra properties
  • 880bb2c Merge pull request #14284 from Automattic/vkarpov15/gh-14282
  • fa00898 types(query): add back `context` and `setDefaultsOnInsert` as Mongoose-specific query options
  • 8265b2e Merge pull request #14278 from Automattic/vkarpov15/gh-14275
  • c1905c1 types(query): add missing `runValidators` back to MongooseQueryOptions
  • ebf7d07 chore: release 8.1.0
  • 3165a97 Merge pull request #14260 from Automattic/8.1
  • fd80ad3 Merge branch 'master' into 8.1
  • 3393c96 Merge pull request #14251 from Automattic/vkarpov15/gh-14232
  • dad0da9 Merge pull request #14257 from Automattic/vkarpov15/listcollections
  • 33b3bba types: add tsdoc comments re: code review
  • ab28496 Update lib/schema.js
  • d1e3c81 Update lib/model.js
  • 1eaa2d6 Merge pull request #14255 from monkbroc/patch-2
  • 6c21fcc address code review comments
  • 6c6fb8b feat(connection): add listCollections() helper to connections
  • 420c92d Fix markdown typo introduced in #14230
  • 9ed507a Merge pull request #14252 from Automattic/vkarpov15/gh-14238
  • 024c029 docs(model): remove callback example for `ensureIndexes()`

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Merge request reports

Loading