Persistence layer for redux with flexible backends
FIX: Ship proper sources for jsnext:main
(see issue #152)
NODE_ENV != 'production'
, the save action issued by redux-storage contains a meta.origin
with the action that trigged this save request. This is a pretty useful feature, if you want to track the origins of the save requests (issue #100 / PR #102)As we now support flexible state merger functions, ImmutableJS has completely been removed from this project! So if you're using redux-storage with ImmutableJS, you have to pass redux-storage-merger-immutablejs as second argument to storage.reducer
!
Old
const reducer = storage.reducer(combineReducers(reducers));
New
$ npm install --save redux-storage-merger-immutablejs
import immutableJsMerger from 'redux-storage-merger-immutablejs';
const reducer = storage.reducer(combineReducers(reducers), immutableJsMerger);
transform.envify
for a better browserify
supportWhoop! :tada: We've got time for issue #88 (PR #91) and redux-storage is now only the "management core" and all decorators and engines are distributed as own project/package on npm!
Benefits of this transition range from less code you need to download and a more explicit dependency management to a more manageable codebase (multiple small projects instead of one big) and a more open plugin/extension culture. So go ahead and build more awesome decorators/engines! Just tag them properly and both engines and decorators can easily be browsed on npm :sunglasses:
decorator.filter
=> npm install --save redux-storage-decorator-filter
decorator.debounce
=> npm install --save redux-storage-decorator-debounce
decorator.immutablejs
=> npm install --save redux-storage-decorator-immutablejs
decorator.migrate
=> npm install --save redux-storage-decorator-migrate
redux-storage/engine/reactNativeAsyncStorage
=> npm install --save redux-storage-engine-reactnativeasyncstorage
redux-storage/engine/localStorage
=> npm install --save redux-storage-engine-localstorage
redux-storage/engine/localStorageFakePromise
=> npm install --save redux-storage-engine-localstoragefakepromise
decorators.filter
now has a blacklist as optional second argument (PR #90)decorators.migrate
(PR #89)decorators.migrate
thanks to @mathieudutour (PR #87)package.json
now has a jsnext:main
entry - rollup all the things!decorators.debounce
with a proper Error
object