Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 10c9fe7

Browse files
committed
[fixed] Demote React to a peer dependency
Having React as a direct dependency can cause multiple versions of React to be bundled in applications that depend on a React version that doesn't match `^0.14.7`.
1 parent 12a2ea2 commit 10c9fe7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
"mocha": "~2.4.5",
3636
"mocha-jsdom": "^1.1.0",
3737
"rackt-cli": "^0.4.0",
38-
"react": "^0.14.0",
39-
"react-addons-test-utils": "^0.14.7"
38+
"react": "^0.14.7",
39+
"react-addons-test-utils": "^0.14.7",
40+
"react-dom": "^0.14.7"
4041
},
4142
"tags": [
4243
"react",
@@ -46,8 +47,9 @@
4647
],
4748
"keywords": [],
4849
"dependencies": {
49-
"dom-scroll-into-view": "1.0.1",
50-
"react": "^0.14.7",
51-
"react-dom": "^0.14.7"
50+
"dom-scroll-into-view": "1.0.1"
51+
},
52+
"peerDependencies": {
53+
"react": "^0.14.7"
5254
}
5355
}

0 commit comments

Comments
 (0)