Skip to content

Commit 51a55e3

Browse files
authored
Upgrade react-scripts dependencies (facebook#5032)
* No lock files prevents the use of yarn upgrade & outdated * Update deps * Bump Jest across the board * Add safe postcss parser
1 parent 156a337 commit 51a55e3

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

config/webpack.config.prod.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
1515
const TerserPlugin = require('terser-webpack-plugin');
1616
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
1717
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
18+
const safePostCssParser = require('postcss-safe-parser');
1819
const ManifestPlugin = require('webpack-manifest-plugin');
1920
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
2021
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
@@ -152,7 +153,9 @@ module.exports = {
152153
cache: true,
153154
sourceMap: shouldUseSourceMap,
154155
}),
155-
new OptimizeCSSAssetsPlugin({ cssProcessorOptions: { safe: true } }),
156+
new OptimizeCSSAssetsPlugin({
157+
cssProcessorOptions: { parser: safePostCssParser },
158+
}),
156159
],
157160
// Automatically split vendor and commons
158161
// https://twitter.com/wSokra/status/969633336732905474

package.json

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,61 +23,62 @@
2323
"dependencies": {
2424
"@babel/core": "7.0.0-beta.46",
2525
"@babel/runtime": "7.0.0-beta.46",
26-
"autoprefixer": "8.5.0",
26+
"autoprefixer": "9.1.5",
2727
"babel-core": "7.0.0-bridge.0",
2828
"babel-eslint": "8.2.3",
29-
"babel-jest": "23.4.2",
29+
"babel-jest": "23.6.0",
3030
"babel-loader": "8.0.0-beta.4",
3131
"babel-plugin-named-asset-import": "^0.1.0",
3232
"babel-preset-react-app": "^3.1.1",
33-
"bfj": "5.2.0",
33+
"bfj": "6.1.1",
3434
"case-sensitive-paths-webpack-plugin": "2.1.2",
3535
"chalk": "2.4.1",
3636
"css-loader": "0.28.11",
37-
"dotenv": "5.0.1",
37+
"dotenv": "6.0.0",
3838
"dotenv-expand": "4.2.0",
3939
"eslint": "4.19.1",
4040
"eslint-config-react-app": "^2.1.0",
4141
"eslint-loader": "Timer/eslint-loader#e242479990d520213425a0180e5c749b2e71c1ce",
42-
"eslint-plugin-flowtype": "2.46.3",
43-
"eslint-plugin-import": "2.11.0",
44-
"eslint-plugin-jsx-a11y": "6.0.3",
45-
"eslint-plugin-react": "7.8.2",
42+
"eslint-plugin-flowtype": "2.50.1",
43+
"eslint-plugin-import": "2.14.0",
44+
"eslint-plugin-jsx-a11y": "6.1.1",
45+
"eslint-plugin-react": "7.11.1",
4646
"file-loader": "1.1.11",
47-
"fs-extra": "5.0.0",
47+
"fs-extra": "7.0.0",
4848
"graphql": "0.13.2",
4949
"graphql-tag": "2.9.2",
5050
"html-webpack-plugin": "4.0.0-alpha.2",
5151
"identity-obj-proxy": "3.0.0",
52-
"jest": "23.5.0",
52+
"jest": "23.6.0",
5353
"loader-utils": "1.1.0",
54-
"mini-css-extract-plugin": "0.4.0",
54+
"mini-css-extract-plugin": "0.4.3",
5555
"object-assign": "4.1.1",
56-
"optimize-css-assets-webpack-plugin": "4.0.1",
57-
"postcss-flexbugs-fixes": "3.3.1",
58-
"postcss-loader": "2.1.5",
59-
"promise": "8.0.1",
56+
"optimize-css-assets-webpack-plugin": "5.0.1",
57+
"postcss-flexbugs-fixes": "4.1.0",
58+
"postcss-loader": "3.0.0",
59+
"postcss-safe-parser": "4.0.1",
60+
"promise": "8.0.2",
6061
"raf": "3.4.0",
6162
"react-dev-utils": "^5.0.0",
62-
"resolve": "1.6.0",
63-
"sass-loader": "7.0.1",
64-
"style-loader": "0.21.0",
63+
"resolve": "1.8.1",
64+
"sass-loader": "7.1.0",
65+
"style-loader": "0.23.0",
6566
"svgr": "1.9.2",
6667
"sw-precache-webpack-plugin": "0.11.5",
6768
"terser-webpack-plugin": "1.1.0",
6869
"thread-loader": "1.2.0",
69-
"url-loader": "1.0.1",
70-
"webpack": "4.19.0",
71-
"webpack-dev-server": "3.1.7",
72-
"webpack-manifest-plugin": "2.0.3",
73-
"whatwg-fetch": "2.0.4"
70+
"url-loader": "1.1.1",
71+
"webpack": "4.19.1",
72+
"webpack-dev-server": "3.1.8",
73+
"webpack-manifest-plugin": "2.0.4",
74+
"whatwg-fetch": "3.0.0"
7475
},
7576
"devDependencies": {
7677
"react": "^16.3.2",
7778
"react-dom": "^16.3.2"
7879
},
7980
"optionalDependencies": {
80-
"fsevents": "1.2.0"
81+
"fsevents": "1.2.4"
8182
},
8283
"browserslist": {
8384
"development": [

0 commit comments

Comments
 (0)