Skip to content

Commit d8a7ab5

Browse files
committed
Update build deps. Add React 16.8 tests.
1 parent 6ad2b55 commit d8a7ab5

File tree

8 files changed

+5188
-3211
lines changed

8 files changed

+5188
-3211
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ env:
66
- REACT=16.4
77
- REACT=16.5
88
- REACT=16.6
9+
- REACT=16.8
910
sudo: false
1011
script:
1112
- npm test

package-lock.json

Lines changed: 4710 additions & 3179 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -40,51 +40,51 @@
4040
"redux": "^2.0.0 || ^3.0.0 || ^4.0.0-0"
4141
},
4242
"dependencies": {
43-
"@babel/runtime": "^7.2.0",
44-
"hoist-non-react-statics": "^3.2.1",
43+
"@babel/runtime": "^7.3.1",
44+
"hoist-non-react-statics": "^3.3.0",
4545
"invariant": "^2.2.4",
4646
"loose-envify": "^1.4.0",
47-
"prop-types": "^15.6.2",
48-
"react-is": "^16.7.0"
47+
"prop-types": "^15.7.2",
48+
"react-is": "^16.8.2"
4949
},
5050
"devDependencies": {
51-
"@babel/cli": "^7.2.0",
52-
"@babel/core": "^7.2.0",
53-
"@babel/plugin-proposal-decorators": "^7.2.0",
54-
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
51+
"@babel/cli": "^7.2.3",
52+
"@babel/core": "^7.3.3",
53+
"@babel/plugin-proposal-decorators": "^7.3.0",
54+
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
5555
"@babel/plugin-transform-react-display-name": "^7.2.0",
56-
"@babel/plugin-transform-react-jsx": "^7.2.0",
56+
"@babel/plugin-transform-react-jsx": "^7.3.0",
5757
"@babel/plugin-transform-runtime": "^7.2.0",
58-
"@babel/preset-env": "^7.2.0",
58+
"@babel/preset-env": "^7.3.1",
5959
"babel-core": "^7.0.0-bridge.0",
6060
"babel-eslint": "^10.0.1",
61-
"babel-jest": "^23.6.0",
62-
"codecov": "^3.1.0",
61+
"babel-jest": "^24.1.0",
62+
"codecov": "^3.2.0",
6363
"create-react-class": "^15.6.3",
6464
"cross-env": "^5.2.0",
6565
"cross-spawn": "^6.0.5",
6666
"es3ify": "^0.2.0",
67-
"eslint": "^5.9.0",
68-
"eslint-config-prettier": "^3.3.0",
69-
"eslint-plugin-import": "^2.14.0",
70-
"eslint-plugin-prettier": "^3.0.0",
71-
"eslint-plugin-react": "^7.11.1",
67+
"eslint": "^5.14.1",
68+
"eslint-config-prettier": "^4.0.0",
69+
"eslint-plugin-import": "^2.16.0",
70+
"eslint-plugin-prettier": "^3.0.1",
71+
"eslint-plugin-react": "^7.12.4",
7272
"glob": "^7.1.3",
73-
"jest": "^23.6.0",
74-
"jest-dom": "^3.0.0",
73+
"jest": "^24.1.0",
74+
"jest-dom": "^3.1.2",
7575
"npm-run": "^5.0.1",
76-
"prettier": "^1.15.3",
77-
"react": "^16.6.3",
78-
"react-dom": "^16.6.3",
79-
"react-testing-library": "^5.3.1",
76+
"prettier": "^1.16.4",
77+
"react": "^16.8.2",
78+
"react-dom": "^16.8.2",
79+
"react-testing-library": "^5.9.0",
8080
"redux": "^4.0.1",
81-
"rimraf": "^2.6.2",
82-
"rollup": "^0.67.4",
83-
"rollup-plugin-babel": "^4.0.3",
81+
"rimraf": "^2.6.3",
82+
"rollup": "^1.2.2",
83+
"rollup-plugin-babel": "^4.3.2",
8484
"rollup-plugin-commonjs": "^9.2.0",
85-
"rollup-plugin-node-resolve": "^3.4.0",
85+
"rollup-plugin-node-resolve": "^4.0.0",
8686
"rollup-plugin-replace": "^2.1.0",
87-
"rollup-plugin-uglify": "^6.0.0",
87+
"rollup-plugin-terser": "^4.0.4",
8888
"semver": "^5.6.0"
8989
},
9090
"browserify": {

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import nodeResolve from 'rollup-plugin-node-resolve'
22
import babel from 'rollup-plugin-babel'
33
import replace from 'rollup-plugin-replace'
44
import commonjs from 'rollup-plugin-commonjs'
5-
import { uglify } from 'rollup-plugin-uglify'
5+
import { terser } from 'rollup-plugin-terser'
66
import pkg from './package.json'
77

88
const env = process.env.NODE_ENV
@@ -40,7 +40,7 @@ const config = {
4040

4141
if (env === 'production') {
4242
config.plugins.push(
43-
uglify({
43+
terser({
4444
compress: {
4545
pure_getters: true,
4646
unsafe: true,

test/components/connect.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('React', () => {
102102
if (React.memo) {
103103
const store = createStore(() => ({ hi: 'there' }))
104104

105-
const Container = React.memo(props => <Passthrough {...props} />)
105+
const Container = React.memo(props => <Passthrough {...props} />) // eslint-disable-line
106106
const WrappedContainer = connect(state => state)(Container)
107107

108108
const tester = rtl.render(

test/install-test-deps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { readdirSync, existsSync, copyFile, mkdirSync } = require('fs')
55
const rimraf = require('rimraf')
66
const { join } = require('path')
77
const spawn = require('cross-spawn')
8-
const reactVersion = process.env.REACT || '16.6'
8+
const reactVersion = process.env.REACT || '16.8'
99

1010
readdirSync(join(__dirname, 'react')).forEach(version => {
1111
if (reactVersion.toLowerCase() !== 'all' && version !== reactVersion) {

0 commit comments

Comments
 (0)