UNPKG

zustand-mutative

Version:

A Mutative middleware for Zustand enhances the efficiency of immutable state updates.

122 lines (121 loc) 3.35 kB
{ "name": "zustand-mutative", "version": "1.3.0", "description": "A Mutative middleware for Zustand enhances the efficiency of immutable state updates.", "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", "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.esm.js" }, "default": { "types": "./dist/index.d.ts", "default": "./dist/index.cjs.js" } } }, "sideEffects": false, "files": [ "dist" ], "publishConfig": { "access": "public" }, "scripts": { "test": "jest", "test:coverage": "jest --coverage && coveralls < coverage/lcov.info", "clean": "rimraf dist", "build": "yarn clean && yarn build:prod", "build:prod": "NODE_ENV=production rollup --config --bundleConfigAsCjs", "commit": "yarn git-cz", "benchmark": "NODE_ENV=production tsx scripts/benchmark.ts" }, "repository": { "type": "git", "url": "git+https://github.com/mutativejs/zustand-mutative.git" }, "author": "unadlib", "license": "MIT", "bugs": { "url": "https://github.com/mutativejs/zustand-mutative/issues" }, "homepage": "https://github.com/mutativejs/zustand-mutative#readme", "keywords": [ "zustand", "mutative", "middleware", "immutable" ], "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", "@rollup/plugin-typescript": "^12.1.2", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.1.0", "@types/jest": "^29.5.0", "@types/node": "^18.15.5", "@types/react": "^19.0.1", "@typescript-eslint/eslint-plugin": "^8.15.0", "@typescript-eslint/parser": "^8.15.0", "benchmark": "^2.1.4", "commitizen": "^4.3.0", "coveralls": "^3.1.1", "eslint": "^8.36.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-prettier": "^8.8.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^4.2.1", "fs-extra": "^11.3.0", "glob": "^10.4.5", "immer": "^10.1.1", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "mutative": "^1.2.0", "prettier": "^2.8.6", "quickchart-js": "^3.1.3", "react": "^19.0.0", "react-dom": "^19.0.0", "rimraf": "^4.4.0", "rollup": "^4.22.5", "rollup-plugin-terser": "^7.0.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "tslib": "^2.8.1", "tsx": "^4.19.2", "typedoc": "^0.26.11", "typedoc-plugin-markdown": "^4.2.10", "typescript": "^5.8.3", "yargs": "^17.7.2", "zustand": "^5.0.5" }, "config": { "commitizen": { "path": "cz-conventional-changelog" } }, "jest": { "preset": "ts-jest", "testEnvironment": "jsdom", "globals": { "__DEV__": false } }, "peerDependencies": { "@types/react": "^18.0 || ^17.0 || ^19.0", "mutative": "^1.2.0", "react": "^18.0 || ^17.0 || ^19.0", "zustand": "^4.0 || ^5.0" } }