{"_id":"@bentoo/state-man","_rev":"11-d7e3d75bfab6324b149cef806aebc357","name":"@bentoo/state-man","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"@bentoo/state-man","version":"0.0.1","author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@0.0.1","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"dist":{"shasum":"4f5f16cd7bba1b20a3341799ba024e3efc2795ac","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-0.0.1.tgz","fileCount":4,"integrity":"sha512-nwE7jYreA9wOF/VQ4M/uyfBrm0SLMvlJm6AfEi7aIjMjYe+rx9GFbSy+054TIDQAYYTblL1x7EDT2E7aYZIJHw==","signatures":[{"sig":"MEUCIQDlk6NOJM126PtHYr9dm9o1kbXtNY2Oigw8i+XjfkrimwIgK784rg85tEGUydUF9UOjAsIbQ+HbYFZrpRyv5r+FVTc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3905},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"387324562fb4145885886ea80fd3d0e617bf39e5","private":false,"scripts":{"lint":"eslint .","build":"tsc && vite build"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"_npmVersion":"9.6.7","description":"A litte React package to state management","directories":{},"_nodeVersion":"18.17.1","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.1","typescript":"^5.5.3","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_0.0.1_1727649229177_0.8683158270862672","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@bentoo/state-man","version":"0.0.2","author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@0.0.2","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"dist":{"shasum":"8b70f86174f9aad19b0cb3219921fd859d9ee0fa","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-0.0.2.tgz","fileCount":8,"integrity":"sha512-06Dn6T5fDJf+8UMlLM2lX6R8CGosNJwLMTT7UYk968pm+PpeCy9puc6Hzk1xPZ4/YbTQPgBeRcUPk4kDHm0pPw==","signatures":[{"sig":"MEUCIQCguOmKK1fP/X341fTFh/k7KDzh7s/X43pYAIZr+NC9+wIgUCqF+PhntXPmHOekHfkVI49WP5gO3EA22b4MAbTqOsY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4428},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"fc741477d786a91658feef75077e1f8cc858fca2","private":false,"scripts":{"lint":"eslint .","build":"tsc && vite build"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"_npmVersion":"10.8.3","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"22.9.0","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.1","typescript":"^5.5.3","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_0.0.2_1727688415895_0.9501004756034441","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@bentoo/state-man","version":"0.0.3","author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@0.0.3","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"dist":{"shasum":"5dc5ece0d1804df9fccb311d06376b3731f51134","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-0.0.3.tgz","fileCount":8,"integrity":"sha512-uemC1UGzWb3e3tlHh6utlZv3rSpVYI8ZbyjEnVxkcHCAyQkWc/Yrvvk8zbmlEf+q1pq3s+dH5WiEZpzzVAqvpA==","signatures":[{"sig":"MEYCIQDxAS9zeXT05P744cf0irz/ohI51z5ZE14u/Oor34erBwIhAJRQAkRSp0Zbp2FxymIRA2bnfrJXhku3LCY15fhhwnPz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5401},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"9a5d11eefcfd1a23c8bc653258b983dec7ae6fe8","private":false,"scripts":{"lint":"eslint .","build":"tsc && vite build"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"_npmVersion":"10.8.3","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"22.9.0","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.1","typescript":"^5.5.3","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_0.0.3_1727689712497_0.9619465866797827","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@bentoo/state-man","version":"0.0.4","keywords":["react","state-management","context-api","zustand"],"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@0.0.4","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"homepage":"https://github.com/manuelbento19/state-man#readme","bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"dist":{"shasum":"e54db4246ac2807f21072ce5025ff0becc1d90c5","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-0.0.4.tgz","fileCount":8,"integrity":"sha512-9LVnXHS/qDNrMamzJP4QxfiZNxLtLJsf6S+MWBD9+Kc2q9ddsILA0X3Ry+IornBVKD/3c/yZ4/o0YiUY7UwEPA==","signatures":[{"sig":"MEQCIGdOejXTLjaZ44v/R+VxUn6QlJu4rBGs4ciPNCqLN7x/AiAR3+rjObBVRXx6yiGokpNhC9CYAbSYblvmdNXpxFJ9yQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5571},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"fe9f6a7ff4386e08231c8e086a08cc62b575b6c4","private":false,"scripts":{"lint":"eslint .","build":"tsc && vite build"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"repository":{"url":"git+https://github.com/manuelbento19/state-man.git","type":"git"},"_npmVersion":"10.8.3","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"22.9.0","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.1","typescript":"^5.5.3","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_0.0.4_1727690767122_0.39076379032086206","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@bentoo/state-man","version":"0.0.5","keywords":["react","state-management","context-api","zustand"],"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@0.0.5","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"homepage":"https://github.com/manuelbento19/state-man#readme","bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"dist":{"shasum":"c85b200324aa1c3bb16e83450629844913415868","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-0.0.5.tgz","fileCount":4,"integrity":"sha512-v9Olalu7FvDqRPyM5oeFrSw2sbkJfu2VGTF0EWRbEc/14aFh7qq5MnPmuJ1kFxP31+z3umzhzzKamIocyjVYbA==","signatures":[{"sig":"MEUCIQC/j1O2xT17WJOhUrrEG8OqQbJ2ONbvYoYl8Ulf9QQ7DwIgIFITwwyDO7EHpm3u+hC0GERJZv6ZeJnG5I4rrFaMhdY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5607},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"e14c3d21eb90f018dd5980dcaebfea34ee4d7f98","private":false,"scripts":{"lint":"eslint .","build":"tsc && vite build"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"repository":{"url":"git+https://github.com/manuelbento19/state-man.git","type":"git"},"_npmVersion":"9.6.7","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.1","typescript":"^5.5.3","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_0.0.5_1728514008576_0.05805630627687908","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@bentoo/state-man","version":"0.0.6","keywords":["react","state-management","context-api","zustand"],"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@0.0.6","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"homepage":"https://github.com/manuelbento19/state-man#readme","bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"dist":{"shasum":"7879d0521d15400dfd8b4d7c1134d0f30cab7a8f","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-0.0.6.tgz","fileCount":11,"integrity":"sha512-DVpiVtmrR0qj3BcMqXrrTsDdzQnBh7mGPYruDH13hP2lRKs7ePnfjzWkSvuawVV3dsyPNBBmD0gDsK4qkW2Lnw==","signatures":[{"sig":"MEUCIQDQeLqe9U62fdqKkUHuARjELWAFMIsYjlKmjwg5c+i+2AIgVs/d4HMHv4bFA1ldp1V4yUBltGoJbmx9OBgQ8YxtV70=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6583},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"94246e837572e0fbf57b00464d6d1b90027058de","private":false,"scripts":{"lint":"eslint .","build":"tsc && vite build"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"repository":{"url":"git+https://github.com/manuelbento19/state-man.git","type":"git"},"_npmVersion":"9.6.7","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.1","typescript":"^5.5.3","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_0.0.6_1728514367956_0.8595128441774365","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"@bentoo/state-man","version":"0.0.7","keywords":["react","state-management","context-api","zustand"],"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@0.0.7","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"homepage":"https://github.com/manuelbento19/state-man#readme","bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"dist":{"shasum":"4e5d71fd921db8e137cd83140d046bf4fdfea7e3","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-0.0.7.tgz","fileCount":11,"integrity":"sha512-JGxjBW84umpWqsny3H6E6XPcNzkBbmApTRCvv2uJsaECwzhnvl7GgBHuKR0Kh/bRO9OTyU1p9Y4nFe/8w86Rpg==","signatures":[{"sig":"MEUCIQC7yHPXph4RE7kGhzs8rpdSrCkaGdnVQyTWpyOk+JQhdgIgBldn/RpZ4VUSLIZIknfdUJurD15tbzrZj5/jTExVdfE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6570},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"1681de1960f5e112232023f0fe623461b63f7383","private":false,"scripts":{"lint":"eslint .","build":"tsc && vite build"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"repository":{"url":"git+https://github.com/manuelbento19/state-man.git","type":"git"},"_npmVersion":"9.6.7","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.1","typescript":"^5.5.3","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_0.0.7_1728514648688_0.7318425160456867","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"@bentoo/state-man","version":"0.0.8","keywords":["react","state-management","context-api","zustand"],"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@0.0.8","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"homepage":"https://github.com/manuelbento19/state-man#readme","bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"dist":{"shasum":"2b9d351d1c19acc7d391c7a10fb23f500925e143","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-0.0.8.tgz","fileCount":11,"integrity":"sha512-XVJRVnY1oLU0QXqffSyfCdUWhvPjryMopl2EnNr3dZB1tP6iqLl3MFjZJgeQblUm9e5+gLjuGf9zbKggCAhVjw==","signatures":[{"sig":"MEUCIQC0ZF+v3rMT7ud1H7dZZbuSw1DdKybNE3K1hn06EkIfQgIgDZ07TN8mZqBBdNPEXAoHJC2JALtsmuS9RvpHi3X9J90=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9641},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"64feb83a7830f1559b294ae79d383e1a124a1cca","private":false,"scripts":{"lint":"eslint .","test":"vitest","build":"tsc && vite build","coverage":"vitest run --coverage"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"repository":{"url":"git+https://github.com/manuelbento19/state-man.git","type":"git"},"_npmVersion":"9.6.7","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b","devDependencies":{"vite":"^5.4.1","jsdom":"^25.0.1","vitest":"^2.1.2","typescript":"^5.5.3","@types/node":"^22.7.5","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2","@testing-library/react":"^16.0.1","@testing-library/jest-dom":"^6.6.2","@testing-library/user-event":"^14.5.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_0.0.8_1731835009644_0.29734340202086496","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@bentoo/state-man","version":"1.0.0","keywords":["react","state-management","context-api","zustand"],"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@1.0.0","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"homepage":"https://github.com/manuelbento19/state-man#readme","bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"dist":{"shasum":"c0fed2f68484f96316e8199de698a432ada2dafa","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-1.0.0.tgz","fileCount":13,"integrity":"sha512-b2ik1E7AVSwAr7K50mb5WhXMR43kfbBzAnBhF9cJYamUxkKBygIQaqfnkOMkY/q+Qbhb/nL6y/BcjPzT5qHPWA==","signatures":[{"sig":"MEQCIGWcU/1oIOjvEVko3B39XYv90G/kF7kX6Pbb1DdMY0yAAiARjUQXrof17vw+Mc/jW1Gmk/EK8NjqjCiNrsQsFAX+/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11564},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"45d1e4d6ae71dab2e019723edde40fff68f1a6ae","private":false,"scripts":{"lint":"eslint .","test":"vitest","build":"tsc && vite build","coverage":"vitest run --coverage"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"repository":{"url":"git+https://github.com/manuelbento19/state-man.git","type":"git"},"_npmVersion":"10.9.0","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b","devDependencies":{"vite":"^5.4.1","jsdom":"^25.0.1","vitest":"^2.1.2","typescript":"^5.5.3","@types/node":"^22.7.5","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2","@testing-library/react":"^16.0.1","@testing-library/jest-dom":"^6.6.2","@testing-library/user-event":"^14.5.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_1.0.0_1735999507292_0.019409740486817206","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bentoo/state-man","version":"1.0.1","keywords":["react","state-management","context-api","zustand"],"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com"},"_id":"@bentoo/state-man@1.0.1","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"homepage":"https://github.com/manuelbento19/state-man#readme","bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"dist":{"shasum":"4c9eeebf623b235b8ac690b671a1603615e42eac","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-1.0.1.tgz","fileCount":13,"integrity":"sha512-0RQRICsd5k721NAeR0rH7O1l3N09ZeeZELQJXk6r++9l55wej1yZOWHJY20N51JVcvq6oy7wMCfRH5fVk9+4HA==","signatures":[{"sig":"MEQCIFoGWceCFwciyv+TP28VcqD3sVHFdXI1aYucV5KO32YdAiAsfMhms4oLpHd1aGVECUpmjS2sWL8pvgNNhkYRWrV7kg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11504},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"a5de2a87dad7868446615b472aca9f46c8e34cb8","private":false,"scripts":{"lint":"eslint .","test":"vitest","build":"tsc && vite build","coverage":"vitest run --coverage"},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"repository":{"url":"git+https://github.com/manuelbento19/state-man.git","type":"git"},"_npmVersion":"10.9.0","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"react":"^18.3.1","react-dom":"^18.3.1","vite-plugin-dts":"^4.2.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b","devDependencies":{"vite":"^5.4.1","jsdom":"^25.0.1","vitest":"^2.1.2","typescript":"^5.5.3","@types/node":"^22.7.5","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2","@testing-library/react":"^16.0.1","@testing-library/jest-dom":"^6.6.2","@testing-library/user-event":"^14.5.2"},"_npmOperationalInternal":{"tmp":"tmp/state-man_1.0.1_1739197127796_0.8756887191391374","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@bentoo/state-man","description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","private":false,"version":"1.1.0","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/manuelbento19/state-man.git"},"homepage":"https://www.stateman.cc/","keywords":["react","state-management","context-api","zustand"],"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com","url":"https://bentooo.vercel.app/"},"scripts":{"build":"tsc && vite build","test":"vitest","coverage":"vitest run --coverage","lint":"eslint ."},"peerDependencies":{"react":">=16.8.0"},"peerDependenciesMeta":{"react":{"optional":false}},"dependencies":{"vite-plugin-dts":"^4.2.3"},"devDependencies":{"@testing-library/jest-dom":"^6.6.2","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/node":"^22.7.5","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.2","jsdom":"^25.0.1","react":"^18.3.1","react-dom":"^18.3.1","typescript":"^5.5.3","vite":"^5.4.1","vitest":"^2.1.2"},"packageManager":"pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b","_id":"@bentoo/state-man@1.1.0","gitHead":"ba9139b83c1b088470f3938730a096d10f45faba","bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-45uf2kM6IdpwxRIz1MMHAZ8W+j0TBAFUkebVD5Tms4ZRqNGPq8s9Hk+aty0MPk3he8Wvjof9mlJuofcInefTWQ==","shasum":"f19bc4f4a42ca630d3eb776223ddc4bcee936dbd","tarball":"https://registry.npmjs.org/@bentoo/state-man/-/state-man-1.1.0.tgz","fileCount":26,"unpackedSize":20991,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICywRWTfkmuZ/0umU6maz96PvaeNUfw/y9qUg2QycwYCAiAyDbbCrqXHvYpbU8mEW+PJ5mvl4ScmllZzLwctBFvCbQ=="}]},"_npmUser":{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"},"directories":{},"maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/state-man_1.1.0_1756114514583_0.07137585951229752"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-29T22:33:49.099Z","modified":"2025-08-25T09:35:14.958Z","0.0.1":"2024-09-29T22:33:49.400Z","0.0.2":"2024-09-30T09:26:56.070Z","0.0.3":"2024-09-30T09:48:32.671Z","0.0.4":"2024-09-30T10:06:07.293Z","0.0.5":"2024-10-09T22:46:48.734Z","0.0.6":"2024-10-09T22:52:48.342Z","0.0.7":"2024-10-09T22:57:28.875Z","0.0.8":"2024-11-17T09:16:49.850Z","1.0.0":"2025-01-04T14:05:07.517Z","1.0.1":"2025-02-10T14:18:47.977Z","1.1.0":"2025-08-25T09:35:14.785Z"},"bugs":{"url":"https://github.com/manuelbento19/state-man/issues"},"author":{"name":"Manuel Bento","email":"manuelbentomb.223@hotmail.com","url":"https://bentooo.vercel.app/"},"homepage":"https://www.stateman.cc/","keywords":["react","state-management","context-api","zustand"],"repository":{"type":"git","url":"git+https://github.com/manuelbento19/state-man.git"},"description":"A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.","maintainers":[{"name":"manuelbento19","email":"manuelbentomb.223@hotmail.com"}],"readme":"# @bentoo/state-man\r\n\r\nIt is a lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API. It offers an intuitive approach to managing global and local states, allowing you to keep your application organized and easy to maintain.\r\n\r\nWith an easy-to-use API, `@bentoo/state-man` is ideal for developers looking for an efficient solution for state management.\r\n\r\n[![Version](https://img.shields.io/npm/v/@bentoo/state-man?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@bentoo/state-man)\r\n[![Downloads](https://img.shields.io/npm/dt/@bentoo/state-man.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@bentoo/state-man)\r\n\r\n## Installation\r\n\r\nYou can install the package via NPM:\r\n\r\n```bash\r\nnpm install @bentoo/state-man\r\n```\r\n\r\nor via Yarn:\r\n\r\n```bash\r\nyarn add @bentoo/state-man\r\n```\r\n\r\nor via pnpm:\r\n\r\n```bash\r\npnpm add @bentoo/state-man\r\n```\r\n\r\n## Usage\r\n\r\nHere’s a basic example of how to use `@bentoo/state-man` in your project:\r\n\r\n### 1. create a store\r\n\r\n```tsx\r\n// ./stores/counter.ts\r\nimport { create } from \"@bentoo/state-man\";\r\n\r\nexport const useStore = create(0);\r\n```\r\n\r\n### 2. use your store anywhere\r\n\r\n```tsx\r\n// counter.tsx\r\nexport const Counter = () => {\r\n    const { state, setState } = useStore();\r\n\r\n    const increment = () => setState(state + 1);\r\n\r\n    return <button onClick={increment}>Count is {state}</button>;\r\n};\r\n```\r\n\r\n```tsx\r\n// App.tsx\r\nimport Counter from \"./counter\";\r\nimport { useStore } from \"./stores/counter\";\r\n\r\nfunction App() {\r\n    const { state } = useStore();\r\n\r\n    return (\r\n        <div className=\"card\">\r\n            <h1>Now the counter is: {state}</h1>\r\n            <Counter />\r\n        </div>\r\n    );\r\n}\r\nexport default App;\r\n```\r\n\r\n### 3. Using Selectors (Performance Optimization)\r\n\r\nSelectors allow you to subscribe to specific parts of your state, preventing unnecessary re-renders when other parts of the state change.\r\n\r\n```tsx\r\n// ./stores/app.ts\r\nimport { create } from \"@bentoo/state-man\";\r\n\r\nexport const useAppStore = create({\r\n    user: { name: \"John\", age: 30 },\r\n    cart: { items: [], total: 0 },\r\n    theme: \"dark\"\r\n});\r\n```\r\n\r\n```tsx\r\n// UserProfile.tsx - Only re-renders when user changes\r\nexport const UserProfile = () => {\r\n    const user = useAppStore(state => state.user);\r\n    \r\n    return <div>{user.name} - {user.age} years old</div>;\r\n};\r\n\r\n// CartTotal.tsx - Only re-renders when cart.total changes  \r\nexport const CartTotal = () => {\r\n    const total = useAppStore(state => state.cart.total);\r\n    \r\n    return <div>Total: ${total}</div>;\r\n};\r\n\r\n// ThemeButton.tsx - Access to setState for updates\r\nexport const ThemeButton = () => {\r\n    const theme = useAppStore(state => state.theme);\r\n    const { setState } = useAppStore();\r\n    \r\n    const toggleTheme = () => {\r\n        setState(prev => ({\r\n            ...prev!,\r\n            theme: prev!.theme === \"dark\" ? \"light\" : \"dark\"\r\n        }));\r\n    };\r\n    \r\n    return (\r\n        <button onClick={toggleTheme}>\r\n            Current theme: {theme}\r\n        </button>\r\n    );\r\n};\r\n```\r\n\r\n#### Advanced Selectors\r\n\r\n```tsx\r\n// Computed values\r\nconst itemCount = useAppStore(state => state.cart.items.length);\r\n\r\n// Complex calculations  \r\nconst discountedTotal = useAppStore(state => {\r\n    const subtotal = state.cart.items.reduce((sum, item) => sum + item.price, 0);\r\n    return subtotal * 0.9; // 10% discount\r\n});\r\n```\r\n\r\n### Persisting Store Data\r\n\r\nYou can persist a store's data across sessions by saving it to a storage medium such as `localStorage`, `sessionStorage`, or other available storage options. This ensures that the data is retained even when the page is reloaded or the browser is closed and reopened.\r\n\r\nAdditionally, it is possible to synchronize the store's state across different tabs or windows. When a change is made in one tab or window, all other tabs or windows that share the same storage context. This allows you to update the state seamlessly across multiple views.\r\n\r\n```jsx\r\nimport { create, persist } from \"@bentoo/state-man\";\r\n\r\nconst useUserStore = create(\r\n    persist({\r\n        name: \"userStoreKey\",\r\n        data: { name: \"Bentoooo\" },\r\n        storage: sessionStorage,\r\n    }),\r\n);\r\n```\r\n\r\nThis approach ensures both persistence and synchronization, enabling a consistent experience for users working across multiple tabs or windows.\r\n\r\n\r\n#### `persist` Properties\r\n\r\n| Property  | Type      | Description                                                                                                                 |\r\n| --------- | --------- | --------------------------------------------------------------------------------------------------------------------------- |\r\n| `name`    | `string`  | Unique name of the store, used as a key to store and retrieve data from storage.                                            |\r\n| `data`    | `any`     | Initial state value of the store. Can be any data type (number, string, object, array, etc.).                               |\r\n| `storage` | `Storage` | Type of storage used for persistence. By default, it uses `localStorage`. It can be: `localStorage`, `sessionStorage`, etc. |\r\n\r\n## Features\r\n\r\n✨ **Lightweight** - ~1.3KB gzipped  \r\n🚀 **Performance** - Optimized selectors prevent unnecessary re-renders  \r\n🔄 **Persistence** - Built-in localStorage/sessionStorage support  \r\n🔀 **Cross-tab sync** - Automatic state synchronization across tabs  \r\n📱 **React 16.8+** - Compatible with modern React (Hooks required)  \r\n🎯 **TypeScript** - Full type safety and IntelliSense support  \r\n⚡ **Zero dependencies** - No external dependencies  \r\n🔧 **Simple API** - Minimal learning curve  \r\n\r\n## Why @bentoo/state-man?\r\n\r\n### vs Context API\r\n- ✅ **Selective subscriptions** - Only re-render components that use changed data\r\n- ✅ **No providers** - Use anywhere without wrapping components\r\n- ✅ **Better performance** - Automatic optimization with selectors\r\n- ✅ **Simpler setup** - No context providers or complex setup\r\n\r\n### vs Zustand  \r\n- ✅ **Smaller bundle** - ~1.3KB vs ~2.7KB\r\n- ✅ **Auto-memoization** - Built-in intelligent caching\r\n- ✅ **Backward compatible** - Existing code works unchanged\r\n- ✅ **Portuguese documentation** - Better local support\r\n\r\n### vs Redux Toolkit\r\n- ✅ **Much smaller** - ~1.3KB vs ~11KB+ \r\n- ✅ **No boilerplate** - Direct state updates\r\n- ✅ **Simpler learning curve** - Intuitive API\r\n- ✅ **Built-in persistence** - No additional libraries needed\r\n\r\n## Contribution\r\n\r\nIf you would like to contribute, feel free to open a pull request or report an issue.\r\n\r\n1. Fork the project.\r\n2. Create your feature branch (`git checkout -b my-new-feature`).\r\n3. Commit your changes (`git commit -m 'Adding new feature'`).\r\n4. Push to the branch (`git push origin my-new-feature`).\r\n5. Open a Pull Request.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\r\n","readmeFilename":"README.md"}