UNPKG

use-mutative

Version:

A hook to use Mutative as a React hook to efficient update react state immutable with mutable way

100 lines (99 loc) 2.83 kB
{ "name": "use-mutative", "version": "1.3.0", "description": "A hook to use Mutative as a React hook to efficient update react state immutable with mutable way", "main": "dist/index.cjs.js", "unpkg": "dist/index.umd.js", "types": "dist/index.d.ts", "umd:main": "dist/index.umd.js", "module": "dist/index.esm.js", "jsnext:main": "dist/index.esm.js", "react-native": "dist/index.esm.js", "typings": "dist/index.d.ts", "source": "src/index.ts", "sideEffects": false, "files": [ "dist" ], "scripts": { "test": "jest", "test:coverage": "jest --coverage && coveralls < coverage/lcov.info", "clean": "rimraf dist", "build": "yarn clean && tsc --skipLibCheck && yarn build:prod", "build:prod": "NODE_ENV=production rollup --config --bundleConfigAsCjs", "build:doc": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts", "commit": "yarn git-cz" }, "repository": { "type": "git", "url": "git+https://github.com/mutativejs/use-mutative.git" }, "author": "unadlib", "license": "MIT", "bugs": { "url": "https://github.com/mutativejs/use-mutative/issues" }, "homepage": "https://github.com/mutativejs/use-mutative#readme", "keywords": [ "react", "hook", "mutative", "immutable", "mutable", "immutability", "mutation", "react" ], "devDependencies": { "@rollup/plugin-commonjs": "^28.0.0", "@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-replace": "^6.0.1", "@rollup/plugin-terser": "^0.4.4", "@testing-library/react": "^15.0.7", "@types/jest": "^29.5.12", "@types/node": "^20.11.24", "@types/react": "^18.2.61", "@typescript-eslint/eslint-plugin": "^8.7.0", "@typescript-eslint/parser": "^8.7.0", "commitizen": "^4.3.0", "coveralls": "^3.1.1", "eslint": "^9.3.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-prettier": "^5.1.3", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jsdoc-tests": "^1.1.1", "mutative": "^1.2.0", "prettier": "^3.2.5", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^5.0.5", "rollup": "^4.22.5", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "tslib": "^2.8.1", "typedoc": "^0.26.11", "typedoc-plugin-markdown": "^4.2.10", "typescript": "^5.8.3", "yargs": "^17.7.2" }, "config": { "commitizen": { "path": "cz-conventional-changelog" } }, "jest": { "preset": "ts-jest", "testEnvironment": "jsdom", "globals": { "__DEV__": false } }, "peerDependencies": { "@types/react": "^16.8 || ^17.0 || ^18.0 || ^19.0", "mutative": "^1.2.0", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0" } }