🚨 [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.1test: fix testsMerge pull request #12125 from emiljanitzek/feature/model-schema-typeUpdate index.d.tsUpdate connection.d.tsMerge pull request #12167 from emiljanitzek/feature/bulk-write-typesMerge pull request #12196 from hasezoey/pluginOptionsMerge pull request #12198 from hasezoey/furtherReadingReStyleMerge branch 'master' of github.com:Automattic/mongoosefix(types): allow $pull with `_id`Merge pull request #12153 from hasezoey/addCodeToSidebarMerge pull request #12152 from hasezoey/addCodeToHeadersMerge pull request #12200 from hasezoey/updateCompatfix(schema+timestamps): handle `insertMany()` with timestamps and discriminatorsMerge pull request #12193 from Automattic/vkarpov15/gh-12143fix(types): avoid baffling circular reference when using PopulatedDoc with a bidirectional referencefix(types): allow using path with $countdocs(compatibility): change to use a tabledocs(further_reading): re-style to better format input file and better pagechore(further_reading): remove "border="0"" property from images and use css property insteaddocs(further_reading): change first header to be h1chore(further_reading): fix styledocs(further_reading): update mdn blog post imageMerge pull request #12197 from hasezoey/disableTideliftOnForkchore(tidelift-alignment): run only in main repository, not in forksfix(types): add schema plugin option inferenceMerge pull request #12186 from Automattic/dependabot/npm_and_yarn/master/babel/core-7.18.10Merge pull request #12187 from Automattic/dependabot/npm_and_yarn/master/typescript-eslint/parser-5.32.0Merge pull request #12185 from Automattic/dependabot/npm_and_yarn/master/marked-4.0.18chore(deps-dev): bump @babel/core from 7.18.6 to 7.18.10chore(deps-dev): bump @typescript-eslint/parser from 5.30.3 to 5.32.0chore(deps-dev): bump marked from 4.0.17 to 4.0.18Merge pull request #12192 from Automattic/dependabot/npm_and_yarn/master/mongodb-memory-server-8.8.0Merge pull request #12188 from Automattic/dependabot/npm_and_yarn/master/eslint-8.21.0Merge pull request #12189 from Automattic/dependabot/npm_and_yarn/master/typescript-eslint/eslint-plugin-5.32.0Merge pull request #12190 from Automattic/dependabot/npm_and_yarn/master/highlight.js-11.6.0Merge pull request #12191 from Automattic/dependabot/npm_and_yarn/master/webpack-5.74.0fix(model+query): handle populate with lean transform that deletes `_id`chore(deps-dev): bump mongodb-memory-server from 8.7.2 to 8.8.0chore(deps-dev): bump webpack from 5.73.0 to 5.74.0chore(deps-dev): bump highlight.js from 11.5.1 to 11.6.0chore(deps-dev): bump @typescript-eslint/eslint-pluginchore(deps-dev): bump eslint from 8.19.0 to 8.21.0perf(types): make `$assertPopulated()` not use `this`, because `Omit<this, ...>` causes perf issuesMerge pull request #12180 from JosueMolinaMorales/patch-1Fix typo `emaill` to `email`perf(types): revert some changes from #11650 that were causing performance degradationfix(types): pass type to mongodb bulk write operationMerge pull request #12163 from fredkilbourn/patch-1Merge pull request #12166 from amanfrinati/patch-1Update populate.mdUpdate compatibility.mdMerge pull request #12161 from ramesh-km/patch-1Merge pull request #12160 from hasezoey/changeSplitToEachMerge pull request #12162 from hasezoey/jsdocHeaderNewLinestyle: change jsdoc headers to have a consistent empty jsdoc line afterdocs(fix): fix link to next page in schema types pagestyle(buffer): change ".split" to "utils.each" for defining methodsMerge pull request #12151 from Automattic/vkarpov15/gh-12119fix(types): map correct generics from model to schemaDepfu 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