Skip to content

Commit

Permalink
Upgrade react-scripts dependencies (#5032)
Browse files Browse the repository at this point in the history
* No lock files prevents the use of yarn upgrade & outdated

* Update deps

* Bump Jest across the board

* Add safe postcss parser
  • Loading branch information
Timer authored Sep 19, 2018
1 parent 1b28131 commit 25ebe01
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 31 deletions.
3 changes: 0 additions & 3 deletions .yarnrc

This file was deleted.

2 changes: 1 addition & 1 deletion packages/confusing-browser-globals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"index.js"
],
"devDependencies": {
"jest": "23.5.0"
"jest": "23.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/react-dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"devDependencies": {
"cross-env": "^5.2.0",
"jest": "23.5.0"
"jest": "23.6.0"
},
"scripts": {
"test": "cross-env FORCE_COLOR=true jest"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-error-overlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint-plugin-react": "7.8.2",
"flow-bin": "^0.63.1",
"html-entities": "1.2.1",
"jest": "23.5.0",
"jest": "23.6.0",
"jest-fetch-mock": "1.5.0",
"object-assign": "4.1.1",
"promise": "8.0.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const safePostCssParser = require('postcss-safe-parser');
const ManifestPlugin = require('webpack-manifest-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
Expand Down Expand Up @@ -152,7 +153,9 @@ module.exports = {
cache: true,
sourceMap: shouldUseSourceMap,
}),
new OptimizeCSSAssetsPlugin({ cssProcessorOptions: { safe: true } }),
new OptimizeCSSAssetsPlugin({
cssProcessorOptions: { parser: safePostCssParser },
}),
],
// Automatically split vendor and commons
// https://twitter.com/wSokra/status/969633336732905474
Expand Down
49 changes: 25 additions & 24 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,61 +23,62 @@
"dependencies": {
"@babel/core": "7.0.0-beta.46",
"@babel/runtime": "7.0.0-beta.46",
"autoprefixer": "8.5.0",
"autoprefixer": "9.1.5",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "8.2.3",
"babel-jest": "23.4.2",
"babel-jest": "23.6.0",
"babel-loader": "8.0.0-beta.4",
"babel-plugin-named-asset-import": "^0.1.0",

This comment has been minimized.

Copy link
@ben-zabloski

ben-zabloski Sep 19, 2018

Does babel-plugin-named-asset-import ^0.1.0 exist? It doesn't appear to resolve to anything: https://www.npmjs.com/package/babel-plugin-named-asset-import

This comment has been minimized.

Copy link
@Timer

Timer Sep 19, 2018

Author Contributor

It might not be published to npm yet. This is a package in our monorepo.

This comment has been minimized.

Copy link
@ben-zabloski

ben-zabloski Sep 19, 2018

Ah - you're right - I actually realized this in my past life (like a few months ago lol) - thanks for pointing this out and refreshing my memory 😄

"babel-preset-react-app": "^3.1.1",
"bfj": "5.2.0",
"bfj": "6.1.1",
"case-sensitive-paths-webpack-plugin": "2.1.2",
"chalk": "2.4.1",
"css-loader": "0.28.11",
"dotenv": "5.0.1",
"dotenv": "6.0.0",
"dotenv-expand": "4.2.0",
"eslint": "4.19.1",
"eslint-config-react-app": "^2.1.0",
"eslint-loader": "Timer/eslint-loader#e242479990d520213425a0180e5c749b2e71c1ce",
"eslint-plugin-flowtype": "2.46.3",
"eslint-plugin-import": "2.11.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-react": "7.8.2",
"eslint-plugin-flowtype": "2.50.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.1",
"eslint-plugin-react": "7.11.1",
"file-loader": "1.1.11",
"fs-extra": "5.0.0",
"fs-extra": "7.0.0",
"graphql": "0.13.2",
"graphql-tag": "2.9.2",
"html-webpack-plugin": "4.0.0-alpha.2",
"identity-obj-proxy": "3.0.0",
"jest": "23.5.0",
"jest": "23.6.0",
"loader-utils": "1.1.0",
"mini-css-extract-plugin": "0.4.0",
"mini-css-extract-plugin": "0.4.3",
"object-assign": "4.1.1",
"optimize-css-assets-webpack-plugin": "4.0.1",
"postcss-flexbugs-fixes": "3.3.1",
"postcss-loader": "2.1.5",
"promise": "8.0.1",
"optimize-css-assets-webpack-plugin": "5.0.1",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
"postcss-safe-parser": "4.0.1",
"promise": "8.0.2",
"raf": "3.4.0",
"react-dev-utils": "^5.0.0",
"resolve": "1.6.0",
"sass-loader": "7.0.1",
"style-loader": "0.21.0",
"resolve": "1.8.1",
"sass-loader": "7.1.0",
"style-loader": "0.23.0",
"svgr": "1.9.2",
"sw-precache-webpack-plugin": "0.11.5",
"terser-webpack-plugin": "1.1.0",
"thread-loader": "1.2.0",
"url-loader": "1.0.1",
"webpack": "4.19.0",
"webpack-dev-server": "3.1.7",
"webpack-manifest-plugin": "2.0.3",
"whatwg-fetch": "2.0.4"
"url-loader": "1.1.1",
"webpack": "4.19.1",
"webpack-dev-server": "3.1.8",
"webpack-manifest-plugin": "2.0.4",
"whatwg-fetch": "3.0.0"
},
"devDependencies": {
"react": "^16.3.2",
"react-dom": "^16.3.2"
},
"optionalDependencies": {
"fsevents": "1.2.0"
"fsevents": "1.2.4"
},
"browserslist": {
"development": [
Expand Down

0 comments on commit 25ebe01

Please sign in to comment.