{"_id":"@bradensbay/globals-react","_rev":"2-885c630c8e39995b4a36568b04948d2b","name":"@bradensbay/globals-react","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@bradensbay/globals-react","version":"0.2.0","license":"MIT","_id":"@bradensbay/globals-react@0.2.0","maintainers":[{"name":"christiangrrogers","email":"christiangrrogers@gmail.com"}],"homepage":"https://github.com/christianGRogers/globals#readme","bugs":{"url":"https://github.com/christianGRogers/globals/issues"},"dist":{"shasum":"063bad9e08f79cdb28bc9d7a2965c219e4cb6b5a","tarball":"https://registry.npmjs.org/@bradensbay/globals-react/-/globals-react-0.2.0.tgz","fileCount":6,"integrity":"sha512-JP5D0YRPyQ6IOEtUZhwkWl6tTqBCkE9e2U6OZVPjRpFxKZq/cxzU/sT3Oft5/z+WSXK5+CMDBSPMy0p1Onm7EA==","signatures":[{"sig":"MEUCIQDvEZCDtXy3Zijn3B45XSyrXX11qN0rSQiVbv3m3OFJbAIgZm5tCDYQ08tyOnOyOovjTRcZBoJeQgK2R8gcAtVjwZw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bradensbay%2fglobals-react@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14160},"main":"./dist/src/index.js","type":"module","types":"./dist/src/index.d.ts","engines":{"node":">=20.11.0"},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"gitHead":"21dd602e24b18673ff60a164f2556eb927bb6596","_npmUser":{"name":"christiangrrogers","email":"christiangrrogers@gmail.com"},"repository":{"url":"git+https://github.com/christianGRogers/globals.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.8","description":"React binding: useSyncExternalStore over a shared memory store.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@bradensbay/globals-core":"0.2.0"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18"},"_npmOperationalInternal":{"tmp":"tmp/globals-react_0.2.0_1788028655387_0.06951720360243163","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@bradensbay/globals-react","version":"0.2.1","description":"React binding: useSyncExternalStore over a shared memory store.","type":"module","main":"./dist/src/index.js","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"engines":{"node":">=20.11.0"},"dependencies":{"@bradensbay/globals-core":"0.2.1"},"peerDependencies":{"react":">=18"},"sideEffects":false,"license":"MIT","repository":{"type":"git","url":"git+https://github.com/christianGRogers/globals.git","directory":"packages/react"},"_id":"@bradensbay/globals-react@0.2.1","gitHead":"b64920872c82a9a84c5dca28dfa39a6bee9c3983","bugs":{"url":"https://github.com/christianGRogers/globals/issues"},"homepage":"https://github.com/christianGRogers/globals#readme","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-lGk8ylDGAj+QfYhi9Ql/IH0ffCmOF6u30O6v6THpnOAizqCWHh2cyyjPajgUlwDMww9pnBIX2xYVOh7JtvoWag==","shasum":"b6d3e05fb5b19d142013482ddadab85a5b873675","tarball":"https://registry.npmjs.org/@bradensbay/globals-react/-/globals-react-0.2.1.tgz","fileCount":6,"unpackedSize":14160,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bradensbay%2fglobals-react@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEVcmmkE+HOAlStIW0N+mFg5Yr50f+KE9ZUG89Jkb8puAiBOMM3Htif+r+EzB/zwJqegA/ee+3y0DPo6HtaWPphSwg=="}]},"_npmUser":{"name":"christiangrrogers","email":"christiangrrogers@gmail.com"},"directories":{},"maintainers":[{"name":"christiangrrogers","email":"christiangrrogers@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/globals-react_0.2.1_1788134558685_0.0585867588499267"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-29T18:37:35.217Z","modified":"2026-08-31T00:02:39.134Z","0.2.0":"2026-08-29T18:37:35.534Z","0.2.1":"2026-08-31T00:02:38.817Z"},"bugs":{"url":"https://github.com/christianGRogers/globals/issues"},"license":"MIT","homepage":"https://github.com/christianGRogers/globals#readme","repository":{"type":"git","url":"git+https://github.com/christianGRogers/globals.git","directory":"packages/react"},"description":"React binding: useSyncExternalStore over a shared memory store.","maintainers":[{"name":"christiangrrogers","email":"christiangrrogers@gmail.com"}],"readme":"# @bradensbay/globals-react\n\nThe react binding for [Globals](https://github.com/christianGRogers/globals).\n\nFull guide: [docs/bindings.md](../../docs/bindings.md).\n\n## The point\n\nReads are synchronous. A render can call `get()` on the line it needs the value, with no\n`await` and no replicated copy of state in the window.\n\nWrites are asynchronous, and the return type says so.\n\n## Equality\n\nThe default is `Object.is`, which is right for a scalar and wrong for a container. Every\ncommit builds a fresh decode cache, so a selector returning a nested object returns a new\nproxy each time and notifies on every commit.\n\nFor a container, use the node comparing variant. An untouched subtree keeps its arena node\nacross commits, so it notifies only when the subtree actually changed. The reasoning behind\nwhy comparing offsets is sound is in [docs/bindings.md](../../docs/bindings.md).\n","readmeFilename":"README.md"}