New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@plq/use-persisted-state

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plq/use-persisted-state - npm Package Compare versions

Comparing version 0.0.10 to 0.1.0

16

CHANGELOG.md

@@ -0,1 +1,17 @@

# [0.1.0](https://github.com/Akurganow/use-persisted-state/compare/v0.0.10...v0.1.0) (2019-09-24)
### Bug Fixes
* **actions:** comand name ([06160e7](https://github.com/Akurganow/use-persisted-state/commit/06160e7))
* **package:** email ([18c2bd3](https://github.com/Akurganow/use-persisted-state/commit/18c2bd3))
* **tests:** button text ([35bd20d](https://github.com/Akurganow/use-persisted-state/commit/35bd20d))
### Features
* **lint:** init ([f54e050](https://github.com/Akurganow/use-persisted-state/commit/f54e050))
* **readme:** add codesandbox example ([d161824](https://github.com/Akurganow/use-persisted-state/commit/d161824))
* **tests:** add clear test ([e119c94](https://github.com/Akurganow/use-persisted-state/commit/e119c94))
## [0.0.10](https://github.com/Akurganow/use-persisted-state/compare/v0.0.9...v0.0.10) (2019-09-10)

@@ -2,0 +18,0 @@

21

package.json
{
"name": "@plq/use-persisted-state",
"version": "0.0.10",
"description": "Like useState hook but with persistance in storage",
"version": "0.1.0",
"description": "useState hook with persistance in storage",
"main": "lib/index.js",

@@ -17,2 +17,3 @@ "types": "lib/index.d.ts",

"test": "jest --verbose",
"lint": "eslint ./src/**/*.ts",
"release": "npm run build && release-it",

@@ -35,3 +36,3 @@ "examples": "npm run build:watch & parcel examples/index.html"

],
"author": "Alex Kurganov <me@plqurganow.ru>",
"author": "Alex Kurganov <me@akurganow.ru>",
"license": "MIT",

@@ -55,8 +56,8 @@ "publishConfig": {

"@types/react": "^16.9.2",
"@typescript-eslint/eslint-plugin": "^2.1.0",
"@typescript-eslint/parser": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^2.3.0",
"@typescript-eslint/parser": "^2.3.0",
"conventional-changelog-cli": "^2.0.23",
"eslint": "^6.3.0",
"eslint": "^6.4.0",
"eslint-config-jest-enzyme": "^7.1.1",
"eslint-config-prettier": "^6.2.0",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-jest": "^22.17.0",

@@ -72,6 +73,6 @@ "eslint-plugin-prettier": "^3.1.0",

"react-test-renderer": "^16.9.0",
"release-it": "^12.3.6",
"ts-jest": "^24.0.2",
"typescript": "^3.6.2"
"release-it": "^12.4.0",
"ts-jest": "^24.1.0",
"typescript": "^3.6.3"
}
}

@@ -1,2 +0,2 @@

#usePersistedState
# usePersistedState

@@ -6,2 +6,3 @@ Persists the state to localStorage, sessionStorage or anything else that implements `getItem`, `setItem` and `removeItem`

## Example
```jsx

@@ -26,2 +27,5 @@ import createPersistedState from '@plq/use-persisted-state'

Little bit closer to real life:
[![Edit @plq/use-persisted-state](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/plquse-persisted-state-ob2od?fontsize=14)
## Requirement

@@ -28,0 +32,0 @@ To use `@plq/use-persisted-state`, you must use `react@16.8.0` or greater which includes Hooks.

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