3.3.1 (2021-05-07)
- StorageService
- incorrect remove call in
set
with nullish value (#40)
- incorrect remove call in
3.3.0 (2021-02-26)
- Service
- Adds the possibility to use sessionstorage instead of localstorage (thanks to @vladimirstempel)
- default storage will stay localstorage
- set via module configuration
- Adds the possibility to use sessionstorage instead of localstorage (thanks to @vladimirstempel)
3.2.1 (2020-11-06)
- Module
- add support for submodules and lazy-loaded submodules (#32)
3.2.0 (2020-10-06)
- Framework
- Updates compatibility to Angular v10.x
3.1.0 (2020-03-15)
- Framework
- Updates compatibility to Angular v9.x
3.0.0 (2020-03-08)
- Service
- the service is now fed by a default (de)serializer using
JSON.stringify()/JSON.parse()
- the service is now fed by a default (de)serializer using
- Service
- the service is now using a default (de)serialization mechanism (mentioned above) (#24) (fd5feca)
- depending on your prior usage it may break your code
- it's possible to either inject an app wide (de)serializer or use one per storage call (see README)
2.4.1 (2020-02-29)
- Service
- Service use configured prefix if set (#21)
2.4.0 (2019-08-19)
- Configuration
- Allow usage without key prefix
- Angular
- Added back schematics support
2.3.0 (2018-12-18)
- Angular
- Removed schematics support
- updated compatibility to Angular >=4.0.0
2.2.1 (2018-08-13)
- Angular
- Added schematics support (#11)
2.1.0 (2018-08-12)
- Angular 6 compatibility
- fixed build errors (#12)
- Angular
- Updated to Angular 6
2.0.1 (2018-02-22)
- AoT (production) builds
- fixed "Encountered undefined provider!" error
2.0.2 (2018-02-21)
- Reactivity
- the Decorator and the directive are now reactive
- if you have storage changes in other tabs these changes are reflected to all instances
- StorageEventService
- allows to hook onto the events from storage
Observable<StorageEvent>
- allows to hook onto the events from storage
- Decorator
- ngxLocalStorage received a new property
nullTransformer?: () => any
which is used to transform null values (e.g. when value is removed from storage)
- ngxLocalStorage received a new property
- Directive
- lsFalsyTransformer received a new property
lsFalsyTransformer?: () => any
which is used to transform falsy values (e.g. 'false' is bound to a checkbox input)
- lsFalsyTransformer received a new property
- Angular 6 compatibility
- fixed warnings on AoT builds
- LocalStorageService
- new default usage: removed the prior Promise-based usage in favour of direct calls
- Promised-based usage is still possible by using
service.asPromisable()
- Decorator:
- ngxLocalStorage: loads stored value on startup and stores value on property change