Skip to content

Commit

Permalink
fix: Make react-redux a direct dependency again (#338)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Bump minimum required version of react
  • Loading branch information
taion committed Apr 12, 2019
1 parent a159b42 commit c0162e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default AppPage;
### Installation

```
$ npm i -S react react-redux
$ npm i -S react
$ npm i -S found
```

Expand Down Expand Up @@ -700,6 +700,8 @@ ReactDOM.render(
);
```
> **Note:** Found uses `redux` and `react-redux` as direct dependencies for the convenience of users not directly using Redux. If you are directly using Redux, either ensure that you have the same versions of `redux` and `react-redux` installed as used in Found, or use package manager or bundler resolutions to force Found to use the same versions of those packages that you are using directly. Found is compatible with any current release of `redux` or `react-redux`.
When creating a store for use with the created `<ConnectedRouter>`, you should install the `foundReducer` reducer under the `found` key. You should also use a store enhancer created with `createHistoryEnhancer` from Farce and a store enhancer created with `createMatchEnhancer`, which must go after the history store enhancer. Dispatch `FarceActions.init()` after setting up your store to initialize the event listeners and the initial location for the history store enhancer.
`createConnectedRouter` ignores the `historyProtocol`, `historyMiddlewares`, and `historyOptions` properties on its options object.
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@
"lodash": "^4.17.11",
"path-to-regexp": "^1.7.0",
"prop-types": "^15.7.2",
"react-redux": "^7.0.1",
"react-static-container": "^1.0.2",
"redux": "^4.0.1",
"warning": "^4.0.3"
},
"peerDependencies": {
"react": ">=16.4.0",
"react-redux": ">=5.0.0"
"react": ">=16.8.0"
},
"devDependencies": {
"@4c/babel-preset": "^5.1.0",
Expand Down Expand Up @@ -127,7 +127,6 @@
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-proxy": "^3.0.0-alpha.1",
"react-redux": "^7.0.1",
"react-stand-in": "^4.0.0-beta.14",
"react-test-renderer": "^16.8.6",
"rimraf": "^2.6.3"
Expand Down

0 comments on commit c0162e2

Please sign in to comment.