redux-router5
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -0,1 +1,11 @@ | ||
<a name="4.2.1"></a> | ||
## [4.2.1](https://github.com/router5/redux-router5/compare/v4.2.0...v4.2.1) (2016-09-22) | ||
### Bug Fixes | ||
* update router5.transition-path ([95c08f6](https://github.com/router5/redux-router5/commit/95c08f6)) | ||
<a name="4.2.0"></a> | ||
@@ -2,0 +12,0 @@ # 4.2.0 (2016-09-13) |
@@ -243,6 +243,14 @@ (function (global, factory) { | ||
function exists(val) { | ||
return val !== undefined && val !== null; | ||
} | ||
function hasMetaParams(state) { | ||
return state && state.meta && state.meta.params; | ||
} | ||
function extractSegmentParams(name, state) { | ||
if (!state._meta || !state._meta[name]) return {}; | ||
if (!exists(state.meta.params[name])) return {}; | ||
return Object.keys(state._meta[name]).reduce(function (params, p) { | ||
return Object.keys(state.meta.params[name]).reduce(function (params, p) { | ||
params[p] = state.params[p]; | ||
@@ -305,4 +313,4 @@ return params; | ||
i = 0; | ||
} else if (!fromState || toState.name === fromState.name && (!toState._meta || !fromState._meta)) { | ||
console.log('[router5.transition-path] Some states are missing metadata, reloading all segments'); | ||
} else if (!hasMetaParams(fromState) && !hasMetaParams(toState)) { | ||
console.warn('[router5.transition-path] Some states are missing metadata, reloading all segments'); | ||
i = 0; | ||
@@ -309,0 +317,0 @@ } else { |
{ | ||
"name": "redux-router5", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Router5 integration with redux", | ||
@@ -60,4 +60,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"router5.transition-path": "~3.0.0" | ||
"router5.transition-path": "~4.0.1" | ||
} | ||
} |
43508
798
- Removedrouter5.transition-path@3.0.0(transitive)