Skip to content

Commit

Permalink
chore(deps): upgrade deps (#69)
Browse files Browse the repository at this point in the history
* chore(deps): upgrade deps

BREAKING CHANGE: react-redux minimum version is now 7.0.0
  • Loading branch information
adrienharnay committed Apr 23, 2019
1 parent 2281797 commit e6bf3d1
Show file tree
Hide file tree
Showing 5 changed files with 1,781 additions and 1,194 deletions.
6 changes: 3 additions & 3 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = (api) => {
api.cache(true);

const env = process.env.NODE_ENV;
const env = api.env();

const presets = [
[
'@babel/env',
{
modules: env === 'test' ? 'commonjs' : false,
loose: true,
corejs: 3,
useBuiltIns: env !== 'test' ? 'entry' : 'usage',
...(env !== 'test' ? { targets: { browsers: 'ie >= 11' } } : {}),
},
],
Expand Down
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ module.exports = {
coverageDirectory: path.join(__dirname, 'coverage'),
coverageThreshold: {
global: {
statements: 81,
branches: 89,
statements: 84,
branches: 90,
functions: 88,
lines: 81,
lines: 83,
},
},
moduleDirectories: ['node_modules'],
Expand Down
66 changes: 34 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"test:cov": "yarn test --coverage",
"ci": "yarn ci:lint && yarn ci:test && yarn ci:coverage",
"ci:lint": "yarn lint",
"ci:test": "cross-env CI=true JEST_JUNIT_OUTPUT='junit/jest.xml' yarn test --ci --coverage --expand --forceExit",
"ci:test": "cross-env CI=true yarn test --ci --coverage --expand --forceExit --detectOpenHandles -w 1",
"ci:coverage": "codecov -f coverage/coverage-final.json",
"ci:publish": "yarn semantic-release",
"prettify": "prettier-eslint --write \"./src/**/*.js\"",
Expand All @@ -65,53 +65,55 @@
},
"dependencies": {
"fast-stable-stringify": "1.0.0",
"hoist-non-react-statics": "3.2.1",
"hoist-non-react-statics": "3.3.0",
"is-object": "1.0.1",
"murmur-hash": "1.0.0",
"qs": "6.6.0",
"re-reselect": "2.3.0",
"regenerator-runtime": "0.12.1",
"qs": "6.7.0",
"re-reselect": "3.1.0",
"regenerator-runtime": "0.13.2",
"reselect": "4.0.0"
},
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "0.8.5",
"@babel/cli": "7.2.3",
"@babel/core": "7.2.2",
"@babel/plugin-proposal-class-properties": "7.2.3",
"@babel/preset-env": "7.2.3",
"@ampproject/rollup-plugin-closure-compiler": "0.9.0",
"@babel/cli": "7.4.3",
"@babel/core": "7.4.3",
"@babel/plugin-proposal-class-properties": "7.4.0",
"@babel/preset-env": "7.4.3",
"@babel/preset-react": "7.0.0",
"@semantic-release/git": "7.0.7",
"all-contributors-cli": "5.7.0",
"@semantic-release/git": "7.0.8",
"all-contributors-cli": "6.3.1",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-jest": "23.6.0",
"codecov": "3.1.0",
"babel-jest": "24.7.1",
"codecov": "3.3.0",
"core-js": "3",
"cross-env": "5.2.0",
"eslint": "5.12.0",
"eslint": "5.16.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "3.3.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-react": "7.12.3",
"fetch-mock": "7.3.0",
"jest-cli": "23.6.0",
"eslint-config-prettier": "4.1.0",
"eslint-plugin-import": "2.17.2",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-react": "7.12.4",
"fetch-mock": "7.3.3",
"jest-cli": "24.7.1",
"mockdate": "2.0.2",
"moment": "2.23.0",
"moment": "2.24.0",
"prettier-eslint-cli": "4.7.1",
"react": "16.7.0",
"react-redux": "6.0.0",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-redux": "7.0.2",
"redux": "4.0.1",
"rimraf": "2.6.3",
"rollup": "1.1.0",
"rollup-plugin-babel": "4.3.0",
"rollup-plugin-commonjs": "9.2.0",
"rollup-plugin-node-resolve": "4.0.0",
"rollup-plugin-replace": "2.1.0",
"rollup": "1.10.1",
"rollup-plugin-babel": "4.3.2",
"rollup-plugin-commonjs": "9.3.4",
"rollup-plugin-node-resolve": "4.2.3",
"rollup-plugin-replace": "2.2.0",
"semantic-release": "15.13.3"
},
"peerDependencies": {
"react": "^16.4.0-0",
"react-redux": "^6.0.0",
"redux-thunk": "^2.0.0"
"react": "^16.8.3",
"react-redux": "^7.0.0",
"redux-thunk": "^2.0.0 || ^3.0.0 || ^4.0.0-0"
}
}
7 changes: 2 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const config = {
context: "typeof window !== 'undefined' ? window : global",
plugins: [
resolve({
jsnext: true,
main: true,
mainFields: ['jsnext', 'main'],
}),
commonjs({
include: 'node_modules/**',
Expand All @@ -49,9 +48,7 @@ const config = {
),
})
: null,
minify
? compiler()
: null,
minify ? compiler() : null,
].filter(Boolean),
};

Expand Down
Loading

0 comments on commit e6bf3d1

Please sign in to comment.