Skip to content

Commit 35811c4

Browse files
authored
Merge pull request #47 from wasertech/security-patch-1b
Fix security vulneabilites
2 parents 9b7da19 + 69c6b35 commit 35811c4

File tree

3 files changed

+3898
-2587
lines changed

3 files changed

+3898
-2587
lines changed

config/webpack.config.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ const safePostCssParser = require('postcss-safe-parser');
1414
const ManifestPlugin = require('webpack-manifest-plugin');
1515
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
1616
const WorkboxWebpackPlugin = require('workbox-webpack-plugin');
17-
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
1817
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
1918
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
2019
const paths = require('./paths');
2120
const modules = require('./modules');
2221
const {NODE_ENV, getClientEnvironment} = require('./env');
2322
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
2423
const ForkTsCheckerWebpackPlugin = require('react-dev-utils/ForkTsCheckerWebpackPlugin');
25-
const typescriptFormatter = require('react-dev-utils/typescriptFormatter');
24+
2625

2726
const postcssNormalize = require('postcss-normalize');
2827

@@ -236,7 +235,7 @@ module.exports = function(webpackEnv) {
236235
}),
237236
// This is only used in production mode
238237
new OptimizeCSSAssetsPlugin({
239-
cssProcessorOptions: {
238+
minimizerOptions: {
240239
parser: safePostCssParser,
241240
map: shouldUseSourceMap
242241
? {
@@ -249,7 +248,7 @@ module.exports = function(webpackEnv) {
249248
}
250249
: false,
251250
},
252-
cssProcessorPluginOptions: {
251+
minimizerPluginOptions: {
253252
preset: ['default', { minifyFontValues: { removeQuotes: false } }],
254253
},
255254
}),
@@ -509,12 +508,6 @@ module.exports = function(webpackEnv) {
509508
// a plugin that prints an error when you attempt to do this.
510509
// See https://github.com/facebook/create-react-app/issues/240
511510
isEnvDevelopment && new CaseSensitivePathsPlugin(),
512-
// If you require a missing module and then `npm install` it, you still have
513-
// to restart the development server for webpack to discover it. This plugin
514-
// makes the discovery automatic so you don't have to restart.
515-
// See https://github.com/facebook/create-react-app/issues/186
516-
isEnvDevelopment &&
517-
new WatchMissingNodeModulesPlugin(paths.appNodeModules),
518511
isEnvProduction &&
519512
new MiniCssExtractPlugin({
520513
// Options similar to the same options in webpackOptions.output
@@ -569,8 +562,6 @@ module.exports = function(webpackEnv) {
569562
'!**/src/setupTests.*',
570563
],
571564
silent: true,
572-
// The formatter is invoked directly in WebpackDevServerUtils during development
573-
formatter: isEnvProduction ? typescriptFormatter : undefined,
574565
}),
575566
].filter(Boolean),
576567
// Some libraries import Node modules but don't use them in the browser.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"private": true,
55
"dependencies": {
66
"@babel/core": "7.9.0",
7-
"@svgr/webpack": "4.3.3",
8-
"@testing-library/jest-dom": "^4.2.4",
9-
"@testing-library/react": "^9.3.2",
7+
"@svgr/webpack": "6.0.0",
8+
"@testing-library/jest-dom": "^5.1.0",
9+
"@testing-library/react": "^10.0.0",
1010
"@testing-library/user-event": "^7.1.2",
1111
"@typescript-eslint/eslint-plugin": "^2.10.0",
1212
"@typescript-eslint/parser": "^2.10.0",
@@ -19,12 +19,12 @@
1919
"case-sensitive-paths-webpack-plugin": "2.3.0",
2020
"chai": "^4.2.0",
2121
"chai-http": "^4.3.0",
22-
"create-react-app": "^4.0.3",
23-
"css-loader": "3.4.2",
22+
"create-react-app": "^5.0.0",
23+
"css-loader": "5.2.6",
2424
"defaults": "^1.0.3",
2525
"dotenv": "8.2.0",
2626
"dotenv-expand": "5.1.0",
27-
"eslint": "^6.6.0",
27+
"eslint": "^7.16.0",
2828
"eslint-config-react-app": "^5.2.1",
2929
"eslint-loader": "3.0.3",
3030
"eslint-plugin-flowtype": "4.6.0",
@@ -36,13 +36,13 @@
3636
"fs-extra": "^8.1.0",
3737
"html-webpack-plugin": "4.0.0",
3838
"identity-obj-proxy": "3.0.0",
39-
"jest": "24.9.0",
39+
"jest": "26.0.0",
4040
"jest-environment-jsdom-fourteen": "1.0.1",
4141
"jest-resolve": "24.9.0",
42-
"jest-watch-typeahead": "0.4.2",
42+
"jest-watch-typeahead": "0.6.0",
4343
"mini-css-extract-plugin": "0.9.0",
44-
"mocha": "^6.1.4",
45-
"optimize-css-assets-webpack-plugin": "5.0.3",
44+
"mocha": "^9.1.2",
45+
"optimize-css-assets-webpack-plugin": "5.0.5",
4646
"pnp-webpack-plugin": "1.6.4",
4747
"postcss-flexbugs-fixes": "4.1.0",
4848
"postcss-loader": "3.0.0",
@@ -51,21 +51,21 @@
5151
"postcss-safe-parser": "4.0.1",
5252
"react": "^16.12.0",
5353
"react-app-polyfill": "^1.0.6",
54-
"react-dev-utils": "^11.0.4",
54+
"react-dev-utils": "^12.0.0",
5555
"react-dom": "^17.0.2",
5656
"resolve": "1.15.0",
57-
"resolve-url-loader": "3.1.2",
57+
"resolve-url-loader": "4.0.0",
5858
"sass-loader": "8.0.2",
5959
"semver": "6.3.0",
6060
"should": "^13.2.3",
6161
"should-http": "^0.1.1",
6262
"socket.io-client": "^2.3.0",
6363
"style-loader": "0.23.1",
6464
"terser-webpack-plugin": "2.3.8",
65-
"ts-pnp": "1.1.6",
65+
"ts-pnp": "1.2.0",
6666
"url-loader": "2.3.0",
6767
"webpack": "4.42.0",
68-
"webpack-dev-server": "3.11.0",
68+
"webpack-dev-server": "4.0.0",
6969
"webpack-manifest-plugin": "2.2.0",
7070
"workbox-webpack-plugin": "4.3.1"
7171
},

0 commit comments

Comments
 (0)