UNPKG

use-cookie-state

Version:

State management React hook using browser cookies as persistent storage

71 lines (70 loc) 1.85 kB
{ "name": "use-cookie-state", "version": "3.1.0", "description": "State management React hook using browser cookies as persistent storage", "author": "dqunbp", "license": "MIT", "repository": "dqunbp/use-cookie-state", "main": "dist/index.js", "module": "dist/index.esm.js", "scripts": { "build": "rollup -c", "start": "rollup -c -w", "test": "jest --watchAll --no-cache", "ci:test": "CI=true jest --no-cache", "prepare": "npm run build", "deploy": "gh-pages -d example/build", "semantic-release": "semantic-release", "cz": "cz" }, "jest": { "preset": "ts-jest", "testEnvironment": "jsdom" }, "files": [ "dist/**/*" ], "keywords": [ "hook", "state", "react", "cookie", "react hook", "react hooks", "use-cookie-state" ], "peerDependencies": { "cookie": "^1.0.2", "react": "^16.8.x || ^17.x.x || ^18.x.x || ^19.x.x" }, "devDependencies": { "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.1.0", "@testing-library/react-hooks": "7.0.2", "@types/cookie": "^0.5.4", "@types/jest": "^27.5.2", "@types/react": "^18.3.14", "cookie": "^1.0.2", "cz-conventional-changelog": "^3.3.0", "gh-pages": "^4.0.0", "jest": "^27.5.1", "prettier": "^2.8.8", "react": "^19.0.0", "react-test-renderer": "^19.0.0", "rollup": "^2.79.2", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.31.2", "semantic-release": "^19.0.5", "standard-version": "^9.5.0", "ts-jest": "^27.1.5", "typescript": "^4.9.5" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } } }