@ngx-pwa/local-storage
Advanced tools
Changelog
10.0.1 (2020-07-11)
Correctly propagate the browser error when trying to store a value exceeding the browser size limit.
Changelog
10.0.0 (2020-06-25)
Supports and requires Angular 10.
No library change.
A full migration guide to version 10 is available.
If you did not update to version 9 yet, be sure to follow it, as otherwise you could lose all previously stored data.
Changelog
9.0.3 (2020-03-13)
No code change, just rebuilt with very last Angular 9.0.6 to prevent any ngcc
issues.
Changelog
9.0.2 (2020-02-07)
If you were already using version >= v9.0.0-beta.4 or v9.0.0-rc.x of this lib,
as a one time exception, please update with a classic npm install @ngx-pwa/local-storage@9
,
to avoid migration happening twice.
For future v9+ updates and if you are coming from v8.0.0 or version v9.0.0-beta.1-3,
please stick to ng update @ngx-pwa/local-storage
.
Following these instructions is very important, otherwise it would result in wrong config and loss of previously stored data.
Changelog
9.0.0 (2020-02-07)
A full migration guide to version 9 is available.
Be sure to follow it, as otherwise you could lose all previously stored data.
v9 requires Angular 9.
Doing ng update
should have managed backward compatibility.
But it is not easy to be sure schematics work in all cases,
so be sure to check the migration was done correctly by following the
migration guide to v9, otherwise you would lost previously stored data.
.watch()
method on StorageMap
service
(see documentation)The following APIs were already deprecated in v8 and are now removed in v9. Please follow the migration guide to v8 for more details about how to update to new APIs.
{ provide: LOCAL_STORAGE_PREFIX, useValue: 'myapp' }
and localStorageProviders()
(use StorageModule.forRoot({ LSPrefix: 'myapp_', IDBDBName: 'myapp_ngStorage' })
module import instead)LocalStorageProvidersConfig
interface (useless)JSONSchemaNumeric
interface (use JSONSchema
instead)LSGetItemOptions
interface (useless)LocalStorage
service
.size
(use .length
or StorageMap.size
instead).has()
(use StorageMap.has()
instead).keys()
(use iterative StorageMap.keys()
instead).setItemSubscribe()
(use .setItem().subscribe()
instead).removeItemSubscribe()
(use .removeItem().subscribe()
instead).clearSubscribe()
(use .clear().subscribe()
instead)