Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade mongoose from 7.4.3 to 7.5.1 #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

briFr33
Copy link
Collaborator

@briFr33 briFr33 commented Oct 4, 2023

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.3 to 7.5.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 4 versions ahead of your current version.
  • The recommended version was released 23 days ago, on 2023-09-11.

The recommended version fixes:

Severity Issue PriorityScore (*) Exploit Maturity
Information Exposure
SNYK-JS-MONGODB-5871303
424/1000
Why? Has a fix available, CVSS 4.2
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Release notes
Package name: mongoose
  • 7.5.1 - 2023-09-11

    7.5.1 / 2023-09-11

    • fix: set default value for _update when no update object is provided and versionKey is set to false #13795 #13783 MohOraby
    • fix: avoid unexpected error when accessing null array element on discriminator array when populating #13716 ZSabakh
    • types(schematypes): use DocType for instance method this #13822 #13800 pshaddel
    • types: remove duplicated 'exists' method in Model interface in models.d.ts #13818 ohzeno
    • docs(model): replace outdated docs on deprecated findOneAndUpdate() overwrite option #13821 #13715
    • docs: add example of using virtuals.pathsToSkip option for toObject() and toJSON() #13798 RobertHunter-Pluto
  • 7.5.0 - 2023-08-29

    7.5.0 / 2023-08-29

    • feat: use mongodb driver v5.18.1
    • feat: allow top level dollar keys with findOneAndUpdate(), update() for MongoDB 5 #13786
    • fix(document): make array getters avoid unintentionally modifying array, defer getters until index access instead #13774
    • feat: deprecate overwrite option for findOneAndUpdate() #13578
    • feat: add pathsToSkip option for Model.validate #13663 #10353
    • feat: support alias when declaring index #13659 #13276
    • fix(query): remove unnecessary check for atomic operators in findOneAndReplace() #13678
    • types: add SearchMeta Interface for Atlas Search #13792 mreouven
    • types(schematypes): add missing BigInt SchemaType #13787
  • 7.4.5 - 2023-08-25

    7.4.5 / 2023-08-25

    • fix(debug): avoid putting virtuals and getters in debug output #13778
    • fix(model): make Model.bulkWrite() with empty array and ordered false not throw an error #13664
    • fix(document): correctly handle inclusive/exclusive projections when applying subdocument defaults #13763 #13720
  • 7.4.4 - 2023-08-22

    7.4.4 / 2023-08-22

    • fix(connection): reset document state in between transaction retries #13726 #13698
    • fix(cursor): bubble up resumeTokenChanged event from change streams #13736 #13607
    • fix(query+populate): add refPath to projection by default, unless explicitly excluded #13758
    • fix(schema): support 'ascending', 'asc', 'descending', 'desc' for index direction #13761 #13725
    • fix(ChangeStream): add _bindEvents to addListener function for observable support #13759 yury-ivaniutsenka
    • types: infer return type when using get(), markModified(), etc. with known property name literal #13739 maybesmurf
    • types: add missing typings for option includeResultMetadata #13747 #13746 Idnan
    • types: export InferSchemaType #13737
    • docs(middleware): clarify that query middleware applies to document by default #13734 #13713
    • docs: add brief note on TypeScript generic usage for embedded discriminator path() calls #13728 #10435
    • docs: link v7 migration guide #13742 Cooldogyum
    • docs(migrating_to_6): add note about incompatible packages #13733
  • 7.4.3 - 2023-08-11

    7.4.3 / 2023-08-11

    • fix: avoid applying map property getters when saving #13704 #13657
    • fix(query): allow deselecting discriminator key #13722 #13679
    • types(models+query): return lean type when passing QueryOptions with lean: true to relevant model functions like find() and findOne() #13721 #13705
    • types(schema): correct return type for Schema.prototype.indexes() #13718 #13702
    • types: allow accessing options from pre middleware #13708 #13633
    • types: add UpdateQueryKnownOnly type for stricter UpdateQuery type checking #13699 #13630
    • types(schema): support required: { isRequired: true } syntax in schema definition #13680
    • docs(middleware): clarify that doc.deleteOne() doesn't run query middleware currently #13707 #13669
from mongoose GitHub release notes
Commit messages
Package name: mongoose
  • 91bd797 chore: release 7.5.1
  • f552fe2 Merge pull request #13842 from Automattic/vkarpov15/gh-13839
  • e42aaaf style: fix lint
  • 41de90c Merge pull request #13716 from Hajjiri/discriminator-update-fix
  • 8df3699 Merge pull request #13822 from pshaddel/master
  • 78bca70 test: add test case for #13839
  • 0c694ed Merge pull request #13839 from ZSabakh/patch-1
  • fbc01b8 Fixed exception where a null element within an array would be attempted to be populated.
  • 5eb374d Merge pull request #13821 from Automattic/vkarpov15/gh-13715
  • 63a7fc8 fix: lint
  • 8debef7 check types of fields individually in the test
  • 62a61d6 use THydratedDocumentType type for this in instance methods
  • ae06619 types(schematypes): use DocType for method this
  • 4ec1bc0 docs(model): replace outdated docs on deprecated `findOneAndUpdate()` `overwrite` option
  • f6511c0 Merge pull request #13812 from Automattic/dependabot/npm_and_yarn/master/markdownlint-cli2-0.9.2
  • 0fd0e3f Merge pull request #13811 from Automattic/dependabot/npm_and_yarn/master/mongodb-memory-server-8.15.1
  • 38e5080 Merge pull request #13801 from hasezoey/testCIColor
  • 1d303c8 Merge pull request #13804 from Automattic/dependabot/npm_and_yarn/master/babel/preset-env-7.22.14
  • 0a2f523 Merge pull request #13808 from Automattic/dependabot/npm_and_yarn/master/tsd-0.29.0
  • 5cfacc4 fix: remove duplicated 'exists' method in Model interface in models.d.ts (#13818)
  • d41b543 chore(deps-dev): bump @ babel/preset-env from 7.22.9 to 7.22.14
  • 7954528 chore(deps-dev): bump tsd from 0.28.1 to 0.29.0
  • 17a0cfe Merge pull request #13806 from Automattic/dependabot/npm_and_yarn/master/babel/core-7.22.11
  • 52ba5d8 Merge pull request #13807 from Automattic/dependabot/npm_and_yarn/master/typescript-5.2.2

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants