Skip to content

Commit 941b496

Browse files
committed
moved react to peer deps
This makes it less likely to clash with a user's react version. If they upgrade to 0.11 when it comes out, your package will automatically use their version. If you discover it's not compatible with 0.11, you can restrict the peerDependencies to disallow it, and then they'll get a warning/error instead of it silently including both react versions.
1 parent cd74bbd commit 941b496

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-nested-router",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "A complete routing library for React",
55
"tags": [
66
"react",
@@ -35,10 +35,12 @@
3535
"rf-release": "^0.1.2",
3636
"karma-firefox-launcher": "^0.1.3"
3737
},
38+
"peerDependencies": {
39+
"react": "^0.10.0"
40+
},
3841
"dependencies": {
3942
"es6-promise": "^1.0.0",
4043
"event-emitter": "^0.3.1",
41-
"querystring": "^0.2.0",
42-
"react": "^0.10.0"
44+
"querystring": "^0.2.0"
4345
}
4446
}

0 commit comments

Comments
 (0)