Skip to content

Commit e6bf3d1

Browse files
authored
chore(deps): upgrade deps (#69)
* chore(deps): upgrade deps BREAKING CHANGE: react-redux minimum version is now 7.0.0
1 parent 2281797 commit e6bf3d1

File tree

5 files changed

+1781
-1194
lines changed

5 files changed

+1781
-1194
lines changed

.babelrc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module.exports = (api) => {
2-
api.cache(true);
3-
4-
const env = process.env.NODE_ENV;
2+
const env = api.env();
53

64
const presets = [
75
[
86
'@babel/env',
97
{
108
modules: env === 'test' ? 'commonjs' : false,
119
loose: true,
10+
corejs: 3,
11+
useBuiltIns: env !== 'test' ? 'entry' : 'usage',
1212
...(env !== 'test' ? { targets: { browsers: 'ie >= 11' } } : {}),
1313
},
1414
],

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ module.exports = {
55
coverageDirectory: path.join(__dirname, 'coverage'),
66
coverageThreshold: {
77
global: {
8-
statements: 81,
9-
branches: 89,
8+
statements: 84,
9+
branches: 90,
1010
functions: 88,
11-
lines: 81,
11+
lines: 83,
1212
},
1313
},
1414
moduleDirectories: ['node_modules'],

package.json

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"test:cov": "yarn test --coverage",
5757
"ci": "yarn ci:lint && yarn ci:test && yarn ci:coverage",
5858
"ci:lint": "yarn lint",
59-
"ci:test": "cross-env CI=true JEST_JUNIT_OUTPUT='junit/jest.xml' yarn test --ci --coverage --expand --forceExit",
59+
"ci:test": "cross-env CI=true yarn test --ci --coverage --expand --forceExit --detectOpenHandles -w 1",
6060
"ci:coverage": "codecov -f coverage/coverage-final.json",
6161
"ci:publish": "yarn semantic-release",
6262
"prettify": "prettier-eslint --write \"./src/**/*.js\"",
@@ -65,53 +65,55 @@
6565
},
6666
"dependencies": {
6767
"fast-stable-stringify": "1.0.0",
68-
"hoist-non-react-statics": "3.2.1",
68+
"hoist-non-react-statics": "3.3.0",
6969
"is-object": "1.0.1",
7070
"murmur-hash": "1.0.0",
71-
"qs": "6.6.0",
72-
"re-reselect": "2.3.0",
73-
"regenerator-runtime": "0.12.1",
71+
"qs": "6.7.0",
72+
"re-reselect": "3.1.0",
73+
"regenerator-runtime": "0.13.2",
7474
"reselect": "4.0.0"
7575
},
7676
"devDependencies": {
77-
"@ampproject/rollup-plugin-closure-compiler": "0.8.5",
78-
"@babel/cli": "7.2.3",
79-
"@babel/core": "7.2.2",
80-
"@babel/plugin-proposal-class-properties": "7.2.3",
81-
"@babel/preset-env": "7.2.3",
77+
"@ampproject/rollup-plugin-closure-compiler": "0.9.0",
78+
"@babel/cli": "7.4.3",
79+
"@babel/core": "7.4.3",
80+
"@babel/plugin-proposal-class-properties": "7.4.0",
81+
"@babel/preset-env": "7.4.3",
8282
"@babel/preset-react": "7.0.0",
83-
"@semantic-release/git": "7.0.7",
84-
"all-contributors-cli": "5.7.0",
83+
"@semantic-release/git": "7.0.8",
84+
"all-contributors-cli": "6.3.1",
8585
"babel-core": "7.0.0-bridge.0",
8686
"babel-eslint": "10.0.1",
87-
"babel-jest": "23.6.0",
88-
"codecov": "3.1.0",
87+
"babel-jest": "24.7.1",
88+
"codecov": "3.3.0",
89+
"core-js": "3",
8990
"cross-env": "5.2.0",
90-
"eslint": "5.12.0",
91+
"eslint": "5.16.0",
9192
"eslint-config-airbnb": "17.1.0",
92-
"eslint-config-prettier": "3.3.0",
93-
"eslint-plugin-import": "2.14.0",
94-
"eslint-plugin-jsx-a11y": "6.1.2",
95-
"eslint-plugin-react": "7.12.3",
96-
"fetch-mock": "7.3.0",
97-
"jest-cli": "23.6.0",
93+
"eslint-config-prettier": "4.1.0",
94+
"eslint-plugin-import": "2.17.2",
95+
"eslint-plugin-jsx-a11y": "6.2.1",
96+
"eslint-plugin-react": "7.12.4",
97+
"fetch-mock": "7.3.3",
98+
"jest-cli": "24.7.1",
9899
"mockdate": "2.0.2",
99-
"moment": "2.23.0",
100+
"moment": "2.24.0",
100101
"prettier-eslint-cli": "4.7.1",
101-
"react": "16.7.0",
102-
"react-redux": "6.0.0",
102+
"react": "16.8.6",
103+
"react-dom": "16.8.6",
104+
"react-redux": "7.0.2",
103105
"redux": "4.0.1",
104106
"rimraf": "2.6.3",
105-
"rollup": "1.1.0",
106-
"rollup-plugin-babel": "4.3.0",
107-
"rollup-plugin-commonjs": "9.2.0",
108-
"rollup-plugin-node-resolve": "4.0.0",
109-
"rollup-plugin-replace": "2.1.0",
107+
"rollup": "1.10.1",
108+
"rollup-plugin-babel": "4.3.2",
109+
"rollup-plugin-commonjs": "9.3.4",
110+
"rollup-plugin-node-resolve": "4.2.3",
111+
"rollup-plugin-replace": "2.2.0",
110112
"semantic-release": "15.13.3"
111113
},
112114
"peerDependencies": {
113-
"react": "^16.4.0-0",
114-
"react-redux": "^6.0.0",
115-
"redux-thunk": "^2.0.0"
115+
"react": "^16.8.3",
116+
"react-redux": "^7.0.0",
117+
"redux-thunk": "^2.0.0 || ^3.0.0 || ^4.0.0-0"
116118
}
117119
}

rollup.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ const config = {
3333
context: "typeof window !== 'undefined' ? window : global",
3434
plugins: [
3535
resolve({
36-
jsnext: true,
37-
main: true,
36+
mainFields: ['jsnext', 'main'],
3837
}),
3938
commonjs({
4039
include: 'node_modules/**',
@@ -49,9 +48,7 @@ const config = {
4948
),
5049
})
5150
: null,
52-
minify
53-
? compiler()
54-
: null,
51+
minify ? compiler() : null,
5552
].filter(Boolean),
5653
};
5754

0 commit comments

Comments
 (0)