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

Commit 51bddfa

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 c6956ad commit 51bddfa

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",
@@ -47,8 +48,9 @@
4748
"keywords": [],
4849
"dependencies": {
4950
"dom-scroll-into-view": "1.0.1",
50-
"lodash": "^4.5.0",
51-
"react": "^0.14.7",
52-
"react-dom": "^0.14.7"
51+
"lodash": "^4.5.0"
52+
},
53+
"peerDependencies": {
54+
"react": "^0.14.7"
5355
}
5456
}

0 commit comments

Comments
 (0)