🚨 [security] Upgrade mongoose: 5.9.27 → 6.5.1 (major) #120
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚨 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 upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ mongoose (5.9.27 → 6.5.1) · Repo · Changelog
Security Advisories 🚨
🚨 Prototype pollution Schema.path in automattic/mongoose
Release Notes
Too many releases to show here. View the full release notes.
Commits
See the full diff on Github. The new version differs by 60 commits:
chore: release 6.5.1
test: fix tests
Merge pull request #12125 from emiljanitzek/feature/model-schema-type
Update index.d.ts
Update connection.d.ts
Merge pull request #12167 from emiljanitzek/feature/bulk-write-types
Merge pull request #12196 from hasezoey/pluginOptions
Merge pull request #12198 from hasezoey/furtherReadingReStyle
Merge branch 'master' of github.com:Automattic/mongoose
fix(types): allow $pull with `_id`
Merge pull request #12153 from hasezoey/addCodeToSidebar
Merge pull request #12152 from hasezoey/addCodeToHeaders
Merge pull request #12200 from hasezoey/updateCompat
fix(schema+timestamps): handle `insertMany()` with timestamps and discriminators
Merge pull request #12193 from Automattic/vkarpov15/gh-12143
fix(types): avoid baffling circular reference when using PopulatedDoc with a bidirectional reference
fix(types): allow using path with $count
docs(compatibility): change to use a table
docs(further_reading): re-style to better format input file and better page
chore(further_reading): remove "border="0"" property from images and use css property instead
docs(further_reading): change first header to be h1
chore(further_reading): fix style
docs(further_reading): update mdn blog post image
Merge pull request #12197 from hasezoey/disableTideliftOnFork
chore(tidelift-alignment): run only in main repository, not in forks
fix(types): add schema plugin option inference
Merge pull request #12186 from Automattic/dependabot/npm_and_yarn/master/babel/core-7.18.10
Merge pull request #12187 from Automattic/dependabot/npm_and_yarn/master/typescript-eslint/parser-5.32.0
Merge pull request #12185 from Automattic/dependabot/npm_and_yarn/master/marked-4.0.18
chore(deps-dev): bump @babel/core from 7.18.6 to 7.18.10
chore(deps-dev): bump @typescript-eslint/parser from 5.30.3 to 5.32.0
chore(deps-dev): bump marked from 4.0.17 to 4.0.18
Merge pull request #12192 from Automattic/dependabot/npm_and_yarn/master/mongodb-memory-server-8.8.0
Merge pull request #12188 from Automattic/dependabot/npm_and_yarn/master/eslint-8.21.0
Merge pull request #12189 from Automattic/dependabot/npm_and_yarn/master/typescript-eslint/eslint-plugin-5.32.0
Merge pull request #12190 from Automattic/dependabot/npm_and_yarn/master/highlight.js-11.6.0
Merge pull request #12191 from Automattic/dependabot/npm_and_yarn/master/webpack-5.74.0
fix(model+query): handle populate with lean transform that deletes `_id`
chore(deps-dev): bump mongodb-memory-server from 8.7.2 to 8.8.0
chore(deps-dev): bump webpack from 5.73.0 to 5.74.0
chore(deps-dev): bump highlight.js from 11.5.1 to 11.6.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin
chore(deps-dev): bump eslint from 8.19.0 to 8.21.0
perf(types): make `$assertPopulated()` not use `this`, because `Omit<this, ...>` causes perf issues
Merge pull request #12180 from JosueMolinaMorales/patch-1
Fix typo `emaill` to `email`
perf(types): revert some changes from #11650 that were causing performance degradation
fix(types): pass type to mongodb bulk write operation
Merge pull request #12163 from fredkilbourn/patch-1
Merge pull request #12166 from amanfrinati/patch-1
Update populate.md
Update compatibility.md
Merge pull request #12161 from ramesh-km/patch-1
Merge pull request #12160 from hasezoey/changeSplitToEach
Merge pull request #12162 from hasezoey/jsdocHeaderNewLine
style: change jsdoc headers to have a consistent empty jsdoc line after
docs(fix): fix link to next page in schema types page
style(buffer): change ".split" to "utils.each" for defining methods
Merge pull request #12151 from Automattic/vkarpov15/gh-12119
fix(types): map correct generics from model to schema
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