{"_id":"@fireproof/react","_rev":"52-b8a04ab643a11b93c29308a368d5e6e5","name":"@fireproof/react","dist-tags":{"dev":"0.10.0-dev","latest":"0.10.20"},"versions":{"0.5.9":{"name":"@fireproof/react","version":"0.5.9","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.9","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"33afc66ab0cfaef9883e157e9e6258883436ac64","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.9.tgz","fileCount":8,"integrity":"sha512-AWEqM8AYHQnlVZZVrpPurlZtmtjhk6C2CzLtkI6HCQD0/ylAbL9Zo9j765u27G1MyPHAZGjWxSMEJJeyymXgLQ==","signatures":[{"sig":"MEUCIQD2wDkcQTxMWjcBq/6spLzVBRTeCZQSTM3mMHrzcUgQVQIgKQ9cAgjXkomdat1lWZxyP3IjODhBikRjjvynOXb+bv8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13791},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"b5a1bf301f23722c5c61ac4ab7e83a51cfdf020c","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.9_1683286422781_0.1615673686998247","host":"s3://npm-registry-packages"}},"0.5.10":{"name":"@fireproof/react","version":"0.5.10","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.10","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"14c83f40362878c2f65eb8b34e422daa9363f3d7","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.10.tgz","fileCount":8,"integrity":"sha512-WA4pdD79t6JNJv2vMWRmXcqURLJjF2b4Mn6IGrIxoN6dHMiUaNlb8TZwvZi5n8SuXHUbO8+3XztESnDuAquS4w==","signatures":[{"sig":"MEUCIQC4lhbk44rM0Rb8jUyjBxRNPeIhe4DrlNj3cQrzUVeL3gIgFFftaeAov14Ma4k7OjWd47l6FUobNB4TdLyh1vqgOGA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13793},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"8ab17ce8a43b5ba5fa0e00281210687b164f29e3","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.10"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.10_1683286783432_0.9331862137101643","host":"s3://npm-registry-packages"}},"0.5.11":{"name":"@fireproof/react","version":"0.5.11","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.11","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"3c4f1364a101a5f00019d54ba532ede25c733323","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.11.tgz","fileCount":8,"integrity":"sha512-O1wy8HH97obt5UvdvEav5qQ1KFZ9f99L2EzNlBaQy6ajcyW0adgw3kHBJrpaFpiJBGmQJptacQk77Id/52y5vw==","signatures":[{"sig":"MEUCIBanLu+PLXmALeInx5axwQ4Wdese7yvuLIDMtGA98ttEAiEAv7WWdOxdKpElVEKbfymNkZyjZvAzHwRlbWH/chaglTU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13633},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"8ab17ce8a43b5ba5fa0e00281210687b164f29e3","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.10"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.11_1683286943035_0.10592396415578142","host":"s3://npm-registry-packages"}},"0.5.12":{"name":"@fireproof/react","version":"0.5.12","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.12","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"671ee859fb7d86e16d30903c869975bcb04a178c","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.12.tgz","fileCount":8,"integrity":"sha512-/F1JAROZBGbIO+lsjs8XnxkCK+hGL9bHK2hnwAyNALBBqVVbQppUJ3zjwfLMfHP9Rnq+MhTW7dn/EOnBSEFdZA==","signatures":[{"sig":"MEUCIEzxIGNvytVmJIWE/DQsByCstC6wv5Rbk8zwr4hKDhI3AiEA5x22bvC0XJRBfHya4rV2HXYsb03P/+yg0Aa5dqoWur0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13698},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"8ab17ce8a43b5ba5fa0e00281210687b164f29e3","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.10"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.12_1683288813050_0.0848054039728825","host":"s3://npm-registry-packages"}},"0.5.13":{"name":"@fireproof/react","version":"0.5.13","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.13","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"a89273e14455075364b65450d0bec77198995a55","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.13.tgz","fileCount":8,"integrity":"sha512-g9L+uQ9AkDPsi7wupLjMMi9jMxt1CNxdN/FWBqMVHt9TgJqX/50zOyzDdXMPU7HVZIvyu32R09QVq9RuoRdPNg==","signatures":[{"sig":"MEQCIH+0iv5O5JhWIaFL1nfqWo+GXSmom6cYenbF4MO0I+VaAiAIzWRdd5ugyJoRld1Y0RFtzo0ntENqIF2LGS8FPFtPkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13698},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"8ab17ce8a43b5ba5fa0e00281210687b164f29e3","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.11"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.13_1683290051321_0.22295963356829973","host":"s3://npm-registry-packages"}},"0.5.15":{"name":"@fireproof/react","version":"0.5.15","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.15","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"5ec243203fd142068e67ab49c4ca5768c6e55fcf","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.15.tgz","fileCount":8,"integrity":"sha512-Kwt56h5s4bOjTtr8snMwlBoF+hs/S13fhG+T/m4iCbw1OnYbEsIbBlQfDeUkiL6rSFMY03RGPMXRoApsUJtChQ==","signatures":[{"sig":"MEUCIQCjaP9/xBIv/iJiivcV9gG711imyy611LHYm7KAQGm6ngIgULMc/apO91POOQG5hrtt+27fa6XPLAGGSeY+Co9/HA4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13726},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"704b866a74116f1d1989abd5663da6d3dea53e8f","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.13"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.15_1683502082546_0.24140234476708566","host":"s3://npm-registry-packages"}},"0.5.16":{"name":"@fireproof/react","version":"0.5.16","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.16","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"d0adc93da691f389088293db09793d778de5f11b","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.16.tgz","fileCount":8,"integrity":"sha512-wyKsYL8ALTeiKsTE0CUVA6TsF2DVp9hSAk03QnMXmYmNF6d4aui6qlXOuz+EV65po8kioU2/IFLVjWDzpCMFjw==","signatures":[{"sig":"MEUCIDEVp7fiMvhtlvBBYduswSR8YxYgX492xDbA/SziapSAAiEAthW3s4Pxxc1exjIlHiqfLZUoOt2ODtGXecIIFw95ado=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13726},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"704b866a74116f1d1989abd5663da6d3dea53e8f","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.14"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.16_1683502132250_0.5191064570160469","host":"s3://npm-registry-packages"}},"0.5.17":{"name":"@fireproof/react","version":"0.5.17","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.17","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"31c60434902d52d6f4852730e53f920c7d0deef4","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.17.tgz","fileCount":8,"integrity":"sha512-B7Vo245Ifq6zag7YNE73vAyh93Cc1QigSkXJpMqE3mICavc4F50usE3qtQgOh/0JFYFrdPJg4TreIX11Sf2g7A==","signatures":[{"sig":"MEQCIE6WYMiaGZ12GujwlJXVylndYGaKObGNfILPEZUrcEiUAiBs/wIqZyKmLX+VL0Bwl0Ya3OIos8pjAPBySO/8AKv8mQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13726},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"704b866a74116f1d1989abd5663da6d3dea53e8f","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.15"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.17_1683503098607_0.5020930841583802","host":"s3://npm-registry-packages"}},"0.5.18":{"name":"@fireproof/react","version":"0.5.18","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.18","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"ba938612f80c74447db64b809c07a01fdd769395","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.18.tgz","fileCount":8,"integrity":"sha512-gdZlt/dNQG3HtA/iF8x/NPwJfCRiDphG2OVgfJCfHj0PikamXUWzi182eUJgEwV6CqJ66WyqHuHlAedVIHknxQ==","signatures":[{"sig":"MEQCIBuHko2mFjkkcgE7jEkJRHtfPN6GLqiZ6uenPDzrqRyXAiAXM0Fwx99kTDDM0ocATz8sxX5PFrtJNVJGpcux2CDoDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13726},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"7c6b3341d98d7f783340980e02446d532be7096f","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.16"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.18_1683574694328_0.6215156343580077","host":"s3://npm-registry-packages"}},"0.5.19":{"name":"@fireproof/react","version":"0.5.19","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.19","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"4afda5051c073a95eaef2322b217511e6e7c1537","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.19.tgz","fileCount":8,"integrity":"sha512-0HMiOS1HbqEu5u/QIb+LA5RHadCRjccA+06864hJZ3WADupge1TR42o4ezAbpEAy2SIBIFEZL0XtnR7fbrOG2g==","signatures":[{"sig":"MEUCIFoNjF2BoGlF2omVy/10A+os7ZfsHNigzrw8TlgC8FWZAiEA/s6/ezDR+53Gu7rqmymFlw5lI8NDgTJ2DjO18pr3r2I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13726},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"561e48564ec4924e2ec589ae27b745a0e321f947","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.17"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.19_1683754204883_0.5658623731228467","host":"s3://npm-registry-packages"}},"0.5.20":{"name":"@fireproof/react","version":"0.5.20","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.20","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"944b4eb0b30dd3febff1fa05b3abb702b53fabe2","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.20.tgz","fileCount":8,"integrity":"sha512-g7JPfKgwbJf9x/yEQlvV1gY1E8e+GD7XfXAW5uLQUnKsSVsDdEi5MQiAMr2CIeBP2o93eUeBDzFkd47XGWtTdw==","signatures":[{"sig":"MEUCIF4D0S+j2KMmhv0lEjiL48siWmyFAjksYWo1jZDH3Ts+AiEA41ex7B1V1EVt7QzIiNSQyM5t4zQk2zR9sr9ZU0N6Tbc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14102},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"bf824f8000f084b9b21a85a5b809e30e367e8314","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.18"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.20_1683942981843_0.05631639285103707","host":"s3://npm-registry-packages"}},"0.5.21":{"name":"@fireproof/react","version":"0.5.21","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.21","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"e984a0b40b0f9e2bab209138274b810d62b5cb45","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.21.tgz","fileCount":8,"integrity":"sha512-cqptKG9rUWaQafF5gM1BZ1z6soIZZ2r/onbLpipVWQJcFTbFht71oMWiAA7NLILTqPnzA563SddBM/JsNzW/Pw==","signatures":[{"sig":"MEQCIDflxzgv49R9PpnE0BSIyY51dvvjSIuRB4VUPPeZee2IAiApLDTfWT44DPjw46rLxv0enwDhmmfXtg6BVrmpkfSEVg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21501},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"602d7e2008ce8707ec11a37fe2cd1aae81c01a43","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.21_1683983411962_0.9501030843924749","host":"s3://npm-registry-packages"}},"0.5.22":{"name":"@fireproof/react","version":"0.5.22","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.22","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"7c20dfd8eec0b6a0ba3eb1014049817972158f40","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.22.tgz","fileCount":8,"integrity":"sha512-fSg9nQNsvKI7kd2RHZC+IH0wm8W8aancNocsLLrM4c4EXzJSWbtvGAFSzJXEV9Kz8jL128iTAhKj+YEJx58gfQ==","signatures":[{"sig":"MEQCIBEV0esDxVtKOA2eEHkyiMOrL5tWA2IWrZ84C+RqJpSBAiBeUgbNAzKa/Ey4AsTnXZOR+6MHxbJeuEQjMLZl3bZewQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22028},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"602d7e2008ce8707ec11a37fe2cd1aae81c01a43","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.22_1683988595307_0.45852489653149964","host":"s3://npm-registry-packages"}},"0.5.23":{"name":"@fireproof/react","version":"0.5.23","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.23","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"b521615336b3d0dc95ef11c5f5c18e1c9662b36e","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.23.tgz","fileCount":8,"integrity":"sha512-VnP2W0w2EQ66nYlDFHhMAOBWdCwUDGnBg+ev9WMOnO0S6EWn4rcxIFAWHl5hFuOtimaraPlD3sx8kPXCk3E+SA==","signatures":[{"sig":"MEYCIQDRMCPloykwxMvgfi1klXxnhct3vPih9UmU+sfsJ7L/rwIhAPNwXRYWv3eXU28bAY3lXEHPNljPCxGBh2SFi2ZoKMar","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22198},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","readme":"# useFireproof React hook\n\nReact hook to initialize a Fireproof database, automatically saving and loading the clock.\n\nThe hook takes two optional setup function arguments, `defineDatabaseFn` and `setupDatabaseFn`. See below for examples.\n \nThe return value looks like `{ useLiveQuery, useLiveDocument, database, ready }` where the `database` is the Fireproof instance that you can interact with using `put` and `get`, or via your indexes. The `ready` flag turns true after setup completes, you can use this to activate your UI. The `useLiveQuery` and `useLiveDocument` functions are hooks used to update your app in real-time.\n\nChanges made via remote sync peers, or other members of your cloud replica group will appear automatically if you use these APIs. Makes writing collaborative workgroup software, and multiplayer games super easy.\n\n## Usage Example\n\nIn larger apps you set up your context in App.js, and then use it in other components. This allows you to easily share\nyour index definitions and other setup code across your app. Here is what you might see in App.js:\n\n```js\nimport { FireproofCtx, useFireproof } from '@fireproof/core/hooks/use-fireproof'\n\nfunction App() {\n  // establish the Fireproof context value\n  const fpCtxValue = useFireproof()\n\n  // render the rest of the application wrapped in the Fireproof provider\n  return (\n    <FireproofCtx.Provider value={fpCtxValue}>\n        <MyComponent />\n    </FireproofCtx.Provider>\n  )\n}\n```\n\n### useLiveQuery\n\nAnd in your components, the `database` object and `useLiveQuery` and `useLiveDocument` hooks are available. In this example the `useLiveQuery` hook is used to display a list of todos, and the `database` object is used to add new todos:\n\n```js\nimport { FireproofCtx } from '@fireproof/react'\n\nexport default TodoList = () => {\n  const { database, useLiveQuery } = useContext(FireproofCtx)\n  const todos = useLiveQuery((doc) => doc.date).docs\n  const [newTodo, setNewTodo] = useState('')\n\n  return (\n    <div>\n      <input type=\"text\" onChange={(e) => setNewTodo(e.target.value)} />\n      <button onClick={() => database.put({text: newTodo, date: Date.now(), completed: false})}>Save</button>\n      <ul>\n        {todos.map((todo) => (\n          <li key={todo._id}>\n            <input \n              type=\"checkbox\" \n              checked={todo.completed}\n              onChange={() => database.put({...todo, completed: !todo.completed})} />\n            {todo.text}\n          </li>\n        ))}\n    </div>\n  )\n}\n```\n\n### useLiveDocument\n\nYou can also subscribe directly to database updates, and redraw when necessary:\n\n```js\nimport { FireproofCtx } from '@fireproof/react'\n\nfunction MyComponent() {\n  // get Fireproof context\n  const { useLiveDocument } = useContext(FireproofCtx)\n  const [doc, saveDoc] = useLiveDocument({_id : \"my-doc-id\"})\n  \n  // a function to change the value of the document\n  const updateFn = async () => {\n    await saveDoc({ _id : \"my-doc-id\", hello: \"world\", updated_at: new Date()})\n  }\n\n  // render the document with a click handler to update it\n  return <pre onclick={updateFn}>{JSON.stringify(doc)}</pre>\n}\n```\n\n### Raw database subscription\n\nHere is the same example but without using the `useLiveDocument` hook:\n\n```js\nimport { FireproofCtx } from '@fireproof/react'\n\nfunction MyComponent() {\n  // get Fireproof context\n  const { ready, database } = useContext(FireproofCtx)\n\n  // set a default empty document\n  const [doc, setDoc] = useState({})\n\n  // run the loader on first mount\n  useEffect(() => {\n    const getDataFn = async () => {\n      setDoc(await database.get(\"my-doc-id\"))\n    }\n    getDataFn();\n    return database.subscribe(getDataFn)\n  }, [database])\n\n  // a function to change the value of the document\n  const updateFn = async () => {\n    await database.put({ _id : \"my-doc-id\", hello: \"world\", updated_at: new Date()})\n  }\n\n  // render the document with a click handler to update it\n  return <pre onclick={updateFn}>{JSON.stringify(doc)}</pre>\n}\n```\n\nThis should result in a tiny application that updates the document when you click it. In a real application you'd probably query an index to present eg. all of the photos in a gallery.\n\n## Setup Functions\n\n### defineDatabaseFn \n \nSynchronous function that defines the database, run this before any async calls. You can use it to do stuff like set up Indexes. Here's an example:\n\n```js\nconst defineIndexes = (database) => {\n  database.allLists = new Index(database, 'allLists', function (doc, map) {\n    if (doc.type === 'list') map(doc.type, doc)\n  })\n  database.todosByList = new Index(database, 'todosByList', function (doc, map) {\n    if (doc.type === 'todo' && doc.listId) {\n      map([doc.listId, doc.createdAt], doc)\n    }\n  })\n  window.fireproof = database // 🤫 for dev\n  return database\n}\n```\n\n### setupDatabaseFn\n\nAn asynchronous function that uses the database when it's ready, run this to load fixture data, insert a dataset from somewhere else, etc. Here's a simple example:\n\n```js\nasync function setupDatabase(database)) {\n    const apiData = await (await fetch('https://dummyjson.com/products')).json()\n    for (const product of apiData.products) {\n        await database.put(product)\n    }  \n}\n```\n\nNote there are no protections against you running the same setup over and over again, so you probably want to put some logic in there to do the right thing.\n\nHere is an example of generating deterministic fixtures, using `mulberry32` for deterministic randomness so re-runs give the same CID, avoiding unnecessary bloat at development time, taken from the TodoMVC demo app.\n\n```js\nfunction mulberry32(a) {\n  return function () {\n    let t = (a += 0x6d2b79f5)\n    t = Math.imul(t ^ (t >>> 15), t | 1)\n    t ^= t + Math.imul(t ^ (t >>> 7), t | 61)\n    return ((t ^ (t >>> 14)) >>> 0) / 4294967296\n  }\n}\nconst rand = mulberry32(1) // determinstic fixtures\n\nexport default async function loadFixtures(database) {\n  const nextId = (prefix = '') => prefix + rand().toString(32).slice(2)\n  const listTitles = ['Building Apps', 'Having Fun', 'Getting Groceries']\n  const todoTitles = [\n    [\n      'In the browser',\n      'On the phone',\n      'With or without Redux',\n      'Login components',\n      'GraphQL queries',\n      'Automatic replication and versioning',\n    ],\n    ['Rollerskating meetup', 'Motorcycle ride', 'Write a sci-fi story with ChatGPT'],\n    ['Macadamia nut milk', 'Avocado toast', 'Coffee', 'Bacon', 'Sourdough bread', 'Fruit salad'],\n  ]\n  let ok\n  for (let j = 0; j < 3; j++) {\n    ok = await database.put({ \n        title: listTitles[j], \n        type: 'list', \n        _id: nextId('' + j) \n    })\n    for (let i = 0; i < todoTitles[j].length; i++) {\n      await database.put({\n        _id: nextId(),\n        title: todoTitles[j][i],\n        listId: ok.id,\n        completed: rand() > 0.75,\n        type: 'todo',\n      })\n    }\n  }\n}\n```\n\n ","gitHead":"602d7e2008ce8707ec11a37fe2cd1aae81c01a43","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.23_1683989320375_0.5251406185036607","host":"s3://npm-registry-packages"}},"0.5.24":{"name":"@fireproof/react","version":"0.5.24","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.24","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"5a84b6b8e3b3bc5b3bf17379ac72802168fe4df2","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.24.tgz","fileCount":8,"integrity":"sha512-5s4wVn7lewoETmjNw2VjQJVRlF1DTZ6VS/pMAl4NYnlbrTdGrfVRM0QoH6LF8v030MnHccvlAN5tJTC+prYwWg==","signatures":[{"sig":"MEUCIQCsJ6gjg9ND6rgc4cyTLduispetcrJzWdRZiW2oFuG0xwIgXjApcj8HTJ2uojEc7BQB9zfBM/4MYu33c0f/2YK88rE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22329},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"602d7e2008ce8707ec11a37fe2cd1aae81c01a43","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.24_1683989573720_0.717029579957202","host":"s3://npm-registry-packages"}},"0.5.25":{"name":"@fireproof/react","version":"0.5.25","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.25","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"fd5309e4f2ff8a9b5fa93568bfe056837e018843","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.25.tgz","fileCount":8,"integrity":"sha512-0ET8EUqaypPUIbvhAslTRRmabKJcwVUU05dkkKlRkCuqNK8SlNRL6gwL6hH+Ud4b4rTn/whFGx5B0+QDI8LfCQ==","signatures":[{"sig":"MEUCIBRznlBMTvwPlLk5FiyeybBaPPj3pqcoOBezwy3CK57VAiEApeqjmgDneWfNemGIzw0SPBlBRStMgzELbdop02V2n/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22336},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"602d7e2008ce8707ec11a37fe2cd1aae81c01a43","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.25_1683989811768_0.7934365418517073","host":"s3://npm-registry-packages"}},"0.5.26":{"name":"@fireproof/react","version":"0.5.26","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.26","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"0ebbbf28683a31403a1beb42d3c424490d9cc097","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.26.tgz","fileCount":8,"integrity":"sha512-nln5JIgorSS/mfvJtyJNWJ3FfRLBOMhKcI87LD8B09T0uFvb8E1MzeA+Zy7TSIlAgGbppWYRCMfOiPrr/1Fk7Q==","signatures":[{"sig":"MEUCIQC+dNkcJ73wBrf2+c0tAMFqrMPdGJyS+VDQ+QmYWpKsEgIgWe06mVNJMe7khctdlSq0znsCGUD3mBwUvbQQtGDMBEs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22462},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"602d7e2008ce8707ec11a37fe2cd1aae81c01a43","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.26_1683992869792_0.2902148258398891","host":"s3://npm-registry-packages"}},"0.5.27":{"name":"@fireproof/react","version":"0.5.27","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.27","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"e21dbe620ef70cd1851b0d3e79fdb01f4bce8a17","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.27.tgz","fileCount":8,"integrity":"sha512-lPNy0ekMSDC/UXPPYbkvTIcC+Fd9EqTKB4qfayVEtbdmR74MYBrxp12sYvNXz6j1bYfxnlIGk4R3THS2h+t3JA==","signatures":[{"sig":"MEQCIAEW3M8ZncCSoEmX6fPrdjoaDwqrhG5bILzzBvFGI/DSAiBD4vvLqQ09ovDoNjrjoqwUqUI2H/G+/abaffjnLxLxCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21912},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"bfe92d49071673bf63aca6425a64952f6f4a5b97","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.27_1683993802416_0.7286362401623079","host":"s3://npm-registry-packages"}},"0.5.28":{"name":"@fireproof/react","version":"0.5.28","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.28","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"47dc732d5d6bea15c36c21f51c84285a0a36d7a1","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.28.tgz","fileCount":8,"integrity":"sha512-p/QYp/6nbnXyeNir06jUJxfWmfsnpJjiQAA2pNt3lJjzpdg2K/ZkN5g9YrB5tfhgvVpvv7YqMWx8TER8bQBhUQ==","signatures":[{"sig":"MEUCIQDw6/iWwN4TTAbVt0vY1BJ5ZRPf4ICZKq+oz+Z9GU9fQgIgWcylblluCuMxUO+q0pxufAPRsb0OGRos7xmVZX2t/NU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21751},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"bfe92d49071673bf63aca6425a64952f6f4a5b97","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.28_1683994176842_0.1973635575905881","host":"s3://npm-registry-packages"}},"0.5.29":{"name":"@fireproof/react","version":"0.5.29","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.29","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"6aa0ed9c87e4047f21608c199b8745e8d374600d","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.29.tgz","fileCount":8,"integrity":"sha512-3+N3x3CBfaPtj1dly8wMv7A+jGdN8PCV6QylxjfynQ2cnRrOLC84KowD6KdxaaeiKRvA16xOe32DDniRtwntkA==","signatures":[{"sig":"MEYCIQDQkooJFPuuZGKwfmkcHwtV698ozwn5XTfOTnHF9gEW6AIhANszGBSsXncDAl8I4+IQge+wdssm4bGG3SiQgrTRGSxu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21893},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"47ae51e3fdddec4e18d5d4788230420ea020349f","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.29_1683994599115_0.05009790826238669","host":"s3://npm-registry-packages"}},"0.5.30":{"name":"@fireproof/react","version":"0.5.30","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.30","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"5cb20af706adfd9cc58212740296a91343804368","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.30.tgz","fileCount":8,"integrity":"sha512-p8+Qjwq2LhxzSaS33HK7nCgUzP0uqQYANfQKP4p/Gw3a2R8DSXKI+mLZGnaTRQSlsU+6l2ImiEzmzVgQ1Ojr3A==","signatures":[{"sig":"MEUCIQDVoQMCH+LKG6nlRfQz59CDhu7cpcHm7bj3J8SRgV4gWgIgWWDMOHLEdNNcqpMIb1tCuTEu6CsUJOGxJsN8HAIcABk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21893},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"b929f97bb1de34dc13817e773e254af1aa8c83b5","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.19"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.30_1684259228391_0.8713975076236948","host":"s3://npm-registry-packages"}},"0.5.31":{"name":"@fireproof/react","version":"0.5.31","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.31","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"06df84354317cc3f8260b26aeb7d2eeb752d4a14","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.31.tgz","fileCount":8,"integrity":"sha512-qsITSk6l9K4DX1jG1Ew8cAXQmW+MofsKuMx3yUMZyuTLEmNdDev3Rw812atPlP5RMNEy17y8nbUB/WfsREiFrA==","signatures":[{"sig":"MEYCIQCWzVmCxf/nVARTBDQlIkj0UFYtY6SGqIBvYtTVIpgmUAIhAKmcOIz2cMY80b/FJX57tsA0vLBTvwPXkZnYtyGq4O8S","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21893},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"b929f97bb1de34dc13817e773e254af1aa8c83b5","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.20"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.31_1684259304371_0.47847594343232736","host":"s3://npm-registry-packages"}},"0.5.32":{"name":"@fireproof/react","version":"0.5.32","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.5.32","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"6bb246885f38062ef954afcc2257758bdabc326f","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.5.32.tgz","fileCount":8,"integrity":"sha512-+uWvXaHtzIvbNi6CwnWW01M/EPbSMGq4PBAxsqx/Oh2mNrrDOaIdXgbRoeyxZSy8FcnHWs7nW6giOmLXB30rDg==","signatures":[{"sig":"MEQCICdJ1aclWC6P/YeWYfVqaNDP8AFasactaSIpQbXqgRpeAiAZQ8IhapARvXYOOBOLRKr5r6+G2Rz0LiMVJ4wg0gAx7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21836},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"83578ec375bfae430b15e5f4b5177b0dcc3a4e1c","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.5.22"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.5.32_1684262486774_0.22934944701453164","host":"s3://npm-registry-packages"}},"0.6.0":{"name":"@fireproof/react","version":"0.6.0","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.0","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"c643eca77e88a54bbfa7b561b95f371d7063c9f9","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.0.tgz","fileCount":8,"integrity":"sha512-Gq3WTH4lubY7e6xeyIvO/riCJmUovfOx3stdMwvrgqlKDnYv0bhndKucS/nWLVC39ZFiu4VslAiCUH3ZJhxjqQ==","signatures":[{"sig":"MEQCIFONVuAf1BWAOPAoYuuTH3UepA649/0zx/3oDYPCPzRgAiB7V+AG/07i22mxxiC2+DrtnCw8edMT0FLOA0seEimkSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21834},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"83578ec375bfae430b15e5f4b5177b0dcc3a4e1c","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.0_1684264902436_0.6477970938747499","host":"s3://npm-registry-packages"}},"0.6.1":{"name":"@fireproof/react","version":"0.6.1","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.1","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"3f2d0f51e43979d1af6b72e990466826fa6d95fa","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.1.tgz","fileCount":8,"integrity":"sha512-k71H8wc423YPdcbV8eXKywCshiXuDl0Y2IkY+ngH9avEjyS/0d8C5rflaRIswfGrA+AIPda9pMpbRvx4qHWNgA==","signatures":[{"sig":"MEUCIQCZ+xFsnH3GR0wQ4CioIMEnGE2XQPOXnD32lboM0vbKIwIgENxX5ie9zoHNyLeC+kz0EX+REWKlhXRbSiVtUx2ycB4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22529},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"a5207db3f604fcd868798cf1c6d1b078f46fe0bd","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.1_1684340533085_0.38301910751362556","host":"s3://npm-registry-packages"}},"0.6.2":{"name":"@fireproof/react","version":"0.6.2","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.2","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"a51407c96ba12f8d13b134c1e42dc95ed08c5b67","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.2.tgz","fileCount":8,"integrity":"sha512-CRDFH+abFKQggMJsy5w6HiyoR7RzTFpW740EH4PtemUbcD7+LYGzKBaGDI+5QCgwSIwk6YoOD9/ESTNFuB/pwA==","signatures":[{"sig":"MEUCIQDvjZP/cG0OarqmSYIIpaQhYUJsh5t5wixix07jN4rcbQIgZB/vzlNjoK6xKA4epDqPrZBjA3HL+QQzDTd57sL5Nr4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24136},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"ed7581addeb0eea21d5ac95bebcd9d49eb2b1d14","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.2_1684414395783_0.7058080047245556","host":"s3://npm-registry-packages"}},"0.6.3-dev":{"name":"@fireproof/react","version":"0.6.3-dev","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.3-dev","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"752ec5803adf81d28b6019f53a5015ccb0fe679d","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.3-dev.tgz","fileCount":8,"integrity":"sha512-/MPOXnkqe4oWWEThREHMJGB8yADwlzp8r3qYOa6fQZPN4aiag5/jP3NiNWVedUInT1lGMNIX/LZ0KGYKpME1zw==","signatures":[{"sig":"MEUCIEtzqbnt2rkVrbU3B6YkOqTb/AUBaP1t9DZxA2tuSsWdAiEA4LPyt4Pc3nn5yLxTIc+imXTEGKzrCsiQceQjaNWuA5k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24144},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"2f59c50b0b6a464da03f28212bb04e4d48c09813","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.3-dev"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.3-dev_1684529217538_0.7113961343384452","host":"s3://npm-registry-packages"}},"0.6.3-dev2":{"name":"@fireproof/react","version":"0.6.3-dev2","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.3-dev2","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"a0697164a4a5886d935c4164e9e9aa7a9e906e74","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.3-dev2.tgz","fileCount":8,"integrity":"sha512-GVMYPK8x5FMsMDiGbbn7fZKm0lk1Pqiro5VcpE9HzYnkXx2r6FKKNv268k87K6Z8eT8K2RjgtjyNbfmc7xsMpg==","signatures":[{"sig":"MEUCIQCDaoFCNiRAApRePYJPzzWWw3JdAq8/ZtQEOtnQWpcKzgIgXAH78Pg2VX6+I1/G5EZgZ+RiP9Kxf6XnmqkheRO08b0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24146},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"2f59c50b0b6a464da03f28212bb04e4d48c09813","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.3-dev2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.3-dev2_1684529398846_0.40387798750848614","host":"s3://npm-registry-packages"}},"0.6.4":{"name":"@fireproof/react","version":"0.6.4","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.4","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"1590696070ef7930f7822eb50b90d51c1558d2f6","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.4.tgz","fileCount":8,"integrity":"sha512-/vQtLGypbvIO0ffLNU2X4COo7NR1Hsv1FM2CcRNydlRhXmJ2F87B29jmqp2G5fBh1FoscHJglFcfVcwuUL9BLw==","signatures":[{"sig":"MEUCIQC4c3sy8H3uNiAzSi9068EpKmxoeUJ2pX4zKOliXJ4PvAIgc///BLy/rkZ09j/Oi7fsDv/+SeDowecCj9vB70m/ZJI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24136},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"8abb31a322be406923b048629e285024a051a843","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.4"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.4_1684529758447_0.09516335263867592","host":"s3://npm-registry-packages"}},"0.6.5":{"name":"@fireproof/react","version":"0.6.5","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.5","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"02af653da326b1ca2327f6c2fc89c6510c1c3e60","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.5.tgz","fileCount":8,"integrity":"sha512-8w2zWT9Mpn+l4sBSVEQDiNszcvmSfKSeMYWzFOnJ+FxJvsdV9LzksWzca8RpL8zDZkJD6G/+syE52k78x0U2zA==","signatures":[{"sig":"MEUCIQCazKHeXRsiHtCrFVZCaQIT+a27yM4RBMNwqwzqeIBPBAIgTvN/vEQ+bVfYYP/35xb7pnDVK6amwRvdGebK3YhXPAM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24556},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"28fd8a9e4e24b3532faaacce6c847ea2edd38434","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.5_1684899215467_0.3222388400625995","host":"s3://npm-registry-packages"}},"0.6.6":{"name":"@fireproof/react","version":"0.6.6","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.6","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"efd608e3bbc62717415180f2321696bc61b00b48","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.6.tgz","fileCount":8,"integrity":"sha512-IAbfgVsUAznPkMFYjLm+1jbYcbzZcgRzcF5q6B15dBj6pNFbHZAjP9mF9FJSBArq2bMcup1ZwA1ZW8r7jBRN8g==","signatures":[{"sig":"MEUCIHUmod8xZnf96OQe1yyNpdNN5yKQo31JSP2zlkISQCE9AiEA1gRjZPKvX/0F1s7oW7bShThCSq4sAMWCJbBN/26s9c8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25472},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useFireproof } from '@fireproof/react'; function App() { const { useLiveQuery, useLiveDocument, database } = useFireproof(); const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, saveCountDocument] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveCountDocument({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"eec5d8098423ec23b50ec008ddc6bed8c6d34f58","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.6_1684907972542_0.7743969538503721","host":"s3://npm-registry-packages"}},"0.6.7":{"name":"@fireproof/react","version":"0.6.7","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.6.7","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"b8bc021539466e34b40afe2a3dcf55251f865e74","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.6.7.tgz","fileCount":8,"integrity":"sha512-mE+6fLJ5msVE/Pf6+05gku0fhboMUi/U2QU2OUdeyVmFMhgrUaqcGMbTJzhKHDuKjOBLlG7zFnR7KYuF7jzjyA==","signatures":[{"sig":"MEUCIQDSVO3JY9mI7gIk0b4eVdjBH5QlDKA4Z5ZDzz/aoX6pkAIgBmOHCh65oJX6+BinrSgo3lrmL8SbyBaQKEgmQCjJPiM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28267},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useLiveDocument } from '@fireproof/react'; function App() { const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useLiveDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"7fbb545a5e0636c4d35afaf313b8307073b4b088","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks for Fireproof realtime cloudless database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/core":"^0.6.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.6.7_1684942001959_0.7508143121271058","host":"s3://npm-registry-packages"}},"0.10.0-dev":{"name":"@fireproof/react","version":"0.10.0-dev","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.0-dev","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"37800bc54571f9384e954f7f64a3c008e1121d6c","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.0-dev.tgz","fileCount":10,"integrity":"sha512-zcNOfEPny1MYs7rzX/kkLBjmz7Vtp8pVdpRVVAOlM/En0UyHMRaOsH8N/PP+Ue2Rityo1iD5zw3v3CgpT+WCSQ==","signatures":[{"sig":"MEUCIQDncVS2K7dJsDrphmy0HtUElkc7cSrHQPuUjVIGluOAaQIgNYsvfVSloi0xU0TK2rWI/SEvQPXdD5PX2dBeX+mXUKQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36121},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","readme":"<p align=\"center\" >\n  <a href=\"https://fireproof.storage/\">\n    <img src=\"https://fireproof.storage/static/img/logo-animated-black.svg\" alt=\"Fireproof logo\" width=\"200\">\n  </a>\n</p>\n<h3 align=\"center\">\n   Quickly add dynamic data to your React app\n</h3>\n\n<p align=\"center\">\n  <a href=\"https://github.com/fireproof-storage/fireproof/blob/main/packages/react/README.md\">\n    <img src=\"https://shields.io/badge/react-black?logo=react&style=for-the-badge%22\" alt=\"React\"  style=\"max-width: 100%;\">\n  </a>\n  <a href=\"https://bundlephobia.com/package/use-fireproof\">\n    <img src=\"https://deno.bundlejs.com/?q=use-fireproof&treeshake=[*+as+useFireproof]&badge\" alt=\"Bundle Size\"  style=\"max-width: 100%;\">\n  </a>\n</p>\n\nLearn more about [the features and benefits of Fireproof](https://github.com/fireproof-storage/fireproof#readme) in the core repo. This README is for the React hooks.\n\n## Quick Start\n\nUsing Fireproof in your React app is as easy as running:\n\n```bash\nnpm install use-fireproof\n```\n\nThen in your app, you can use the top-level `useLiveQuery` hook to get access to the database and live query responses. Here's an example to-do list that initializes the database and sets up automatic refresh for query results. It also uses the `database.put` function to add new todos. With sync connected, the list of todos will redraw for all users in real-time. Here's the code:\n\n```js\nimport { useLiveQuery } from 'use-fireproof';\n\nexport default TodoList = () => {\n  const todos = useLiveQuery('date').docs;\n  const database = useLiveQuery.database;\n  const [newTodo, setNewTodo] = useState('');\n\n  return (\n    <div>\n      <input type=\"text\" onChange={(e) => setNewTodo(e.target.value)} />\n      <button\n        onClick={() =>\n          database.put({ text: newTodo, date: Date.now(), completed: false })\n        }\n      >\n        Save\n      </button>\n      <ul>\n        {todos.map((todo) => (\n          <li key={todo._id}>\n            <input\n              type=\"checkbox\"\n              checked={todo.completed}\n              onChange={() => database.put({ ...todo, completed: !todo.completed })}\n            />\n            {todo.text}\n          </li>\n        ))}\n      </ul>\n    </div>\n  );\n};\n```\n\nThis example shows calling `useLiveQuery` and `database.put`. It may be all you need to get started. You can [try out a running version here.](https://codepen.io/jchrisa/pen/vYVVxez?editors=0010)\n\n## Hooks usage\n\n### `useLiveQuery`\n\nIn your components, the `database` object and `useLiveQuery` hook are returned from the `useFireproof` hook. You can use the `useLiveQuery` hook to subscribe to query results, and automatically redraw when necessary. When sync is enabled you'll have both parties updating the same database in real-time. Here's an example of a simple shared to-do list. For something like a form you should use Live Document instead. There are two ways to call `useLiveQuery` - as a top-level hook, or based on the return value of `useFireproof`, which allows you to specifc the database name and replication options. Most apps will start with the top-level `useLiveQuery` hook, and then move to the lower-level API when they need more control.\n\n```js\nimport { useLiveQuery } from 'use-fireproof';\n\nexport default TodoList = () => {\n  const todos = useLiveQuery('date').docs\n  ...\n```\n\nThe top-level call (above) will use the default database name, and the default replication options. You can also call `useLiveQuery` with a database name and replication options, by instantiating the `useFireproof` hook directly. Here's an example that uses the lower-level API:\n\n```js\nimport { useFireproof } from 'use-fireproof';\n\nexport default TodoList = () => {\n  const { database, useLiveQuery } = useFireproof(\"my-todo-app\")\n  const todos = useLiveQuery('date').docs\n  ...\n```\n\nThis [running CodePen example](https://codepen.io/jchrisa/pen/vYVVxez?editors=0010) uses the `useLiveQuery` to display a list of todos, and the `database.put` function to add new todos. \n\n### `useDocument`\n\nYou can also subscribe directly to database updates, and automatically redraw when necessary. When sync is enabled you'll have both parties updating the same database in real-time. Here's an example of a simple shared text area (in real life you'd probably want to use an operational transform library like [Yjs](https://github.com/yjs/yjs) or [Automerge](https://automerge.org) for shared text areas, which both work great with Fireproof).\n\nJust like useLiveQuery, you can call useDocument as a top-level hook, or based on the return value of useFireproof. Here's an example that uses the top-level hook:\n\n```js\nimport { useDocument } from 'use-fireproof';\n\nconst CustomerProfile = ({ customerId }) => {\n  const [doc, setDoc, saveDoc] = useDocument({\n    _id: `${customerId}-profile`,\n    name: \"\",\n    company: \"\",\n    startedAt: Date.now()\n  });\n  return (\n    <div>\n      <form>\n        Name:\n        <input\n          type=\"text\"\n          value={doc.name}\n          onChange={(e) => setDoc({ name: e.target.value })}\n        />\n        Company:\n        <input\n          type=\"text\"\n          value={doc.company}\n          onChange={(e) => setDoc({ company: e.target.value })}\n        />\n        <button\n          onClick={(e) => {\n            e.preventDefault();\n            saveDoc();\n          }}\n        >\n          Save\n        </button>\n      </form>\n          <p>Started at: {doc.startedAt}</p>\n        <pre>{JSON.stringify(doc, null, 2)}</pre>\n    </div>\n  );\n};\n```\n\nThe top-level call (above) will use the default database name, and the default replication options. You can also call `useDocument` with a database name and replication options, by instantiating the `useFireproof` hook directly. Here's an example that uses the lower-level API:\n\n```js\nimport { useFireproof } from 'use-fireproof';\n\nconst CustomerProfile = ({ customerId }) => {\n  const { database, useDocument } = useFireproof(\"my-todo-app\")\n  const [doc, setDoc, saveDoc] = useDocument({\n    _id: `${customerId}-profile`,\n    name: \"\",\n    company: \"\",\n    createdAt: new Date()\n  });\n  ...\n```\n\nAnother simple use case for Live Document is a shared form, where multiple users can edit the same document at the same time. For something like a chat room you should use Live Query instead:\n\n```js\nimport { useDocument } from 'use-fireproof'\n\nfunction MyComponent() {\n  const [doc, setDoc, saveDoc] = useDocument({ _id : \"my-doc-id\" })\n\n  return <input\n          value={doc.text}\n          onChange={(e) => setDoc({text : e.target.value});}\n        /><button onClick={saveDoc}>Save</button>\n}\n```\n\n## Using the `useFireproof` hook\n\nThe other top level hook, `useFireproof`, takes two optional setup function arguments, `defineDatabaseFn` and `setupDatabaseFn`. See below for examples.\n\nThe return value looks like `{ useLiveQuery, useDocument, database, ready }` where the `database` is the Fireproof instance that you can interact with using `put` and `get`, or via your indexes. The `ready` flag turns true after setup completes, you can use this to activate your UI. The `useLiveQuery` and `useDocument` functions are hooks used to update your app in real-time.\n\nChanges made via remote sync peers, or other members of your cloud replica group will appear automatically if you use these APIs. Makes writing collaborative workgroup software, and multiplayer games super easy.\n\n\n### Raw database subscription\n\nHere is an example that uses direct database APIs instead of document and query hooks. You might see this in more complex applications that want to manage low-level details.\n\n```js\nimport { useFireproof } from 'use-fireproof';\n\nfunction MyComponent() {\n  const { ready, database } = useFireproof();\n\n  // set a default empty document\n  const [doc, setDoc] = useState({});\n\n  // run the loader on first mount\n  useEffect(() => {\n    const getDataFn = async () => {\n      setDoc(await database.get('my-doc-id'));\n    };\n    getDataFn();\n    return database.subscribe(getDataFn);\n  }, [database]);\n\n  // a function to change the value of the document\n  const updateFn = async () => {\n    await database.put({ _id: 'my-doc-id', hello: 'world', updated_at: new Date() });\n  };\n\n  // render the document with a click handler to update it\n  return <pre onclick={updateFn}>{JSON.stringify(doc)}</pre>;\n}\n```\n\nThis should result in a tiny application that updates the document when you click it. In a real application you'd probably query an index to present eg. all of the photos in a gallery.\n\n## Setup Functions\n\n### `defineDatabaseFn`\n\nSynchronous function that defines the database, run this before any async calls. You can use it to do stuff like set up Indexes. Here's an example:\n\n```js\nconst defineIndexes = (database) => {\n  new Index(database, 'allLists', function (doc, map) {\n    if (doc.type === 'list') map(doc.type, doc);\n  });\n  new Index(database, 'todosByList', function (doc, map) {\n    if (doc.type === 'todo' && doc.listId) {\n      map([doc.listId, doc.createdAt], doc);\n    }\n  });\n  window.fireproof = database; // 🤫 for dev\n  return database;\n};\n```\n\n### `setupDatabaseFn`\n\n#### A note on using Context\n\nIf you are just calling `useLiveQuery` and `useDocument` and doing setup with the synchronous `defineDatabaseFn`, you may not need to manage context. If you are doing async setup work with `setupDatabaseFn` you will need to manage context. This allows you to run database setup code once for your entire app. Here is what you might see in App.js:\n\n```js\nimport { FireproofCtx, useFireproof } from '@fireproof/core/hooks/use-fireproof';\n\nfunction App() {\n  // establish the Fireproof context value\n  const fpCtxValue = useFireproof('dbname', defineIndexes, setupDatabase);\n\n  // render the rest of the application wrapped in the Fireproof provider\n  return (\n    <FireproofCtx.Provider value={fpCtxValue}>\n      <MyComponent />\n    </FireproofCtx.Provider>\n  );\n}\n```\n\nAn asynchronous function that uses the database when it's ready, run this to load fixture data, insert a dataset from somewhere else, etc. Here's a simple example:\n\n```js\nasync function setupDatabase(database)) {\n    const apiData = await (await fetch('https://dummyjson.com/products')).json()\n    for (const product of apiData.products) {\n        await database.put(product)\n    }\n}\n```\n\nIf you are running the same setup across multiple users installations, you probably want to use deterministic randomness to generate the same data on each run, so people can sync together. Here is an example of generating deterministic fixtures, using `mulberry32` for deterministic randomness so re-runs give the same CID, avoiding unnecessary bloat at development time, taken from the TodoMVC demo app.\n\n```js\nfunction mulberry32(a) {\n  return function () {\n    let t = (a += 0x6d2b79f5);\n    t = Math.imul(t ^ (t >>> 15), t | 1);\n    t ^= t + Math.imul(t ^ (t >>> 7), t | 61);\n    return ((t ^ (t >>> 14)) >>> 0) / 4294967296;\n  };\n}\nconst rand = mulberry32(1); // determinstic fixtures\n\nexport default async function loadFixtures(database) {\n  const nextId = (prefix = '') => prefix + rand().toString(32).slice(2);\n  const listTitles = ['Building Apps', 'Having Fun', 'Getting Groceries'];\n  const todoTitles = [\n    [\n      'In the browser',\n      'On the phone',\n      'With or without Redux',\n      'Login components',\n      'GraphQL queries',\n      'Automatic replication and versioning',\n    ],\n    ['Rollerskating meetup', 'Motorcycle ride', 'Write a sci-fi story with ChatGPT'],\n    [\n      'Macadamia nut milk',\n      'Avocado toast',\n      'Coffee',\n      'Bacon',\n      'Sourdough bread',\n      'Fruit salad',\n    ],\n  ];\n  let ok;\n  for (let j = 0; j < 3; j++) {\n    ok = await database.put({\n      title: listTitles[j],\n      type: 'list',\n      _id: nextId('' + j),\n    });\n    for (let i = 0; i < todoTitles[j].length; i++) {\n      await database.put({\n        _id: nextId(),\n        title: todoTitles[j][i],\n        listId: ok.id,\n        completed: rand() > 0.75,\n        type: 'todo',\n      });\n    }\n  }\n}\n```\n","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.62"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.0-dev_1692219421249_0.13726984205602655","host":"s3://npm-registry-packages"}},"0.10.1":{"name":"@fireproof/react","version":"0.10.1","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.1","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"223fe17506de29c0e755a2e8fa16ff14fe8f9c30","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.1.tgz","fileCount":10,"integrity":"sha512-62SvHwiOZC+ELLt5Buz37z/g9+1HOnZ/vB83mxOqUsoOoAPZSbMYoYjottMInx+XYncOxeq1l4PZXpebtQBgMg==","signatures":[{"sig":"MEUCIBJDwsz3bRiIP6gfz1/K0QIa02af0KlSiy1m/wSJm7gyAiEA5KrU2v+SHMx62PxyZ0QIfRXkyNjS/85DV5pofjiq42o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36117},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.62"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.1_1692219460147_0.7097377847873398","host":"s3://npm-registry-packages"}},"0.10.2":{"name":"@fireproof/react","version":"0.10.2","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.2","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"73504d83c4de58660109d129afe7d13d81a010fe","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.2.tgz","fileCount":10,"integrity":"sha512-tIzRChK+kJF0ocs6X1Xvj9J/97OBlDXumt1y8iaUXeOGA90v4AJ7jgVRsYVOPrevNvoY6Dc5P4R3W8c36kRvQQ==","signatures":[{"sig":"MEYCIQDvajUcYyeVQtY7WaVBFZDlnSM6/TXaUtll47cPyFLr8gIhAJtcbQk+5PHbwjX9WOWdUzZiCAnB/rUJM4RJg0+LsvXe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35021},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.62"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.2_1692220145710_0.8280345632717292","host":"s3://npm-registry-packages"}},"0.10.3":{"name":"@fireproof/react","version":"0.10.3","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.3","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"6b78967c3cdc53ae59725b9133dd5de414da6cb2","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.3.tgz","fileCount":10,"integrity":"sha512-kr53nh0b1PTrH/i6fhEYvNROc1TxOx5aBis1JG0jjfl5rerC6PXmSw9pksDNd5A/mHD57DsgtxE7uIrKUQ78oA==","signatures":[{"sig":"MEUCIQCgQR5+m/oczvxWajT8jX8chsch+cs0TJDj6aB8sUArkQIgPLnhGLMcp3LJuiyL78j8iFBnuUDWgUADaiDs+bUK2VY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35477},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.62"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.3_1692221006327_0.4294608861209781","host":"s3://npm-registry-packages"}},"0.10.4":{"name":"@fireproof/react","version":"0.10.4","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.4","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"e6c29b85212c44fdc9e22ccd8f425c8f14468a8d","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.4.tgz","fileCount":10,"integrity":"sha512-2zPuybsmxMIqJYj8he/0pErsSN2kRbwRxtOFO8eHST+rMDUYiB8Q/jV0Ss5DpT8Mx/+4Xdwj9DjoqObYJUa3ng==","signatures":[{"sig":"MEUCIGFzjNIiRboPjpy0LVmx08pijYdbK+zj59d+/9JwpuSxAiEA7EvumNf5QOTtAungtw4vhzjqI4ef6A6M+nUCvr3b8f4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36188},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.62"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.4_1692221492805_0.6758580646535182","host":"s3://npm-registry-packages"}},"0.10.5":{"name":"@fireproof/react","version":"0.10.5","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.5","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"8cae054fb10ef6f2c3326005af51324f5734354a","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.5.tgz","fileCount":10,"integrity":"sha512-i069tGHD9i94ik8cZ5IqZ1qBWwBdOgN/KaVTnXITcQjteGcMiigi8OK6591T0m2ixP5550HlU/8wiY1fYEoTpA==","signatures":[{"sig":"MEUCIQDDpMheLOJbyx5TiDQbeL3qa7141rPiHnxDm6836d1ZyAIgdivXxOSndwjOlDb01Yibqjm/mVhjFKvmnOd4ViFmDXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35662},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.5_1692223106645_0.9949049755208892","host":"s3://npm-registry-packages"}},"0.10.6":{"name":"@fireproof/react","version":"0.10.6","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.6","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"fb98544f07c5b921091c5b46805e677111bf4477","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.6.tgz","fileCount":10,"integrity":"sha512-qUGEn92AEAE/MoCihGyYDZNBFMvLHPl4NN9XRVHPRWEglaLVZycfBMTqhkX+qQ/RwPGyPKvOCP+4W4C6HdXCZw==","signatures":[{"sig":"MEUCIEqY35mBytarGZ4Veo4etFGIKDWEYfwdlMQ1sSXv+zTUAiEAm+O0foFLOlOYvtKGAW9esXJlkyiNRTsWT1aImkWnvTE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35996},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.6_1692223872756_0.06124468504316294","host":"s3://npm-registry-packages"}},"0.10.7":{"name":"@fireproof/react","version":"0.10.7","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.7","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"281ecd04ade7e2a6dc7d26a47771aea3fee73f73","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.7.tgz","fileCount":10,"integrity":"sha512-J5rqxTKQw3cSZErWDrBTgZUAydQsmIUoRQQ2FYStyDTAEM78Rx34mLcUcT/WAHvB7xHEGK1PCF8QjvZKd7uKkQ==","signatures":[{"sig":"MEYCIQCp7EhLkZHmXJ+IhNIo8ADRr/0k5cF7Rky8T4LZ1TX6OAIhAMelwjhUbHuxslWNgJSx9QJTDFWVb+dmhEhd2S9g4dp7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36092},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.7_1692224305785_0.6772321742519523","host":"s3://npm-registry-packages"}},"0.10.8":{"name":"@fireproof/react","version":"0.10.8","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.8","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"d98eebefe5b05078fba6a4b1edadafc7d2cad63a","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.8.tgz","fileCount":10,"integrity":"sha512-uUDWvEt3F4Hsm7HkFbGLAbtvxqtY5XV4Ugt0JzkT1pjxq3hPnPJf02yMJj73p9rdGGho4sZtv1cHblIJBVWVHw==","signatures":[{"sig":"MEQCIHez54WmUtW8ziY+Z2PSggHZc7mmuPVGNRk/6jd5dz+qAiByW3A2E9Ctv7MRd5f4v56usvOptqG0BIxsEFnpcqpqIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36038},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.8_1692224551449_0.846543901013205","host":"s3://npm-registry-packages"}},"0.10.9":{"name":"@fireproof/react","version":"0.10.9","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.9","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"c2210003b5705aabb2771ff59669f1d473262ff7","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.9.tgz","fileCount":10,"integrity":"sha512-zICB+AFggsuR9PsAJ9Q8qUa4wgxzybjEru8Jy9Ns9SVow/BlnItPlyQwZSKyHGX0HkayXYSpGlGK9lAphd2RCA==","signatures":[{"sig":"MEUCIQDkF9MrzNtSMdu2BCtkyl+pgCcoKi0Xei5//i/p0Hy//AIgIBa58l6/mUkEpLvTMcycv4ltROrxiEJSiWltLqcukZQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36038},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.9_1692224785524_0.2328027498076526","host":"s3://npm-registry-packages"}},"0.10.10":{"name":"@fireproof/react","version":"0.10.10","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.10","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"e1b988f67b9764a65c75af2562f3049ec1b54ba9","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.10.tgz","fileCount":10,"integrity":"sha512-sUVfyv9U1TQfN6h39l1jTNnsW695UK4UrWVhVN7j3GhUJIFV0wMWaJlqQLfs17bi8nrMuf7mDpC3bKycMssiRg==","signatures":[{"sig":"MEYCIQDq1uQnIs3WVpu3H/IgHphQ4yLozitgDTno37wCDAaEdAIhAPJfLNixmD4J4g1g1VIhPF0EcuZCjeNNQh8qjX9n/JLq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36020},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.10_1692227574737_0.49471221530688925","host":"s3://npm-registry-packages"}},"0.10.11":{"name":"@fireproof/react","version":"0.10.11","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.11","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"1abd7e82e84ee02b0e744b0105714d91378ff6b5","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.11.tgz","fileCount":10,"integrity":"sha512-juvy4T2ya0v05x9/RSXoKcH7/Fdol+DQf0sQHxt2iy5vjtSH/H613Fp53sWLzCPNxUkBczYxMTdzkX8GuH7LjQ==","signatures":[{"sig":"MEUCIB9tEu6hdOP6ErqoiOkxq3tVTOkRRD/0hmtrBg3GTVKsAiEAvpmgcgWBk/MbDXw0pcmFif0zY9GidRIHdKRifuWNKu0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34745},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.11_1692238610789_0.48204177349479704","host":"s3://npm-registry-packages"}},"0.10.12":{"name":"@fireproof/react","version":"0.10.12","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.12","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"bf6a01e4f33eb117ddf45ee4f384dad3e27ae634","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.12.tgz","fileCount":10,"integrity":"sha512-HaGQfqLd56/nL6k8lUk2ichEKYfXLygno9lXX4fvtSOCwnJJ+hb0XYotToELOQWaTPX7PTpJCFwR/Bp18XWGHw==","signatures":[{"sig":"MEQCIHtw6j2+rdahJ52X/aY6Zc5tzrciUEexn3oRQYXP0vsAAiA87gaE6gQzCmw+yAkuVKoeLfWrItOni96L0+oiKrr2kw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34751},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.12_1692238732073_0.22389505898123652","host":"s3://npm-registry-packages"}},"0.10.13":{"name":"@fireproof/react","version":"0.10.13","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.13","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"d6ddf40748a87c33db9d6b0592a0b10b4b4b7a71","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.13.tgz","fileCount":10,"integrity":"sha512-zQxHs/hCi5Cuwj0GoDKpTfiA6UDz1MdjlkV4w27MayU5OegQJgUM8vEiWVXTxkxo61pt/8xpAwWj7aNBBl+zDQ==","signatures":[{"sig":"MEUCIQCXWfB801KCIJKVL5LNm9QdkUpUdxWDZRAKs2EQ/5XRiQIgDm7Mifiqb6E2J7yVMHTdFvovRwZ/e75Mgt+SzgfbHZc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34757},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.13_1692238897540_0.9013207230915126","host":"s3://npm-registry-packages"}},"0.10.14":{"name":"@fireproof/react","version":"0.10.14","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.14","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"4771db708259a6c92bed82a699bae0ffe7394fb1","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.14.tgz","fileCount":10,"integrity":"sha512-KaX6VSI1kzU5clZvHUuFngdEljgO+q9KyJlGeuplXGxPr2v2wVbDeZvJSdDJuLm+fDgzW47VgmGkzbDHQqZxHQ==","signatures":[{"sig":"MEUCIAhP/J27LnumkaciG59ukpJtRllkdsHPg/g6WGuOOLF0AiEA+l1GpQ5KEGk+ISv7kCEwOlGcEE8NwJ0YkvMl6GKz0zg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34976},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.14_1692240045034_0.5825762075929779","host":"s3://npm-registry-packages"}},"0.10.15":{"name":"@fireproof/react","version":"0.10.15","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.15","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"ed2b676ac60192af295141cde90f9c6da538ea2e","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.15.tgz","fileCount":10,"integrity":"sha512-PQPpPDAG11IqcTFEseh/6/uh7AeTn06LFKlIyI37M98V/bBldxa8ecHFZGdRc1SQPMefBn1PGI7iSOWvrMXA6A==","signatures":[{"sig":"MEYCIQC9GvbMwtItPW7LynHBbF7/NIOUdivYaZ/Xgk51qDRi+wIhAN3VncaAM4XKOBUuiXdQ4t2accvaBJx9dOLw0TRrzXZB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35334},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"05e68a7519077e9ab4490d07065f0f982195e528","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.63"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.15_1692240491647_0.33571293959204596","host":"s3://npm-registry-packages"}},"0.10.16":{"name":"@fireproof/react","version":"0.10.16","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.16","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"2174ea94e7554f4c201fc0039250b0873591189b","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.16.tgz","fileCount":10,"integrity":"sha512-430e632Muwbkl5avkwpxtpCeXSF1cNPt9vLJdnCZB5NaLlxOl5juqsIBlKImDxHGrBwPacjL7gjcbKSYv++vgg==","signatures":[{"sig":"MEQCICUjtEDkGmfaskvL7LfRfh7iMgO4SwYmVd6XvZsFGV4jAiAeEcE+XiNis04Tr6QGaTsHr9ymoOkF4jUcN5JWq+41lw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35334},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"40fb94bac9584abdc879ee10ad7c5951d103c162","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.65"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.16_1692286693869_0.003829333038886329","host":"s3://npm-registry-packages"}},"0.10.18":{"name":"@fireproof/react","version":"0.10.18","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.18","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"43e79201fe284bf0f510a4f204d4ca95d67d2b7f","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.18.tgz","fileCount":10,"integrity":"sha512-GQth1Feq6p+DNd4llGz2a5M4ee32u9m8/EuXIugKhlS5RLVE3WyUAHBunxGoB6JB2ZdiXLPHRsp0/WYfwcNwaw==","signatures":[{"sig":"MEQCIBxeP11kpebVLKqZ50gYYjkJ0IZj728QRTHVzAqCYFumAiAE3luwSRQ+RG0lB5rI4QFpCtIeDO7AriqozlN4NZSSOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35356},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"40fb94bac9584abdc879ee10ad7c5951d103c162","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.67"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.18_1692304194708_0.10961103025662378","host":"s3://npm-registry-packages"}},"0.10.19":{"name":"@fireproof/react","version":"0.10.19","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.19","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"d3a3add95d5580a07997e6e6830b7c477de36cbd","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.19.tgz","fileCount":10,"integrity":"sha512-zRRQqYuT69JAG+YmwiO8Nk7hslTOo+UIm8sKPNNO8f0GgEj9qi9f5XXTWwniXgn6UVfCQ2aWyLS3LOQ+rIPoIQ==","signatures":[{"sig":"MEYCIQC0Ju5l7zlB5wIiyASV5hnFq8Ds3G139pPrM5/R1ssIcwIhAIxHuK/b3XKKsJmIzIeuz+sVHjt/Xyrh1Hd5Jb91VzOg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35771},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"b283672effc8fd5a6fcff1403e285c511854368a","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.68"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.19_1692315993569_0.43205344791949285","host":"s3://npm-registry-packages"}},"0.10.20":{"name":"@fireproof/react","version":"0.10.20","keywords":["react","database","json","live","sync"],"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","_id":"@fireproof/react@0.10.20","maintainers":[{"name":"jchris","email":"jchris@gmail.com"}],"homepage":"https://github.com/fireproof-storage/fireproof#readme","bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"dist":{"shasum":"3f54b22fd691ae58fbcb52d67bdd3ca9bbe197b1","tarball":"https://registry.npmjs.org/@fireproof/react/-/react-0.10.20.tgz","fileCount":10,"integrity":"sha512-yyF6Ko1A8Ywzln3PiP1klh4srNOfN4GjnBnAjDxeM/oEXPUdnlInJr63a7y54GYtYfzC3MwXpOpiKxkQBQAx+g==","signatures":[{"sig":"MEUCIC/akbQwWAHmaThDy4nv5B4+1xBpEPbnC8Gq2idgXU5/AiEA+4JPCT9UE2opgRh0uH+masU0FG+Ix87chEhgZyFsVaI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35771},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","gptdoc":"Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuergit ly(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.database.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}","gitHead":"25686fb13c342f39c5390c19e95ba2eba7318719","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"jchris","email":"jchris@gmail.com"},"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"_npmVersion":"8.19.1","description":"React hooks: useLiveQuery and useDocument for Fireproof live database","directories":{},"_nodeVersion":"18.9.0","dependencies":{"@fireproof/database":"0.10.70"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^16.12.0","tslib":"^2.5.0","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^16.12.0","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","randombytes":"^2.1.0","@types/react":"^16.3.13","@jest/globals":"^29.5.0","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^16.13.1","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1","@types/testing-library__react-hooks":"^4.0.0"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.10.20_1692361417143_0.6458625113356875","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-05-05T11:33:42.701Z","modified":"2024-12-04T17:21:38.667Z","0.5.9":"2023-05-05T11:33:43.067Z","0.5.10":"2023-05-05T11:39:43.573Z","0.5.11":"2023-05-05T11:42:23.200Z","0.5.12":"2023-05-05T12:13:33.216Z","0.5.13":"2023-05-05T12:34:11.563Z","0.5.15":"2023-05-07T23:28:02.693Z","0.5.16":"2023-05-07T23:28:52.407Z","0.5.17":"2023-05-07T23:44:58.755Z","0.5.18":"2023-05-08T19:38:14.474Z","0.5.19":"2023-05-10T21:30:05.071Z","0.5.20":"2023-05-13T01:56:21.993Z","0.5.21":"2023-05-13T13:10:12.165Z","0.5.22":"2023-05-13T14:36:35.502Z","0.5.23":"2023-05-13T14:48:40.567Z","0.5.24":"2023-05-13T14:52:53.916Z","0.5.25":"2023-05-13T14:56:51.891Z","0.5.26":"2023-05-13T15:47:50.115Z","0.5.27":"2023-05-13T16:03:22.658Z","0.5.28":"2023-05-13T16:09:37.014Z","0.5.29":"2023-05-13T16:16:39.267Z","0.5.30":"2023-05-16T17:47:08.601Z","0.5.31":"2023-05-16T17:48:24.547Z","0.5.32":"2023-05-16T18:41:26.981Z","0.6.0":"2023-05-16T19:21:42.616Z","0.6.1":"2023-05-17T16:22:13.301Z","0.6.2":"2023-05-18T12:53:15.954Z","0.6.3-dev":"2023-05-19T20:46:57.732Z","0.6.3-dev2":"2023-05-19T20:49:59.044Z","0.6.4":"2023-05-19T20:55:58.652Z","0.6.5":"2023-05-24T03:33:35.648Z","0.6.6":"2023-05-24T05:59:32.678Z","0.6.7":"2023-05-24T15:26:42.150Z","0.10.0-dev":"2023-08-16T20:57:01.446Z","0.10.1":"2023-08-16T20:57:40.328Z","0.10.2":"2023-08-16T21:09:05.859Z","0.10.3":"2023-08-16T21:23:26.540Z","0.10.4":"2023-08-16T21:31:33.002Z","0.10.5":"2023-08-16T21:58:26.823Z","0.10.6":"2023-08-16T22:11:12.989Z","0.10.7":"2023-08-16T22:18:26.072Z","0.10.8":"2023-08-16T22:22:31.659Z","0.10.9":"2023-08-16T22:26:25.815Z","0.10.10":"2023-08-16T23:12:54.942Z","0.10.11":"2023-08-17T02:16:50.998Z","0.10.12":"2023-08-17T02:18:52.316Z","0.10.13":"2023-08-17T02:21:37.770Z","0.10.14":"2023-08-17T02:40:45.230Z","0.10.15":"2023-08-17T02:48:11.854Z","0.10.16":"2023-08-17T15:38:14.095Z","0.10.18":"2023-08-17T20:29:54.934Z","0.10.19":"2023-08-17T23:46:33.731Z","0.10.20":"2023-08-18T12:23:37.366Z"},"bugs":{"url":"https://github.com/fireproof-storage/fireproof/issues"},"author":{"name":"J Chris Anderson"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/fireproof-storage/fireproof#readme","keywords":["react","database","json","live","sync"],"repository":{"url":"git+https://github.com/fireproof-storage/fireproof.git","type":"git"},"description":"React hooks: useLiveQuery and useDocument for Fireproof live database","maintainers":[{"email":"jchris@gmail.com","name":"jchris"},{"email":"meno.abels@gmail.com","name":"fastandfearless"}],"readme":"<h3 align=\"center\">\n   Quickly add live data to your React app\n</h3>\n<p align=\"center\" >\n  <a href=\"https://fireproof.storage/\">\n    <img src=\"https://fireproof.storage/static/img/logo-animated-black.svg\" alt=\"Fireproof logo\" width=\"160\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://github.com/fireproof-storage/fireproof/blob/main/packages/react/README.md\">\n    <img src=\"https://shields.io/badge/react-black?logo=react&style=for-the-badge%22\" alt=\"React\"  style=\"max-width: 100%;\">\n  </a>\n  <a href=\"https://www.typescriptlang.org\" rel=\"nofollow\">\n    <img src=\"https://camo.githubusercontent.com/0d1fa0bafb9d3d26ac598799ca1d0bf767fc28a41d3f718d404433b392b9a5cd/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f74797065732f73637275622d6a732e737667\" alt=\"Types exported\"  style=\"max-width: 100%;\">\n  </a>\n  <a href=\"https://bundlephobia.com/package/use-fireproof\">\n    <img src=\"https://deno.bundlejs.com/?q=use-fireproof&treeshake=[*+as+useFireproof]&badge\" alt=\"Bundle Size\"  style=\"max-width: 100%;\">\n  </a>\n</p>\n\nAdd live data to your React app. Fireproof allows you to build your app first and connect to the cloud when you are ready. Use familiar APIs to write JSON documents:\n\n```js\nconst [newTodo, updateTodo, saveTodo] = useDocument({ \n  type : \"todo\", \n  text : \"\", \n  completed: false, \n  createdAt: Date.now() \n})\n```\nAnd later, triggerd by UI events:\n```js\nupdateTodo({text : \"Buy milk\"})\n\nsaveTodo()\n```\n\nThis React hooks library also includes `useLiveQuery` (keep reading for docs) -- together they are all you need to write collaborative apps. Read the [Fireproof React hooks tutorial for a detailed getting started guide](https://use-fireproof.com/docs/react-tutorial), or continue in this README for API details. Also, you can learn more about [the features and benefits of Fireproof](https://github.com/fireproof-storage/fireproof#readme) in the core database. \n\n## Quick Start\n\nUsing Fireproof in your React app is as easy as running:\n\n```bash\nnpm install use-fireproof\n```\n\nThen in your app, you can use the top-level `useLiveQuery` hook to get access to the database and live query responses. Here's an example to-do list that initializes the database and sets up automatic refresh for query results. It also uses the `database.put` function to add new todos. With sync connected, the list of todos will redraw for all users in real-time. Here's the code:\n\n```js\nimport { useLiveQuery } from 'use-fireproof';\n\nexport default TodoList = () => {\n  const todos = useLiveQuery('date').docs;\n  const database = useLiveQuery.database;\n  const [newTodo, setNewTodo] = useState('');\n\n  return (\n    <div>\n      <input type=\"text\" onChange={(e) => setNewTodo(e.target.value)} />\n      <button\n        onClick={() =>\n          database.put({ text: newTodo, date: Date.now(), completed: false })\n        }\n      >\n        Save\n      </button>\n      <ul>\n        {todos.map((todo) => (\n          <li key={todo._id}>\n            <input\n              type=\"checkbox\"\n              checked={todo.completed}\n              onChange={() => database.put({ ...todo, completed: !todo.completed })}\n            />\n            {todo.text}\n          </li>\n        ))}\n      </ul>\n    </div>\n  );\n};\n```\n\nThis example shows calling `useLiveQuery` and `database.put`. It may be all you need to get started. You can [try out a running version here.](https://codepen.io/jchrisa/pen/vYVVxez?editors=0010)\n\n## Hooks usage\n\n### `useLiveQuery`\n\nIn your components, the `database` object and `useLiveQuery` hook are returned from the `useFireproof` hook. You can use the `useLiveQuery` hook to subscribe to query results, and automatically redraw when necessary. When sync is enabled you'll have both parties updating the same database in real-time. Here's an example of a simple shared to-do list. For something like a form you should use Live Document instead. There are two ways to call `useLiveQuery` - as a top-level hook, or based on the return value of `useFireproof`, which allows you to specifc the database name and replication options. Most apps will start with the top-level `useLiveQuery` hook, and then move to the lower-level API when they need more control.\n\n```js\nimport { useLiveQuery } from 'use-fireproof';\n\nexport default TodoList = () => {\n  const todos = useLiveQuery('date').docs\n  ...\n```\n\nThe top-level call (above) will use the default database name, and the default replication options. You can also call `useLiveQuery` with a database name and replication options, by instantiating the `useFireproof` hook directly. Here's an example that uses the lower-level API:\n\n```js\nimport { useFireproof } from 'use-fireproof';\n\nexport default TodoList = () => {\n  const { database, useLiveQuery } = useFireproof(\"my-todo-app\")\n  const todos = useLiveQuery('date').docs\n  ...\n```\n\nThis [running CodePen example](https://codepen.io/jchrisa/pen/vYVVxez?editors=0010) uses the `useLiveQuery` to display a list of todos, and the `database.put` function to add new todos. \n\n### `useDocument`\n\nYou can also subscribe directly to database updates, and automatically redraw when necessary. When sync is enabled you'll have both parties updating the same database in real-time. Here's an example of a simple shared text area (in real life you'd probably want to use an operational transform library like [Yjs](https://github.com/yjs/yjs) or [Automerge](https://automerge.org) for shared text areas, which both work great with Fireproof).\n\nJust like useLiveQuery, you can call useDocument as a top-level hook, or based on the return value of useFireproof. Here's an example that uses the top-level hook:\n\n```js\nimport { useDocument } from 'use-fireproof';\n\nconst CustomerProfile = ({ customerId }) => {\n  const [doc, setDoc, saveDoc] = useDocument({\n    _id: `${customerId}-profile`,\n    name: \"\",\n    company: \"\",\n    startedAt: Date.now()\n  });\n  return (\n    <div>\n      <form>\n        Name:\n        <input\n          type=\"text\"\n          value={doc.name}\n          onChange={(e) => setDoc({ name: e.target.value })}\n        />\n        Company:\n        <input\n          type=\"text\"\n          value={doc.company}\n          onChange={(e) => setDoc({ company: e.target.value })}\n        />\n        <button\n          onClick={(e) => {\n            e.preventDefault();\n            saveDoc();\n          }}\n        >\n          Save\n        </button>\n      </form>\n          <p>Started at: {doc.startedAt}</p>\n        <pre>{JSON.stringify(doc, null, 2)}</pre>\n    </div>\n  );\n};\n```\n\nThe top-level call (above) will use the default database name, and the default replication options. You can also call `useDocument` with a database name and replication options, by instantiating the `useFireproof` hook directly. Here's an example that uses the lower-level API:\n\n```js\nimport { useFireproof } from 'use-fireproof';\n\nconst CustomerProfile = ({ customerId }) => {\n  const { database, useDocument } = useFireproof(\"my-todo-app\")\n  const [doc, setDoc, saveDoc] = useDocument({\n    _id: `${customerId}-profile`,\n    name: \"\",\n    company: \"\",\n    createdAt: new Date()\n  });\n  ...\n```\n\nAnother simple use case for Live Document is a shared form, where multiple users can edit the same document at the same time. For something like a chat room you should use Live Query instead:\n\n```js\nimport { useDocument } from 'use-fireproof'\n\nfunction MyComponent() {\n  const [doc, setDoc, saveDoc] = useDocument({ _id : \"my-doc-id\" })\n\n  return <input\n          value={doc.text}\n          onChange={(e) => setDoc({text : e.target.value});}\n        /><button onClick={saveDoc}>Save</button>\n}\n```\n\n## Using the `useFireproof` hook\n\nThe other top level hook, `useFireproof`, takes two optional setup function arguments, `defineDatabaseFn` and `setupDatabaseFn`. See below for examples.\n\nThe return value looks like `{ useLiveQuery, useDocument, database, ready }` where the `database` is the Fireproof instance that you can interact with using `put` and `get`, or via your indexes. The `ready` flag turns true after setup completes, you can use this to activate your UI. The `useLiveQuery` and `useDocument` functions are hooks used to update your app in real-time.\n\nChanges made via remote sync peers, or other members of your cloud replica group will appear automatically if you use these APIs. Makes writing collaborative workgroup software, and multiplayer games super easy.\n\n\n### Raw database subscription\n\nHere is an example that uses direct database APIs instead of document and query hooks. You might see this in more complex applications that want to manage low-level details.\n\n```js\nimport { useFireproof } from 'use-fireproof';\n\nfunction MyComponent() {\n  const { ready, database } = useFireproof();\n\n  // set a default empty document\n  const [doc, setDoc] = useState({});\n\n  // run the loader on first mount\n  useEffect(() => {\n    const getDataFn = async () => {\n      setDoc(await database.get('my-doc-id'));\n    };\n    getDataFn();\n    return database.subscribe(getDataFn);\n  }, [database]);\n\n  // a function to change the value of the document\n  const updateFn = async () => {\n    await database.put({ _id: 'my-doc-id', hello: 'world', updated_at: new Date() });\n  };\n\n  // render the document with a click handler to update it\n  return <pre onclick={updateFn}>{JSON.stringify(doc)}</pre>;\n}\n```\n\nThis should result in a tiny application that updates the document when you click it. In a real application you'd probably query an index to present eg. all of the photos in a gallery.\n\n### `setupDatabaseFn`\n\n#### A note on using Context\n\nIf you are just calling `useLiveQuery` and `useDocument` and doing setup with the synchronous `defineDatabaseFn`, you may not need to manage context. If you are doing async setup work with `setupDatabaseFn` you will need to manage context. This allows you to run database setup code once for your entire app. Here is what you might see in App.js:\n\n```js\nimport { FireproofCtx, useFireproof } from '@fireproof/core/hooks/use-fireproof';\n\nfunction App() {\n  // establish the Fireproof context value\n  const fpCtxValue = useFireproof('dbname', setupDatabase);\n\n  // render the rest of the application wrapped in the Fireproof provider\n  return (\n    <FireproofCtx.Provider value={fpCtxValue}>\n      <MyComponent />\n    </FireproofCtx.Provider>\n  );\n}\n```\n\nAn asynchronous function that uses the database when it's ready, run this to load fixture data, insert a dataset from somewhere else, etc. Here's a simple example:\n\n```js\nasync function setupDatabase(database)) {\n    const apiData = await (await fetch('https://dummyjson.com/products')).json()\n    for (const product of apiData.products) {\n        await database.put(product)\n    }\n}\n```\n\nIf you are running the same setup across multiple users installations, you probably want to use deterministic randomness to generate the same data on each run, so people can sync together. Here is an example of generating deterministic fixtures, using `mulberry32` for deterministic randomness so re-runs give the same CID, avoiding unnecessary bloat at development time, taken from the TodoMVC demo app.\n\n```js\nfunction mulberry32(a) {\n  return function () {\n    let t = (a += 0x6d2b79f5);\n    t = Math.imul(t ^ (t >>> 15), t | 1);\n    t ^= t + Math.imul(t ^ (t >>> 7), t | 61);\n    return ((t ^ (t >>> 14)) >>> 0) / 4294967296;\n  };\n}\nconst rand = mulberry32(1); // determinstic fixtures\n\nexport default async function loadFixtures(database) {\n  const nextId = (prefix = '') => prefix + rand().toString(32).slice(2);\n  const listTitles = ['Building Apps', 'Having Fun', 'Getting Groceries'];\n  const todoTitles = [\n    [\n      'In the browser',\n      'On the phone',\n      'With or without Redux',\n      'Login components',\n      'GraphQL queries',\n      'Automatic replication and versioning',\n    ],\n    ['Rollerskating meetup', 'Motorcycle ride', 'Write a sci-fi story with ChatGPT'],\n    [\n      'Macadamia nut milk',\n      'Avocado toast',\n      'Coffee',\n      'Bacon',\n      'Sourdough bread',\n      'Fruit salad',\n    ],\n  ];\n  let ok;\n  for (let j = 0; j < 3; j++) {\n    ok = await database.put({\n      title: listTitles[j],\n      type: 'list',\n      _id: nextId('' + j),\n    });\n    for (let i = 0; i < todoTitles[j].length; i++) {\n      await database.put({\n        _id: nextId(),\n        title: todoTitles[j][i],\n        listId: ok.id,\n        completed: rand() > 0.75,\n        type: 'todo',\n      });\n    }\n  }\n}\n```\n","readmeFilename":"README.md"}