use-storage-state
Advanced tools
Comparing version 1.0.1 to 2.0.0
169
package.json
{ | ||
"name": "use-storage-state", | ||
"version": "1.0.1", | ||
"description": "", | ||
"author": "kibolho", | ||
"license": "MIT", | ||
"repository": "kibolho/use-storage-state", | ||
"main": "dist/index.js", | ||
"module": "dist/index.es.js", | ||
"jsnext:main": "dist/index.es.js", | ||
"engines": { | ||
"node": ">=8", | ||
"npm": ">=5" | ||
}, | ||
"scripts": { | ||
"test": "cross-env CI=1 react-scripts test --env=jsdom", | ||
"test:watch": "react-scripts test --env=jsdom", | ||
"build": "rollup -c", | ||
"start": "rollup -c -w", | ||
"prepare": "yarn run build", | ||
"predeploy": "cd example && yarn install && yarn run build", | ||
"deploy": "gh-pages -d example/build", | ||
"postPublish": "git push --tags" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.6" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-external-helpers": "^7.0.0", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0", | ||
"@babel/plugin-proposal-decorators": "^7.0.0", | ||
"@babel/plugin-proposal-do-expressions": "^7.0.0", | ||
"@babel/plugin-proposal-export-default-from": "^7.0.0", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.0.0", | ||
"@babel/plugin-proposal-function-bind": "^7.0.0", | ||
"@babel/plugin-proposal-function-sent": "^7.0.0", | ||
"@babel/plugin-proposal-json-strings": "^7.0.0", | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", | ||
"@babel/plugin-proposal-numeric-separator": "^7.0.0", | ||
"@babel/plugin-proposal-optional-chaining": "^7.0.0", | ||
"@babel/plugin-proposal-pipeline-operator": "^7.0.0", | ||
"@babel/plugin-proposal-throw-expressions": "^7.0.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.0.0", | ||
"@babel/plugin-syntax-import-meta": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"@react-native-community/async-storage": "^1.11.0", | ||
"@rollup/plugin-typescript": "^8.2.0", | ||
"@types/faker": "^5.1.7", | ||
"@types/jest": "^26.0.21", | ||
"@types/react": "^17.0.3", | ||
"babel-eslint": "^10.0.1", | ||
"cross-env": "^5.2.0", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-config-standard-react": "^6.0.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-node": "^7.0.1", | ||
"eslint-plugin-promise": "^4.0.0", | ||
"eslint-plugin-react": "^7.10.0", | ||
"eslint-plugin-standard": "^3.1.0", | ||
"faker": "^5.4.0", | ||
"gh-pages": "^2.0.1", | ||
"mock-async-storage": "^2.2.0", | ||
"react": "^16.8.6", | ||
"react-scripts": "^3.0.1", | ||
"rollup": "^1.1.2", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.0", | ||
"rollup-plugin-url": "^2.1.0", | ||
"typescript": "^3.9.5" | ||
} | ||
"name": "use-storage-state", | ||
"version": "2.0.0", | ||
"description": "React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/astoilkov/use-storage-state.git" | ||
}, | ||
"funding": "https://github.com/sponsors/astoilkov", | ||
"homepage": "https://github.com/astoilkov/use-storage-state", | ||
"author": { | ||
"name": "Antonio Stoilkov", | ||
"email": "hello@astoilkov.com", | ||
"url": "https://astoilkov.com" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"hook", | ||
"Storage", | ||
"localStorage", | ||
"sessionStorage", | ||
"persistent", | ||
"state", | ||
"useState", | ||
"hooks", | ||
"local storage", | ||
"session storage", | ||
"store" | ||
], | ||
"type": "module", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "tsc", | ||
"size": "yarn build && size-limit", | ||
"test": "yarn build && vitest run --coverage", | ||
"release": "yarn build && np", | ||
"prettier": "prettier --write --config .prettierrc.yaml {*.ts,*.json}" | ||
}, | ||
"engines": { | ||
"node": ">=14" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"index.d.ts", | ||
"src/**/*.js", | ||
"src/**/*.d.ts" | ||
], | ||
"peerDependencies": { | ||
"react": ">=18", | ||
"react-dom": ">=18" | ||
}, | ||
"devDependencies": { | ||
"@size-limit/preset-small-lib": "^11.1.1", | ||
"@testing-library/react": "^14.0.0", | ||
"@types/react": "^18.2.67", | ||
"@types/react-dom": "^18.2.22", | ||
"@typescript-eslint/eslint-plugin": "^7.2.0", | ||
"@typescript-eslint/parser": "^7.2.0", | ||
"@vitest/coverage-v8": "^1.4.0", | ||
"confusing-browser-globals": "^1.0.11", | ||
"eslint": "^8.21.0", | ||
"eslint-config-strictest": "^0.8.1", | ||
"eslint-formatter-pretty": "^5.0.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-react": "^7.29.4", | ||
"eslint-plugin-react-hooks": "^4.5.0", | ||
"eslint-plugin-unicorn": "^43.0.2", | ||
"jsdom": "^22.1.0", | ||
"np": "^7.6.3", | ||
"prettier": "^3.2.5", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-test-renderer": "^18.1.0", | ||
"size-limit": "^11.1.1", | ||
"superjson": "^2.2.1", | ||
"typescript": "^5.4.2", | ||
"vitest": "^1.4.0" | ||
}, | ||
"size-limit": [ | ||
{ | ||
"name": "import *", | ||
"path": "index.js", | ||
"limit": "1.5 kB", | ||
"brotli": false | ||
}, | ||
{ | ||
"name": "import *", | ||
"path": "index.js", | ||
"limit": "700 B" | ||
} | ||
] | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
25
0
160
0
Yes
15468
2
7
138
2