6.0.0 (2024-03-10)
- update to Angular 17 (3942bee)
- bohoffi @bohoffi
5.1.0 (2023-10-29)
- update Angular version compatibility - thanks Boris-Bodin (#59)
5.0.0 (2023-03-15)
- add Angular Standalone API support (5860a59)
4.0.0 (2022-10-24)
- subscibe directly to
LocalStorageService
to obtainStorageEvent
stream (9125a8b) - library errors will be emitted through service stream (c34359b)
- abort initialization when storage is not available (13d68ee)
- expose
STORAGE_SUPPORT
token (4f2659d)- check storage availability before actually using the library
- add
serializer
to decorator options (defaults toDefaultSerializer
) (57f00ca) - use
DefaultSerializer
by default (3e77633)
- library now utilizes SCAM (6ee4690)
- removed
NgxLocalStorageModule
- added
NgxLocalstorageDirectiveModule
- Configuration has to be provided by InjectionToken
- removed
- update configuration and decorator options (0d36315)
- removed
storage: Storage
- added
storageType: 'localStorage' | 'sessionStorage'
- removed
- removed
StorageEventService
(9125a8b)- Storage events can now bo obtained by subscribing to
LocalStorageService
directily viasubscribe
- Storage events can now bo obtained by subscribing to
- update properties in
LocalStorageDirective
(c3b7d48)- remove
ls
prefix
- remove
- drop decorator support in favor of directive (2681110)
- mark
PromisableService
as deprecated (2133daf) - mark several overloads in
LocalStorageService
as deprecated (a124382)
3.5.0 (2022-10-23)
- Update to Ivy compatibility
3.4.0 (2021-07-16)
- Configuration
- add optional custom delimiter (#42)
- thanks to @assureclaims
- add optional custom delimiter (#42)
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