redux-router5
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -0,1 +1,11 @@ | ||
<a name="4.1.0"></a> | ||
# [4.1.0](https://github.com/router5/redux-router5/compare/v4.0.0...v4.1.0) (2016-09-13) | ||
### Features | ||
* rework directory structure ([903df0a](https://github.com/router5/redux-router5/commit/903df0a)) | ||
<a name="4.0.0"></a> | ||
@@ -14,5 +24,5 @@ # 4.0.0 (2016-09-05) | ||
### feat | ||
### Features | ||
* feat: add canActivate and canDeactivate actions ([670efa5](https://github.com/router5/redux-router5/commit/670efa5)) | ||
* add canActivate and canDeactivate actions ([670efa5](https://github.com/router5/redux-router5/commit/670efa5)) | ||
@@ -19,0 +29,0 @@ |
@@ -1,8 +0,8 @@ | ||
import router5Middleware from './router5Middleware'; | ||
import router5Reducer from './router5Reducer'; | ||
import routeNodeSelector from './routeNodeSelector'; | ||
import * as actions from './actions'; | ||
import * as actionTypes from './actionTypes'; | ||
import reduxPlugin from './reduxPlugin'; | ||
import router5Middleware from './lib/router5Middleware'; | ||
import router5Reducer from './lib/router5Reducer'; | ||
import routeNodeSelector from './lib/routeNodeSelector'; | ||
import * as actions from './lib/actions'; | ||
import * as actionTypes from './lib/actionTypes'; | ||
import reduxPlugin from './lib/reduxPlugin'; | ||
export { router5Middleware, router5Reducer, actions, actionTypes, routeNodeSelector, reduxPlugin }; |
{ | ||
"name": "redux-router5", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Router5 integration with redux", | ||
"main": "dist/commonjs/index.js", | ||
"main": "index.js", | ||
"jnext:main": "dist/es/index.js", | ||
@@ -10,7 +10,7 @@ "scripts": { | ||
"build:es": "BABEL_ENV=es babel modules --out-dir dist/es", | ||
"build:cjs": "babel modules --out-dir dist/commonjs", | ||
"build:cjs": "babel modules --out-dir ./", | ||
"build:umd": "rollup -c rollup.config.js -f umd", | ||
"build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:umd", | ||
"test": "mocha --compilers js:babel-core/register --recursive 'test/main.js'", | ||
"clog": "conventional-changelog -i CHANGELOG.md -w", | ||
"clog": "conventional-changelog -i CHANGELOG.md -p angular -w", | ||
"lint": "eslint modules", | ||
@@ -17,0 +17,0 @@ "release": "./scripts/release.js" |
@@ -134,2 +134,4 @@ [](https://badge.fury.io/js/redux-router5) | ||
__In order to use routeNodeSelector efficiently, you need react-redux >= 4.4.0 to be able to perform per component instance memoization.__ | ||
`routeNodeSelector` is a selector designed to be used on a route node and works with `connect` higher-order component from `react-redux`. | ||
@@ -171,3 +173,17 @@ | ||
export default connect(routeNodeSelector(''))(Root); | ||
export default connect(state => routeNodeSelector(''))(Root); | ||
``` | ||
When using `routeNodeSelector` with other connect properties: | ||
```js | ||
export default connect(state => { | ||
const selector = routeNodeSelector(''); | ||
return (state) => ({ | ||
a: state.a, | ||
b: state.b, | ||
...selector(state) | ||
}) | ||
)(Root); | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40433
188