Socket
Socket
Sign inDemoInstall

ngrx-store-localstorage

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngrx-store-localstorage - npm Package Compare versions

Comparing version 9.0.0 to 10.0.0

bundles/ngrx-store-localstorage.umd.js

4

CHANGELOG.md
# 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 @@

55

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc