UNPKG

@vorthain/react-state

Version:

A minimal and reactive state management library for React, enabling automatic UI updates through direct, mutable state changes.

155 lines (154 loc) 3.6 kB
{ "name": "@vorthain/react-state", "version": "0.2.1", "description": "A minimal and reactive state management library for React, enabling automatic UI updates through direct, mutable state changes.", "main": "dist/index.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.esm.js", "require": "./dist/index.js" } }, "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "build": "rollup -c", "dev": "rollup -c -w", "prepare": "npm run build", "type-check": "tsc --noEmit", "prepublishOnly": "npm run type-check && npm run test && npm run build", "clean": "rm -rf dist", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "test:ci": "jest --ci --coverage --watchAll=false" }, "peerDependencies": { "react": ">=19.0.0", "react-dom": ">=19.0.0" }, "peerDependenciesMeta": { "react": { "optional": false }, "react-dom": { "optional": false } }, "keywords": [ "react", "state", "state-management", "global-state", "react-state", "mutable", "observable", "store", "hooks", "proxy", "reactive", "vorthain", "typescript", "zero-config", "no-boilerplate", "direct-mutation", "simple-state", "developer-experience", "react-hooks", "state-library", "mutation-based", "easy-state", "react-store", "react-global-state", "mutable-state", "vorthain-react-state", "@vortain/react-state", "@vorthain" ], "author": "Vorthain", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/vorthain/vorthain-react-state.git" }, "bugs": { "url": "https://github.com/vorthain/vorthain-react-state/issues" }, "homepage": "https://github.com/vorthain/vorthain-react-state#readme", "engines": { "node": ">=16.0.0" }, "publishConfig": { "access": "public" }, "devDependencies": { "react": "^19.1.1", "react-dom": "^19.1.1", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-typescript": "^12.1.4", "@testing-library/jest-dom": "^6.6.4", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/react": "^19.1.9", "@types/react-dom": "^19.1.7", "jest": "^30.0.5", "jest-environment-jsdom": "^30.0.5", "rollup": "^4.46.2", "rollup-plugin-peer-deps-external": "^2.2.4", "ts-jest": "^29.4.1", "tslib": "^2.8.1", "typescript": "^5.9.2" }, "jest": { "preset": "ts-jest", "testEnvironment": "jsdom", "setupFilesAfterEnv": [ "<rootDir>/src/setupTests.ts" ], "collectCoverageFrom": [ "src/**/*.{ts,tsx}", "!src/**/*.d.ts", "!src/setupTests.ts" ], "coverageReporters": [ "text", "lcov", "html" ], "coverageThreshold": { "global": { "branches": 10, "functions": 20, "lines": 20, "statements": 20 } }, "testMatch": [ "<rootDir>/__tests__/**/*.{ts,tsx}", "<rootDir>/src/**/__tests__/**/*.{ts,tsx}", "<rootDir>/src/**/*.{test,spec}.{ts,tsx}" ], "moduleNameMapper": { "^@/(.*)$": "<rootDir>/src/$1" }, "transform": { "^.+\\.(ts|tsx)$": [ "ts-jest", { "useESM": true } ] }, "extensionsToTreatAsEsm": [ ".ts", ".tsx" ] } }