-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Fix for 2 vulnerabilities #117
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: next
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 |
|---|---|---|
|
|
@@ -50,7 +50,7 @@ | |
| "html-webpack-plugin": "3.2.0", | ||
| "identity-obj-proxy": "3.0.0", | ||
| "loader-utils": "^1.1.0", | ||
| "jest": "22.4.3", | ||
| "jest": "24.0.0", | ||
| "mini-css-extract-plugin": "^0.4.0", | ||
| "object-assign": "4.1.1", | ||
| "postcss-flexbugs-fixes": "3.3.1", | ||
|
|
@@ -67,7 +67,7 @@ | |
| "thread-loader": "1.1.5", | ||
| "uglifyjs-webpack-plugin": "1.2.5", | ||
| "url-loader": "1.0.1", | ||
| "webpack": "4.8.3", | ||
| "webpack": "5.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. Upgrading Here are some of the critical issues that need to be resolved:
Simply bumping the version number is insufficient and will break the package. A more comprehensive upgrade of the ecosystem is required. |
||
| "webpack-dev-server": "3.1.4", | ||
| "webpack-manifest-plugin": "2.0.3", | ||
| "whatwg-fetch": "2.0.4" | ||
|
|
||
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.
Upgrading
jestfrom v22 to v24 introduces breaking changes that are not handled in the codebase.Specifically, the Jest configuration in
scripts/utils/createJestConfig.jsuses thesetupTestFrameworkScriptFileoption. This option was renamed tosetupFilesAfterEnvin Jest 24. Without updating the configuration file, the test setup will be broken and tests will likely fail to run correctly.This change is necessary for Jest 24 compatibility:
Since this automated PR only changes
package.json, this required code change is missing.