Skip to content

Commit 94447e9

Browse files
committed
feat(dependencies): Support react 16
1 parent 858af7c commit 94447e9

File tree

3 files changed

+168
-187
lines changed

3 files changed

+168
-187
lines changed

package.json

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,17 @@
3030
"bugs": {
3131
"url": "https://github.com/reactjs/react-tabs/issues"
3232
},
33-
"files": [
34-
"dist",
35-
"lib",
36-
"style"
37-
],
33+
"files": ["dist", "lib", "style"],
3834
"homepage": "https://github.com/reactjs/react-tabs",
39-
"keywords": [
40-
"react",
41-
"tabs",
42-
"a11y",
43-
"react-component"
44-
],
35+
"keywords": ["react", "tabs", "a11y", "react-component"],
4536
"peerDependencies": {
46-
"react": "^0.14.9 || ^15.3.0"
37+
"react": "^0.14.9 || ^15.3.0 || ^16.0.0"
4738
},
4839
"devDependencies": {
4940
"babel-cli": "^6.9.0",
5041
"babel-core": "^6.9.1",
5142
"babel-eslint": "^8.0.1",
52-
"babel-jest": "^21.2.0",
43+
"babel-jest": "^21.3.0-beta.1",
5344
"babel-loader": "^7.0.0",
5445
"babel-plugin-transform-class-properties": "^6.11.5",
5546
"babel-plugin-transform-object-rest-spread": "^6.8.0",
@@ -60,7 +51,7 @@
6051
"cross-env": "^5.0.0",
6152
"css-loader": "^0.28.0",
6253
"enzyme": "^3.1.0",
63-
"enzyme-adapter-react-15": "^1.0.1",
54+
"enzyme-adapter-react-16": "^1.0.1",
6455
"eslint": "^4.5.0",
6556
"eslint-config-airbnb": "^15.0.1",
6657
"eslint-plugin-import": "^2.2.0",
@@ -69,15 +60,14 @@
6960
"eslint-plugin-react": "^7.0.1",
7061
"hoist-non-react-statics": "^2.3.1",
7162
"husky": "^0.14.3",
72-
"jest": "^21.2.1",
63+
"jest": "^21.3.0-beta.1",
7364
"lint-staged": "^4.0.4",
7465
"npm-run-all": "^4.1.1",
7566
"prettier": "^1.2.2",
76-
"react": "^15.0.0",
77-
"react-addons-test-utils": "^15.0.0",
78-
"react-dom": "^15.0.0",
79-
"react-modal": "^1.3.0",
80-
"react-test-renderer": "^15.5.4",
67+
"react": "^16.0.0",
68+
"react-dom": "^16.0.0",
69+
"react-modal": "^3.0.0-rc2",
70+
"react-test-renderer": "^16.0.0",
8171
"rimraf": "^2.5.2",
8272
"standard-version": "^4.2.0",
8373
"style-loader": "^0.18.1",
@@ -90,15 +80,10 @@
9080
"prop-types": "^15.5.0"
9181
},
9282
"jest": {
93-
"roots": [
94-
"src"
95-
],
83+
"roots": ["src"],
9684
"testRegex": "/__tests__/.+-test\\.js$"
9785
},
9886
"lint-staged": {
99-
"src/**/*.js": [
100-
"eslint --fix",
101-
"git add"
102-
]
87+
"src/**/*.js": ["eslint --fix", "git add"]
10388
}
10489
}

src/components/__tests__/Tabs-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* eslint-disable react/no-multi-comp */
33
import React from 'react';
44
import Enzyme, { shallow, mount } from 'enzyme';
5-
import Adapter from 'enzyme-adapter-react-15';
5+
import Adapter from 'enzyme-adapter-react-16';
66
import renderer from 'react-test-renderer';
77
import Tab from '../Tab';
88
import TabList from '../TabList';

0 commit comments

Comments
 (0)