ngrx-store-localstorage
Advanced tools
Comparing version 9.0.0 to 10.0.0
# Change Log | ||
## 10.0.0 | ||
From version 10 onwards, check [GitHub Releases](https://github.com/btroncone/ngrx-store-localstorage/releases) for release notes. | ||
## 9.0.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "ngrx-store-localstorage", | ||
"version": "9.0.0", | ||
"version": "10.0.0", | ||
"description": "State and local storage syncing for @ngrx/store", | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
"build_dist": "rimraf dist && tsc", | ||
"prepublish": "npm run build_dist", | ||
"clean:test": "rimraf tmp", | ||
"clean:dist": "rimraf dist", | ||
"lint": "tslint src/**.ts", | ||
"build_tests": "tsc -p spec", | ||
"exec_tests": "jasmine", | ||
"test": "tsc -p spec && jasmine && npm run clean:test", | ||
"typings": "typings install" | ||
}, | ||
"repository": { | ||
@@ -34,29 +22,20 @@ "type": "git", | ||
"homepage": "https://github.com/btroncone/ngrx-store-localstorage#readme", | ||
"dependencies": { | ||
"deepmerge": "^3.2.0", | ||
"tslib": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@ngrx/store": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" | ||
"@ngrx/store": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/core": "^2.4.7", | ||
"@ngrx/core": "^1.2.0", | ||
"@ngrx/store": "^7.0.0", | ||
"@types/core-js": "^0.9.35", | ||
"@types/crypto-js": "^3.1.33", | ||
"@types/jasmine": "^2.5.47", | ||
"@types/node": "^12.12.11", | ||
"crypto-js": "^3.1.9-1", | ||
"es6-promise": "^3.0.2", | ||
"es6-shim": "^0.35.0", | ||
"jasmine": "^2.4.1", | ||
"jasmine-core": "^2.4.1", | ||
"localstorage-polyfill": "^1.0.1", | ||
"rimraf": "^2.5.4", | ||
"rxjs": "^5.1.1", | ||
"tslint": "^4.0.2", | ||
"typescript": "^2.1.4", | ||
"zone.js": "^0.7.7" | ||
"lint-staged": { | ||
"*.ts": "tslint --fix" | ||
}, | ||
"typings": "./dist/index.d.ts", | ||
"dependencies": { | ||
"deepmerge": "^3.2.0" | ||
} | ||
} | ||
"main": "bundles/ngrx-store-localstorage.umd.js", | ||
"module": "fesm2015/ngrx-store-localstorage.js", | ||
"es2015": "fesm2015/ngrx-store-localstorage.js", | ||
"esm2015": "esm2015/ngrx-store-localstorage.js", | ||
"fesm2015": "fesm2015/ngrx-store-localstorage.js", | ||
"typings": "ngrx-store-localstorage.d.ts", | ||
"metadata": "ngrx-store-localstorage.metadata.json", | ||
"sideEffects": false | ||
} |
# ngrx-store-localstorage | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
[![CircleCI](https://circleci.com/gh/btroncone/ngrx-store-localstorage.svg?style=svg)](https://circleci.com/gh/btroncone/ngrx-store-localstorage) | ||
Simple syncing between ngrx store and local storage. | ||
@@ -63,3 +66,3 @@ | ||
* An array of properties which should be synced. This allows for the partial state sync (e.g. `localStorageSync({keys: [{todos: ['name', 'status'] }, ... ]})`). | ||
* An array of properties which should be synced. This allows for the partial state sync (e.g. `localStorageSync({keys: [{todos: ['name', 'status'] }, ... ]})`). Note: this config cannot go any deeper. So you cannot specify another object inside of the `todos` array for example. | ||
@@ -89,3 +92,3 @@ * A reviver function as specified in the [JSON.parse documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse). | ||
* `rehydrate` (optional) `boolean`: Pull initial state from local storage on startup, this will default to `false`. | ||
* `storage` (optional) `Storage`: Specify an object that conforms to the [Storage interface](https://github.com/Microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L9708) to use, this will default to `localStorage`. | ||
* `storage` (optional) `Storage`: Specify an object that conforms to the [Web Storage API interface](https://developer.mozilla.org/en-US/docs/Web/API/Storage) to use, this will default to `localStorage`. | ||
* `removeOnUndefined` (optional) `boolean`: Specify if the state is removed from the storage when the new value is undefined, this will default to `false`. | ||
@@ -99,1 +102,10 @@ * `storageKeySerializer` (optional) `(key: string) => string`: Custom serialize function for storage keys, used to avoid Storage conflicts. | ||
Usage: `localStorageSync({keys: ['todos', 'visibilityFilter'], storageKeySerializer: (key) => 'cool_' + key, ... })`. In this example `Storage` will use keys `cool_todos` and `cool_visibilityFilter` keys to store `todos` and `visibilityFilter` slices of state). The key itself is used by default - `(key) => key`. | ||
## Release Notes / Changelog | ||
From version 10 onwards, check [GitHub Releases](https://github.com/btroncone/ngrx-store-localstorage/releases) for release notes. For older versions check the [CHANGELOG.md](./CHANGELOG.md). | ||
## Contributing | ||
See [CONTRIBUTING.md](./CONTRIBUTING.md) for instructions on how to contribute. | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115475
0
17
109
3
771
1
1
+ Addedtslib@^2.0.0
+ Added@angular/core@10.2.5(transitive)
+ Added@ngrx/store@10.1.2(transitive)
+ Addedtslib@2.7.0(transitive)
- Removed@angular/core@9.1.13(transitive)
- Removed@ngrx/store@9.2.1(transitive)