Skip to content

[Snyk] Upgrade mongoose from 7.4.0 to 7.4.1

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


Snyk has created this PR to upgrade mongoose from 7.4.0 to 7.4.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 1 version ahead of your current version.
  • The recommended version was released 21 days ago, on 2023-07-24.
Release notes
Package name: mongoose
  • 7.4.1 - 2023-07-24

    7.4.1 / 2023-07-24

    • fix(document): correctly clean up nested subdocs modified state on save() #13644 #13609
    • fix(schema): avoid propagating toObject.transform and toJSON.transform option to implicitly created schemas #13634 #13599
    • fix: prevent schema options overwriting user defined writeConcern #13612 #13592
    • types: correctly handle pre('deleteOne', { document: true }) #13632
    • types(schema): handle type: Schema.Types.Map in TypeScript #13628
    • types: Add inline comment to to tell the default value of the runValidator flag in the queryOptions types #13636 omran95
    • docs: rework several code examples that still use callbacks #13635 #13616
    • docs: remove callbacks from validation description #13638 #13501
  • 7.4.0 - 2023-07-18

    7.4.0 / 2023-07-18

    • perf: speed up mapOfSubdocs benchmark by 4x by avoiding unnecessary O(n^2) loop in getPathsToValidate() #13614
    • feat: upgrade to MongoDB Node.js driver 5.7.0 #13591
    • feat: support generating custom cast error message with a function #13608 #3162
    • feat(query): support MongoDB driver's includeResultMetadata option for findOneAndUpdate #13584 #13539
    • feat(connection): add Connection.prototype.removeDb() for removing a related connection #13580 #11821
    • feat(query): delay converting documents into POJOs until query execution, allow querying subdocuments with defaults disabled #13522
    • feat(model): add option "aggregateErrors" for create() #13544 hasezoey
    • feat(schema): add collectionOptions option to schemas #13513
    • fix: move all MongoDB-specific connection logic into driver layer, add createClient() method to handle creating MongoClient #13542
    • fix(document): allow setting keys with dots in mixed paths underneath nested paths #13536
    • types: augment bson.ObjectId instead of adding on own type #13515 #12537 hasezoey
    • docs(guide): fix md lint #13593 hasezoey
    • docs: changed the code from 'await author.save()' to 'await story1.save()' #13596 SomSingh23
from mongoose GitHub release notes
Commit messages
Package name: mongoose
  • 70fa116 chore: release 7.4.1
  • ae3894c Merge pull request #13644 from Automattic/vkarpov15/gh-13609
  • ec6ecb5 fix(document): clean up all nested subdocs modified state on save
  • c90ac38 fix: avoid applying defaults when casting for $pull() re: #13609
  • faf6bf7 Merge pull request #13636 from omran95/omran95/add-inline-comment-to-runValidators-query-types
  • c44926c Merge pull request #13638 from Automattic/IslandRhythms/gh-13501
  • 2fadab8 Update document.js
  • 70e6a3b fix doc.validate doc
  • e48aa77 Merge pull request #13612 from Automattic/IslandRhythms/gh-13592
  • cdadc2b Update applyWriteConcern.test.js
  • fc0f7c1 Merge pull request #13628 from Automattic/vkarpov15/fix-ts-map-schema-type
  • 49fa3ee Merge pull request #13632 from Automattic/vkarpov15/gh-13601
  • ef95e02 Merge pull request #13634 from Automattic/vkarpov15/gh-13599
  • 2e34c01 Update test/document.test.js
  • 42a268f Update test/document.test.js
  • d246223 Merge pull request #13635 from Automattic/vkarpov15/gh-13616
  • 786a406 Add inline comment to mainly tell the default value of the runValidator option in the QueryOptions interface
  • d37a754 Update docs/middleware.md
  • 31b8522 docs: fix some more examples that still use callbacks re: #13616
  • f018571 docs: rework several code examples that still use callbacks
  • 7e47cca fix(schema): avoid propagating `toObject.transform` and `toJSON.transform` option to implicitly created schemas
  • 690fa2d types: correctly handle `pre('deleteOne', { document: true })`
  • bee086f types(schema): handle `type: Schema.Types.Map` in TypeScript
  • dea8aa6 cleaner solution

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