Skip to content

Commit e099a73

Browse files
evocateurzalmoxisus
authored andcommitted
Allow react-redux 5 in peerDependencies (#334)
This allows users to upgrade to the API-compatible v5 of react-redux without encumbering their `node_modules` with a nested copy of react-redux (v4) under `redux-devtools/node_modules`. It also moves redux and react-redux into `devDependencies`, which is the proper location for packages that are also specified in `peerDependencies`. Otherwise, peers specified as an alternating range (`||`) won't resolve properly. This brings it in line with what [react-redux does](https://github.com/reactjs/react-redux/blob/master/package.json#L94-L107).
1 parent ec2e1ae commit e099a73

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,18 @@
5454
"react": "^0.14.0",
5555
"react-addons-test-utils": "^0.14.0",
5656
"react-dom": "^0.14.0",
57+
"react-redux": "^4.0.0",
58+
"redux": "^3.5.2",
5759
"rimraf": "^2.3.4",
5860
"webpack": "^1.11.0"
5961
},
6062
"peerDependencies": {
61-
"redux": "^3.5.0",
62-
"react": "^0.14.0 || ^15.0.0-rc.1"
63+
"react": "^0.14.0 || ^15.0.0",
64+
"react-redux": "^4.0.0 || ^5.0.0",
65+
"redux": "^3.5.2"
6366
},
6467
"dependencies": {
6568
"lodash": "^4.2.0",
66-
"react-redux": "^4.0.0",
67-
"redux": "^3.5.2",
6869
"redux-devtools-instrument": "^1.0.1"
6970
}
7071
}

0 commit comments

Comments
 (0)