@ngx-pwa/local-storage
Advanced tools
Comparing version 6.1.0-beta.1 to 6.1.0
{ | ||
"name": "@ngx-pwa/local-storage", | ||
"version": "6.1.0-beta.1", | ||
"version": "6.1.0", | ||
"description": "Efficient local storage module for Angular apps and PWA: simple API based on native localStorage API, but internally stored via the asynchronous IndexedDB API for performance, and wrapped in RxJS observables to be homogeneous with other Angular modules.", | ||
@@ -5,0 +5,0 @@ "author": "Cyrille Tuzi", |
@@ -8,3 +8,3 @@ # Async local storage for Angular | ||
- **security**: validate data with a JSON Schema, | ||
- **extensibility**: add your own storage. | ||
- **compatibility**: works around some browsers issues. | ||
@@ -255,25 +255,2 @@ You could also be interested by [@ngx-pwa/offline](https://github.com/cyrilletuzi/ngx-pwa-offline). | ||
## Extensibility | ||
### Add your own storage | ||
Starting with *version 5*, you can easily add your own storage: | ||
```typescript | ||
import { LocalDatabase } from '@ngx-pwa/local-storage'; | ||
export class MyDatabase implements LocalDatabase { | ||
/* Implement the methods required by the LocalDatabase class */ | ||
} | ||
@NgModule({ | ||
providers: [{ provide: LocalDatabase, useClass: MyDatabase }] | ||
}) | ||
export class AppModule {} | ||
``` | ||
Be sure to be compatible with Universal by checking the current platform before using any browser-specific API. | ||
## Changelog | ||
@@ -280,0 +257,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
1
787244
261