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

🚨 [security] Update mongoose 7.2.2 → 7.4.1 (minor) #58

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Jul 25, 2023


Welcome to Depfu 👋

This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.

After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.

Let us know if you have any questions. Thanks so much for giving Depfu a try!



🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ mongoose (7.2.2 → 7.4.1) · Repo · Changelog

Security Advisories 🚨

🚨 Mongoose Prototype Pollution vulnerability

Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.3, 6.11.3, and 5.13.20.

Release Notes

7.4.0

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

7.3.4

7.3.4 / 2023-07-12

  • chore: release 7.4.4 to overwrite accidental publish of 5.13.20 to latest tag

7.3.3

7.3.3 / 2023-07-10

  • fix: avoid prototype pollution on init
  • fix(document): clean up all array subdocument modified paths on save() #13589 #13582
  • types: avoid unnecessary MergeType<> if TOverrides not set, clean up statics and insertMany() type issues #13577 #13529

7.3.2

7.3.2 / 2023-07-06

  • fix(model): avoid TypeError if insertMany() fails with error that does not have writeErrors property #13579 #13531
  • fix(query): convert findOneAndUpdate to findOneAndReplace when overwrite set for backwards compat with Mongoose 6 #13572 #13550
  • fix(query): throw readable error when executing a Query instance without an associated model #13571 #13570
  • types: support mongoose.Schema.ObjectId as alias for mongoose.Schema.Types.ObjectId #13543 #13534
  • docs(connections): clarify that socketTimeoutMS now defaults to 0 #13576 #13537
  • docs(migrating_to_7): add mapReduce() removal to migration guide #13568 #13548
  • docs(schemas): fix typo in schemas.md #13540 Metehan-Altuntekin

7.3.1

7.3.1 / 2023-06-21

  • fix(query): respect query-level strict option on findOneAndReplace() #13516 #13507
  • docs(connections): expand docs on serverSelectionTimeoutMS #13533 #12967
  • docs: add example of accessing save options in pre save #13498
  • docs(connections+faq): add info on localhost vs 127.0.0.1
  • docs(SchemaType): validate members are validator & message (not msg) #13521 lorand-horvath

7.3.0

7.3.0 / 2023-06-14

  • feat: upgrade mongodb -> 5.6.0 #13455 lorand-horvath
  • feat(aggregate): add Aggregate.prototype.finally() to be consistent with Promise API for TypeScript #13509
  • feat(schema): support selecting subset of fields to apply optimistic concurrency to #13506 #10591
  • feat(model): add ordered option to Model.create() #13472 #4038
  • feat(schema): consistently add .get() function to all SchemaType classes
  • feat(populate): pass virtual to match function to allow merging match options #13477 #12443
  • types: allow overwriting Paths in select() to tell TypeScript which fields are projected #13478 #13224
  • types(schema): add validateModifiedOnly as schema option #13503 #10153
  • docs: add note about validateModifiedOnly as a schema option #13503 #10153
  • docs(migrating_to_7): update migrating_to_7.md to include Model.countDocuments #13508 Climax777
  • docs(further_reading): remove style for "img" hasezoey

7.2.4

7.2.4 / 2023-06-12

  • fix(query): handle non-string discriminator key values in query #13496 #13492

7.2.3

7.2.3 / 2023-06-09

  • fix(model): ignore falsy last argument to create() for backwards compatibility #13493 #13491 #13487 MohOraby
  • types: remove generic param that's causing issues for typegoose #13494 #13482
  • types(aggregate): allow object syntax for $mergeObjects #13470 #13060
  • docs(connection): clarify how Connection.prototype.destroy() is different from close() #13475
  • docs(populate): fix accidental removal of text #13480
  • docs: add additional notes for Atlas X.509 authentication #13452 alexbevi
  • docs(populate): add a little more info on why we recommend using ObjectId for _id #13474 #13400

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


👉 No CI detected

You don't seem to have any Continuous Integration service set up!

Without a service that will test the Depfu branches and pull requests, we can't inform you if incoming updates actually work with your app. We think that this degrades the service we're trying to provide down to a point where it is more or less meaningless.

This is fine if you just want to give Depfu a quick try. If you want to really let Depfu help you keep your app up-to-date, we recommend setting up a CI system:

* [Circle CI](https://circleci.com), [Semaphore ](https://semaphoreci.com) and [Github Actions](https://docs.github.com/actions) are all excellent options. * If you use something like Jenkins, make sure that you're using the Github integration correctly so that it reports status data back to Github. * If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with `depfu/`.

Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Jul 25, 2023
@apicgg apicgg merged commit 7ed809a into main Jul 25, 2023
@depfu depfu bot deleted the depfu/update/npm/mongoose-7.4.1 branch July 25, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant