ngrx-store-localstorage
Version:
State and local storage syncing for @ngrx/store
39 lines (21 loc) • 1.53 kB
Markdown
# Change Log
## 10.0.0
From version 10 onwards, check [GitHub Releases](https://github.com/btroncone/ngrx-store-localstorage/releases) for release notes.
## 9.0.0
### Breaking changes
- Remove deprecated `localStorageSyncAndClean` function
### Features
- Allow `@ngrx/store` v9 as a peer dependency [#142](https://github.com/btroncone/ngrx-store-localstorage/pull/142)
- Add `mergeReducer` option to define the reducer to use to merge the rehydrated state from storage with the state from the ngrx store [#135](https://github.com/btroncone/ngrx-store-localstorage/pull/135)
## 8.0.0
### Potentially breaking changes
- Switched from lodash to deepmerge to keep bundle size small and avoid lodash security issues. This is intended to have no impact. However we cannot guarantee merging old state from localstorage with new state will function 100% the same. See [#126](https://github.com/btroncone/ngrx-store-localstorage/pull/126) for more info.
- Objects will now lose their function definitions when rehydrated. Using such was already against the [Redux way](https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state) but was previously supported.
### Features
- Angular Universal support [#127](https://github.com/btroncone/ngrx-store-localstorage/pull/127)
- Slightly reduced bundle size by avoiding lodash.merge
## 5.0.0 (2018-02-17)
### Bug Fixes
- Support rehydration for feature modules
### Features
- Upgrade @ngrx/store peer dependency to v5