-
Notifications
You must be signed in to change notification settings - Fork 7
[Snyk] Fix for 3 vulnerabilities #27
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,15 +13,15 @@ | |
| "@midwayjs/cross-domain": "^3.12.10", | ||
| "@midwayjs/decorator": "^3.12.3", | ||
| "@midwayjs/i18n": "3.13.7", | ||
| "@midwayjs/koa": "^3.12.0", | ||
| "@midwayjs/koa": "^4.0.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Major version mismatch: @midwayjs/koa v4 paired with all other @midwayjs/ packages at v3* Upgrading Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
| "@midwayjs/logger": "^2.19.3", | ||
| "@midwayjs/mongoose": "3", | ||
| "@midwayjs/redis": "3", | ||
| "@midwayjs/validate": "3", | ||
| "@typegoose/typegoose": "^11.7.1", | ||
| "dotenv": "^16.3.1", | ||
| "glob": "^10.3.10", | ||
| "lint-staged": "^15.2.2", | ||
| "lint-staged": "^15.4.2", | ||
| "lodash": "^4.17.21", | ||
| "mongoose": "^7.0.0", | ||
| "mongoose-delete": "^1.0.1", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Major version bump breaks compatibility with v3 ecosystem
High Severity
Upgrading
@midwayjs/koafrom v3 to^4.0.0while all other@midwayjs/*packages remain at v3 will break the application. The official Midway v4 migration guide requires upgrading all packages together (@midwayjs/core,@midwayjs/bootstrap,@midwayjs/decorator,@midwayjs/mock, etc.) to v4 simultaneously. Additionally,@midwayjs/koav4 pulls inkoa@3.0.3(up from v2), and the project's@types/koaat^2.13.12conflicts with the bundled@types/koa@3.0.0. Midway v4 also requires Node.js v20+, but the project declares>=18.0.0. The Snyk metadata itself flagsisBreakingChange: true.Additional Locations (1)
package.json#L9-L15