Skip to content

Latest commit

 

History

History
255 lines (156 loc) · 8.92 KB

CHANGELOG.md

File metadata and controls

255 lines (156 loc) · 8.92 KB

6.0.0 (2024-03-10)

🚀 Features

  • add support for formControl (68406fc)
  • expose library version token (8040c85)

BREAKING CHANGES

❤️ Thank You

  • bohoffi @bohoffi

5.1.0 (2023-10-29)

Features

5.0.0 (2023-03-15)

Features

  • add Angular Standalone API support (5860a59)
    • add helper function for providers (c06532c)
    • add features for provider function (cb67459)

BREAKING CHANGES

  • remove PromisableService (1217023)
  • remove deprecated overloads (7b9b733)

4.0.0 (2022-10-24)

Features

  • subscibe directly to LocalStorageService to obtain StorageEvent 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 to DefaultSerializer) (57f00ca)
  • use DefaultSerializer by default (3e77633)

BREAKING CHANGES

  • library now utilizes SCAM (6ee4690)
    • removed NgxLocalStorageModule
    • added NgxLocalstorageDirectiveModule
    • Configuration has to be provided by InjectionToken
  • update configuration and decorator options (0d36315)
    • removed storage: Storage
    • added storageType: 'localStorage' | 'sessionStorage'
  • removed StorageEventService (9125a8b)
    • Storage events can now bo obtained by subscribing to LocalStorageService directily via subscribe
  • update properties in LocalStorageDirective(c3b7d48)
    • remove ls prefix
  • drop decorator support in favor of directive (2681110)

Deprecations

  • mark PromisableService as deprecated (2133daf)
  • mark several overloads in LocalStorageService as deprecated (a124382)

3.5.0 (2022-10-23)

Features

  • Update to Ivy compatibility

3.4.0 (2021-07-16)

Features

3.3.1 (2021-05-07)

Bug fixes

  • StorageService
    • incorrect remove call in set with nullish value (#40)

3.3.0 (2021-02-26)

Features

  • Service
    • Adds the possibility to use sessionstorage instead of localstorage (thanks to @vladimirstempel)
      • default storage will stay localstorage
      • set via module configuration

3.2.1 (2020-11-06)

Bug fixes

  • Module
    • add support for submodules and lazy-loaded submodules (#32)

3.2.0 (2020-10-06)

Features

  • Framework
    • Updates compatibility to Angular v10.x

3.1.0 (2020-03-15)

Features

  • Framework
    • Updates compatibility to Angular v9.x

3.0.0 (2020-03-08)

Features

  • Service
    • the service is now fed by a default (de)serializer using JSON.stringify()/JSON.parse()

Breaking changes

  • 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)

Bug fixes

  • Service
    • Service use configured prefix if set (#21)

2.4.0 (2019-08-19)

Features

  • Configuration
    • Allow usage without key prefix

Changes

  • Angular
    • Added back schematics support

2.3.0 (2018-12-18)

Changes

  • Angular
    • Removed schematics support
    • updated compatibility to Angular >=4.0.0

2.2.1 (2018-08-13)

Features

  • Angular
    • Added schematics support (#11)

2.1.0 (2018-08-12)

Bug fixes

  • Angular 6 compatibility
    • fixed build errors (#12)

Features

  • Angular
    • Updated to Angular 6

2.0.1 (2018-02-22)

Bug fixes

  • AoT (production) builds
    • fixed "Encountered undefined provider!" error

2.0.2 (2018-02-21)

Features

  • 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>
  • Decorator
    • ngxLocalStorage received a new property nullTransformer?: () => any which is used to transform null values (e.g. when value is removed from storage)
  • Directive
    • lsFalsyTransformer received a new property lsFalsyTransformer?: () => any which is used to transform falsy values (e.g. 'false' is bound to a checkbox input)

Bug fixes

  • Angular 6 compatibility
    • fixed warnings on AoT builds

1.2.0 (2017-05-22)

Breaking changes

  • 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()

Features

  • Decorator:
    • ngxLocalStorage: loads stored value on startup and stores value on property change