{"_id":"recoil-next","_rev":"7-a47a92fc2a9e111d7524e86bb91c4fd8","name":"recoil-next","dist-tags":{"latest":"0.4.4"},"versions":{"0.1.0":{"name":"recoil-next","version":"0.1.0","keywords":["recoil","react","state-management","typescript"],"author":{"name":"Mutesa Cedric"},"license":"MIT","_id":"recoil-next@0.1.0","maintainers":[{"name":"mtx_cedric","email":"mutesacedric@gmail.com"}],"homepage":"https://github.com/Mutesa-Cedric/Recoil-next#readme","bugs":{"url":"https://github.com/Mutesa-Cedric/Recoil-next/issues"},"dist":{"shasum":"eed23e8a5a0c5a18ed77c46e27bf14e3b3f799d7","tarball":"https://registry.npmjs.org/recoil-next/-/recoil-next-0.1.0.tgz","fileCount":5,"integrity":"sha512-n2wdBsH23N7DsjtKILj0RpMvc5VjZY/Dk5gtwfrgcV1ZaeTTQ4DBaZhJ67A4vgImt1p0jjqjR0L9t/jn3KsIwQ==","signatures":[{"sig":"MEQCICw6Da3phvERFzvJfGQg/DBPjC420APX6DNZFKtkof/sAiBTMGz8FfobF871MMAv82F2EkM84/WJP61/uc33rsOE6Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":461280},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"51ad625ae9d730aace93db705e421b728fc98310","scripts":{"lint":"eslint \"src/**/*.{ts,tsx}\"","test":"vitest","build":"rollup -c","format":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"","test:ui":"vitest --ui","prebuild":"echo \"declare module 'hamt_plus';\" > hamt_plus.d.ts","test:run":"vitest run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mtx_cedric","email":"mutesacedric@gmail.com"},"repository":{"url":"git+https://github.com/Mutesa-Cedric/Recoil-next.git","type":"git"},"_npmVersion":"10.9.2","description":"TypeScript rewrite of Recoil Next","directories":{},"_nodeVersion":"22.17.0","dependencies":{"@rollup/plugin-commonjs":"^28.0.6"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^26.1.0","tslib":"^2.6.0","rollup":"^4.0.0","vitest":"^2.1.8","hamt_plus":"^1.0.2","@vitest/ui":"^2.1.8","typescript":"^5.4.2","@types/node":"^18.15.3","@types/react":"^18.2.39","@types/hamt_plus":"^1.0.0","@types/react-dom":"^18.2.14","rollup-plugin-dts":"^6.2.1","react-test-renderer":"^19.1.0","@testing-library/react":"^16.3.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.1","@rollup/plugin-typescript":"^12.1.4","@testing-library/jest-dom":"^6.6.3","@rollup/plugin-node-resolve":"^16.0.1","@typescript-eslint/eslint-plugin":"^8.36.0"},"peerDependencies":{"react":">=18"},"_npmOperationalInternal":{"tmp":"tmp/recoil-next_0.1.0_1753707242325_0.46727851369461204","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"recoil-next","version":"0.2.0","keywords":["recoil","state-management","react","state-management-library"],"author":{"url":"https://github.com/Mutesa-Cedric","name":"Mutesa Cedric","email":"mutesacedric@gmail.com"},"license":"MIT","_id":"recoil-next@0.2.0","maintainers":[{"name":"mtx_cedric","email":"mutesacedric@gmail.com"}],"homepage":"https://github.com/Mutesa-Cedric/Recoil-next#readme","bugs":{"url":"https://github.com/Mutesa-Cedric/Recoil-next/issues"},"dist":{"shasum":"a4406ca766998d9045b0a898674fab57230c92dc","tarball":"https://registry.npmjs.org/recoil-next/-/recoil-next-0.2.0.tgz","fileCount":6,"integrity":"sha512-gD/bYl4fCeDAIEyLOsRzQGf5a7eEQ27mrPKV4TS9aLu13tt71khtDvGW7hJw248aEKUFP/Bcf72ZPanqGbobSA==","signatures":[{"sig":"MEUCIAn7+vcULcwL3RL1pWr1AsnW8G9teBW6EAoc0I7i3q41AiEApWR0s5kUJBID56RtE9JcHSNbKeBnHhEnji/QPycnBrQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":433872},"main":"dist/index.cjs","_from":"file:recoil-next-0.2.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"rollup -c","release":"bumpp && npm publish","test:run":"vitest run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mtx_cedric","email":"mutesacedric@gmail.com"},"_resolved":"/private/var/folders/0_/3z96vy5n4292r_ryn_9x4cs00000gn/T/a5844edfba41c790dacc87066c94d30d/recoil-next-0.2.0.tgz","_integrity":"sha512-gD/bYl4fCeDAIEyLOsRzQGf5a7eEQ27mrPKV4TS9aLu13tt71khtDvGW7hJw248aEKUFP/Bcf72ZPanqGbobSA==","repository":{"url":"git+https://github.com/Mutesa-Cedric/Recoil-next.git","type":"git"},"_npmVersion":"10.9.2","description":"Continuation of Recoil - A state management library for React","directories":{},"_nodeVersion":"22.17.0","dependencies":{"hamt_plus":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"bumpp":"^10.2.2","jsdom":"^26.1.0","tslib":"^2.6.0","rollup":"^4.0.0","vitest":"^2.1.8","@vitest/ui":"^2.1.8","typescript":"^5.4.2","@types/node":"^18.15.3","@types/react":"^18.2.39","@types/hamt_plus":"^1.0.0","@types/react-dom":"^18.2.14","rollup-plugin-dts":"^6.2.1","react-test-renderer":"^19.1.0","@testing-library/react":"^16.3.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.1","@rollup/plugin-commonjs":"^28.0.6","@rollup/plugin-typescript":"^12.1.4","@testing-library/jest-dom":"^6.6.3","@rollup/plugin-node-resolve":"^16.0.1","@typescript-eslint/eslint-plugin":"^8.36.0"},"peerDependencies":{"react":">=18"},"_npmOperationalInternal":{"tmp":"tmp/recoil-next_0.2.0_1754836142327_0.07538401560891805","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"recoil-next","version":"0.3.0","keywords":["recoil","state-management","react","state-management-library"],"author":{"url":"https://github.com/Mutesa-Cedric","name":"Mutesa Cedric","email":"mutesacedric@gmail.com"},"license":"MIT","_id":"recoil-next@0.3.0","maintainers":[{"name":"mtx_cedric","email":"mutesacedric@gmail.com"}],"homepage":"https://github.com/Mutesa-Cedric/Recoil-next#readme","bugs":{"url":"https://github.com/Mutesa-Cedric/Recoil-next/issues"},"dist":{"shasum":"e89e96d8619e853c6ce2d9505e6da9cc9a9aeedc","tarball":"https://registry.npmjs.org/recoil-next/-/recoil-next-0.3.0.tgz","fileCount":6,"integrity":"sha512-B+W+bLamiamVdDpoa98Bmadzrf8lc1/fuL+oYC4juP4voxcBf6Q4Kv2cqpvsoxG1pzy0EsmOfJC3qdm6UUiaZg==","signatures":[{"sig":"MEQCIFTTycFA+/z6FjLYqij0IkxLArA8PrWLU0PYgRNJ0JdqAiAoy1CPDkpwzeRKhW8jXklShfesFeFW6s9eCPfiuuVvWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":454281},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"d76de31d0d45f23538d0556ae8a3795e72b4ab85","scripts":{"test":"vitest","build":"rollup -c","release":"bumpp && npm publish","test:run":"vitest run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mtx_cedric","email":"mutesacedric@gmail.com"},"repository":{"url":"git+https://github.com/Mutesa-Cedric/Recoil-next.git","type":"git"},"_npmVersion":"10.9.2","description":"Continuation of Recoil - A state management library for React","directories":{},"_nodeVersion":"22.17.0","dependencies":{"hamt_plus":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"bumpp":"^10.2.2","jsdom":"^26.1.0","tslib":"^2.6.0","rollup":"^4.0.0","vitest":"^2.1.8","@vitest/ui":"^2.1.8","typescript":"^5.4.2","@types/node":"^18.15.3","@types/react":"^18.2.39","@types/hamt_plus":"^1.0.0","@types/react-dom":"^18.2.14","rollup-plugin-dts":"^6.2.1","react-test-renderer":"^19.1.0","@testing-library/react":"^16.3.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.1","@rollup/plugin-commonjs":"^28.0.6","@rollup/plugin-typescript":"^12.1.4","@testing-library/jest-dom":"^6.6.3","@rollup/plugin-node-resolve":"^16.0.1","@typescript-eslint/eslint-plugin":"^8.36.0"},"peerDependencies":{"react":">=18"},"_npmOperationalInternal":{"tmp":"tmp/recoil-next_0.3.0_1755265159323_0.5276976466714673","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"recoil-next","version":"0.4.0","keywords":["recoil","state-management","react","state-management-library"],"author":{"url":"https://github.com/Mutesa-Cedric","name":"Mutesa Cedric","email":"mutesacedric@gmail.com"},"license":"MIT","_id":"recoil-next@0.4.0","maintainers":[{"name":"mtx_cedric","email":"mutesacedric@gmail.com"}],"homepage":"https://github.com/Mutesa-Cedric/Recoil-next#readme","bugs":{"url":"https://github.com/Mutesa-Cedric/Recoil-next/issues"},"dist":{"shasum":"28795959e6547d1c76663d8768690e2b05d6f87f","tarball":"https://registry.npmjs.org/recoil-next/-/recoil-next-0.4.0.tgz","fileCount":6,"integrity":"sha512-PW6Qoc0yHX1VAxfgaTIg8q307n1KAnAdk6qsnHvEg1UtKRvm56iLTFK34RT2xBya3NNgZa9T8Z3L0bJezNNt1w==","signatures":[{"sig":"MEUCIFGselisBgNAD6ysxOoH/z2XgLIFWAaqQhbQP7aeQSiDAiEAivnI4LuziuZ7lkg7DCOij7NbdRCcIEPu69QA2pxXYRs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":455015},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"7d64df878f6f83323e3c249f4084893d59c0e68d","scripts":{"test":"vitest","build":"rollup -c","release":"bumpp && npm publish","test:run":"vitest run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mtx_cedric","email":"mutesacedric@gmail.com"},"repository":{"url":"git+https://github.com/Mutesa-Cedric/Recoil-next.git","type":"git"},"_npmVersion":"10.9.2","description":"Continuation of Recoil - A state management library for React","directories":{},"_nodeVersion":"22.17.0","dependencies":{"hamt_plus":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"bumpp":"^10.2.2","jsdom":"^26.1.0","tslib":"^2.6.0","rollup":"^4.0.0","vitest":"^3.2.4","@vitest/ui":"^3.2.4","typescript":"^5.4.2","@types/node":"^18.15.3","@types/react":"^18.2.39","@types/hamt_plus":"^1.0.0","@types/react-dom":"^18.2.14","rollup-plugin-dts":"^6.2.1","react-test-renderer":"^19.1.0","@testing-library/react":"^16.3.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.1","@rollup/plugin-commonjs":"^28.0.6","@rollup/plugin-typescript":"^12.1.4","@testing-library/jest-dom":"^6.6.3","@rollup/plugin-node-resolve":"^16.0.1","@typescript-eslint/eslint-plugin":"^8.36.0"},"peerDependencies":{"react":">=18"},"_npmOperationalInternal":{"tmp":"tmp/recoil-next_0.4.0_1762526719007_0.32687561160705814","host":"s3://npm-registry-packages-npm-production"}},"0.4.4":{"name":"recoil-next","version":"0.4.4","description":"Continuation of Recoil - A state management library for React","author":{"name":"Mutesa Cedric","email":"mutesacedric@gmail.com","url":"https://github.com/Mutesa-Cedric"},"keywords":["recoil","state-management","react","state-management-library"],"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"build":"rollup -c","test":"vitest","test:ui":"vitest --ui","test:run":"vitest run","lint":"eslint \"src/**/*.{ts,tsx}\"","format":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\" \"*.{json,md,yml,yaml}\"","format:check":"prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\" \"*.{json,md,yml,yaml}\"","lint:fix":"eslint \"src/**/*.{ts,tsx}\" --fix","typecheck":"tsc --noEmit","clean":"rm -rf dist","release":"bumpp && npm publish"},"peerDependencies":{"react":">=18"},"dependencies":{"hamt_plus":"^1.0.2"},"devDependencies":{"@rollup/plugin-commonjs":"^28.0.6","@rollup/plugin-node-resolve":"^16.0.1","@rollup/plugin-typescript":"^12.1.4","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.3.0","@types/hamt_plus":"^1.0.0","@types/node":"^18.15.3","@types/react":"^18.2.39","@types/react-dom":"^18.2.14","@typescript-eslint/eslint-plugin":"^8.36.0","@typescript-eslint/parser":"^8.39.1","@vitest/ui":"^3.2.4","bumpp":"^10.2.2","eslint":"^9.33.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.1","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-unused-imports":"^4.2.0","jsdom":"^26.1.0","react":"^19.1.1","react-dom":"^19.1.1","react-test-renderer":"^19.1.0","rollup":"^4.0.0","rollup-plugin-dts":"^6.2.1","tslib":"^2.6.0","typescript":"^5.4.2","vitest":"^3.2.4"},"repository":{"type":"git","url":"git+https://github.com/Mutesa-Cedric/Recoil-next.git"},"license":"MIT","_id":"recoil-next@0.4.4","gitHead":"b13caca2a2a7388cc1276e6b7c0a639d17afade6","bugs":{"url":"https://github.com/Mutesa-Cedric/Recoil-next/issues"},"homepage":"https://github.com/Mutesa-Cedric/Recoil-next#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-V5FGq+LedPm4cgRHEgX6gV4IrvqBSwQbccE2L15pCG5Ivi8yl7RsojvTPLQYTK0Jn/fOGYUYhI9X9YplAJKT5w==","shasum":"4255e99fb86850fb99cf756a1202082acc23fae8","tarball":"https://registry.npmjs.org/recoil-next/-/recoil-next-0.4.4.tgz","fileCount":8,"unpackedSize":507383,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFdTWEhi0ETMZVuVAxKeNatam2MLWxDZbOBs+SVBZhEzAiEAooEmFeYerKC27g1BsqOwBLd07k93rN/Z/Uh2p2d+EUM="}]},"_npmUser":{"name":"mtx_cedric","email":"mutesacedric@gmail.com"},"directories":{},"maintainers":[{"name":"mtx_cedric","email":"mutesacedric@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/recoil-next_0.4.4_1769408341849_0.6612056051571316"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-28T12:54:02.196Z","modified":"2026-01-26T06:19:02.100Z","1.0.0":"2024-11-28T20:44:42.617Z","0.1.0":"2025-07-28T12:54:02.555Z","0.2.0":"2025-08-10T14:29:02.537Z","0.3.0":"2025-08-15T13:39:19.681Z","0.4.0":"2025-11-07T14:45:19.236Z","0.4.4":"2026-01-26T06:19:01.996Z"},"bugs":{"url":"https://github.com/Mutesa-Cedric/Recoil-next/issues"},"author":{"name":"Mutesa Cedric","email":"mutesacedric@gmail.com","url":"https://github.com/Mutesa-Cedric"},"license":"MIT","homepage":"https://github.com/Mutesa-Cedric/Recoil-next#readme","keywords":["recoil","state-management","react","state-management-library"],"repository":{"type":"git","url":"git+https://github.com/Mutesa-Cedric/Recoil-next.git"},"description":"Continuation of Recoil - A state management library for React","maintainers":[{"name":"mtx_cedric","email":"mutesacedric@gmail.com"}],"readme":"# Recoil-Next\n\n[![NPM Version](https://img.shields.io/npm/v/recoil-next)](https://www.npmjs.com/package/recoil-next) [![Node.js CI](https://github.com/Mutesa-Cedric/Recoil-next/workflows/Node.js%20CI/badge.svg)](https://github.com/Mutesa-Cedric/Recoil-next/actions) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Mutesa-Cedric/Recoil-next/blob/main/LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)\n\nA continuation of the Recoil state management library for React.\n\nThe official Recoil project is no longer maintained. This fork provides:\n\n- Active maintenance and bug fixes\n- React 18+ compatibility\n- Full TypeScript support\n- Modern build tooling (Vitest, Rollup, ESLint)\n\n## Installation\n\n```shell\nnpm install recoil-next\n```\n\nOr with pnpm/yarn:\n\n```shell\npnpm add recoil-next\n# or\nyarn add recoil-next\n```\n\n## Quick Start\n\n```tsx\nimport {atom, selector, useRecoilState, useRecoilValue, RecoilRoot} from 'recoil-next';\n\n// Define an atom\nconst countState = atom({\n  key: 'countState',\n  default: 0,\n});\n\n// Define a selector\nconst doubleCountState = selector({\n  key: 'doubleCountState',\n  get: ({get}) => get(countState) * 2,\n});\n\n// Use in components\nfunction Counter() {\n  const [count, setCount] = useRecoilState(countState);\n  const doubleCount = useRecoilValue(doubleCountState);\n\n  return (\n    <div>\n      <p>Count: {count}</p>\n      <p>Double: {doubleCount}</p>\n      <button onClick={() => setCount(count + 1)}>Increment</button>\n    </div>\n  );\n}\n\n// Wrap your app with RecoilRoot\nfunction App() {\n  return (\n    <RecoilRoot>\n      <Counter />\n    </RecoilRoot>\n  );\n}\n```\n\n## Migration from Recoil\n\nReplace `recoil` with `recoil-next` in your imports:\n\n```javascript\n// Before\nimport {atom, selector, useRecoilState} from 'recoil';\n\n// After\nimport {atom, selector, useRecoilState} from 'recoil-next';\n```\n\nAll APIs remain identical to the original Recoil library.\n\n## Documentation\n\nSee the original Recoil documentation: https://recoiljs.org/docs/introduction/core-concepts\n\n## Examples\n\nCheck out the [examples](./examples) directory for usage examples.\n\n## Contributing\n\n- [Code of Conduct](./CODE_OF_CONDUCT.md)\n- [Contributing Guide](./CONTRIBUTING.md)\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}