redux-persist-immutable
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -32,3 +32,3 @@ 'use strict'; | ||
var transforms = [].concat(_toConsumableArray(incomingTransforms), [(0, _reduxPersistTransformImmutable2.default)({ records: records })]); | ||
return _extends({}, config, operators, { stateReconciler: _reconciler.stateReconciler, transforms: transforms }); | ||
return _extends({ stateReconciler: _reconciler.stateReconciler }, config, operators, { transforms: transforms }); | ||
}; | ||
@@ -35,0 +35,0 @@ |
@@ -11,3 +11,3 @@ 'use strict'; | ||
function stateReconciler(state, inboundState, reducedState, logger) { | ||
var newState = reducedState ? reducedState : new _immutable.Map(); | ||
var newState = reducedState ? reducedState : (0, _immutable.Map)(); | ||
@@ -32,3 +32,3 @@ Object.keys(inboundState).forEach(function (key) { | ||
if (logger) console.log('redux-persist/autoRehydrate: key `%s`, rehydrated to ', key, newState[key]); | ||
if (logger) console.log('redux-persist/autoRehydrate: key `%s`, rehydrated to ', key, newState.get(key)); | ||
}); | ||
@@ -35,0 +35,0 @@ |
{ | ||
"name": "redux-persist-immutable", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "top level immutablejs support for redux-persist", | ||
@@ -34,2 +34,3 @@ "main": "lib/index.js", | ||
"babel-preset-es2015": "^6.9.0", | ||
"immutable": "^3.8.1", | ||
"redux": "^3.5.2", | ||
@@ -36,0 +37,0 @@ "rimraf": "^2.5.2" |
@@ -7,5 +7,5 @@ # Redux Persist Immutable | ||
```js | ||
import { persistStore } from 'redux-persist-immutable' | ||
import { persistStore, autoRehydrate } from 'redux-persist-immutable' | ||
persistStore(state) | ||
persistStore(store) | ||
``` | ||
@@ -12,0 +12,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8405
8