{"_id":"@alimert/zustand-sync","_rev":"12-96a72aa85d9402617e394b158029d92b","name":"@alimert/zustand-sync","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.0":{"name":"@alimert/zustand-sync","version":"0.0.0","_id":"@alimert/zustand-sync@0.0.0","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"2abbc98b56795003f31d26e194dd3e892ef50115","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.0.tgz","fileCount":6,"integrity":"sha512-o+gaBFNwNPu6BWoyxF/0NRZs+P9B5I1yQjrrZ96tybnosD/Fo0tkYiJDrT7cJI1M6faICnATiuyDXYlKlNHbSQ==","signatures":[{"sig":"MEYCIQC2TB9cBeatdQw8lzvAUOvNJ6H/vSVZ9437UQM5JdRzLQIhANmsi5zN2+aGqOLomLseNexUuAbwUaES2WV0SyM8w4w3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2555},"type":"module","gitHead":"18f7586026d8f5c08fc77c4050d2e5e0901b5412","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^5.0.3","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.0_1737135814149_0.8166018990787842","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@alimert/zustand-sync","version":"0.0.1","_id":"@alimert/zustand-sync@0.0.1","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"64de41a44614fa4ab8296064017d81699bcce85b","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.1.tgz","fileCount":7,"integrity":"sha512-eRcwl0lbm81SEPOOdIDbNPmAugoMWE6/Im8t3Wviktq0HFKPUwmGNGQR/3YWzTIAmhUAYXxPzAL3gD59Qq84KQ==","signatures":[{"sig":"MEQCIFbvH4aLHt36geE5nIgM+sUtVtNQeYxysIB083NCAYo1AiAG2c9dFSokm/x3uXXJqfCYDqw66Imu7+AlQnmLbjyNhQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3874},"type":"module","gitHead":"0fa7a1ba31c31e911e9fba45557a8cc51b4f7697","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^5.0.3","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.1_1737136189179_0.22462021245784358","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@alimert/zustand-sync","version":"0.0.2","_id":"@alimert/zustand-sync@0.0.2","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"8353a77707b4ce8ff2e5dd2a9d580a4110ccd89a","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.2.tgz","fileCount":7,"integrity":"sha512-G3Oxa0yuO1LKnqGW8DQ3eC0YMyUd5e2ubhGTKfsIuJvqoJziXRucI8rM5WeeOuZj/qgAaYUZ8EuXltWGexkhhg==","signatures":[{"sig":"MEQCIEEP9YO0bYZnMUvMRivYMj9329bcoFBEiQ2aXCsNxue7AiBin7GXJ8IWGEBcLXfrnb0hs+/MjudLFuw6gffSpGuqRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4406},"type":"module","gitHead":"3d6d6ee0d6af2cab67d1e1ec902f06b31ad6d892","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^5.0.3","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.2_1737137387565_0.3665820948753282","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@alimert/zustand-sync","version":"0.0.3","_id":"@alimert/zustand-sync@0.0.3","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"a65b5c8d31df3a9ea0efacb39e102c19f8cf3b39","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.3.tgz","fileCount":7,"integrity":"sha512-TTkPjqGy1yFLJXVB7wbfHrW6oYIe1EYy+iIKk4t+S0+0fVcmNLsaEV7xJwCK44Qx3Ih00hUIJ2djhgQ1E89S2Q==","signatures":[{"sig":"MEYCIQCUkXH5bkQgjqQc501DdamEunldCJbUbUenBBAGj9UmzAIhAPhsbr3EOIRdyqEgjqu/So1QL/sah8O5OZYgNERcVD/i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4344},"type":"module","gitHead":"3d6d6ee0d6af2cab67d1e1ec902f06b31ad6d892","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^5.0.3","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.3_1737137481841_0.2431852416264666","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@alimert/zustand-sync","version":"0.0.4","_id":"@alimert/zustand-sync@0.0.4","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"5409930e993fffb7d229ded90ac3033dbc8fb61c","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.4.tgz","fileCount":7,"integrity":"sha512-cfyK3Sr2OI7IuHRw0ba/FRwgT1bU01De7FjTfNHCGJ5Kl2zh/rdkcKijW4dn61N3GRBXa29TNVQfPFTsp0wsfQ==","signatures":[{"sig":"MEQCIBZfxTNiUShwhGW7aC5IUmCpFP2m9jpGlqCrwWHcRvvkAiAGMRa75LkMrF9pp78Ms1PHzSss3hqUgpK3I0AKJDXolg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4362},"type":"module","gitHead":"8f4d29b48dbac96706c387600a49d7373a548399","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^5.0.3","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.4_1737137556685_0.3113585196330404","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@alimert/zustand-sync","version":"0.0.5","author":{"name":"Ali Mert Çakar"},"_id":"@alimert/zustand-sync@0.0.5","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"79f6f1175d97c2d33479133c4ebd532cfea004c9","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.5.tgz","fileCount":9,"integrity":"sha512-A8wImLOJg8bwIuiSJvW+NnaY4xyR7xApuu/ONSVmHCt6O7UnnyuiP1hfja1FRvTcrfuCXbrU6z+7JNYE/AgoEA==","signatures":[{"sig":"MEYCIQD530+SppOEVSQtEA0ycnjKUn6H4JO7+79A4hTdxbP4zwIhALkMx32mJRy0kEM3AuY8Vwdv+UGrn/9OnP7957jCSsLA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6136},"main":"dist/main.ts","type":"module","types":"dist/main.d.ts","gitHead":"ac8769e85d316dd9b2757dfeccfda3e7148657a8","scripts":{"dev":"vite","build":"tsc","preview":"vite preview","prepublish":"tsc"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^5.0.3","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.5_1737138234517_0.4839459879023331","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@alimert/zustand-sync","version":"0.0.6","author":{"name":"Ali Mert Çakar"},"_id":"@alimert/zustand-sync@0.0.6","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"3689739deff8f8fcf414ef671bac96548efb29d5","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.6.tgz","fileCount":9,"integrity":"sha512-ojs5a84+40wz3Z4ygkL6S5OlX8YhjEVTjZto94kNVvb7XKdzzmff5Nms3nw7HWfWDHwS9es+hjBkbtuvkb5Gtw==","signatures":[{"sig":"MEUCIQDdOqwzqjRwO0TxrxBf/79TLgXbxD8sOCcKhdySmLxxbAIgB6kAd8aAGRQb6rznO471pXLn2Bgv2KgavDZACVVtssM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6182},"main":"dist/main.js","type":"module","types":"dist/main.d.ts","gitHead":"1bb4a5ca8a1401de5cfc90b47f597b127274c5cd","scripts":{"dev":"vite","build":"tsc","preview":"vite preview","publish":"npm publish --access public","prepublish":"tsc"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^5.0.3","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.6_1737138431409_0.5140347787896113","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@alimert/zustand-sync","version":"0.0.7","author":{"name":"Ali Mert Çakar"},"_id":"@alimert/zustand-sync@0.0.7","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"4d1d8f788292a2c6a5cba2cc599bc94304ca8399","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.7.tgz","fileCount":9,"integrity":"sha512-mWgAM78S3v+tk49L9uEEmUROD7ifGcDtL2JokJ/w+mzjoM0fdM6aujUoBpTrqzTgw+gU7Oxq4N0gfJ5mxoJvpw==","signatures":[{"sig":"MEYCIQDXgSznRqKJ93yVaHlXYPZyxFKt5hNqbL3pSKG8pNdIXwIhAMnGLlPaXt3gOgJQa/xUkFRrCNIi2oxwT8f7beNTmqkH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6182},"main":"dist/main.js","type":"module","types":"dist/main.d.ts","gitHead":"17e87f80f45595fa5fe9f2167c79cdcfabb5ae9b","scripts":{"dev":"vite","build":"tsc","preview":"vite preview","publish":"npm publish --access public","prepublish":"tsc"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^5.0.3","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.7_1737138449443_0.6947411197448803","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@alimert/zustand-sync","version":"0.0.8","author":{"name":"Ali Mert Çakar"},"_id":"@alimert/zustand-sync@0.0.8","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"24ede75f0000a3e5d023d33b44bc0cd80134f538","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.8.tgz","fileCount":9,"integrity":"sha512-dXhpzWDafpJhJhximhDZTAT4FmxlhlMoqfl+ucm+7VIozFkWwGvVgrtfzWuBPgMdOy0DOrPX4eH0YLrnFYb7lQ==","signatures":[{"sig":"MEQCIEB9ZWu9w9BvDchzzGtcnBJbe5m9nZev2yzxpXaLqaGSAiACcU7Cd5oqZCoR2IY8Jd2a9Z8/nSmCrgUP2E6NeZEmaA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6292},"main":"dist/main.js","type":"module","types":"dist/main.d.ts","gitHead":"9877e78bded47248c1996814f8f01c433f6ad707","scripts":{"dev":"vite","build":"tsc","preview":"vite preview","publish":"npm publish --access public","prepublish":"tsc"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^3.0.0","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.8_1737139319241_0.3846590466336637","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@alimert/zustand-sync","version":"0.0.9","author":{"name":"Ali Mert Çakar"},"_id":"@alimert/zustand-sync@0.0.9","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"6a4819c5f1f856717b6978e8bad656813ab8b094","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.9.tgz","fileCount":9,"integrity":"sha512-CpfeBG0+ZDMzGzRwb7t6dxhH29g6GB5/e2QunOg4O3P9L2sKoXylQHJPZm0rpIrG6OZsNt8M56wzm//o5jJ4tA==","signatures":[{"sig":"MEUCIQCPLJ27iDkYyYRbzKcmyIR58XHRHIHQ6BJbR3YVanmksQIgPlzzM0HWBvvOur2ChgeP16ahp6fmRqE5FJ5fgiOo2jY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6294},"main":"dist/main.js","type":"module","types":"dist/main.d.ts","gitHead":"cca4618be0db794f6a01f7774afdab90656cbfcc","scripts":{"dev":"vite","build":"tsc","preview":"vite preview","publish":"npm publish --access public","prepublish":"tsc"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^3.0.0","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.9_1737139400297_0.44985100623593355","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@alimert/zustand-sync","version":"0.0.10","keywords":["zustand","sync","middleware","zustand-sync-middleware","zustand-middleware","react","react 18","hooks","state","tiny","typescript","javascript","alimert"],"author":{"name":"Ali Mert Çakar"},"_id":"@alimert/zustand-sync@0.0.10","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"bc3fe8ac31ffb951beda081e8ef0d67d7e2f015d","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.10.tgz","fileCount":9,"integrity":"sha512-nNd6EQo56h8mwnFX19kOPCGDj/VHiOT/eku0zwnRsygHMlYi1yQlu6zT8ewsQcqdm4nMochztoqOIfG1XYgWQg==","signatures":[{"sig":"MEUCIQCJzplXoamAp1/COBJypogA/EXvx+8X8mHSGgbDBeQ2CgIgEcM46CnfPkzelMCNVbG9hUNTS+f2+Z+Vt0EfHl+JlZI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6653},"main":"dist/main.js","type":"module","types":"dist/main.d.ts","gitHead":"751410b6efb5787ec61596f0a01d5a2b18e1e920","scripts":{"dev":"vite","build":"tsc","preview":"vite preview","publish":"npm publish --access public","prepublish":"tsc"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^3.0.0","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.10_1737139752070_0.731908428562454","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"@alimert/zustand-sync","version":"0.0.11","keywords":["zustand","sync","middleware","zustand-sync-middleware","zustand-middleware","react","react 18","hooks","state","tiny","typescript","javascript","alimert"],"author":{"name":"Ali Mert Çakar"},"_id":"@alimert/zustand-sync@0.0.11","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"dist":{"shasum":"6faaa4a4474fc36a9920633f74782688f64db87a","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.11.tgz","fileCount":9,"integrity":"sha512-A271bqZPCs2nvqcMN03RRJORwRJWNyGpVQ1mRalWQ7uOkdb2rUZwQtELx+8tdxKGsaR1Iyh4EfjOI8CgCaIygg==","signatures":[{"sig":"MEUCIATJwVr3n5fzZxPGcNZ2ensIRlh5EIDsud3XLCZ/eSinAiEAph0M86kNumkY8tznShtD6YpsKEsTx/R1jXlQ10w5Y8I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6700},"main":"dist/main.js","type":"module","types":"dist/main.d.ts","gitHead":"2adbbe9b67c20c3cd718c35bd9a7a08564ba4301","scripts":{"dev":"vite","build":"tsc","preview":"vite preview","publish":"npm publish --access public","prepublish":"tsc"},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"_npmVersion":"10.9.0","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.5","zustand":"^3.0.0","typescript":"~5.6.2"},"peerDependencies":{"zustand":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zustand-sync_0.0.11_1737139826233_0.7478610412285478","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"@alimert/zustand-sync","version":"0.0.12","type":"module","types":"dist/main.d.ts","main":"dist/main.js","scripts":{"prepublish":"tsc","publish":"npm publish --access public","dev":"vite","build":"tsc","preview":"vite preview"},"devDependencies":{"typescript":"~5.6.2","vite":"^6.0.5","zustand":"^3.0.0"},"peerDependencies":{"zustand":"^5.0.3"},"author":{"name":"Ali Mert Çakar"},"keywords":["zustand","sync","middleware","zustand-sync-middleware","zustand-middleware","react","react 18","hooks","state","tiny","typescript","javascript","alimert"],"_id":"@alimert/zustand-sync@0.0.12","gitHead":"b77e551cd234e7db82c05656cfafc903bfa5593c","description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-cvQZb4uzqWoG/Jo5RVlM0tedj9Y/VqIkMnGh/abgHvde2Dw/gBdbfdic/SUQemFg7/CBugSTuaghKEIhzXj0KA==","shasum":"fc0738d6f821d0b3ebd2d11572bbe9aaf5c791aa","tarball":"https://registry.npmjs.org/@alimert/zustand-sync/-/zustand-sync-0.0.12.tgz","fileCount":9,"unpackedSize":6764,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClYN1n8nGufX2VyS5Z9V32VFtXMJCG+XQ3Rj4IJVoaDQIgDdfoeax5iE8X5AJMYg1c9c7kypqh0gGOh6zW8sVBMmY="}]},"_npmUser":{"name":"alimert","email":"mail@alimert.net"},"directories":{},"maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/zustand-sync_0.0.12_1737140091516_0.9552801822443837"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-17T17:43:34.076Z","modified":"2025-01-17T18:54:51.877Z","0.0.0":"2025-01-17T17:43:34.347Z","0.0.1":"2025-01-17T17:49:49.370Z","0.0.2":"2025-01-17T18:09:47.942Z","0.0.3":"2025-01-17T18:11:22.019Z","0.0.4":"2025-01-17T18:12:36.986Z","0.0.5":"2025-01-17T18:23:54.700Z","0.0.6":"2025-01-17T18:27:11.589Z","0.0.7":"2025-01-17T18:27:29.635Z","0.0.8":"2025-01-17T18:41:59.426Z","0.0.9":"2025-01-17T18:43:20.527Z","0.0.10":"2025-01-17T18:49:12.250Z","0.0.11":"2025-01-17T18:50:26.413Z","0.0.12":"2025-01-17T18:54:51.722Z"},"author":{"name":"Ali Mert Çakar"},"keywords":["zustand","sync","middleware","zustand-sync-middleware","zustand-middleware","react","react 18","hooks","state","tiny","typescript","javascript","alimert"],"description":"This middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r Syncing ","maintainers":[{"name":"alimert","email":"mail@alimert.net"}],"readme":"# Zustand Sync Middleware\r\n\r\nThis middleware for Zustand allows you to synchronize store data between different browser tabs. When the state changes in one tab, the updated state will be reflected in all other open tabs. You can use this with zustand/persist with no issues.\r\nSyncing is only supported with localStorage (duh).\r\n\r\nDemo: https://zustand-sync.netlify.app/  \r\nCodesandbox: https://codesandbox.io/p/sandbox/zustand-sync-zk5dvg\r\n\r\n## Installation\r\n\r\nTo install the middleware, you can use pnpm, npm or yarn:\r\n\r\n```sh\r\npnpm add @alimert/zustand-sync\r\n# or\r\nnpm install @alimert/zustand-sync\r\n# or\r\nyarn add @alimert/zustand-sync\r\n```\r\n\r\n## Usage\r\n\r\nTo use the middleware, import it and apply it to your Zustand store:\r\n\r\n```typescript\r\nimport create from \"zustand\";\r\nimport sync from \"@alimert/zustand-sync\";\r\n\r\nconst useStore = create(\r\n  sync((set) => ({\r\n    // ...your slices\r\n  }))\r\n);\r\n```\r\n\r\n## Usage with zustand/persist\r\n\r\nYou have to put `sync` middleware before `persist` middleware. Share the key you used to persist your store at. (This is used to watch `localStorage[persistanceKey]`)\r\nAdditionally, you can add `enabled: false` to skip the middleware.\r\n\r\n```typescript\r\nimport create from \"zustand\";\r\nimport sync from \"@alimert/zustand-sync\";\r\n\r\nconst storageUnit = localStorage;\r\n\r\nconst persistanceKey = \"persisted-store\";\r\n\r\nconst persistOptions = {\r\n  name: persistanceKey,\r\n  storage: createJSONStorage(() => storageUnit),\r\n  partialize: (state) => ({\r\n    count: state.count,\r\n    name: state.name,\r\n  }),\r\n};\r\n\r\nconst syncOptions = {\r\n  name: persistanceKey,\r\n  enabled: storageUnit === localStorage,\r\n};\r\n\r\nconst useStore = create(\r\n  persist(\r\n    sync(\r\n      (set) => ({\r\n        // ...your slices\r\n      }),\r\n      syncOptions\r\n    ),\r\n    persistOptions\r\n  )\r\n);\r\n\r\nexport default useStore;\r\n```\r\n\r\n## Thank you!\r\n\r\nIf you liked the library, can you star this repo?  \r\nhttps://github.com/alimertcakar/zustand-sync\r\n\r\nAlso, the source code is super simple and pr's are welcome!\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. Meaning: do whatever you want with it as long as you don't sue me.\r\n","readmeFilename":"Readme.md"}