UNPKG

react-atomic-state

Version:

Dead simple React global state management based on use-sync-external-store

68 lines (67 loc) 1.67 kB
{ "name": "react-atomic-state", "version": "2.1.0", "license": "MIT", "description": "Dead simple React global state management based on use-sync-external-store", "author": "Mathieu Acthernoene <zoontek@gmail.com>", "homepage": "https://github.com/zoontek/react-atomic-state#readme", "repository": { "type": "git", "url": "https://github.com/zoontek/react-atomic-state.git" }, "sideEffects": false, "source": "src/index.ts", "main": "dist/index.js", "module": "dist/index.module.js", "types": "dist/index.d.ts", "files": [ "dist" ], "keywords": [ "global", "react", "recoil", "redux", "state", "store", "zustand" ], "scripts": { "build": "yarn clean && microbundle -f cjs,es", "clean": "rm -rf dist", "dev": "microbundle watch", "format": "prettier '**/*' -u -w", "test": "vitest --run", "test:watch": "vitest --watch", "typecheck": "tsc --noEmit", "prepack": "yarn typecheck && yarn test && yarn build" }, "browserslist": [ ">0.2%", "not op_mini all", "not dead" ], "prettier": { "trailingComma": "all" }, "peerDependencies": { "react": ">=18.0.0" }, "dependencies": { "use-sync-external-store": "^1.5.0" }, "devDependencies": { "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.3.0", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@types/use-sync-external-store": "^1.5.0", "jsdom": "^26.1.0", "microbundle": "^0.15.1", "prettier": "^3.6.2", "react": "^19.1.0", "react-dom": "^19.1.0", "typescript": "^5.8.3", "vitest": "^3.2.4" } }