{"_id":"react-firebase-hooks","_rev":"117-cbcf402bfdce01ab73f4a2852abe9901","name":"react-firebase-hooks","dist-tags":{"latest":"5.1.1","next":"3.0.0-alpha.1","alpha":"5.1.0-alpha.9"},"versions":{"0.1.0":{"name":"react-firebase-hooks","version":"0.1.0","description":"React hooks for Firebase","keywords":[],"license":"Apache-2.0","author":{"name":"CS Frequency Limited","url":"https://github.com/csfrequency"},"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"main":"/lib/index.js","module":"/es/index.js","scripts":{"build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","build:es":"babel src --out-dir es","build:umd":"cross-env NODE_ENV=development rollup -c -o dist/react-firebase-hooks.js","build:umd:min":"cross-env NODE_ENV=production rollup -c -o dist/react-firebase-hooks.min.js","build":"npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib dist es coverage","lint":"eslint src","prepare":"npm run clean && npm run build"},"peerDependencies":{"firebase":"^5.0.0","react":"^16.7.0-alpha.0"},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-proposal-decorators":"^7.1.2","@babel/plugin-proposal-object-rest-spread":"^7.0.0","@babel/plugin-transform-flow-strip-types":"^7.0.0","@babel/plugin-transform-react-display-name":"^7.0.0","@babel/plugin-transform-react-jsx":"^7.0.0","@babel/plugin-transform-runtime":"^7.1.0","@babel/preset-env":"^7.1.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","cross-env":"^5.2.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-flowtype":"^2.42.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-prettier":"^2.6.0","eslint-plugin-react":"^7.7.0","firebase":"^5.5.6","flow-bin":"^0.78.0","prettier":"^1.14.3","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"^0.66.5","rollup-plugin-babel":"^4.0.3","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^6.0.0"},"gitHead":"e2d07a9be490ee3c28b06d376a8823a44b4b2c76","homepage":"https://github.com/csfrequency/react-firebase-hooks#readme","_id":"react-firebase-hooks@0.1.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-Z3RGFTmUUM+dx2eRtU4aYR6UjcoE6sBFQslXrCUFje/MAHNBnuXmqv40GueVC7K2LEtzXWP3LT1zyGw77QexCg==","shasum":"c41741532f9aad358b61b0e0cc0a086d84021452","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.1.0.tgz","fileCount":26,"unpackedSize":1348920,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0yRRCRA9TVsSAnZWagAALqEP/3Qx5JaKvpJ5m1ihL+sJ\nyQlNZG+nEL6EC+Dgjf6DE+wJrXj4292tQAj77znnXQrM8Yoz0rxAqw3ldC++\nAgimBqmm//HUsfhj7Y1J5neY/IhFJAXxJCCTPDdcbz9sH0VYaX99E6mEHHjg\nPN+JfyLcOxSlC37OBXjuTfXzjSlv76U9HvnCEtXpQD9d/h+0reJXF91loM8O\nO/rcIHpK0JTwgK2AI5vATW4ogjfcgof6aOLdrn7ndpngpCZPJToEQ5LHjxeP\nNZUT1KBC3jGoGWGDL1xS+1r2R9Fdgqwv37KXkUA0WndVglOis7JjrRkN3uJt\nJ7OMtvbw0vlHJ+qRddna+sJ90ezJDHdnM0p66RoVsaTEoXAJGrl9RuJtvNMV\nAXbu0gzrZ/uY2ZZYqw5RhI6bJquaj80vpGKN1EfVteMJq1FWrtVv5OdTViAZ\ntHN+QYAd53MIKIQmgBpzFrQxSqzKDtzedRCUFjJLMCYGhwiw0MZvZAIR5IZn\neoMgD7luel7NL2ZEpo97c+pwSh1soF3geHe+OUEE8aoNvNfM0Fey+SQKGOrm\nRcXmE6Ped1Ert9cCOLBXNZWGbfax28BVHh/yYqNpgURpjtt819m5jA13bg4p\nj/985QPmmZQwlXH/lt3+6bGIQm+H/v+NrcEtQZkYn9qOCPwxNmcmib8XoaE+\n1L/9\r\n=TnOj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCtD79MKqhxPcvlkAmloTTtNJHRix3rJ/5AypbeJLycgIgc1s5S/fqeItDJuYJGUcyfrcI+yN8j8M0/NSkQ5Qxbuw="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.1.0_1540564048610_0.6417093205981184"},"_hasShrinkwrap":false},"0.2.0":{"name":"react-firebase-hooks","version":"0.2.0","description":"React hooks for Firebase","keywords":[],"license":"Apache-2.0","author":{"name":"CS Frequency Limited","url":"https://github.com/csfrequency"},"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"main":"/lib/index.js","module":"/es/index.js","scripts":{"build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","build:es":"babel src --out-dir es","build:umd":"cross-env NODE_ENV=development rollup -c -o dist/react-firebase-hooks.js","build:umd:min":"cross-env NODE_ENV=production rollup -c -o dist/react-firebase-hooks.min.js","build":"npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib dist es coverage","lint":"eslint src","prepare":"npm run clean && npm run build"},"peerDependencies":{"firebase":"^5.0.0","react":"^16.7.0-alpha.0"},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-proposal-decorators":"^7.1.2","@babel/plugin-proposal-object-rest-spread":"^7.0.0","@babel/plugin-transform-flow-strip-types":"^7.0.0","@babel/plugin-transform-react-display-name":"^7.0.0","@babel/plugin-transform-react-jsx":"^7.0.0","@babel/plugin-transform-runtime":"^7.1.0","@babel/preset-env":"^7.1.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","cross-env":"^5.2.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-flowtype":"^2.42.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-prettier":"^2.6.0","eslint-plugin-react":"^7.7.0","firebase":"^5.5.6","flow-bin":"^0.78.0","prettier":"^1.14.3","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"^0.66.5","rollup-plugin-babel":"^4.0.3","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^6.0.0"},"gitHead":"6b9b0c3ac4b3e22f3f776e07e143f91d39c4343f","homepage":"https://github.com/csfrequency/react-firebase-hooks#readme","_id":"react-firebase-hooks@0.2.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-z6+MBLYs5Ai/khq/ZZTeQRyH2i6iirkdLMze97Zhi305yJXQhOFnDJZ66WVsc7YVMiSVQfYPcg/QPREjv3i9MA==","shasum":"63ba409f810f52a56db06511cb126a4581074c1f","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.2.0.tgz","fileCount":35,"unpackedSize":1362827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0z7SCRA9TVsSAnZWagAAzsUP/AgLwxVzFb0//x8yCCI3\n+4CYTol/sQdQkA/LrO4/n3yHZx3TzCiLY32JToRXHNw4LTqIYFAjta8L7zkt\n5bml3J3noZuX7ctNKggK5mNC1NiZPv+WbxKKLxF0fgyuB43Mqv5ni1pXMB2R\n656Iy2vUGyggxwrZdUjPAlfw/YFEDgzOX6h/OjV16YqygDjvEeLV9Svbr0h/\nM5QogPvGwWSsmNAQncJhb70az+cgZVAi6cndk6X9YY4zrkYOv9GlAdfjPqId\nJe1nQ41zPD+5rdJjgSK1X9+xMyMI0bNtQtEAHj8uf3k2VUB4HYTn1ciWLdeE\nOeYxlEorRkVOAFD/5dKq9R+5QQjXiTI5R4LC4DDwUH92ql+CUy9IBK4yxcQb\ngbBJlW3zN1OH9hyDQlflKZcdreHzD+ykp/5/MSpZ8cJRcl918EIhjiqbNnAG\n5cpUaIjeZ3BFgZ7+WRvP1ku3JcScXeus5rvfqmbKmKEZxyZdcdkEASb7BxDA\nQ7Q1sFj2s5K4v1b2/YWINUDsF6xDfvmtq4NtlxNzJ07IMOncXZiTvvNtqlte\nK+0cMDU4RXAoMDMZehczZ4C7rGtDfzP9m7b77gDbfTi9lHjN8lW/842zD1fZ\nkapkeq5M+MHZV+n4ZnxsUae1W3LKsN7v+V0h76lY2cbzK8KAjLFCzLeJgxOl\nZOTn\r\n=tENL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsxU5wek5jI3ZxlPPoOQkmWsyBBNQVGmBCT5591FXJgAiAUdaih0FAI4HQvprtnpjsf2NJLUvIBnhjgIgOeKHMGIw=="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.2.0_1540570833493_0.5963010096938841"},"_hasShrinkwrap":false},"0.3.0":{"name":"react-firebase-hooks","version":"0.3.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"firebase":"^5.5.6","path":"^0.12.7","react":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"typings":"index.d.ts","gitHead":"f9f1253eb696609dea3bfdb0e24c6f97e3f40e2e","_id":"react-firebase-hooks@0.3.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-f1Yhj0o6DJUgEWxZBAHeU5hWZPMO2CPIHVPjkfmKqOIdxVKTE6zls3K1AI2oROCFQl0NnvzL4AXBmuDrN/2VAA==","shasum":"ed907efd92e161a10f6e05b6bbeb45b9c62c0f54","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.3.0.tgz","fileCount":41,"unpackedSize":132497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2uJACRA9TVsSAnZWagAAEo4P/3wK4blVRSGONAUtmn0m\nN/F4O12u7g3Pjbnq/PLoMdw89cBQVSmLfJf1PAkwb1JY5AC5vJROtVCeGl+1\nklg0qqqhao6d8R8hft6rLjDAMz/4/JnTcPbDm7awRMJqrUk1mVS91HZhlPnu\nK9gFB1rWk+FBEZ+TCRBwKOPKdHgVt6iSQMkyXptxCMLPDMdqgMxxSOW9i8N+\nSoBuDtpbqRnbwGTT+1kd9+nG9nChvDURSQO5+tQpGJYYYrN9Bng/z42AuGUK\nuYUDq3/NwrKQbbJzi38TJrlvj1gG+Vm/fpaS0h6EL416CNsq2iKBpCTuR82M\niBL0k6VgJFfXJMq/T6APcLernO9zQhv89RnYohdX0Tr+DsruAjZNEhXGLD3Q\nsixQrqNf10EQNjSiQsNfpxSnRf5Vu35aZZUFPCHZb7Rttd6YQrihLP4wMFRo\nsPgyjHyQo1lQmdAVA9r7cB2njap2rlCj4xhYn2pr5MDQqRxluqfZ3tnJo/Rs\nPm6ZV+B1LVwIsRMR5JlVDlf8eo2WJRxgVWAeHOFozidm45QxC9IrIZnlpQcH\ndTh/JqgfeyvBUO6AaKjJb8xRhZo0RySGuI2f6fpFLAYfSRk77OcfMiyLSyp/\n78qaPorCItxLpNZUz4HBO7a/AX0YPOcwu0VDjJdq2Bnt6k8z6S29DDtbGyEK\nNuKi\r\n=1sP5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE3zAqzPAOgTa7uJkZNLcFGH/Wy7ZcSc/q9ivMGQrv0AIgSu0P4xEoNEbqIb6PSuzfci74J2ws1r1rdtLN67GmGDs="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.3.0_1541071423956_0.21240531160478882"},"_hasShrinkwrap":false},"0.3.1":{"name":"react-firebase-hooks","version":"0.3.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"firebase":"^5.5.6","path":"^0.12.7","react":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"typings":"index.d.ts","gitHead":"d10e1a8a5df2fb7ade8185bb4fe30b8c5e19803b","_id":"react-firebase-hooks@0.3.1","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-LRKhu/gK9NGC8549Wg43oxM/1pFSWnhhCgVbx12UL0VClB2S9VSFxcXDhRD0Sc0SXw53TLsq8AKocLvos0lhqA==","shasum":"2d7d23c3fb03b2c2465032c816ba8070b88ede25","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.3.1.tgz","fileCount":42,"unpackedSize":134760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2ykWCRA9TVsSAnZWagAAGyMP/iIwyNMznMZh744G7xks\ncp5CcEWCpZaIbQt7zU+HtzwGWzgyrdHgbFqwpbJmtyIb7iqjWWeA5/ganFwK\nrMEgMNpwMW5tDbxnXAln82PUb3FZqhSUzpRv7qwwjJuv2cxdzlQbNBnqBEUW\n1cQBES/DU6YJU54hzE0wDUbkXXph4EXdcqLxJyCbASeMOfdwxuq8BBK1anqp\nbmI9u7aiSh8qeGmlbTjrpn2QJo6g6qFURDBqNxULVjQpNvRbNwdfH3c0xAk8\n6vi1DspfB/pZ+BXOtK+TjmLKPVrf2oI4VaQ2V3bwJCOPHTeSGMfnCYEw64G5\n/RXvmPpCOKXZV3Ut1l8haDU9mnpCabBXWBtV1gBBWrYJfTYOZqZvwyHhhLuI\nHQVb2w6meHZI6nkUzDw9msD+iyemHroB+FLLrX9vGCgU2M2HDy9yskJxeo0p\n30NHJI9scLoh2wrtsIath066V2UmcnqiGz4pVBgfbX+BGEMRGyxV9wbvZB6L\nduPUc/kDQKU+8EbXz1vC98tJ6AN18VStNJ7kcRS2D2NzC/wb+/V4vOpR/E1m\n0KeB5JA7VWMpeDBlGR+jkCfLaStZeRHu4ZHpUbmrHdeGv2wwNSAdlRXWGvdL\nMD2KsFskx8EaKhmkOstOOLgzRFqdnG3Y+l0WDrDtgAV85WUXzat6Nvhu1kFG\nkweX\r\n=rKdF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4j/EUf7WbvOnwijAV0sA0AEVaT6KMZ87WUqBCS0QlJAIhAOlS2I87L3kUf+ZVvs3lswo/W0hAtnEk4UgxTlAb/1A/"}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.3.1_1541089557754_0.2883965664534478"},"_hasShrinkwrap":false},"0.3.2":{"name":"react-firebase-hooks","version":"0.3.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"firebase":"^5.5.6","path":"^0.12.7","react":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"typings":"index.d.ts","gitHead":"aad65c762a8c71d11ec34cc5a528d30d7a2f096f","_id":"react-firebase-hooks@0.3.2","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-sgmvIzeGO8yu/e9h2N0tIpoILbiOWjEqTNYQnxGjCLorEReCsi/a2cWwVd5duruuyZgOYTlalhSFGjSI1niY3Q==","shasum":"e1f77b27f7efd9797fbc15ba3dd1cc53c9033ede","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.3.2.tgz","fileCount":42,"unpackedSize":134792,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3sSeCRA9TVsSAnZWagAAbCUQAIQ9BEdGNxyYyZAER5tF\nNvmmMyBlOJNAITJghAOzoSrJoOeh6YswREejNwoHT8QuakyoK3dIMerYZ5aA\nP8ALDXhteDnCFoS8t3xYaaMvOEEmrWeXrTCL4ShgoJYJThzPygJbQ7YcicAb\nk1PiohJexjQUGHdgzz6Sd9HqxOOR7SuC0zJwUcLEUqu165YhtmPwr4/eoXum\nXHo7vhEAiB/qj53+b9r9B+NDxineA1eWaQsswEA8Q1c7prwqqh4PA6FBNq0S\naznedrCixeNy1pyPXLWrv6Fvb4/BsLBIUkers+i0y2dA6cv8D1JHSQLx2+XQ\n6ym7tFv6CaDpqd/YeTWCutS8t7971h3rhUQH2Ej56H2i+gNHhxK2RR0dQ7fW\nQrkeDrLVXYvLcWamXu8Z4uTKTTZbMvUwopTxElXxuIJInK82Q2uGYp8tRegu\nzOIwSCc/JSvN7RWxQlQmVeGSx8DXkHUsRVyIBWGhGtxCG3gLY6WfJ+9s1z29\no4uCQxz+OuwfniJyPtfsD3+Dt2CWf+IpbRcGF50lonBl9KX+jW9Q46tnlNMA\nzB8ftXmX5hHt7Fw5XgpchjkgWY8cZpSsFu8q1TmR/Ml+AgwgMtfCYpJberE8\nicoowZunUxuCBXNEIJa1VihUIHZ4AyNedB8/SkKAyvWL6wAB7XC2ijimz7t6\n1pOu\r\n=jrEm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLmoLgitzFFHYLbppvuhqIaL5plPsOViIwYLrfmb6dhAIgNZVSBfNyBNL0ECE5xtSaUTwZ4HNqvxvaemkhEq9UxUw="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.3.2_1541325981666_0.5358608167019783"},"_hasShrinkwrap":false},"0.4.0-alpha.1":{"name":"react-firebase-hooks","version":"0.4.0-alpha.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"firebase":"^5.5.6","path":"^0.12.7","react":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature proposal that lets you use state and other React features without writing a class. They’re currently in React v16.7.0-alpha and being discussed in an open RFC.\n\n> Hooks are not currently supported in React Native - as soon as they are, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.7.0-alpha.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nIt's clear that there is a **lot** of hype around React Hooks despite them still being in alpha, but this hype merely reflects that there are obvious real world benefits to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is.  It takes inspiration for naming from RxFire and is based on an internal library that we have used in a number of apps prior to the release of React Hooks.  The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => { firebase.auth().signOut(); };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    )\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return (\n    <button onClick={login}>Log in</button>\n  )\n};\n\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore.  The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\n#### `useCollection(query)`\n\nParameters:\n- `query`: `firebase.firestore.Query`\n\nReturns:\n`CollectionHook` containing\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(firebase.firestore().collection('hooks'));\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>{JSON.stringify(doc.data())}, </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n}\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n- `docRef`: `firebase.firestore.DocumentReference`\n\nReturns:\n`DocumentHook` containing\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt'));\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && (\n          <span>\n            Document: {JSON.stringify(value.data())}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n}\n```\n\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database.  The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, list, loading } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && list && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {list.map(v => <React.Fragment key={v.key}>{v.val()}, </React.Fragment>)}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n```\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n```\n\n#### `useObject(ref)`\n\nParameters:\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectValHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`\n\n```\n\n## License\n\n* See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"e983fe572c3bb3b8156a88f9d2d7e3f43e9b4b0c","_id":"react-firebase-hooks@0.4.0-alpha.1","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-TX9hhiliQKGc5b9TCYt7VrzoUMIRjSn6IjOQZoaieMSQdfeSCLRum6hTesG2ff2kpaNcUk+aC/wR2rMOdUsR9A==","shasum":"968835c98c28c079c1b73aabea652d8967f83601","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.4.0-alpha.1.tgz","fileCount":44,"unpackedSize":139011,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5Zx+CRA9TVsSAnZWagAAOnwQAJkYexNawjXVI9qpoRuL\nKzWESNOg6SJ5R1S2tSSjGdbxeWeqSxUY0A0VIoGPTlt4Pi/BPwX6HsXFc0Cl\nEJSAa2sao/hcPJl3yooKe2yNpVMEIIBqY8vEdJN84dAOYzrVgyHH20FrdTRO\n0tcX1byOa/DCWFc6p9NqSzMRDNI6rB/Ht93kS+68JC61arKqMObgCWPVOxFF\nT6KFG4G+85iA09E+8EPvr3VeQ0dPvbmIQyojkKb89ssVA+VDjfNSejQO0v6t\ncnh/4G42RxchJo3fooT/O9nyumsdDsgn7nGU4ntYGG3o6hXkn/ZAQF0844xS\nm8i+DZsu/bMPmiGMgDOU6ZxUb3lOo657ge12RJOetkkBbNJOQlHY4VybnTyy\ny01p0uiq6Wz75Uw8kCMnLFXUj2PVYhjPa2Kbd6bTCF74mcZ9yS7akpa+Wq08\nxbmPYuQveoQrsFFl+kxa1/MZnSZnE5cJyxqFVw5s6PkhzzhyvnMNvV4t7b27\nAaOIkk7LX7Yw1GRvQZT5Xc5zvcdiCW49x+31hyIMQ7YZwdAbiU9OCGcE9JBX\n6vu2lsEl8ji+UUcGFaWeyeUUZRL2Xr0qPvFCdt21O0g6fgxSY1SC0JYe3/wA\nGxiY2HnyTcV/QnQOcJKeMMXpk2fzB5ys/QOk+RNNvIw8YaPficb4i90d9551\nwQys\r\n=m0O/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJLu7afPjimK7XXpAbn6HwtQEvuLGqxkg3JD6VWWvcoQIhAPsqmGyKCRixnTjy5k5EGGK0jS1o3jV9hlpVn64GmABy"}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.4.0-alpha.1_1541774462057_0.7536552004320773"},"_hasShrinkwrap":false},"0.4.0-alpha.2":{"name":"react-firebase-hooks","version":"0.4.0-alpha.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"firebase":"^5.5.6","path":"^0.12.7","react":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature proposal that lets you use state and other React features without writing a class. They’re currently in React v16.7.0-alpha and being discussed in an open RFC.\n\n> Hooks are not currently supported in React Native - as soon as they are, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.7.0-alpha.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nIt's clear that there is a **lot** of hype around React Hooks despite them still being in alpha, but this hype merely reflects that there are obvious real world benefits to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is.  It takes inspiration for naming from RxFire and is based on an internal library that we have used in a number of apps prior to the release of React Hooks.  The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => { firebase.auth().signOut(); };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    )\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return (\n    <button onClick={login}>Log in</button>\n  )\n};\n\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore.  The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\n#### `useCollection(query)`\n\nParameters:\n- `query`: `firebase.firestore.Query`\n\nReturns:\n`CollectionHook` containing\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(firebase.firestore().collection('hooks'));\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>{JSON.stringify(doc.data())}, </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n}\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n- `docRef`: `firebase.firestore.DocumentReference`\n\nReturns:\n`DocumentHook` containing\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt'));\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && (\n          <span>\n            Document: {JSON.stringify(value.data())}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n}\n```\n\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database.  The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, list, loading } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && list && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {list.map(v => <React.Fragment key={v.key}>{v.val()}, </React.Fragment>)}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n```\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n```\n\n#### `useObject(ref)`\n\nParameters:\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectValHook` containing\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`\n\n```\n\n## License\n\n* See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"e983fe572c3bb3b8156a88f9d2d7e3f43e9b4b0c","_id":"react-firebase-hooks@0.4.0-alpha.2","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-7eA0i9QIiIEAjmXZdqp2eychhnwvos6dZgBRAJ0aybIxCIK56yHKz1LETP7aNvFINOdW3TPFlkIwOXfTCybGqQ==","shasum":"e9970d3140485d6c8c201e552e36e22436f7a204","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.4.0-alpha.2.tgz","fileCount":44,"unpackedSize":140327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5aUpCRA9TVsSAnZWagAAkDUP/1JA7sB7Pso+9EwCFLdz\nZmIZMl6+vR9EbwLia4rgmp1jqD4+IE9nvF+4PYQcVyNNzrByt55WquoJUaut\nxxew5H3caSYDWPX3wS2j9trdHbeS5YrNpeaCHa6Hx01LxSlTJQJyRSWH18AI\nIZ694xVoIzYvq5EM8SJATtiq3FsOenjfI6eXbuNX2qnI5naMhsokz0A9Spnz\nLDcq3s92QbvXjU7BiTAk0ke/5hYMTFCUVK4UqIiSayYQ1hq80FEUBZ1hiIlA\nJNEJeyPmFyTjlGjuRo8R9N0mNzfy/a1W5GC9dpMwVnHn4QrdbMF8WjvcwTTg\nv4MgTQ4nTKo+XKXqtRzy/RYUg4VYrWpFGqa/F2j+/adXQlCHFhpI3qW2WAdl\nvn9B5lSvdtNzWLgx2KD8ffPgkbg/gI3e+Z8Bnu1Z+GxRcRMQtruFJAnT2S8L\nvq0PnmVqEUfNxDaaY+KKVa50WxjwNvILv1fQ2vmjmocNX1afEDM7XukUKB40\ndkTvll64uKbIKO1vlCuapaKJgahRklU5XHPdSBsunzU+U4CxeCY5PTnfIFM0\nBYYxIYAdyjxg/PeVnzlwtSTsKGwN/ImYKECoyNzgtDDjUkCY8ZPlXt9hSi+E\n1OvPzyyGVB6WRhiENRVMDLjewjzRJ+1R0ke1cCzHx6K9U+x98idY/705FIRL\ng1Ac\r\n=ryiW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICQfOO809rMNxqLpn1Sx18ImQ2JF94neIq+NYbOwYH4sAiEAvS49bxkBjD0UYEHnCWkzzcAi9ChdRUcYqM5XlGemHNM="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.4.0-alpha.2_1541776680556_0.8572293351579676"},"_hasShrinkwrap":false},"0.4.0":{"name":"react-firebase-hooks","version":"0.4.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"firebase":"^5.5.6","path":"^0.12.7","react":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"typings":"index.d.ts","gitHead":"16d21b43170ceb2072449d8dbe122ce8da20c71d","_id":"react-firebase-hooks@0.4.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-+gOFUX80nAMaPf58B5Kjc5fxah5y1VIPMYKrliyq5xYj9/vsgknIkKPUyVv58+Ko3AbWMqR6Jqu+7HnwoMtK9w==","shasum":"7c12a7080dd9cbb68fed31a4f03f8cc4e623c34e","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.4.0.tgz","fileCount":44,"unpackedSize":140319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6fdxCRA9TVsSAnZWagAAmgkP+gPBA22Iy9+0Xbu4hdDl\nOyYH7vDDduRdXokxi/IV2SNvH4/Zb9fmWZa15zXeH7sTQ9Yc+KcdBBYzD5uY\nro0Kw8+BiUsi0uUgkkhkRCXGbtB6oEFf5uEXEHTPSLbGAO1NnZ7kYsyl7G88\nJXn/0O20Pw2lijc1rfImTi5yEYdpbcfMzyS+i5MUgrRqCUry12t4b/eTgxds\nfOd/IEXoYHKv8/9kfdDKbKjpbhr4SZG1tSkcOHfyeT7rLX09BmdkfbO00teT\nmKoTNCDYQdGoJT4zkzBexA6R2vj/Mi4jXKzWTB/i/pubCdk/5Ftt0jE0wwYZ\najdb6xXDOI54rGQz9XNtvq0N5VZaiSdN/UVXgmdxBPIt+bdGXV4cUtigsZrN\nNWZzpQfZVpmcB955g8KXEf+0zHZlcehq0G+Mxqm1PPCW8HkxwvHx1+y8oORz\nu/OHgDF3FqwoOcROl7dPrIXdZSLNGGTLS/U77CQfgVygeEWy1E04EZMK96oH\nRuGxkOfIv+zQRs9eGApMZ64sqSkdUpSWo++Ou80IN4JlkPenGYIqTGEYCdJy\nD4g5PDHaeqMuGFK8T7ke1C6shvje6alGYe1O532JxMhIp9MV+iD2l3zGrd8V\nRNoBZ03bhpDzAlbqW46n+Ev1O7IxeV+eLM/uKUIT02le27LVCTc/8C//PjDT\nR4Mt\r\n=A2R+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmla7WuSxiwbu3wvPOURI6Hi4TV+OM20rF8o6abvcAnAiEAy3rKH52jFqAMQjdYrVHMDW/KmEwSpVsKYZ5ZR6h6Pyg="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.4.0_1542059888093_0.7165311042594045"},"_hasShrinkwrap":false},"0.5.0":{"name":"react-firebase-hooks","version":"0.5.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"firebase":"^5.5.6","path":"^0.12.7","react":"^16.7.0-alpha.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.7.0-alpha.0 || ^16.8.0-alpha.0"},"typings":"index.d.ts","gitHead":"aba6f5f578e618a00912ee1283a08e2f6c0c99c5","_id":"react-firebase-hooks@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-wRiiOyfeaXKlHN5Qxjw9QhMJmlgwVoyrIVf87DAE2myfp4SFdQQM7eT/NlgjO0+hU3lpxXDiru9T4SEmTQxonQ==","shasum":"0360bcb6784f4c36512b22ecc1091862ebd85057","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-0.5.0.tgz","fileCount":44,"unpackedSize":140357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQayQCRA9TVsSAnZWagAAloQQAJEG54FafBcdkR+2R62h\nK9KB+U/9VVcXDiOCz4lVjJUGnPhkE+ASVV1YBuR4+DTHLaoXKrUwsGhr3J6+\n8mCFGV9ielSBGg3ciGH0AZAIr8QJmEYUOcwQ9gmVnGNlvguWlTZkjRs7lPo8\nSaHdsekes4OTE2PA2Wa19X7hqm6K3hTH8CTjTqHpHeJa8Q6RgkPqp8sMIsnz\ntp9kloRA1UbY098JRyQ/Vjb2UemMRdi/NS4heCSI/gfEmTlJZOCpA/s7gHIk\nMv1YJL3YlG+SiaxMKgfvKr6yEd2YZXzORLRKw3vSQxtAvxmfGT+Yd6XemEqS\nhy5WKqoI0x6MoVPlT9PSJjQXSACJjAtRKZ7q0eT8qpMuZSd071knPFgq/3MP\nAgYLHVqI8PHdSGMhIUP7VPjrudhJiOQf0XLMnEQqCBqw224Q8a2c4/RMog4R\nC+2l+i9TMIkhoaP0HEgyL9tk21Ld32uo46eQWtOo7rbYViLMdWBOE9ZX4Yb1\nXuHwJkL28WQbIFPxi2/0Uu+A+vHfouyE/9Wnx+5qxG8necvLYXq7JKYVfM64\n45ok/aMUJtr+PvqZBN12XXzckq/Xuonbqgo5BsuwxZb4AcxnUVZuNWs+BphE\niAjf6ApgOd/y1mAR6sIiTkWPEoOQbwdblCbjCJK6WjTLpQLRudv8QFjMEUpr\nSJPt\r\n=AVi0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3P2vlithO5M/8+p7MmrXDVkUkhmlPOyCHTLCQPsWFlAIgTjplhkB979cThwhpIV+2AwIhwexg261ftNkZgLXJr9E="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_0.5.0_1547807888201_0.283250362280018"},"_hasShrinkwrap":false},"1.0.0":{"name":"react-firebase-hooks","version":"1.0.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"16.8.0"},"typings":"index.d.ts","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.0.0","dist":{"shasum":"62677d74d30d66c3dfc49669184f8e40bf7c2645","integrity":"sha512-rsgDXW7+PBw/kP8fi85rSq2a8UTVQLy5phcXgG6CbnOzz99cps8PVQul4nJDeKc9e2qXtb/LbTfuJIJz2Zwt/w==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.0.0.tgz","fileCount":58,"unpackedSize":141727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWxzCCRA9TVsSAnZWagAA1HoP/2+whTCsn/vbLWBQbavu\nWb2Amc8+AdSuUiSXRsdYOL2qv+HZoBsD1Vpa5rbaPIY73GCgRFjXGru9ypSJ\n9dAAI5sHYgWP6bqGvhYfppKix3/UxhL4+LPxlfq1N5EKX9QMBWa9uG/uLE3g\nlfN4kOT7Y5/n6dP2Rx0sgD1coXSzK4E2yaZIGF91Psf11oJu8kIZ0wOD2Iea\nrMrWpqMzNT/IIjgN3X+Jy3f/mqnZ4nozpj7Hw1H1fsybF6V62khzM6Psc9zn\nisnMvjHTxhzDf7ZBgFBh/deKtjp964/FSWSN5HqdRCTo0qNtmAmBBiPiCmPg\n1675z7qtvtvO+4mHyOhfyqQmgls2WLXMkhajVDQBIk5uHHmc/x1KLa3yz6Ob\nU2Y4dgu/zdjl3m5Lqbb2N3Hc5jWSlmm3ZwL/w2OpblTaBdBRL4zuE7nYIDD9\nksfKvQkzf9N95Uh8XDk5Kph0I9xWalBx0Nw16MQwk2PX+SgbNLpmCVvZJ5Ij\n4BiIvAw1ZS9UdN0Sesf4L+F3teMUOJYwR9N4Bbeqp8o69dPX3+sbyLWsMX0c\ny73MWd0J08muWFh4q9TdWW0S4mVycNIy8LJwjgut5yxwlWmi31EDCA7mrHTx\nN9p9TJO83Adp+aQPW+7CKZp95aTH8opeBeHKvRn5SbN/xj7wRsSJAGQUWCx2\nLO2w\r\n=WvAO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmAJCq2faH73aVtHp1Kp3PvwKMjmsvn+qRZIl5ILhxPAiEAz58sfK1EBEPaUJU6pseSM8e8CcGoMfO1b6nc88YhFqg="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.0.0_1549475009944_0.7240051871185322"},"_hasShrinkwrap":false},"1.1.0-rc.1":{"name":"react-firebase-hooks","version":"1.1.0-rc.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks will be added to React Native in [v0.59.0](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214) - as soon as it's released, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\n#### `useCollection(query)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadUrl } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.1.0-rc.1","dist":{"shasum":"2312bd070a6114a4202cfdd567456f0a7dba3ff3","integrity":"sha512-eOa+iigB5eFP6X/7yCLVPpwa5GBvPyGiyPq2HrBlcdilObigXF9cWREM3N7nL3nV9xCulS8VXfU2fmiMotl0zA==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.1.0-rc.1.tgz","fileCount":58,"unpackedSize":145376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZYoBCRA9TVsSAnZWagAAN+0P+QEgYPNafD3LIHi8OhpY\nUy5cSxMncwPimZ6XX41aFOSqv6GjUMLnZOKsqF7K8Hhx/l+lhxjX5AH4v3S3\n6301N5KLS6oxFTfbTY+pd5tb1iHaGeJcr01JzELPzXHX7ieoxUCHt+sbfbFD\nIE2kLtTkEp7cIfWiL5Q3QbwdvMck4BPjrhptBsu/yk+DkIeE07GLKpnFTiZe\nUB8EtSFkDJnxwxSr0tNV+aKEebKN4Y/1mdjuzTzkkSQ6gsliVnwgrhZdrv+x\nTy14jlYYGBjxjDvJA844UAfsNhZkWkN7M4PRTGpQUNvPYsdMrHvqkmq8EiYa\nfLPbz2lGGczsk7zbslZxdIqCzvCRVyXzc2N4RET3ogajFg3jFdz30vspcw2m\nh3PAQYazSleH/VNofUbe3DYOXfL6URdXx/SF1ChfNg5F//vzfQFGtLO/Fl64\nMzVVPrTGO3aL6mAdsmM0snQzhnwk8GnTjWD//p3WwHuuCDPFWpAhLWtQJh/l\nKUyEoq1/MR2/FCLrhCP7aAzjI/INEofHKaGoU+BbhVbb+/JP0xAtI9aO0VlR\nPXimi8WWQcvaQHlN3yYM2kLUQnG003YCnLrsKXwkR8UFGtGKGgSrnTcln7Ty\nFD8qmnauVz7CRwsbnKsVVU3DN0ZHbq+uFVIv4Be2zB/KhxLX/4D4JzYCY22T\nm1x1\r\n=98o2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFl/ArrBGYc26hN7mM2WnaY8a46ZXb5CbWi3IBNWKYCAiEAhKfWYeeuPo5EX/QENh9TJt02guIlvyQnK3xagt7I7LM="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.1.0-rc.1_1550158336360_0.6707229543074256"},"_hasShrinkwrap":false},"1.1.0":{"name":"react-firebase-hooks","version":"1.1.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"16.8.0"},"typings":"index.d.ts","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.1.0","dist":{"shasum":"8e1853155669026b171e9b6d9fc16898cfa9b8bd","integrity":"sha512-ZdY6vAmv9mwldW9mul8T3lbv45p5qgLhtfADZgD8L58MN6/FfTsLCAPOrYMD7MpRTRdeiMX4ioZ9xQd1BfOWCQ==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.1.0.tgz","fileCount":58,"unpackedSize":145371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZYubCRA9TVsSAnZWagAAP+kP/A5Jh+gAujhuwOUiZSYr\nGFTdZL9SO4DxHpsjuMXYmEvCzTfsLNIsB/OjIVp3MKUDcx8ckoZTfSmaCGW4\nx2PiTc5vvU7mfdj5+Co2s2I9Y28GyNx3tEAPlLbazYrwkZZBNOmvtj12tJQC\n3gKmGwQenHdqK2pZiE13GxjlGWeLZIq6qo3cS4h0E6dz86lv/RRBvGMeezdO\nenLPd9dpfeFHwn68GyfNS9RCD3eugSagkt5ZbkvBz0yjXZDweuXCScXpsLyQ\nkkH58/s09v0P5h0KZ+25OKsoPQuVNETbxijQgf/YrtSELobAesC4qYiFwqP0\nDowztn1dFcbulfzvywjC+4daTmocE1a+3cbwqd0JtiqzQ0Gjqu1fDam2ZYzC\nruu5XdHYEixd7ATPl5SwcCXkgXkX4jjyJML/C2NLBPimk7h/cGHxuEqSUWEx\nS/0UDGy8f51lCMO2vNfsYkSAiu229BPQkUyEgHXNesxxuFFuJ1M2Z0k7SsWJ\nf7l2xofTxpKOoU7N/l1t4OF8cWH4tE1vLNYsVLO7hgFEL7dIYI+cWVMSvuT7\n5bMLS91t7s+hG2FxVLANyMemYRgbLCWY2RuPIczz813fwUlpsW8penCNOlZi\nbrNj9Thf/rTlYpSTGK+jFV7JQ26QtjPiQKblCK7L7TodXcPIaRC65/6+Shpc\nYc0A\r\n=USck\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsa+F3nEkEAwAhgAfLdCPzJW8FGTV8k4yNBlkVCsAjYQIhAIZZE0Du8tm1j3Mj/uDLejxKV5j0RMvIv0L71zQEBGoL"}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.1.0_1550158747287_0.43420833990806207"},"_hasShrinkwrap":false},"1.2.0-rc.0":{"name":"react-firebase-hooks","version":"1.2.0-rc.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks will be added to React Native in [v0.59.0](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214) - as soon as it's released, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\n#### `useCollection(query)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadURL } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.0-rc.0","dist":{"shasum":"9633d4753492a23f8d5a28b64d9e6b7ff002c460","integrity":"sha512-d1zjuuhJm6bLvS/fUA7SaJH9tbGciiI1IEyIR7V9Ka9QOlluNKT5DtrqavJNsZNmDomvkFLmYyEubSpieY+3NA==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.0-rc.0.tgz","fileCount":58,"unpackedSize":149144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsKiwCRA9TVsSAnZWagAAlz0QAIA1Kg/HZiuv0JxQLOww\n+bXg5toJOBj64yX6dr9/IjkWFihQ64OVbwMV2pnPBUM9nW/XRRLGydpqFudQ\nc3ew5dTzYdZ0TzVnABU7siEiYRAJ1xET4E97v6Rpt8BFRPQgUEaVxMZCVdvt\n4hXVhkyh5Y97ZrKAGHoJEVuuZEPDDPKWJVrJteDhx7W/dMBRKcwGHvz8uvgz\nRXgnfQEByk2nUfALFA2iqZGcdMgD+AFCjiJTd5R7A7v1GQibF0vOmc+eyfTg\ngNw12N2IOnQAONCWAf2/7NMwsVw+5EJd5dho5MowH6TLaJhBJwY9Te72PeNc\ng8X0ncmffD8RLsa234uctossAjvRSe3YwI2Dsk2z3O+G1h9fq6jn/4JARjYC\nVjF1vusX+MgoY6GbTUzrQ3NKUM/u8MP/q9xRzs56JjncaQLPlL3w6wbjUT7w\nErpdcfu54mgSbr2qmgRcXCFjbEbH3p/THiWV/wW3qcYR6ezW5eh0SIHf+3g+\nJXF9Uh1mE+MAr2YW21Cq2aTgetTnfztzXtrSSqqtzVKkGsTr+t4VIkJxwo14\nNDAH21YxM8/XQ8R76hw1bYFSZnTuhEwi2+PAeCg5095om9UU8fwdIWh19Jgu\nHNHA8izhx8rry0gUAuy/lRbSXQpEgXLNNKMFX77nGyzkoyNhU8pBFtRKgTZb\nqs4s\r\n=FUcz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBT4GTDLpxB7bKudpPwFWyP24FE+MfkGh9+WBH9zy9PAIgGNmQAZIs3yNCG+JEIz+p4729ymezS0F1V3qSIdSdPOI="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.0-rc.0_1555081392291_0.26799990178483224"},"_hasShrinkwrap":false},"1.2.0-rc.2":{"name":"react-firebase-hooks","version":"1.2.0-rc.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks will be added to React Native in [v0.59.0](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214) - as soon as it's released, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\n#### `useCollection(query)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadURL } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.0-rc.2","dist":{"shasum":"cc3d27fcb214d8380a5296bc7fcedbbd65c3e64c","integrity":"sha512-Z0ReaGZqBRiZGXN1l3lNsf1zAeHp+kWAZ+xQxKEUNnOSkvwtQXsIdpFMtVgMzwK7AVOn1mXI/DLmlAxttu14oA==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.0-rc.2.tgz","fileCount":58,"unpackedSize":151801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsv9kCRA9TVsSAnZWagAAl2EP/RY5BYnYWOtkN/wUOLhD\nij+Vyu+Cmcy4aKJ3eabZpTXovRJf32S6BegGPywhevy7/2yS0wmF1GJLNcwU\nR8tBAxEWSO9K+BAesyXG1/m68fC+E4U7qff9DVPiLAaUFFeMUMaNOQnyLiUj\n2sC7N2Qg/3hkNe4a/Di6WMJvzbcOcJJ5SBDprSR55XdGxwL/6Vb1yjGLdyRu\nFGJQBj7RtePX5zXzeiq9BCp+LhRxq/Iw7LqRTBaOYvomyNgEkhStOxZn3wsM\nHT8fGDjQZSzLUZ7EsalegEcAT1mecYpZppABok0PNRADmX1Uq5J+Oai1Scbv\ned1rQJRzSIMAcyuqvD7Kp76ltK1vvcF3YFiU4Qug7zeI+VUJkOW8fEGkn8rB\n1YsZLKEgvulz7IA8lPtcT3iqnWpdnQPh545QNH4qTja79GzMtaAlN0A3b9uE\nFTcLakcapohsnaAmGj3jrhnW+mgi5nVMobnfzsNOooNPjBfMJy/5tKu/UNJZ\nVm2W0DwN9tXwIkkHU5gOIPF5QmKiiG715QaQRvzyNM5kAZr1lA9xTYWimyyE\n90SEtHvqQADpQRlkgwiWXg+AcVUf6A/UH2L0ILA6D9/WUPo8l6pKEWGtbcOt\nRqGnkr/GyQaC7kgi80G6wmELA1ljA9SJP1krZqk+cW0vc52c42h5nDGvC1w6\nIvZJ\r\n=rtp0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/MRSdn99XXNFGx0Rb631qc5ZqRawnoX6yTVbHPNjIggIgRhqFUUKJ1V9NfxzZ3AcjNDuE4hCyq/L4dH4se+5In+w="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.0-rc.2_1555234659845_0.13657670033996738"},"_hasShrinkwrap":false},"1.2.0-rc.3":{"name":"react-firebase-hooks","version":"1.2.0-rc.3","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks will be added to React Native in [v0.59.0](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214) - as soon as it's released, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\n#### `useCollection(query)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadURL } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.0-rc.3","dist":{"shasum":"9f1430f543b3aafac75c10c077a726d7b47c0b92","integrity":"sha512-RnbYT9rMCQ0Xdm0mjISUcpM5SGI9c/CktiGBLy4JPinATyE0ajZOLRt+LwJ9Q/6keDg5/nozZHNcx9f0fJ9W7A==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.0-rc.3.tgz","fileCount":58,"unpackedSize":151801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsv/pCRA9TVsSAnZWagAAnnEP/1bHeKCFBzshfbcp2RuH\n8423Emg9d4cb6odVqGLKCsGXqBhApnULBDniKiVNl43BK8g6PDy3Bqjn3G8v\naE7jgh829mY+WJdSoef2WCrc18SdiwOTmFhCTMcW4z5ZYr0jhQ0WRVsIghSv\n9MCwQ8rH/hZ9hVZ259HiFexR5bC6QVL8lnFIjsScFD/H6i2ewNJHoN5E0QcS\n/l6TyBypu8Dc8C8ehe0ic8jI8ZPQC0PWEiyYX9YGP7Y3Gq/aCOpK/wWJ+AmW\nc/YVyDCdlnGnxb/eM85jVDPmIx9FgfwiPGf8nYLtqPzgrH+pnq14gG+zxaV1\naqb5aOMuPc0ESXcEG/5Y2pDws59lSW8sEprrvSekaKIrfbtDnzxMoqWzjp+v\nLW4WB/EUmnNNdZMnOEbn906jM82E50F3icyyn98aXwgvLCbgKvbDUSMsmiDb\nZPVYR/2ve0Oz/j9yF7f4MRTB7eDcF6cvRD4s4avXoV1i/DsWxuDDTu/bPS8x\nAlCYgEkMb+9NCUbyPBm06VGYRIaugDA7zzs7DOkb8wrvTSo3DT/OcOwLp2XL\nFKVMz/8UZJbouxuwLGY0orzKJFGb1t6ZaqZqtPruuTcGJOF/+eJKub7RxQny\n4VW41uJY9kPSSOm9EFtVnZ+joaTQwFJ+89LbIGsH6RhfMKSh/9GLpnEE33JM\nCUYe\r\n=bzX1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1CmNkyie468KOGvV4q8k1VRzTzMXZb725cQeu5scFPQIhALxvdgobcBVdp7R29R7+4ayDCd+RoF2YvStgHLYQVUzO"}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.0-rc.3_1555234792944_0.6516188537376726"},"_hasShrinkwrap":false},"1.2.0-rc.4":{"name":"react-firebase-hooks","version":"1.2.0-rc.4","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks will be added to React Native in [v0.59.0](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214) - as soon as it's released, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\n#### `useCollection(query)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useCollectionData<T>(ref, idField)`\n\nAs above, but this hook returns a typed list of the `QuerySnapshot.docs` values,\nrather than the the `QuerySnapshot` itself.\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `idField`: (Optional) Name of field that should be populated with the `QuerySnapshot.id` property\n\nReturns:\n`CollectionDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.firestore.DocumentSnapshot.data()` values, combined with the optional id field\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocumentData<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DocumentSnapshot.val()` rather than the\n`DocumentSnapshot` itself.\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `idField`: (Optional) Name of field that should be populated with the `DocumentSnapshot.id` property\n\nReturns:\n`DocumentDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.firestore.DocumentSnapshot.data()`, combined with the optional id field\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadURL } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`, combined with the optional key field\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.0-rc.4","dist":{"shasum":"beb69e930422c432419bc29fa9c25c84ff3662ce","integrity":"sha512-AmNLJykT5GTUFlKbFbXEdBFXJ5I4BlGijA9TRH3+cCXDIPzmcorH8sIg3EPWNiuAMGpdoDCiFoqyRL9w1fRuMg==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.0-rc.4.tgz","fileCount":64,"unpackedSize":158662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuCSUCRA9TVsSAnZWagAAaFwP/2DVRgfaqF9U6pTQHEBN\ng1Nto2Rbp8otx9ePLctscFSgGy0W8Whq37rgQIAwmq3+PbS1dU4ulZPQzcdV\n1GSK3+gilnWD3sTv7z6xBupkCqcSLDVyjCD7D2TJd7Nu5cGBpoiQgQQcCg4R\nI5V+wiyRrUDA5aw34gaPAXDQIY6i5lreE88XE8c+V6OuLujYSbjXy2lpcalo\nw/sNp7PN9h1iRzFrgtRqvWA7bWeYigvx1a9bhQ1fahQfCz1yjlmfAUFjgFJC\n15F3JBN07UBtqDnWjCxpEHrSR8U7R7nUx26OZqcyULRu+0kx2tJG8X8WpNl0\nkJ2ltMDRWKO7lqS2OVI6afAyqXjr8lxznn6SF2puNcKH3D9emJBKRJn/LAkl\n9NOFC3/KkyTYjZu3sefHqblk251Hjx3X9vMYmH1p7fGyJpJQLwJCy6tn25fm\nVNgu30qkt7yCyqddM/0ArVl7XRH30RCgO/78RB3H/bHzmUWTz4YNAlx5Y6oZ\nRTbfJ6hTDUiRnD6Ia0t+ECdd6flJTZCp7ka7ZY0kyRETV9K11OcxA7T7PtLp\nC+Fpv14UNNhXwGSeGtVOEoW9T/8A+DAp+iqM4S6y52DgUykZcpTlUWPTrzfI\n0MSnYKvsjS9PtGRDQnlSy3GadAbiiaHcZmGWSFANVoIyVpZEdYR0ks2QLKNt\njvgx\r\n=X6h0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsxmXxgMpz8tAejFSJP8HTBYiCmjbGZgFaTfotbD/BFwIhAJpSO2P0e+ICwIjYFtUKWhU/awHzHAsossF95ll+YJQU"}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.0-rc.4_1555571859497_0.7637795574232231"},"_hasShrinkwrap":false},"1.2.0-rc.5":{"name":"react-firebase-hooks","version":"1.2.0-rc.5","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks will be added to React Native in [v0.59.0](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214) - as soon as it's released, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\n#### `useCollection(query)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useCollectionData<T>(ref, idField)`\n\nAs above, but this hook returns a typed list of the `QuerySnapshot.docs` values,\nrather than the the `QuerySnapshot` itself.\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `idField`: (Optional) Name of field that should be populated with the `QuerySnapshot.id` property\n\nReturns:\n`CollectionDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.firestore.DocumentSnapshot.data()` values, combined with the optional id field\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocumentData<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DocumentSnapshot.val()` rather than the\n`DocumentSnapshot` itself.\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `idField`: (Optional) Name of field that should be populated with the `DocumentSnapshot.id` property\n\nReturns:\n`DocumentDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.firestore.DocumentSnapshot.data()`, combined with the optional id field\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadURL } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`, combined with the optional key field\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.0-rc.5","dist":{"shasum":"649ceeca8680a78a0f71379f0daaca1808c3347c","integrity":"sha512-odmkha3hjzuGJc7SKdPsskFS5OgiGMvbKUE2dSWR+OF3BEU5sxTDfKR0w6soyCVCdCVnjVEBeFwDTrMB4UbvVA==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.0-rc.5.tgz","fileCount":64,"unpackedSize":160267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuCptCRA9TVsSAnZWagAAVQgP/iYUGrZV9fPUH2ZEwNhe\niKh82aWfmF3g3Gu+XsmQ4MFr6HIM8JdTvJGt6CznBK0JyBXTJVU945YkW0ux\npWnQ9+wl+39++Uzgp7/TIqv6CXyXR0rZ1rho2Qmv+HxOcrwiqrAGD2gL6kAn\n2t37O8PqZkf26Qz1F3WUNpFPedeuHk+hd8WKHfbobUBJaZTd0PkX8P8zZPNi\nNeQj05DyLqchGgl2Fo0hLTPvzDP8P/Wzf0J7CnCeDCcwFVtuGwmAiEdYouIV\n37/ecfba3csvhirxAiAf3++QfnEYL72gjXcHMVmPFw9sAfKxISpBHHPUoKot\nvS0GjYCQlVBuO8nZhPope4tJtpa2DZuWgaMt/fL7c1vWQM6cMAuCX/Q9z8Bp\nZbtd7pq9H1OyHVXiy0DELWY2Hl0fFbTSis7OmGAJQduSe5uxWPRe1j0uhMNl\nP3TweERKH1EsLEGYBQi4rsBm5XVn5h+SHOft3Qr66hFale6GekzozGPfHQYk\n4FbBegKwXg8u6k1j1/3/UAvcLRRSt7HKUfEUxabkN1e0xTjGmMBtoZMaU3p6\nQp+FPZ5FfAg6F0zF502uka2W3iEFpQ7HmPycOcfxXY9q7PQOwEpnKrdZxxm2\n1Ji2t5ZV4/NSwEmszsB/QQGMqfraCgJFFxx+Wfk/9iNkbu1eDz/NZawwemRW\nkReU\r\n=qm7i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGSIMHBUR7qqjZ8FkvQnAOgl1xQW7lUoHTlsJOjMYyIAiEAso2XtjJz0R2QCPb4VOjMoA1OAhH0vKAC67f6Af5pbo8="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.0-rc.5_1555573356346_0.2537235040890644"},"_hasShrinkwrap":false},"1.2.0-rc.6":{"name":"react-firebase-hooks","version":"1.2.0-rc.6","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks will be added to React Native in [v0.59.0](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214) - as soon as it's released, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\nThere are 2 variants of each hook:\n\n- `useX` which subscribes to the underlying Collection or Document and listens for changes\n- `useXOnce` which reads the current value of the Collection or Document\n\n#### `useCollection(query, options)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: `firebase.firestore.SnapshotListenOptions`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useCollectionOnce(query, options)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: `firebase.firestore.GetOptions`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nImport:\n\n```js\nimport { useCollectionOnce } from 'react-firebase-hooks/firestore';\n```\n\n#### `useCollectionData<T>(ref, idField)`\n\nAs `useCollection`, but this hook returns a typed list of the\n`QuerySnapshot.docs` values, rather than the the `QuerySnapshot` itself.\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n- `idField`: (Optional) Name of field that should be populated with the `QuerySnapshot.id` property\n\nReturns:\n`CollectionDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.firestore.DocumentSnapshot.data()` values, combined with the optional id field\n\nImport:\n\n```js\nimport { useCollectionData } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.SnapshotListenOptions`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocumentOnce(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nImport:\n\n```js\nimport { useDocumentOnce } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocumentData<T>(ref)`\n\nAs `useDocument`, but this hook returns the typed contents of\n`DocumentSnapshot.val()` rather than the `DocumentSnapshot` itself.\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.SnapshotListenOptions`\n- `idField`: (Optional) Name of field that should be populated with the `DocumentSnapshot.id` property\n\nReturns:\n`DocumentDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.firestore.DocumentSnapshot.data()`, combined with the optional id field\n\nImport:\n\n```js\nimport { useDocumentData } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocumentDataOnce<T>(ref)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n- `idField`: (Optional) Name of field that should be populated with the `DocumentSnapshot.id` property\n\nReturns:\n`DocumentDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.firestore.DocumentSnapshot.data()`, combined with the optional id field\n\nImport:\n\n```js\nimport { useDocumentDataOnce } from 'react-firebase-hooks/firestore';\n```\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadURL } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`, combined with the optional key field\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.0-rc.6","dist":{"shasum":"bc00e31862488fca95e1236edcd0ee3f62078698","integrity":"sha512-T7ulIlhLV8T/15ePraMFWG7FSjARmiVZDLvmUiNUcPYucOocA9dsNYBMk+2dKsNwkp1NlreEigRPuoOb417MTg==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.0-rc.6.tgz","fileCount":68,"unpackedSize":165082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuDXwCRA9TVsSAnZWagAAWlYP/0uz9o9DNS/ocPEdNDzf\nXQoRUoQQFLuifMLPxnbzZnPdMjzZLuCrgD0F9TrplANL2CPB1IRM5bQ/yAor\nFUwRtVU49EPTPqZ6yKgomoW6oalILzQx2KyPF6LRVKzfcfhBN++fyXW9AKvS\nHji5ud+dCK/AUnpvarS0/9hNHT/OeCu5tYBW61RvE5gBXesmlL0Ovc4loh5J\nvvk/c9okXGbXqHhyka8a7ag8JXgVMlA9sGqiklRrHdasjRXRZ7U0jTDMUu7F\nE9CgNKPnNsTiCygG8gx/iH/0EVkgCco9Nt5FjSUzeVCOS6kOMSTjPAePxOut\n/1myzyizPwN1RuIyp72PgFvubbAiDCcjDfhnXeqD2nUYJIH7TIt1Jg4VsfzB\nmEnAq2J6DgB2mdKVGhwbrHs3Il5WPFIDmMq+ZodOyJ/PR87VHqIhHDtVtluR\nOYjGffKD4iL0iWl2rdS3H331YGGWCyr2LnFCMoYET3SFWSeYovUJFNQHm7DW\notMBmyASWKzuQzoryspHi1HbrX2RP4yD0Rm3hAIYCrft/CG2DpX3w2se88Cg\n8FMIMZ9FCIh6VxmPRc8rY1gcc+8PnJGAR9jKuxw/z6l1Qjz8k/f1LMJ92aS7\nBP5J3XH0zqDD9QYXaDPrC08S2wJtMma6hzcYbipj3w2055V/9/op76Obaq+Y\nU+uv\r\n=OZmx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGNwBwYFlI/uJT4sAgLLtsFRJ9A8II6WNnJcywzH2l6wIgAYOJgCoeUTd4P/TXWXZMiGoEk6Rx3uZy/s4BzWAoEG8="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.0-rc.6_1555576304203_0.004886514672013398"},"_hasShrinkwrap":false},"1.2.0-rc.7":{"name":"react-firebase-hooks","version":"1.2.0-rc.7","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks will be added to React Native in [v0.59.0](https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-457735214) - as soon as it's released, we'll make sure that React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\nThere are 2 variants of each hook:\n\n- `useX` which subscribes to the underlying Collection or Document and listens for changes\n- `useXOnce` which reads the current value of the Collection or Document\n\n#### `useCollection(query, options)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: `firebase.firestore.SnapshotListenOptions`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useCollectionOnce(query, options)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: `firebase.firestore.GetOptions`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nImport:\n\n```js\nimport { useCollectionOnce } from 'react-firebase-hooks/firestore';\n```\n\n#### `useCollectionData<T>(ref, idField)`\n\nAs `useCollection`, but this hook returns a typed list of the\n`QuerySnapshot.docs` values, rather than the the `QuerySnapshot` itself.\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n- `idField`: (Optional) Name of field that should be populated with the `QuerySnapshot.id` property\n\nReturns:\n`CollectionDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.firestore.DocumentSnapshot.data()` values, combined with the optional id field\n\nImport:\n\n```js\nimport { useCollectionData } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.SnapshotListenOptions`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocumentOnce(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nImport:\n\n```js\nimport { useDocumentOnce } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocumentData<T>(ref)`\n\nAs `useDocument`, but this hook returns the typed contents of\n`DocumentSnapshot.val()` rather than the `DocumentSnapshot` itself.\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.SnapshotListenOptions`\n- `idField`: (Optional) Name of field that should be populated with the `DocumentSnapshot.id` property\n\nReturns:\n`DocumentDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.firestore.DocumentSnapshot.data()`, combined with the optional id field\n\nImport:\n\n```js\nimport { useDocumentData } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocumentDataOnce<T>(ref)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n- `idField`: (Optional) Name of field that should be populated with the `DocumentSnapshot.id` property\n\nReturns:\n`DocumentDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.firestore.DocumentSnapshot.data()`, combined with the optional id field\n\nImport:\n\n```js\nimport { useDocumentDataOnce } from 'react-firebase-hooks/firestore';\n```\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadURL } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`, combined with the optional key field\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.0-rc.7","dist":{"shasum":"6f469ccb2b4f702084d68b7490049dd601c1904c","integrity":"sha512-udU9Fx88CffUS+eO9/Cb1/IiaS1/3/PV+47f49WE5JALPVzym6fHBrQDl+6NwNDZgJrlNH7G2/m7LFDGy9E2SQ==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.0-rc.7.tgz","fileCount":68,"unpackedSize":173719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuDbcCRA9TVsSAnZWagAAcQUP/AnnZPl7Or6aK5VK7FbK\nZcdCbekj42asXKmk6ORN9yS5mTBO1tHFgVermxn3OM0KZA0jiCPQ08otgrqV\nL+vgvQX7PqhE4GguNfcxkjWQSKaiYQ+LoNbizLk6wxclsDgkd5DfwTCztocP\noWCxGMOfu7ndLDXtrgarH1zM6wQ28U5I35PIu/5MmnNUZP1ZattfjsvdWn8q\n0uVMRORHNOKP/s1wgU1TBnJS0k/aLvX8yofFAuxNlW8CAui85O6nQiYf+pYf\nCeDWijPa11XnR8mc8bfvhnrTTVGBY1zdkPLNnZbYI7Aub0/D8DHpB25zhQaB\n1dJhyFhfYzVXjsk+s9JI2OS2OUHjzxC5QBYkDYUhebG/+lTw0yzeRDy9+OjI\nDsX/rZaOeGHuNl5pT2LFlyepLfzCNc0jgRFoK0bZB7IIUuoNm5iV7tsgX24y\nTb2jUCBC+F+S8uvspwst8utm/SKnV98EJuDICtGrTNkBRyJe8Z3/jkGZKWYd\nL9PaQfr/bAu9fUnd3K5STltZ+Gs9R3HeVWyUOhqrOXiZ8Rlsv7jcnkt0gHps\nOncxsc8jJKPvj0RC80SYasKCWuguhotZB8zl5QojW6tmjtvU44yvLZwK1pyE\nvNSVZu7LklEZzRNfyrmXaPBaoObci11UAVApaVAzkJXoOWEw/rj/2cbl0kjY\nf4/C\r\n=qq0R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKi0X2tANcmoJlS0jtpaQKDq3Wji2upe5jcArD+SKIfAiAruz6RAyH6A81lGMb0amH/oCPAzrBpoeovQnXaiVbrWQ=="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.0-rc.7_1555576540050_0.5101489271766644"},"_hasShrinkwrap":false},"1.2.0":{"name":"react-firebase-hooks","version":"1.2.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.0","dist":{"shasum":"54b29aef0e8bd4f4d175259eef015ec2092a57b7","integrity":"sha512-ByIR7qqdRGc+duxFyyIc2/zsvg+orc3U+vi6FchSXdfXvTXbOMgz6YGKirlYtekgRvKdxlv/1WejP1OvgI7dcA==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.0.tgz","fileCount":68,"unpackedSize":173696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuDj0CRA9TVsSAnZWagAASp0P/1/USRQf4wweX5zQFxcG\nK0iBSDXzDCsmtWXhM5k1c2vGHhYKv2q8A7/hqMC2/DxAG+vO+vDdSEKv4MrD\nX6lTcHSqUTV6m1Du8HJuxTRm+X0UfeRKrr+3Vypg1SJBRLtYa4Q6c3eyybvY\nOhG6MhFgXegbAK1K7spFsXvysmZfPR89RpJ04fWLxuII5t5Q0qk4QGaU2cwk\nmnXhLQUPJF1el1nyheyR4Lk1s82yxCXgimYNXQ/wh+7s3Zm1zedClNKDxLjN\ntrszkR5fe4hGsNEy4epjjvxIdAT18W6UrHOuNglphi2ebGDen2JlwgrNSaF+\nC0Xk6VP0TwZO8/m3uQUX+VK/pgvfXO8aLlF3ROConZgjrJ3ivs6UujOCzbKr\nRexJZMuT/BAG1xjhWWsaedvBc7rTg+BxQuAQORh2VzN39sbHuZ9PgM9voDdg\nj7ridChUE9kCFYgt6ds5LU1oym0ENCprOIhgCHk1k0rCAXMCxsQIev8fo1fy\nP4S8KIR6BDY/6qxMBnbfXMZpbl9PQdCGHsLDsP4q0A5xtOsj+pdc5ZSWQh6B\nrV3gJo0Vo1wzzUzg+DUVBYcdD2K2pz8xIfoa2YYmFbD2CixIcN6YfMAkzuS1\n25R0g+0tZ2sPuGx5Hk+9LAZmvtZiZ5XBJKmI5ZkaxFOtC7IxfX/cagYoEriC\nZ9Jv\r\n=rFkA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9QE4BP1jasiQciquNWoapbtggOJn3bIK9PW4lMNvv9gIgS5rFkCytTqZjj8aboLNbn9CD6WJANq3fTuaNOXOVDDw="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.0_1555577075352_0.4247880454620785"},"_hasShrinkwrap":false},"1.2.1-rc.0":{"name":"react-firebase-hooks","version":"1.2.1-rc.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native users.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](#Auth)\n- [Cloud Firestore Hooks](#cloud-firestore)\n- [Cloud Storage Hooks](#cloud-storage)\n- [Realtime Database Hooks](#realtime-database)\n\n### Auth\n\nReact Firebase Hooks provides a convenience listener for Firebase Auth's auth state. The hook wraps around the `firebase.auth().onAuthStateChange()` method to ensure that it is always up to date.\n\n#### `useAuthState(auth)`\n\nParameters:\n\n- `auth`: `firebase.auth.Auth`\n\nReturns:\n`AuthStateHook` containing:\n\n- `initialising`: If the listener is still waiting for the user to be loaded\n- `user`: The `firebase.User`, or `null`, if no user is logged in\n\nExample:\n\n```js\nimport { useAuthState } from 'react-firebase-hooks/auth';\n\nconst CurrentUser = () => {\n  const { initialising, user } = useAuthState(firebase.auth());\n  const login = () => {\n    firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');\n  };\n  const logout = () => {\n    firebase.auth().signOut();\n  };\n\n  if (initialising) {\n    return (\n      <div>\n        <p>Initialising User...</p>\n      </div>\n    );\n  }\n  if (user) {\n    return (\n      <div>\n        <p>Current User: {user.email}</p>\n        <button onClick={logout}>Log out</button>\n      </div>\n    );\n  }\n  return <button onClick={login}>Log in</button>;\n};\n```\n\n### Cloud Firestore\n\nReact Firebase Hooks provides convenience listeners for Collections and Documents stored with\nCloud Firestore. The hooks wrap around the `firebase.firestore.collection().onSnapshot()`\nand `firebase.firestore().doc().onSnapshot()` methods.\n\nIn addition to returning the snapshot value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to Cloud Firestore.\n\nThere are 2 variants of each hook:\n\n- `useX` which subscribes to the underlying Collection or Document and listens for changes\n- `useXOnce` which reads the current value of the Collection or Document\n\n#### `useCollection(query, options)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: `firebase.firestore.SnapshotListenOptions`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nExample:\n\n```js\nimport { useCollection } from 'react-firebase-hooks/firestore';\n\nconst FirestoreCollection = () => {\n  const { error, loading, value } = useCollection(\n    firebase.firestore().collection('hooks')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Collection: Loading...</span>}\n        {value && (\n          <span>\n            Collection:{' '}\n            {value.docs.map(doc => (\n              <React.Fragment key={doc.id}>\n                {JSON.stringify(doc.data())},{' '}\n              </React.Fragment>\n            ))}\n          </span>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useCollectionOnce(query, options)`\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: `firebase.firestore.GetOptions`\n\nReturns:\n`CollectionHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.QuerySnapshot`\n\nImport:\n\n```js\nimport { useCollectionOnce } from 'react-firebase-hooks/firestore';\n```\n\n#### `useCollectionData<T>(ref, idField)`\n\nAs `useCollection`, but this hook returns a typed list of the\n`QuerySnapshot.docs` values, rather than the the `QuerySnapshot` itself.\n\nParameters:\n\n- `query`: `firebase.firestore.Query`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n- `idField`: (Optional) Name of field that should be populated with the `QuerySnapshot.id` property\n\nReturns:\n`CollectionDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.firestore.DocumentSnapshot.data()` values, combined with the optional id field\n\nImport:\n\n```js\nimport { useCollectionData } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocument(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.SnapshotListenOptions`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nExample:\n\n```js\nimport { useDocument } from 'react-firebase-hooks/firestore';\n\nconst FirestoreDocument = () => {\n  const { error, loading, value } = useDocument(\n    firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt')\n  );\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Document: Loading...</span>}\n        {value && <span>Document: {JSON.stringify(value.data())}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useDocumentOnce(docRef)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n\nReturns:\n`DocumentHook` containing\n\n- `error`: An optional `firebase.FirebaseError` returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.firestore.DocumentSnapshot`\n\nImport:\n\n```js\nimport { useDocumentOnce } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocumentData<T>(ref)`\n\nAs `useDocument`, but this hook returns the typed contents of\n`DocumentSnapshot.val()` rather than the `DocumentSnapshot` itself.\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.SnapshotListenOptions`\n- `idField`: (Optional) Name of field that should be populated with the `DocumentSnapshot.id` property\n\nReturns:\n`DocumentDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.firestore.DocumentSnapshot.data()`, combined with the optional id field\n\nImport:\n\n```js\nimport { useDocumentData } from 'react-firebase-hooks/firestore';\n```\n\n#### `useDocumentDataOnce<T>(ref)`\n\nParameters:\n\n- `docRef`: `firebase.firestore.DocumentReference`\n- `options`: (Optional) `firebase.firestore.GetOptions`\n- `idField`: (Optional) Name of field that should be populated with the `DocumentSnapshot.id` property\n\nReturns:\n`DocumentDataHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.firestore.DocumentSnapshot.data()`, combined with the optional id field\n\nImport:\n\n```js\nimport { useDocumentDataOnce } from 'react-firebase-hooks/firestore';\n```\n\n### Cloud Storage\n\nReact Firebase Hooks provides convenience listeners for files stored within\nFirebase Cloud Storage. The hooks wrap around the `firebase.storage().ref().getDownloadURL()` method.\n\nIn addition to returning the download URL, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading from Cloud Storage.\n\n#### `useDownloadURL(ref)`\n\nParameters:\n\n- `ref`: `firebase.storage.Reference`\n\nReturns:\n`DownloadURLHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the download URL is still being loaded\n- `value`: The download URL\n\nExample:\n\n```js\nimport { useDownloadURL } from 'react-firebase-hooks/storage';\n\nconst DownloadURL = () => {\n  const { error, loading, value } = useDownloadURL(\n    firebase.storage().ref('path/to/file')\n  );\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Download URL: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>Download URL: {value}</span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n### Realtime Database\n\nReact Firebase Hooks provides convenience listeners for lists and values stored within the\nFirebase Realtime Database. The hooks wrap around the `firebase.database().ref().on()` method.\n\nIn addition to returning the list or value, the hooks provide an `error` and `loading` property\nto give a complete lifecycle for loading and listening to the Realtime Database.\n\n#### `useList(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useList } from 'react-firebase-hooks/database';\n\nconst DatabaseList = () => {\n  const { error, loading, value } = useList(firebase.database().ref('list'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>List: Loading...</span>}\n        {!loading && value && (\n          <React.Fragment>\n            <span>\n              List:{' '}\n              {value.map(v => (\n                <React.Fragment key={v.key}>{v.val()}, </React.Fragment>\n              ))}\n            </span>\n          </React.Fragment>\n        )}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useListKeys<T>(ref)`\n\nAs above, but this hook returns a list of the `DataSnapshot.key` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ListKeysHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.key` values\n\n#### `useListVals<T>(ref, keyField)`\n\nSimilar to `useList`, but this hook returns a typed list of the `DataSnapshot.val()` values, rather than the the\n`DataSnapshot`s themselves.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ListValsHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A list of `firebase.database.DataSnapshot.val()` values, combined with the optional key field\n\n#### `useObject(ref)`\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n\nReturns:\n`ObjectHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: A `firebase.database.DataSnapshot`\n\nExample:\n\n```js\nimport { useObject } from 'react-firebase-hooks/database';\n\nconst DatabaseValue = () => {\n  const { error, loading, value } = useObject(firebase.database().ref('value'));\n\n  return (\n    <div>\n      <p>\n        {error && <strong>Error: {error}</strong>}\n        {loading && <span>Value: Loading...</span>}\n        {value && <span>Value: {value.val()}</span>}\n      </p>\n    </div>\n  );\n};\n```\n\n#### `useObjectVal<T>(ref)`\n\nAs above, but this hook returns the typed contents of `DataSnapshot.val()` rather than the\n`DataSnapshot` itself.\n\nParameters:\n\n- `ref`: `firebase.database.Reference`\n- `keyField`: (Optional) Name of field that should be populated with the `DataSnapshot.key` property\n\nReturns:\n`ObjectValHook` containing\n\n- `error`: An optional error object returned by Firebase\n- `loading`: A `boolean` to indicate if the listener is still being loaded\n- `value`: The contents of `firebase.database.DataSnapshot.val()`, combined with the optional key field\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.1-rc.0","dist":{"shasum":"b678864f6a03e27f214475f1c3a9cb6c38f7929f","integrity":"sha512-taEEFL4REf0QOfWjeBUEnsPY5xLmsYepLPYjL+IwxloEy5ZJQip4WtekmlYc+7YMQZpkkgnfdtvAti8I8bNwsQ==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.1-rc.0.tgz","fileCount":68,"unpackedSize":177467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0ZtsCRA9TVsSAnZWagAA/YEQAKJaCW8zy7m2zX+aXjdG\ngRje2tLXQLiPoxC8OlObrtGBEhBzraJoGtdDyWq2sSn11Ffn2jeQGQ/1FRaO\nyDYHYpq7WSIth6iT96lxTvJDSTwTDHik8goM+KDgY1KAsc8fRgQ95T3ChQTN\ns5n0uU0FQBREOUgLopgRYNDSpRA9mI0Hyf6UjKPfFRZvl2CbX4HIZ0Zmn361\nPDVoGiHe+1cwqFJaRxZCAqZOvMb5LcNL9G7WT11lI3Ls0Fw30k8MznPSP6BJ\nI3uc5xRtPS0vcqr1o/dMjCFCi3soRJKm7SJ7rWwi6LTlwg2T5giEoySwxnUK\nYvLuBIPYiJZivfpSywX/aNhYLusPB8e3C2gRlLXZpfbTBWalboBxSpHs0B85\nI2tMkrBY84ZZG0FjWvNWnNpfm39hDI4wRtvtfQPDuMnxTbXT2Ii8orEDKufO\nJ4tYt4LAWXhaubvA5htXRH78bNyqjG7KOFYH8pCHStN2FgJAlsUkBjoYq+jS\nb+sLZDyjpOUuZziyiQGKlewIqJ9jUp/ijIKoViuNs6MtajLryAiTPb+Inrk1\ne+1UpiHzU5/1PzU2DQzUsG08MwsSPDG43ITU8uNi8sXqOdN3x/MdldJ1jz9D\n5REIewVasRh4OjEHx/RknRVzU9+aWEZ7g7iT2zaMsblV7pGFoxLnNVdHz/Pw\n6RmK\r\n=acgV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6jlakzH93edEw4R0J8NYyGrAwBsazS3zd5Dhi5ww4eAIgLt7mTDMhqYPDvnJcILftctO1liET+IIPVAj31tRKd5A="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.1-rc.0_1557240683309_0.08884632435271578"},"_hasShrinkwrap":false},"1.2.1":{"name":"react-firebase-hooks","version":"1.2.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@1.2.1","dist":{"shasum":"6ebde0ff677664d7770668796d360f6a2f4b0bcc","integrity":"sha512-eTPrukT0xWfuMpTYwbG/P/jTvTrkD8V7FYGtljVDSVLcihXP7Cs791zngPwbwFBXwPpa7pleGM1anAX5/GfnQw==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-1.2.1.tgz","fileCount":68,"unpackedSize":177462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0ZvFCRA9TVsSAnZWagAAIUIP/RQ1F7kit7BeIkZyIQZx\nGS843ELJxiQpaOmWq53SGuZdT7NhU9b5ADWVMdSGH2vu8yXkiLst9l5ZCHGQ\nJgEBVcL/GZuFL4lQazn4tzsKPYHj53/O1lwmouGIJrOEEqvxJddhNM/1pZOU\ndCahV0a3yeUL+H0Ug5SM9RkPlk+ZATZy8lfRmpt40aP0DfFqn+IzUl2hcdir\njNKX+e2R9cqykpVcJXZ0Gn9cudjOtDvVEh02JJl/PYTXEvwFn19nuhoi3i0L\n3fg/fW+NaMW1OjtmzTlpcDT9j3jGZGmPkUQFVSdVmqUj5gLAGhZHK2JfgKaP\nolm57ekMW7BtaYbPYigGVrzDC8cUT01lBMrgjOw9DVnws7wrKF2oLKlIqQRo\nZ3oxdOjV/8G1mG5/UWUItWh1OJdbY+7OWQhERtd21CBIcrilNNPso0DqltSG\n7EjrX/fl5UFr0R5KSAZOOFWF/CancYVQUSniIA7oqfUt79veUsSVL27d+eTn\nYlc59CdbSHwAUetle9VGkLdkd3WKnLMThURWZXsQno1dDpg2cHqEt1Icip+G\n9/pIjAaFx2oUcwF/pp293qAvhJVKZVFNctAflrm54y6FJnGArUQGMjDiYhtK\nF8rsqo2EABAJ1CLJCRndj5+PmGg4yqfK0E2SdGY9eio45uOfVa3AtCr46Mvy\n70DJ\r\n=1Y8I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5UXk+mvbpjxCtKw/fyVB05ifBdSbK0SW7qZZ+yL1hkAIhAOYj5oWz9JJCKyd+yZDs8kiOJhohG7h9snZVS5QOUXxD"}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_1.2.1_1557240773231_0.03484424406218878"},"_hasShrinkwrap":false},"2.0.0-rc.1":{"name":"react-firebase-hooks","version":"2.0.0-rc.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readmeFilename":"README.md","readme":"# React Firebase Hooks\n\nA set of reusable React Hooks for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> [Hooks](https://reactjs.org/docs/hooks-intro.html) are a new feature that lets you use state and other React features without writing a class and are available in React v16.8.0 or later.\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native users.\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@2.0.0-rc.1","dist":{"shasum":"5aff82d366cf01bdd33cd6d870da97e33648ac37","integrity":"sha512-4JIz0iuQStUNKEmjBKbgzQyMHHMMxxLJMTFBJNU/w6sUc2ljb19RzGTxMafXz8lzjfdwe6n0wnfnKn50AYeyxg==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-2.0.0-rc.1.tgz","fileCount":62,"unpackedSize":166907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3XWqCRA9TVsSAnZWagAAPBkP/jAMRo0VPlAuksvnaVYH\ngVV0k5LC9CWB6BWRisllZ2e+sMNKDWfF9oVZfiTrkKIqjT7nuy5Hs5iPS1fC\nS7BCjzW+gpitfI65hqHDbcY1LiT/Pjzcf3l2iiSjjNhX0OzYk55uZDUpo3rf\nLyvC1kjwR33u88v3TGpmWz4v+UsYrYA5ACj7kiICrFNW5nazXJkvhrLP7t4o\nNMf36DxeA559j7gf/qWNBWflGfc39CLE5hSOMofZw/+scQbxX+jy8XreiGeN\nhusQu4og+VeVzq61ptl+Ip4u+t24KYJAKdEZoRRgSdbP8fexGzPfGsi1k9DH\nsnM4Lh7pu8wyZfYncqLCEUpWkD3DvjTWWULESvCVM1DUk+vFWZzvtG8lfk0L\nsPvPgAaZkgpZ6x5wytCA05ayxr8LxUZ+PehnHksAkMCCYp5nJbX+CRoJVq3X\nBsMyidhM0I2Uc57lg6ybEeVJxMPxveLeXFGdy77kZKWA5S+waP3DlcKxHOvh\nAcoOnHojdj6EEJHPMi6Ba5Ctw8guPeb1d+K9xztYdGdac6PzqXR3p7WK729D\n+l5HWqo57ZoMvrLIB0uIwsdo5vU/AMM7LFwBQ+6g01YbeCChw6+OniU4Ax2j\n7/BJjwzbFnxvjx9kzGIRVckhnXyQSPTL+Ky9t6iqUtx+jqXcZxZexQ/PYjhV\nMYUV\r\n=OuVQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBV98FI7jGEFeX/MozTNEdH+nWnH9Yw1kgdcZceLBA9JAiEArXrnVVO+buO8QYoTjQnZdqgKYUpVTYXtxUyMzv1EfH8="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_2.0.0-rc.1_1558017450138_0.654344405886953"},"_hasShrinkwrap":false},"2.0.0":{"name":"react-firebase-hooks","version":"2.0.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2018 CS Frequency Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"react-firebase-hooks@2.0.0","dist":{"shasum":"0f754de23eaefba18af8bce8a171c45321ec8c59","integrity":"sha512-zeT1UC8loEfrzKo/AujfUEDAI+ooc8dz+PSrxkLWuGy1Kd6HkC3SzrRna35B8Y8akAMkvuN/GRr0Cm9CbPEGDw==","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-2.0.0.tgz","fileCount":62,"unpackedSize":167515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc465yCRA9TVsSAnZWagAAdrEQAKKlERvqUdNFYCtGf8uh\n9GJQT0iJMOMeeZdhlN0IVuFas2YXv7USpzAhxmTnTT0LAFshzoprJ/2zuH3H\n8LqLLPDh7iwnNXeWoXJDBgAm7lY4+4Pd2L4xUHRjGxXVfLJr2i3qGl3LNF0G\n7KRu1/E8EZfPo/1CN6bjmKmLWDa8HCbbnt+yq1QN7R6SN3D1RM2ctAXDNnYX\n1+0drAeFaaREAUjtwx0rkwFRLuwhtVQVEi/YZPJu62/n6cCPKHwnzWjOOm2b\n9tdVOF1AHNukHTYZdSABPmF7C2droLXY5DiGSUm5QG9QBJ4SokWXDO59jcnG\nt6W/zHvVj9vOJMD1mfp+jT2RPhjmiTb0BeDHT0RXtN/5XNHar3aKfyPYZjur\ncqPsHLNuqd/iLOUOQXKpOo9OXo3S9I2A6ru6AM2Cs+TFS7CRFCmOw5RShblb\n63/6cg1eOVhYyENXR5hmp0KsUzxw8i+IiumBkSrho/kQFm61TRrIvE5p1KnU\nU8trl35ENJ/hpqdpIROq2K6I8ekIjxHBbvDTps1GZXL5TCt94xYFhB0oLk1L\nZP//Fa2By7DptflsJoWxPQ9XohQdo1QG88/tzt4MeFnuOBIPNi1iRoVbFDLG\nvAyXvikIpYzr6CCgVzAhuds2eaHuhgd4L+Zv8jX2/zSRMkKtwSsW8Le523B1\nDotG\r\n=0E87\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGjrswApc+UqRCuKMSa0KzubxJRU8GssQA9pjn36Au5BAiAqauFqvdi7yKWY3jcRKfmRKGlhNenRLc8ZIBytH9+hZw=="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_2.0.0_1558425202198_0.8498033324310381"},"_hasShrinkwrap":false},"2.1.0-rc.1":{"name":"react-firebase-hooks","version":"2.1.0-rc.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native Firebase users.\n\n**This documentation is for v2 of React Firebase Hooks which involved a number of breaking changes, including switching from `Object` to `Array` returns - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0). For v1 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v1.2.1).**\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v1 to v2\n\nAfter feedback on the initial release of React Firebase Hooks, we opted to change from `Object` to `Array` returns to allow for easier composition of hooks in v2.\n\nTo upgrade your project from v1 to v2 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"b765126184be2bc474a40cfe9bbf557b24d7e341","_id":"react-firebase-hooks@2.1.0-rc.1","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-rWUBWh5buzI8vQ502c1/C7tUqk0igi+8Y2QDNRYbK/ID06eNYeJTctvofMNLyQVgUsDVB1r58o/eggNAQxe2NA==","shasum":"47bc02e46557bfc70bd6811b9488f5ab1cdbbb8a","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-2.1.0-rc.1.tgz","fileCount":50,"unpackedSize":191927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQ+u9CRA9TVsSAnZWagAAsxYP/ilw5RryDS4SOa8SAdaW\nhBrNX58hWtkpook0J7EPtXIAM7ggDTZMnrbEUwCDhKMfTPNfoGTWSaoZQ2mz\nJTxLbBOtJd+aL3vaWwlvHLVKEetaulN9Qwf0MGmwa3u2Iqymap0lBtKjJIO3\nbV+MJUa8ChtD23ZUenbNkaF7Y1Zlvg3jlX37ExiQFnPfXPp2ZxiQ0Z7iGggd\nNeB/BJgF+BBYccf2+gT2NK+lG/zMfzkKS5H1qn+oNdH+2iskxdwYuGpZlTvI\n1iZmYgCotGgxDzHqZXcHGFYQMUAgCojJ4cW3zIPIxS7O65sm23dgE6dXD5iS\nzKtWiICa0jWQpMQ23EKWpYyzAXOI64ZJV1E0Y3gTziXeTMum68rqYfJJ/Z2L\n5UJGkZx/uqO/PA5Th8V9gpaOqLKHcAf38FDzZcEjaFbwZ5ghHr57bIk/lEED\nq3ZOf1b4fpUqUtlHpyUJ8oj3AuEBN3cv5sKFjmfTTIavcYFURHIcAfjOT8ID\n1kv3SCn9LMhJNXvm9XU6KyLbGXS2W6aUEchZvDdzgNHpbS16B5hQhH5SXigU\nT33EVKjNsO/X71C8J8KgrYhzI86PsqlYu1OZLJ16X0royGZAIdTVEQWEDLC5\nZa7vqK5mOswkN6vtERPFqVFjH533iurldJJeNsgxJHx+qPiDFf5EFdWo0rIn\nFjtM\r\n=iywb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQMjux06cDvQd4St9GUF3p5vj/z6dyGUeC5Q4qS2Pg0QIhALD95Hq4n4ZdRIKrSigcUpMql57IifLnRzg9hEYm1Uyq"}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_2.1.0-rc.1_1564732348719_0.9157178064674016"},"_hasShrinkwrap":false},"2.1.0":{"name":"react-firebase-hooks","version":"2.1.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","gitHead":"bba65b00878a2cda43415ca47ce82e0d52ce4de2","_id":"react-firebase-hooks@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-b5o09O0OnVh5hFOEmEhiYRTqRe67I4mGk9zX+admBI6rwVWOYytrsTwXV5RhSfsAtmcvsbsRxI0VBJ6M45vXBw==","shasum":"c7228cbfec9e886a2b5de1ec63a74c0095506a96","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-2.1.0.tgz","fileCount":50,"unpackedSize":191922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQ++QCRA9TVsSAnZWagAAPSoP/3pZiNqTaT5/OCV3NL+P\nvUqNa4Ygw7aTod8MJbCzNrLifYN2C4PgM/DCxgbUiKwSD7VAwLlZoRO4aZYB\nKVQ4nRz+z+JIIunYeo9J9AjmDm7Ds6E7SigPYLmcXWxYR96hOOTAFYiZ43dY\n/CD0KGxxJxHiRJrAprJNJV64bG5BOESE63hewI7ya3DJ3fNAsZsBDs0rzQq8\niaJ+s6qf3+rCEuwQYyDEUffTv2vdckwo31NGvRsQYtes8rZUDLdKml0UOTdS\n4UIc9Va9biRkP4Hqwav2fVcOx1bGpVd6lGtZah1cnIlMzlz8S1uz8nLwSLTl\nZTqAZGl/LZ9KCV/tSNTxcDXATwK+suIdDVvmvRIY4oVeQj8dAH3UcF0AQsPH\noNXBmD6zhvVbCDUwyEjPcCH9ZWEPwHRD3PK4ubZMt3wjAY6X+vkA87FNocvq\n4fG4r426QNrSQP6D9sl8G3iD5odtFAUPN+pcVeDhZLFUf7AwD6yNOfxie6+e\notqhIOmdUL7G6J4IKtg0Miww+NsjNVW635/m+8w+0EbtNSxPvl4/YK9J7pCk\nvIPyap5B107bvVwwAnyyBW0xZ/aS9zbX4JAYWNJRDt2QAHts4zgMOlu8mwT+\nTF4w+LvY/s9NoKXxrDmfZGmqCg1ibbRDvyO1OrhF+slFat4PfM3HuPK1futR\nWwac\r\n=ytSK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcs17nZ0Eh4vixveyfw9S1rtQS71aBLRMhZ1BwgtoUYAiEA96lOT5Q9Pz9f/U4UJVKWu6A3w/gUKvlViFhFmFEf2gE="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_2.1.0_1564733326171_0.6047335475736397"},"_hasShrinkwrap":false},"2.1.1":{"name":"react-firebase-hooks","version":"2.1.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","gitHead":"e203c3caa0c192e490f4c2f6e53e68db8a8dc96a","_id":"react-firebase-hooks@2.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-6ZvAUa5q1JJrTQxCEKCXrP6S/en3B65RAYRYHbbjUh9f1BgKPsxkdaGGBPhGKuVSLUrVqTm8PtpZ/LCtAFogKA==","shasum":"7180b86e4bd8e33699003a41e6d33f280a54319a","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-2.1.1.tgz","fileCount":62,"unpackedSize":196582,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdySTsCRA9TVsSAnZWagAAZlAQAJr0zUd1/YAsc+A1o1e3\n/S6DoUMpLJmgOUSio2V8xv6kIYnCkQ8mBUgZYhvtH8JSAeedKCYFhYH+QhlK\nSIT7zh91E7uyyw2RiSkcSWk2nuHLXZL2JrL/727DHmNEtAq4nzxWJVbb2koO\nfLKNTvlfNVXUoxli49veAIdglhjgTSf22x2KbbzkImpAMSFQNiBxXZi0tXWr\n5Inj5S0WlHd8evq4rNSdfCH4rG61qmvuctvUpkHoAujSuPiGp+6Bas/MA1aU\nejT+WDjht/Xp6au67vTOhbMTklTYd3cYScKkZeZbm+zkhfQozvnObTh+hSRb\nJDucpTvXs2Yxp0vOtRA4D7NTOJwTyt5n633Go+SC7Y0ROIoiNIKoqVxUqPoA\n23/U4wsQA2LEbISmILLbSzHKWEnPz/+Lp7x1M7Lrh4ThRKzU7SDtVxsQWuvG\nT4J+Su/s3ZT2JEpB2Db2Z6Gn/yQhMTo30fl+A3NoZ8/pW35i6NGzxKiO3anW\noJqjZ/OiGdCSoVjP+1UkRjFW//YXRN/80HCHM0QSQyKj9QcHI4jSq9G8ciHc\nhVONGLWylpwLf1jBbFl2dZPK2aEoWRDGJzzwPa0kAeSaG7zOVOZVw+L6da2+\nHDbcuB3So5vYU5yP8LWV30t8Hra3reqDrQOwLCjA05liCJBMsWiNGYAUOLAu\nYFaa\r\n=BN/d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgGA335pFStVyjaK56c8MkqAeMReqTOCDcSrvqTQ6ZuAIgSJ6IoSdzSuQ4tg8242SllYFVDR8GlIwC7XAO1mrY49g="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_2.1.1_1573463275912_0.26323461294742456"},"_hasShrinkwrap":false},"3.0.0-rc.0":{"name":"react-firebase-hooks","version":"3.0.0-rc.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native Firebase users.\n\n**This documentation is for v2 of React Firebase Hooks which involved a number of breaking changes, including switching from `Object` to `Array` returns - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0). For v1 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v1.2.1).**\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v1 to v2\n\nAfter feedback on the initial release of React Firebase Hooks, we opted to change from `Object` to `Array` returns to allow for easier composition of hooks in v2.\n\nTo upgrade your project from v1 to v2 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"4cb719f4859fa8b7ec3518a4f429b35490e48d95","_id":"react-firebase-hooks@3.0.0-rc.0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-UZ5oFwaVX50BRteigze8MOHARqaQmiHbjaDEkaE2ALO1BsD61ufljnj+cL//rnkFBSBaA3D1am5tNppvC7rg4A==","shasum":"1af7ce0a6f829cbdc0426afabc7c268da179c0ba","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.0-rc.0.tgz","fileCount":62,"unpackedSize":197582,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJey237CRA9TVsSAnZWagAAE9AP/jVgv0HjWdWnYf0o0Gel\n6O0g2mYrdn0gnaPYIGmLTppm2u5HWiIzRBtYQcTAsCR1fsTzbIY0PyWCRfRm\n/RMxs+ZdfHTj/i5mxhSBRmBJDSfbE6piNELYsSDFNDskOPVkWCLf7m789N4/\nZNV2bzRuKB+dTmlPyYM/yWdfAChKD6NKfKEUI8h8gbo03YYlHktklmuWgadt\n9L7NZVz09Da/Foomzv17tvcR4O5AjSzfrHklK1B6ZEMycTv3kqhK8zWkyaCO\n/Uou9BlNfJjJxLdi5+FIi5ILOpmIaTHNTr2FGBLOu2HhXmLakD+nYl4aMOWU\nyJv5AuU1JcqAYIqovk8VUzaAwbzsjPeB57CSQlAPvPMSgn7C+4SVPoz7r7AM\noXCbO/dtpBPaZJpFZ8+Efv3M8gNSHqUwjnI+0XpjLbepqrS3HgI8WOV9VpKT\n7rMrEykm88KIQuwTsBv5jYjZlE9G4ieXMqdb4FcWL6KxDD/MvP9fhTAKyA/U\nxKEZR72RX+gvRxr9HxWNXkajexD37misODZrcx8LpMRrFOHRyvr4ntdvOcow\nHfU+WPf3YyR74B+e0OcQTNLcTPR/r8fdIaUL2TsVIHBBGhoMbZ43FAOyQTW7\ntKjjNW82uysL/RTnd3ZL8t8aCImL1Ix2q2O3s7LrNsaBKvCZsWEeE6aZZ2Lf\nNjLr\r\n=i1Vz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZz3FPbYRaAL56ttYTs76DUto/Qzzvxmwls7jHm2mNeAiEAl1+gFK/sy3kTEDyE/nWgH+ZykX7dmRoqRP5EgpcK9pA="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.0-rc.0_1590390267310_0.9310514232994684"},"_hasShrinkwrap":false},"2.2.0":{"name":"react-firebase-hooks","version":"2.2.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^5.5.6","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":"^16.8.0"},"typings":"index.d.ts","gitHead":"3ad4253b09015c35a25ebd3333d95a6556d20ef5","_id":"react-firebase-hooks@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-bwBaCYa8M+bpTqD0masAPGDTzxiTkGbyxv363hyR+NeNH1HbezPll6G7aMIGl+7OOYRPzfdmpkk72zc3VgXfEw==","shasum":"a2cea46d3da94619e8a316b85173638698ef7d2b","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-2.2.0.tgz","fileCount":62,"unpackedSize":197937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJey3C2CRA9TVsSAnZWagAA/XAP/0Og+U5KxAurqCejquw3\nEsGBkwCI7hpSN2dEwPDOGznfIge2W94Xr9pbtPdtb67UNYBUwDNxo0o8lWz2\n+MC3/UFitay7EBL0r9Gwz3LVQT1vE91WD01zcmKCx8hG2Eh1CKlT7RQS79Li\nx39zx3xz7PPm1i7d3VoaAJS2b+Vvqs6jHAx5d1JPik0nYw9DkDS06Uq4w47d\n0XrltlZ0Rzj5IsW5VdCFsvSNFTFknRwvqIeKQ7l4v6cd61AAXMiUYdcyhrTC\nZZCKyObB6yMO3YMm+PQpZsAP0kK6g7owf1catBYJ4V2TvxuNYv9Th4+V9SWE\nOOd2CxyS1nHArQ/4H+bRMfVq/XdkO3SW0hwUJjQMQ4Kl/Q8CXZY8X9H3QphK\nkZv+Iti/DIxtuVes3UeC/N2efCQQqU3262jiR+Qb65TgEgHPRbTPcg45pDom\nheh1TfXywZNiI2lcmtUcqKazzNrdJRlR4lpu531jkdqbnxQk015LhU4vt378\ncEBOHuyP3z6/Gf+ruO4slxsFnYXPZvtADd6+N2Xzqvfp+z7+RW42mpeoNNC8\nEx7pPgSKuKWBKmma0WOWU4uMrjZ9NlADd/9OTdi+BFl5ws5PBrIQZDiYbG0o\n/YJpHNXDdvNDieLwGQoKQiY1fKB2Tp3HJ3hgVpbC3QFAyYRovWvQ/+Fp/Ar9\nrGcX\r\n=36WN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB18RNEmUjZ4JwGxkYHqcNb1CogaP7xazSY4PETD2lGyAiARHNPgP6o2dpdzqnkM37EY3ysV29FRiOXlAumvhbZv6w=="}]},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_2.2.0_1590390965638_0.060225119679637285"},"_hasShrinkwrap":false},"3.0.0-alpha-0":{"name":"react-firebase-hooks","version":"3.0.0-alpha-0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^8.0.0","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native Firebase users.\n\n**This documentation is for v2 of React Firebase Hooks which involved a number of breaking changes, including switching from `Object` to `Array` returns - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0). For v1 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v1.2.1).**\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v1 to v2\n\nAfter feedback on the initial release of React Firebase Hooks, we opted to change from `Object` to `Array` returns to allow for easier composition of hooks in v2.\n\nTo upgrade your project from v1 to v2 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"34ca031cd543ad77d01b686bffdef710abb9531f","_id":"react-firebase-hooks@3.0.0-alpha-0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-P+vrzvBlW94IVQ+hNf1xZE4dpd4lEE6uUF9OfwIkyZTWjGkh7jzy3EvJiK8/ygJkN74DBy4xRF7yaOPP+lzBVA==","shasum":"a1832baaf1eb5ff5b74811be873b3150cb7634a3","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.0-alpha-0.tgz","fileCount":62,"unpackedSize":216718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2GoECRA9TVsSAnZWagAA1/QP/Rj0U2JPXrxKabKELgsi\nLGy9JApBhhIWW/fIhYgT1MzPQ/7pZ3ceftiwjm0VaMSnzxExd6JNedM+LLG6\noh+9gX8L7WqxKpzO8NIm0Whp1NyxqHCIsSABYWhnq1qrjh2JfGxa0M2FKx4I\nuhWmcAq0wGor+AJLzBP0s99HYoWNY/4jN0ZXjCIJWHwohH57hIgBRMRYmy9u\nRxCpt1WOREU9TB909iPvswllIsoEYF8oItdWuD4UXkzxsWiCjbJI6zrxRaYY\nDcJVrJmXlNPmt9UR9uDfGmPPOu2oqez9diuw2g/avxtjwEmJHPf9q07VuwRo\nBig40yep0NQlDbdQEcrWHDVq9CcTVfXFeW2HvO+FmOXDn8W+hdwpDiqd28gc\n94tplqkvWuo8hVW37F2dZIN4WfOnRL2S5iSy7EhqNlNQEZIXe7B78uX3cREK\nZ8Gs+9UTMCgb587U7z33htK+DHAZiJB5AIelz6idCH8CifQb10RmajSiur4O\n7MJ3VZOPISls6ZeXs519Fj0a/Zj6FrdTk6DqEGLnrljRQmJnpvbvL/qazAmm\nbkviFWiSyA2F7U8/6kivnVgSWM/2s5fSxbRFMT1MQaeGGRdxHpErapozhmKq\nx0qlnaFdfBz491Ki9HN4Wx/UT605++F17RmEjLxzQws5cmVaopqVhs4GFTm2\nGQEO\r\n=DMWr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEoidYSqHxBR55zFc7HKYhjcbcEGUAQ5/cQVBQ3W/CPbAiEA6Qr34yoCczykAl87+QBfve3Mkn5W0mRf+4J20ygfLvg="}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.0-alpha-0_1608018435868_0.16224287327952758"},"_hasShrinkwrap":false},"3.0.0-alpha.0":{"name":"react-firebase-hooks","version":"3.0.0-alpha.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^8.0.0","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native Firebase users.\n\n**This documentation is for v2 of React Firebase Hooks which involved a number of breaking changes, including switching from `Object` to `Array` returns - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0). For v1 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v1.2.1).**\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v1 to v2\n\nAfter feedback on the initial release of React Firebase Hooks, we opted to change from `Object` to `Array` returns to allow for easier composition of hooks in v2.\n\nTo upgrade your project from v1 to v2 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"34ca031cd543ad77d01b686bffdef710abb9531f","_id":"react-firebase-hooks@3.0.0-alpha.0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-my8rgSc/QfChOXAt95WtUUT3X01GTB9GrLhi0+vQjrC3XPbcDDUzSxcWRC2A5dZtV+XANKy63eccfsjzInuZRw==","shasum":"fa9da2108a2a82c3728e4733ee534bc221bbda82","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.0-alpha.0.tgz","fileCount":62,"unpackedSize":216718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2GpTCRA9TVsSAnZWagAAtREP/iltiibkrICNYvxXSjSv\nvx8kzF5Ta6i9h1OLtZQaefwXQ+4pYyhyHD0Ct3nsM6kKco5mTsNGLXw7ZnpN\nzV8hbEWfSHg/R1v5OmzQM2bai/GjcXVGAG5f+u+n3TL7Jbz2XnJqtxeNL3e1\nKD/qAGlwDPc2g+hUFK5+nthdragXDBiSsfW3L14hHPKgb785EayDRDaUJC5n\n8Ld9IE2Swzn0ffqTTfS8GmtVN9OVSA6Ex7sbaGXsTtBHT/ga64gJbZ5/joXX\niQYTHRF6XLQqfv2qktv7YLHKLwm57pOIM4edqEwDZG0uZRDWhBUC+O9pdSgv\nc173LAXlUGzKscrt1JXX+xEANAlCGe7Gbup8Foo5KGu7qlZG6TolfqOI5vb6\nNGgqTvUbKBRWwO58y1nigpaJsoZkJqiEDlKrgUBekuVHMD4Va01Sh6PHkzED\nGJjvJWkt/rLJUzyxN/A1MNa03DeQ37sm2j1PJval0iKyvuW7Gy+vGkeSwcas\nl1Kp2fVUBJYlN+j0dhnIsdmyR5ifwMJEMM9UMzzUsVJv7Jrxt0FqXmzjc/BB\nf1nxArjegIj4ftrmX6P1ZG8E/8uUEm4xLH5ffN7PlL16Q+5YabJ0/RoZturl\nlVl7j6HYbe0bQkEnNjgsVir5Nkylx/qXQo3P8qQksS52GWDtLy9h+gxJ3+G2\nzr74\r\n=zu6+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC593edAjAXfHvlfvTIoBqvUmr5XM2s9Bu45wh8Gb3o9QIhAIhBZYJxeDULjyG9nsI+HzuvA03bdEPU77M6Gx0GUpFu"}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.0-alpha.0_1608018515503_0.7815240776932959"},"_hasShrinkwrap":false},"3.0.0-alpha.1":{"name":"react-firebase-hooks","version":"3.0.0-alpha.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^16.8.3","firebase":"^8.0.0","path":"^0.12.7","react":"^16.8.0","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native Firebase users.\n\n**This documentation is for v2 of React Firebase Hooks which involved a number of breaking changes, including switching from `Object` to `Array` returns - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0). For v1 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v1.2.1).**\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v1 to v2\n\nAfter feedback on the initial release of React Firebase Hooks, we opted to change from `Object` to `Array` returns to allow for easier composition of hooks in v2.\n\nTo upgrade your project from v1 to v2 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"34ca031cd543ad77d01b686bffdef710abb9531f","_id":"react-firebase-hooks@3.0.0-alpha.1","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-wDG+jLQpdap3Yk3keRLmDy/QH3Y6MnlU1s7H0zd+ayuoxQrv9+KRlI0pIwpAl4XOWNRiINEzK23chrLddB7BZw==","shasum":"f2642cc6202ca0ca7b43baf58a264236a03186f4","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.0-alpha.1.tgz","fileCount":62,"unpackedSize":216654,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2MY9CRA9TVsSAnZWagAAX+YP/i6g9rt8pzApBvJHv4bs\nDL2hk7ya/jTJA/zIX+RcftsOkSlLxoYEVrZMJF/AtVsStOxmEZ6LIE7y6e1M\nyu8Lpmn40RiC1wuYv+ElhBGYLpB01QSbcJOIARRoDtEE1hR8XVdyxAaSoNyR\nl0Nq/7zSznc0nwqIrDpYm09jQChk1ZTiLD8dWKyKSVrREgjIfeHdVjblnWCo\npXxe/KxpNwqZrRwv66KcumhlG/J8hrXFXUCZHYxiveZXcL/hbsZp/E9xff7f\nLGWmzqb1F6xfeNZCdx3A0GKA86E3m4Cj93GPD+QkgAU7bjPYL3WlgNeP1tVn\ncV5RldjUUsuk+2bNPR6S+HTpL+7uCbl1PLwAzzhNguF+iMBmq9BRlmP6MLez\n9KVbZO7Y8gAPkBmV0A/s8+hbigQLltr0fWeo3AF5pafzg5K2EkwyYUZ29R8N\ndf5Gn+DxlGuy/2S29+tvmDShOuVxBOstA5YH3oxGt2eXzQFBg7hRNImvlQ/m\n534fMPAFkBO3mjdS+8YUrS2GqxJ9gXUimdhpDU0j45Litm/mv/U32R6hkguF\nvPCGrH6DynMQ0sVOr5J4wX6fHGCt/OLBoK/O+G+pQ1dRJLqxARtYhBCGDEIs\n0lemyey5f/5kPb46QrGuoMXi9XrO1r6sfL6fzqQAy9dAzaHkEnO5BAdwt2do\ndema\r\n=JAHX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCncBWHoQE6CNfUZ4T/JGyVB45njO0/iDTTFpQy4UUKzwIgfSM+TtBxplKeZeWMVgNbNEXRVE8lPF0MyorFTElQXdw="}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.0-alpha.1_1608042044765_0.84288684825555"},"_hasShrinkwrap":false},"3.0.0-alpha.2":{"name":"react-firebase-hooks","version":"3.0.0-alpha.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check ."},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native Firebase users.\n\n**This documentation is for v2 of React Firebase Hooks which involved a number of breaking changes, including switching from `Object` to `Array` returns - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0). For v1 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v1.2.1).**\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v1 to v2\n\nAfter feedback on the initial release of React Firebase Hooks, we opted to change from `Object` to `Array` returns to allow for easier composition of hooks in v2.\n\nTo upgrade your project from v1 to v2 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"75821e4d731affcf4856532475e34c00a297df62","_id":"react-firebase-hooks@3.0.0-alpha.2","_nodeVersion":"14.15.2","_npmVersion":"6.14.9","dist":{"integrity":"sha512-VOul6xsOLvoVMc5NjgJVUKNICz7151S473AohXMHw5yge1vj+l7ToH8THaWEDp5nauKlhyNeG+abfmE3EuNYDg==","shasum":"083462e4ca0aed12b6fc23d43a3edf21c3c6215d","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.0-alpha.2.tgz","fileCount":62,"unpackedSize":212046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8CJECRA9TVsSAnZWagAAjSUQAJEQu69ucYhjhjm+L8X+\nZU40DddOPliz/VOrepoI+m41tHb721uF7jGQyphSYOAkbBRNWbDWg8dwrm1J\nheD/Xki8PInGFXjj1C76nsqFDnOyMfTe5QWrochq4PMMcfox7+0WmqUoPYnE\npaIaDnwV2sx2vJqTZ3jUoaAXXK+dRjjSF907u431XwunMU0R+qrCNIizgqQa\nihXfPluskY4x8SrpGXSlXoUq8IXhpidmATLMu6Klj9Zl8rvllYRWcFKlzY9C\nTU1ZJlS7oRNTqcrsdSBPsHQH/dWkWX4sDgU3DAZM58J1iCIM6XHPeZVNJ70R\nffxcipzmDUMmltKr5g9RjlrA7IVK27RPYhCBki+IleguXo686U8pNfre2IQN\n+Vq40FsHWi316XdiTjTq49ZLNzUVMNNkSfGPkFwnTVkr+lSY2iigIwbQn1Ys\nK6RJ9rQwb6vmqWr6qZ+R501kY6BnPuuf9NqFl485qZsKxIGmWZGTCDTZYINE\nxzDZRxPTsKJVBwluvIhDYumd8I0PACRNsxxC+j5PdFjGVo63ZEYMIaCmobyd\nnCox0gwry2tZZAUdxk6XMmmQ5eXX8Dvb32i7/kUgtj7PD19g8HfBTGZcux6p\nSAoz0XB9hc8a4n+VF5zS1GM3b62nGQiVRr2Z4U9sleS2oCXesfQIJJKubZ8V\nffeZ\r\n=rmRl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGcq9WlUnqg74e7iq0HU7kAmihCnzXd0yHICvAeQw8ZzAiEA65E4qv8ElBj+DqJYZMVknBP7tpANjB+KNjjsJbm6n0g="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.0-alpha.2_1609572932460_0.1885324570602691"},"_hasShrinkwrap":false},"3.0.0-alpha.3":{"name":"react-firebase-hooks","version":"3.0.0-alpha.3","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check ."},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\n> Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks works with both the Firebase JS SDK and React Native Firebase, although some of the Flow and Typescript typings may be incorrect - we are investigating ways to improve this for React Native Firebase users.\n\n**This documentation is for v2 of React Firebase Hooks which involved a number of breaking changes, including switching from `Object` to `Array` returns - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0). For v1 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v1.2.1).**\n\n## Installation\n\nReact Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.\n\n```\nnpm install --save react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v1 to v2\n\nAfter feedback on the initial release of React Firebase Hooks, we opted to change from `Object` to `Array` returns to allow for easier composition of hooks in v2.\n\nTo upgrade your project from v1 to v2 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"fe7188973cf4495388ec86f729a5444043e7ed81","_id":"react-firebase-hooks@3.0.0-alpha.3","_nodeVersion":"14.15.2","_npmVersion":"6.14.9","dist":{"integrity":"sha512-AqO49n8ACBMio/wYHOZvoXwAtiv05Z/VeRdsky8YFr0DMl127tUzydkhgV0wLqR+3A/oI6jRJw1T1bA1iexe2g==","shasum":"5db445730d774d270328551e36e3e807824abcb3","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.0-alpha.3.tgz","fileCount":62,"unpackedSize":221864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMMeCCRA9TVsSAnZWagAA6lUP/A6YchnLOBpd7Y+m0Oz+\nQTIQYFAz4vSucDpJdnNKXTuYuEUU0cN9UJuzjsNMVlj2vZLMY1Gpz4VSFnvS\nPBm42OpGSdD4d4Iycx85MoONSZH3QOHWaBxkc7CI8JmvZjlq15U9J9NEmH5o\nLKXjv6RY76P/xkSuGNzXsSjI/zahbfjw3PO6mDbRA3GN7x7Dxk8UIuj1YiFo\n7CxsOHQdEYMI7ll68C0kg7d1/yx3j9Jr9hanN/sSBaB+O/BIKgjEecpnphZP\nnlTyRQCczJId2en8pjDLdjMGZzXx/AQD6e4pLn2+1BRjuStc02TbnRBM9rYb\nk9Cn0tzmaYjkwhfdRTIbVYnEIwVio1YBwsZa3d/DktHm0SKosW/ywHC8HuyO\ned15r2tJMZs8IuQEv9Gbo2DiqQO8QTzJvNjBKHZ3NqbpWYE0hLQVkkQRN3WE\nJdcL+G3pV5cVqHvktNTKEhKigo5d9AIWdX0zL4g11mAD/tyQATcB46O6MFUU\nQsGuuIGvJqNIBvErZ5h7dxd7SFsRtJA12mPE/VotqBlz2+KDp10dTyOSMl0X\nCHb0+CsKbYSGsOe1GmrLsIul4b3OSRtOvHNTECUfkJQE+BIb9aQRTiLT5poN\nBlt+mkDM/2pjMByX8GZi47tNIjb3t8SKhlDl45EbYHnAi9WUeJxqmxt3ek+/\nWXcd\r\n=DimI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLAphL/WE8SLpNt2K7MY8Zc3IVMwOHy3u/BNuHViKHywIhAJa5FTNE2T2YAAsKQD8gQ6Grxth3zSo4mGh0hYEuxWnM"}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.0-alpha.3_1613809537955_0.051427792458936805"},"_hasShrinkwrap":false},"3.0.0-alpha.4":{"name":"react-firebase-hooks","version":"3.0.0-alpha.4","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0"},"typings":"index.d.ts","gitHead":"0d3434f36e1c4e01c265acb9263a5fe553641533","_id":"react-firebase-hooks@3.0.0-alpha.4","_nodeVersion":"14.15.2","_npmVersion":"6.14.9","dist":{"integrity":"sha512-6TwEeVEGjutDkIRUHt9lncoUldDKcLPH2JijQBx29iF4d8XmvvOqfAm3DZjp/K6rvF08L4kjmeEnMgjqyEQi9Q==","shasum":"7d397a3e0ffe8dd61a78bc868804ba3a692cf9a3","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.0-alpha.4.tgz","fileCount":65,"unpackedSize":1549809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPe/ACRA9TVsSAnZWagAA2YoQAJh83ZmVdbs5DjrpdtGD\nMgBaQw3jdwEQZWaOhrvCcNtdJ9V+mrDipdIeYmDem8YCHWJ93VkxJ1nMvZrr\nOfuCokGzxG7EQc06O9dw2qgqun9+1rn/u248b53oSgV886YF371iZtp/DVHc\nnYZIyE4nCH7uks+1+Jh1ByXeaXGAVqmWudPdcsqfoDmOQwy1qJ/Ey1v9jC1v\n1H+Mb0xNMEsMjM8Jh2SECJcLkjR78GdLKfbu5Dq2MkcWuxRdX0cVNSo0Eqti\nJuCiuzpskA7Oli5kJMNV1I9h4PaxvxoALqzvtrBfW3AUC4x8iNNlTLdUtOWf\nsZXZxWwh4+Ytm1ezuFvOZXGWWiMl4XydWXuQTQDv1hMWcg6bu/M6yLUQsljx\nQGmWw5x2fweiuJvn4o5pjvjtn3yGYM5CPr9sRN5MDDzz8fK0rj+21ibIpHHe\nsAgzg34bTO5paWfdwfPh4Z012qfuuhWgcldHLkkQ3pEA9mw12Ae6yolZC5li\n9cyP1duX++ZRU4KMawDzOlKhwEbtlO7lj9iL2l0KI3l0NBMIQMzua79IUAXG\neg2ENmMf/+Zb9EaI284D3v47EAeA9+kvUYa8ADv/XqTKjuNsTq8iAmWAAhDJ\nAQlXrkIqUfTya7dUEjylG19LZ5ITf3MdoAKwh8dRV2heYh0v78auVzC/CGZO\nMe6Z\r\n=oOyH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqc7qurg7KhJZAwUA3A9wxBlXrOCaOgdhNauZHaTxKzQIgclSUJqpD+/imaWXqJOl1cNV4ZoQ3lbKQjqLUmnYIkB8="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.0-alpha.4_1614671808246_0.5834897220924757"},"_hasShrinkwrap":false},"3.0.0":{"name":"react-firebase-hooks","version":"3.0.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0"},"typings":"index.d.ts","gitHead":"af24733e66d1748703fb6a4752a22d30f1d210c2","_id":"react-firebase-hooks@3.0.0","_nodeVersion":"14.15.2","_npmVersion":"6.14.9","dist":{"integrity":"sha512-0WU8/oXGBhyd3VYSaRPCpgTG6Spt7BbSkN6NuKldX8b0DIj7EmEo22a4uT0i4iNvt0Piy/qTxSk3dHptz72VeA==","shasum":"6d8aa92ac048a457f32210625ff1775820e3b7f1","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.0.tgz","fileCount":65,"unpackedSize":1549801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPfF3CRA9TVsSAnZWagAAaKUQAJ7q3GUM9pCyPmq9IR/g\nEer94H+DEvm+E00tVmbQDgU6Sw3KN68SH6tsM2GzAvMhxhh/QfgtM0YQXSQB\nqiChaa/jNHRuHhDHoupfqu8uLjQ8O/VIN4h6K1Q77JxfNrXgHGNd22X+P3Qr\njOfHWy0ecMyMksKSMzigxcuTNIh+ntyxgtsj4czd1cfglgrd9VXswzX8bcAo\nQMtEPigB1EpxrNc88yZ4N+s48IweB+L5kbkst9eVWOy9b8mLHEvAamAd4zNV\nPuy1sAW/I3sVR3sSgdh97sCP/cebMoi7fkQL/Oc31YTFR0kKBsTn13zaVfZf\n0zFriQYTtnz0Q2O6C7RjFSiYzAg3+meXoMqxdS1n1OWcFlzIrRxnBzjGeeQ5\nnOnrtJuGI1pmZnDYUmpuwCAls/JvVTUiHJi21KpnDTcr3N+5fK86aeizrs/S\neVqhD8yFXSnXr8RshtuEb5ZVNiJ/cK6e7b3Dv/URtPpG6utMdGIBEukdrKTq\nL5Aii8cpblNdRAWF3kHcTn9PQQvMXrOKdRcXYRQKym0DcIk39sm/apIiNSPo\njcnyCgOUU18iC08lVqSJJjaEMwOJXVmaLwCJw52sk14ESfs0x8gWYSqQzJBV\nCEAy7W57OYRMvgKzSuLIDk4RY2LGMU7/Zz46tP2/ykl4LwI82Xcnb3yh2EH2\nYbyH\r\n=Xd17\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg2puU0aM9bSNgjZhG+BXTdivI3ATunZy7FYmR9K4GhgIhANLVYUVnY06m0PVhq2n9dhOQ22gTiMPFCUCCLyb/BWGe"}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.0_1614672247445_0.7428166427576999"},"_hasShrinkwrap":false},"3.0.1":{"name":"react-firebase-hooks","version":"3.0.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 8.0.0"},"typings":"index.d.ts","gitHead":"09e8293f0806a1c6f67c64175a9e4c7c783ddd74","_id":"react-firebase-hooks@3.0.1","_nodeVersion":"14.15.2","_npmVersion":"6.14.9","dist":{"integrity":"sha512-ahSULtc7GNPPCf7pQrryBgk2tQjc1Gw7+xNOaCMjDy9Qq/iXEDaxy+XNlt8PEUab64ofHs9eivczDyjFMGf2QQ==","shasum":"dd37060beed7a95ad0a426226dc57b581c80a377","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.1.tgz","fileCount":65,"unpackedSize":1549829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPfHpCRA9TVsSAnZWagAAdNEP/A0G/ELf3H2lzhtB6hN1\n5lDUcN4xfGzpBY+bHFsr7QC/Q/uwnVs20Vc1USJVel+H5251z5oRQaBXh0ce\n2sKzTLCTRr5SdxQaz8xN3eMZ6uAFXsJdieIgj/lLB396WXae5I+mE9XAZKMt\nnbTxRTJ78mMwyHrsFZJ8yMRolhXuK0cQIKbHY5kdKqe/GpGrkE9hi7OHZae3\nNFNXpKi0oG80DxTQrVf7H2eZs/17iireG7St47j51HpS7g3E9GWPYnoEABeK\njqPf3JrldM3QV+AvfLZYrGPw3xQOoOcVHrfh5kRhpvYoUTDYzgXkHkXvGYkH\n+RJFjjxdIXeUZbfWsBLOUjc2a/smqP5/nccG7mzFZ0WVCGUyA5I5zIYgAi9p\nnVaQzPkb9c1OmFTcPuKwUIqdyDHPqikpopvAjM/A4PiKd7R8weATNvTXClWm\nA7KXs7FyBJFienchdFSVHHAdbUCkKkhMfapZvRwKD8yh8moTjw8MWn8SXOex\nZV48qcS6RHOMBpgs1SG0NgkDdtjPXmMzYNAt7jdVfyjHACKo72IxF85wRODq\n3IDjai2IcdW0/V1o0Ytx19wOBkokmDwKi2tRl0kL4Cw4/EIWDAK5gZLMuqVj\nlm+4NWV7Dkfzx4C56LMPgV+W7W1rAfdnF1nSE9P3lfRmvJ3CYqNe6xG5IOlV\nV3Q6\r\n=gyua\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGyrXLcSpTHdnrxT9NaVjGqjrSFcQjdclpRSfiuX/SMvAiBTBIMosJpYM1/IiLjz10Gf0L3zKYavMka5a7Va0CMo6A=="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.1_1614672360463_0.4718077466983295"},"_hasShrinkwrap":false},"3.0.2":{"name":"react-firebase-hooks","version":"3.0.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 8.0.0"},"typings":"index.d.ts","gitHead":"16d1f2edb7b276d1ff565ec5c6ac324d1e602324","_id":"react-firebase-hooks@3.0.2","_nodeVersion":"14.15.2","_npmVersion":"6.14.9","dist":{"integrity":"sha512-rkxX/a3yDDth0znn38mvTr7m6VbB53sRz1ZGI/+Bj0vUZk0djKsB/6k2ABHzGZH7PUnYw/fNg2+gnJ9hHrRFAQ==","shasum":"d82dcaf2f05ea7147fdfc8e57e7871a3adc8768e","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.2.tgz","fileCount":65,"unpackedSize":244934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRzDZCRA9TVsSAnZWagAA1AcP/0qXnMSWh2XdrmjH5Q2T\n0hwsOYPF66MvK1lpWla2x44j0Kc073nVFPWuxBirrLcPOODAlF0M8jmWN1TD\nhKIHxusQNCtx8sPJlm+wdaYsBcTDuJnd+XZCdRW6XCVzwEKAzAvd/SldQlcu\nqgl5SUwb095GH5bFCruBW06GWFPXtxfFnXdgVVEkX+CxoDX8bnrS9LdDYfWR\nxnvrydTAWMqyOxMv6PeF4SkAxOP/YHcnmuK755KrFeS8XBxxblghTsUupp9m\n95pQYnCI2VWLCqurqqXDmRcFoqxs+70TaIWxaqldIAI46yU8x1P1TBRwImhy\nhzD8vL7JH1tgTaj2BonO+lk5+ycimPpJOzL5fQ9eTTew+LVc3yXePansJAHd\n07rA/DfGgu3DuWu6tCiuLPEu1CZxV35AsiZVMZd/Ta4xgTqfEUNgZPZcSHBq\nLR0Mw62U/xQBXG3r9GG8NU9QLI58S/m/9WBo+XAVSwgsnwtiED53gcCnRPpM\nqMcbvbrnc7Mu631cm+x+swL7tmtv5yuNaa/Rwr68McKmuP8MfcSkT4CSbPaI\nfEkfQ9DJlJhuN57JPFkflYj0ZveunTgYMiDElSmZ6lAY1ePlXkp+zoRrE2nL\nhZxlya3Nv+CntG8s3H2KBm26h6snlcZxJSCWxgVk9Ex3mg0vaEQBczsVzGZR\nu8Bd\r\n=A3fe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEXptJQJ+X6ZHHyclvia/95q6mKOIUVksekmTx3zdNSQAiB5//9fuLJF9XEP4/jW+QXFSlO3Bg2L8WSUlVgRcciQYw=="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.2_1615278297309_0.06301265138724643"},"_hasShrinkwrap":false},"3.0.3":{"name":"react-firebase-hooks","version":"3.0.3","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 8.0.0"},"typings":"index.d.ts","gitHead":"c69bb0169c3a41d00f6fcb35c25f7265b34e995d","_id":"react-firebase-hooks@3.0.3","_nodeVersion":"14.15.2","_npmVersion":"6.14.9","dist":{"integrity":"sha512-g66N21BTzuYWmQhWiTkBPwkrHcK5wNVpq/xkaAyWWDOl3zo9Yx/Q3nG+yVlj966Xi3E5ABC7a/Efk2LNAzzGPA==","shasum":"61310fce721a23ad6f50cd1159a6ced87088adff","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.3.tgz","fileCount":65,"unpackedSize":246531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVGIDCRA9TVsSAnZWagAAw+0QAKH8nWQIaAypE15Z3DCG\n74dVlANC7d3FVNsANhcGXnKBxAcg5OcXPYpm9PswWVIoisLgJOZCfjBZrO7m\ni2YjyZMDRBj8qe9tGMiUWM60Zfz4+AC+qO8nbZUlR4vDwXN8xEWQdZooUeBf\neQn9g7L9+NVA8Vwqj2DOlNDDgyOzo6gU3DjMtIEJlP7F3Rs3AqvNC/t8IyzU\nVs7yLnUrUF7mdHzVMBKr4cRKkzg+d/W1OOBbSpQw7nwmLsyImm5GxAMfem2+\n4sKA8ELTez3WWWBE9xVnoMJlyl5znZSyBfzQMeFSBS4d6kMc0Cu4r0G4pWzQ\nxNyCnSshaeTqBL11m/n3JUFmouDOG/NpAqzJj7DqN50MJaKYEhTL/WD3tjUZ\n95sCW1FLPdJRpc4PRhN32E5aCTvmATt49zeF175zLL5H9YomHIUZ9FkFJVZS\n2Pr2XrLU19tGV1maHRydHKvnG2GJXQY4CRv8jLM/ErW36LNB+4aTZNkBIx+a\n8DKWGEUvRc88DC1/yeiYzXNMr8MWfOFQja0izhkb+G+MKWWmfeJrMZWXTcq3\no+aNEF4AUBr6+9atz3z2fhvxB+qU3V9yA/HjFZGsJCd3vVoS1H27H/OliMid\nVj+YrejBckDDhdWKB/jCZLh2wcuvbh3DpgVpzMSqcd1PfQ3+fghO1LYvLpCG\nQI45\r\n=ST/l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDn5DGjpmVDuI/N4w3tl4uQT9PW3aBQi+UQk6ARWJTLNAIhAJsdgPiNp4p9FV491FGcrEP1DFIb16pVBYEOOWYhrAq8"}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.3_1616142850863_0.9552204032509022"},"_hasShrinkwrap":false},"3.0.4":{"name":"react-firebase-hooks","version":"3.0.4","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 8.0.0"},"typings":"index.d.ts","gitHead":"c90e63013e3a34cf23455bbb256fafe1cd06aa5d","_id":"react-firebase-hooks@3.0.4","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-eqhj8O5t/9nzGS/DfCGQX9goqbxTP2T/qrY2B13s4rx/VIJ4Bx3WnZgqxEVA0Y/mWZBh7gOlXSPdRGbxBq5d8g==","shasum":"2185357d2bd6f7292552bc65f2459bbf9364e673","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.4.tgz","fileCount":65,"unpackedSize":247150,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgg73ECRA9TVsSAnZWagAA6QEP/1TKP9ikTCz7jYcDi8bV\nzUYNC46KjY+SaRmZuEjTPkVQVZ1bIPzNBD+KbJGg2kXu7oxl7B0DRDAA3T3M\nFMoyMRgf84RnoCKENqwkfaWkZQjdamGquo2gABu6unT4CLYnV/X4a707FlBB\nIVyObNskIqc3ylWI6nio8AGFbZDU53jooJZppr+PJS8H0kbuoJQjLpyTEEpi\nSkGnZLYxc9mxxEEEReycSc8NjwSXXjpHFFDWnatM8hhxa99/uDHN9/UAu2wm\nkOEypNuwfmfMdRG6yjtmwbwNG9AT3BrUKK/8froq8UrTF4AOaw1UK4AZTcts\nLcKLflX8VyB1EAPvx6TmUO+sAvP32v2LCkFlCr5wl6Riq8SazbUKXHuKfyw8\nyyyDD8KhPR5qHdy+7F4j6h1F3g+Q+2B40W7RzOOSuR1h6ZGBs/jS3prFyeY9\npdc8r3cfju2eEl2tkvCLiJLDht+5HffYM2tMuDQ3pLyZehcaJO5dHRTqdPnU\nyIotUsau/w8PtS1IrOwox55nEpjJR6RnSeVrAEjCej5qq8AXmw+c05c+4hOM\n++postbDpGunlfBEJHkPp0inMUcC7Rz/GfYiPgeOo5NUNEO92xAca03YdZKV\n7s9fSiby0Dt2iRK1lcDfXVIva8W+H1O0n9EL92Vb12fUgiUYCtTU7q7j51Dj\nXp05\r\n=8CnL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIkmohrtQltKUmSESUoNHtrOTccWy3pX5hUcHOzSBSpwIhAIXn7k3GFTU7oz1O2Asid4amyLGsW2Uaa+e68QGnI/aA"}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.4_1619246532167_0.9024544071793204"},"_hasShrinkwrap":false},"4.0.0-alpha.0":{"name":"react-firebase-hooks","version":"4.0.0-alpha.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","gitHead":"0f2f827fd6df8aba0219441a28f9c8b022e2eb33","_id":"react-firebase-hooks@4.0.0-alpha.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-o9IB6nV33vTc8SWwQ7epKa6m0o7wN5lcIoAJlRt5hqDU71r7KFJVclE4ZSd/WuEMYEbpZet8K7WadbA2WD+auA==","shasum":"07c76e3958cdcc7c04ff9b4b1d22665b41c55256","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-4.0.0-alpha.0.tgz","fileCount":65,"unpackedSize":251575,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCI69yst64ZP3ffAiyxoCneXdLL7F6/VX4g34JA3bW76AIhAOI+xqfpN0hoIPSZy1OPrl4EzMf2oGQ61Hrt3wrJt3+A"}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_4.0.0-alpha.0_1635576940878_0.5072323720772223"},"_hasShrinkwrap":false},"4.0.0":{"name":"react-firebase-hooks","version":"4.0.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","gitHead":"c55850cd4a27baffeccd094da63065c0b1074eb9","_id":"react-firebase-hooks@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-nWumMnve8eD51+aW3hQ6ItgcQB2r5PUXCKWGuJE8PbvCy6GQfVTe0KCX9ACoFq0WMHLDtxhx+WPbqGpnQ3XPQA==","shasum":"0e82c6c7a336834dfd73ccdd6897ee4f654396e8","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-4.0.0.tgz","fileCount":65,"unpackedSize":251567,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMRhrna/pokB+F0Za+oa2iw7loB1JZyPsa5xWIZeoT1AIgeWIc5a0EhYbGDR3lbSiwaCJt1oeJmotEae/2i4Z1sDw="}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_4.0.0_1635579757384_0.8143223579988617"},"_hasShrinkwrap":false},"4.0.1":{"name":"react-firebase-hooks","version":"4.0.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","gitHead":"e5019dae6095a8e6861d9dfc945480bfe29771bf","_id":"react-firebase-hooks@4.0.1","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-JinNQRMzu905KWSCWppOZTUeOJArXvWdcTAsamjgDX/ZMF9QH5d+BZpnapEaIL70ifCDe/Ax9wzn9vlAufIymw==","shasum":"5c2483b0a240eb05cb9467cb1c07b2c721bef6c2","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-4.0.1.tgz","fileCount":65,"unpackedSize":251808,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoPbJc8tj9iguSCK5lpizxfvh6QiRa9OQNMvcY6sh9DQIgMqtt6gTvIhdgqVgkRV2C14VX5vyANJpKqUYUxYTf7vc="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_4.0.1_1636189062885_0.24254747054515247"},"_hasShrinkwrap":false},"3.0.5":{"name":"react-firebase-hooks","version":"3.0.5","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"^8.0.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 8.0.0"},"typings":"index.d.ts","gitHead":"ecc235f4f8a603441f87e6d7a8de4366dbfd3744","_id":"react-firebase-hooks@3.0.5","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-9LztZGaZU0qJY/TQWzkBlfVrFmu0Ui6HE8CUjU7tNz9oGKGx5tUQG/xQbfyMIGClErgnnQsm8sC+oU9pg8Ri5Q==","shasum":"4b0673ef4c028886a35c4a5c8def1a786d5e33e6","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-3.0.5.tgz","fileCount":65,"unpackedSize":248988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwffSCRA9TVsSAnZWagAA6jQP/idoJTisA81jzGgc0dER\nQXp3C7RSuPrmlXBm9O1cIfFTZ72rS8UVAjJT+32KmUOx8Ms74cE0d6fr6X1Q\nBiRb5UZD96QCKBmfGNfpr6m5qR/II9hd/aYfhfChHIqshOC3ag8AuPCUZ/Tt\nzLEs7kCXDaJYucIYHuQnEcjCQd1JhL9uBR9r3w9PGcHv0oCcpwkLLq3Qyt7V\nrWAq4oadmzoPVq2DUowPJOyKrReUXwqcLvdDX8z0X8xDlxB82HBZfqwdmJyL\nPT6NHCuCOFprR1wk+Xa8UIW2hlLbelp8u+R1KSijI/6wKGsSXkuACuUEqpxc\n9KhGuYZ7Jli27ozbaKFdHcllboCVM7SqNiVKYtO+qmC9v8eHWu13ZYAinZdi\nw0EyvBRj4+518h/ouXUMes104qVUui4s15Cjqs/iGMBHn9ch3A+xZneNwY+K\nsYN0vXmNdSLJ9U0OTt9bzy/mDHcJ11lxTI0+PB1r4eDdKegiX5T+lZoTWDyY\n0hOtlUivS2kZGwDHahMU0D17Ph2Np6XhMjCJlXSG1ddwODyBA2rU/zUigB+e\nuSZjtML/spo52EvQ9t3wR8hcyC9Z3rkTsNMC/2c+jzPBItcX9efDDDj3bnjo\n2Jw4y2OsF6wUvSSAHxZBPTAFowEqysSs4tqrlf5reCX3PYXMujp1fuVxzhLs\nb4g0\r\n=EDC5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf9NxenvhLX1bky5kvWTWIAZRWpgVYC0NYTNPcabOWfgIhAMaSQPBpUl2x2LNWoGF5B7s8f1wco7KIMX7Cp58EIc+y"}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_3.0.5_1640101842591_0.9502010973101753"},"_hasShrinkwrap":false},"4.0.2":{"name":"react-firebase-hooks","version":"4.0.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","dependencies":{},"devDependencies":{"@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"0.57.1","rollup-plugin-commonjs":"9.1.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-resolve":"3.3.0","rollup-plugin-typescript2":"0.12.0","rollup-plugin-uglify":"3.0.0","typescript":"2.8.1"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","gitHead":"2f23e197d8f0c73aa7bb26cb25a1a505a3b76311","_id":"react-firebase-hooks@4.0.2","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-DwykuPHfnGIHbJYgRxh3sacfdeEyRxlqwBOdwClkA07s9Shi9gqcOWgMzOPbXPbP6o94YDnNW2yP42opgQs7Nw==","shasum":"60e98f5bacc4550920444c0667a710e4670d39f5","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-4.0.2.tgz","fileCount":65,"unpackedSize":254393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3bddCRA9TVsSAnZWagAAtKEP/1n6DEIZmedjMO2qeUhB\nxnFoScHpMGSJd+p0iOTOXpP/041IhbU+Er5Kb4cAfuyMFo7mT8GZlt16/VTG\n4EXval1chw36OQStVTTZsd9SnQOx8UmK8mMbuZuzeqO9IJHYne1+OOhIBbZ5\njQDEDvsaF6pXf4uz0aIpIVECk0DgsXUzNpYlkOpfyXgQjjAvuuZlSj+LH2/v\n9vMihoIdjw3M0ep4vJAPKj5wrk7qmg34wyC7jGAYHMp7YN5orK4Z4EFSWfF0\nRLvrOEdZfO8L6WrTUnyo1XrTG2ZQ5cU1PKerI7HJEDqS+YDzoJfanP0LjL1M\nKinP+5YOWG0BdQLBy/4txOgb51ma0hF4fUQ5E+SvFef4+zTksFyKh52oLgFe\nr0Z1WrFsK6QqYqhUcPZ0kzui6U0Uo8iWMaqzERY8xyWOUBqY+tinoLwacLIx\nhRPMM2MqzoPJ3BIRd2LK9E3YVcjROrIR6Tg7Wgie+oWH4/ze2IrTMo5G01sn\nSmzPUU6BQ1Nh7yT7LPk1M11ezjRNQ4FWb9HNqSdhkeud0jXP5CJF+/BhxlKV\nVp5agyytVVuh8ra421plgip1QZ8f4zmB7gPp1mpcz5iZOhI0ArErNlzHiPol\nLEui70xzdqnP4vjsweHv3B74sBUCWQi3FhljaLng0+vOLd4P9F5WkHWoV/Hj\n78V/\r\n=oWlj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHn9IiGnPI8YJ0qDvqIstB+s/DL7WyBO6wlvwg35zFowIgJfYQ4XF/zeU/aJeEz8CrxUfyzwVR0k+bfRMHNPbVyB8="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_4.0.2_1641920349483_0.216503306494775"},"_hasShrinkwrap":false},"5.0.0-alpha.0":{"name":"react-firebase-hooks","version":"5.0.0-alpha.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-typescript2":"^0.31.1","rollup-plugin-uglify":"^6.0.4","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v4 of React Firebase Hooks which makes the package compatible with Firebase v9 and drops support for previous versions of Firebase - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v4.0.0).\n\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.4).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v3 to v4\n\nTo upgrade your project from v3 to v4 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v4.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"416de01b8cbbb1d27bd8b726d5e73204f44bd296","_id":"react-firebase-hooks@5.0.0-alpha.0","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-2b8Q8JSzE57RCHbEddyUryq0nONpYM3SjAmjQ3hmvNw6s4eakGGcEUU4IzHaSRNFCTzcWEhVFq30hy+UjlLP7w==","shasum":"4cd3b4784004f456236e6779e3147060fc88d5da","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0-alpha.0.tgz","fileCount":83,"unpackedSize":390924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3s8GCRA9TVsSAnZWagAAeCEP/AgU9iDjLtOFg3rX8+lY\n43p7LRRq4+igMeWuhiGrlSm/KrMDSgq37g0NZpiIMS2kKEOtMpm8AqZ8INID\nwiT85kTcwy62NCOkE2zi9rUuezxJtWRkHVxqj5wAeipOXagtPFQESEMAfV8W\n+6vaI7F5np25PHLaHqUdYLY2Gpt05fKoel9aMbohV5BpuoNS6qYz5fP5Qdc5\naLioaGAC2vyzek9Y/0N1yhF4p30EOCueVgSEVp2rbR6e1qwie5R8SDWLHFr/\nQCReo+iHSJIYMXS5VnKHWMFkfh7BaFvjCkE0AkvXHK8v720eXtAED6XAL+8P\nwb+bndUqc99qILA4Dj42gT0Jj+domikHDhnUZ6+E1jrVOBvW9w4sI+mK9UEw\n8L5yZeuVaBc6HRqjVMoV9CJSnBMqd31Uoj87z7MRO3QYF3c8OzjBC35UILuC\nvr+6BZETBQiDXYGfLinh6/5zQrlPhQeTb39MDyn19GcyFUYYGKh2JN+czuvJ\nFPRgEQFoi+FIuN+Ir6uWIrwKubphxD6cuKptieSDHVcs3okKraS+4KpG9+PP\nrGVxPeIkdu34lJs5mp27nfyErPsO/AKSbXPSZz3ZFFYBgIFpA+ZO9SKrC5Ht\nyKTEeKbmz1YpPQ97F2y40B1RMHLEqU6Mj8FKG9aAXm98BfHwHKQbPbeT/YaE\nS0Ax\r\n=+Aqx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJ/O9iDac9OKjc8v1CBDE5onZ3jnM6rOwxxxml0kFSrAiA5uEg74Hn/UDuiz4aS2Wn2fsXB0AIGjjszHVYM4DRAdA=="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0-alpha.0_1641991942179_0.9199116359053958"},"_hasShrinkwrap":false},"5.0.0-alpha.1":{"name":"react-firebase-hooks","version":"5.0.0-alpha.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-typescript2":"^0.31.1","rollup-plugin-uglify":"^6.0.4","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v4 of React Firebase Hooks which makes the package compatible with Firebase v9 and drops support for previous versions of Firebase - more details [here](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v4.0.0).\n\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.4).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThere has been a **lot** of hype around React Hooks, but this hype merely reflects that there are obvious real world benefits of Hooks to React developers everywhere.\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v3 to v4\n\nTo upgrade your project from v3 to v4 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v4.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Auth Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"416de01b8cbbb1d27bd8b726d5e73204f44bd296","_id":"react-firebase-hooks@5.0.0-alpha.1","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ypy949I538uu4uc+QttaF8vJ51NmBaZP41WlmRrTOTavNFuzILNibnxS+wFGeSy+AklSEHXY7/+BQKwPyd4u5g==","shasum":"8881f5909cf6efabceebbb94d375e58bd72bd639","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0-alpha.1.tgz","fileCount":83,"unpackedSize":396006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3tVwCRA9TVsSAnZWagAAu+gP/0/FhZK403XtvvBWE3Jt\niK59l2c2fFBOBmBAB6IPiCx9ZOBHJjHBnYuaNk7H5da6gHgftokDLVxO43VV\n+skQulm0b1EWGruB/f3y5fiwTYmFuGmsbRERX54Ib25Um8BB2N0DdPy+ZD6F\nqiZJQqS9Z7vQ34W7iUPfFQ9A+Gng4UMOP59GCEmXERrjWmf2KiLx5v71pKWM\n+G5sgU9Y6qzHva+n4ib3ol8uQNqvMJqqZngTarr6mhowWqQzNm540oCqvnFJ\nLNB70N2xAQE0tU81c8ifhnS11o+/H3q9f41pt2lqK6LKm8CFkFGefO8O4YxM\nkQKE3M0wjpIUSUjDoKa8QXBTqt205xwRBpGZLX3XJBAhU3wHgnmWynWhclg+\neIVAi0rofU0nmK9XMvy4vsCJBLJEyFPkf/Ay+elcysgq3tYsw3wPFar03t9E\n8rFPuEsvkImckfCYAUkyiD4VPzXqi+MzrAA+LKmeHwHlxB7ENuC667mPIPDg\n+140KlTzgdR71nMLkyN9Wy6dNOHzN//1e8IYyLglx/OV6u5mUZH+J4j9aaF5\nDMW9DVd4eRQe1YQCJXOEYT0HfaS8iItYzH1FTV0KrAuyMsfxRbQWhxxJ4a+u\nLidkSjYe9FOZSaAcG9IwmVeTmBmwVrtg72RXL9PhaYitwkgYlDkjEwsHMV7/\nfUSF\r\n=Tl5i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8nEiMzhiwAT+1WRqSjm+w4IXHe2cDQRSDL1OHzBPvbQIhALIiQiGFOg3sWOPUCMUjYPkYldUlPCZzzvWWXbITceIA"}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0-alpha.1_1641993584755_0.6026478821453409"},"_hasShrinkwrap":false},"5.0.0-alpha.2":{"name":"react-firebase-hooks","version":"5.0.0-alpha.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-typescript2":"^0.31.1","rollup-plugin-uglify":"^6.0.4","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v3 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.4).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"0c7036875214c772280e1663f6aa4a35a31c4625","_id":"react-firebase-hooks@5.0.0-alpha.2","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-fCzFWiE2CqXFu0BBSVYEmh7lsBWN1kDwy4KyAcrkXg4v+lKehIEz3cBpFCaXnki4jHsWxYGZ56mkp+stBGQoRg==","shasum":"0c6bf28064a2dd5485161d0a8ff43cf870cf50f9","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0-alpha.2.tgz","fileCount":83,"unpackedSize":395709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6rFlCRA9TVsSAnZWagAAAMsP+gLd8/IvC8UCQX+JsDul\nFigmVMtDYeBYntj32toNA8VMYxXuZPcxrq2WmbBAV1etQZyjoKmqhsTlDeFH\n8lIID9cYR4iSFrSZ2EGUbvcTjyGRd8O+biIu3wyoR/J4g+4gPiCrdrhyIvde\nhdy+kM6HfgG3hWcw7szijm/TqlC7q9IScc75HjOrrbhzK676EZ7jiy/dYTH9\nvyjp0zc02UEA4Z84rAosG/4c1TxWEOc8um01AgacZpUvAb8iCZIGXufuOmGG\nJynYTKZZgYKWtiRX450xC5p62cj7JGVTMLeXrRiM5eZ0ivn5TgCooSSs3yYE\nZbv+X/+DhG8ILLyykZmRKm0n8uNJnl+MeYTVkJtmRGPeho97GPTR6AhOVwdw\n8QQExqgUB20RAuZNKv1OQlt4qyHPCzs0Ewpe/2DWNolW3WwAsBEJme3Pl54Q\naFGJUlxOgv4ZqeCnIPIJIj/LGw4S9wQqH2KHm6V2c7h7Ex7TjVon0cRMzrKe\nPxU0DOXQb/p/pANLgyDRKePGDSgJ7YLh/EKVXZ+6yd2onZzx2eVz1agnzBg7\n+D+hMZ9J/bFu+ffiByJXF59abPSZZtxySPBlbECmX069rD5xJ4c0Tk/3Mu0v\nrYTRhjDHyxW+KtnTpSWdDpVzt+4EWyPpKGt00rVBOMNbfwPp3dLAudWI3X9f\nsvbq\r\n=ScqR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtO3vqzUEKKEFeO1Ld5jrNuZ4ddR0zwdlmYTz7h9zjYAiEAgKjCV3zwu9HvfLT9nQc7SYSKkZbjbertR8z4eNwQNMI="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0-alpha.2_1642770789243_0.2787349890471136"},"_hasShrinkwrap":false},"5.0.0-alpha.3":{"name":"react-firebase-hooks","version":"5.0.0-alpha.3","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-typescript2":"^0.31.1","rollup-plugin-uglify":"^6.0.4","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v3 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.4).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"0c7036875214c772280e1663f6aa4a35a31c4625","_id":"react-firebase-hooks@5.0.0-alpha.3","_npmVersion":"6.5.0","_nodeVersion":"14.16.1","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-xolVR/MZbOoP23U1AaziSlLM1QyJSlly8ZdGOyOlBchFMYx+1tQ164vljGCdkLNAG8CVz403HwDmxE7dLXUDHw==","shasum":"4caa19b6f78e5df80a74fd8bf50a2bed762158ba","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0-alpha.3.tgz","fileCount":91,"unpackedSize":408737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6rNwCRA9TVsSAnZWagAA0nUQAJwzCJt4frLBl7ZQxFfK\nTY20CcywNF9ZjrfmZrewUQz+6Wxtg7UuUtZ1LSjT381fwpDUMTNDrTU4CJjH\nQQNNmUEpr3SBGlRtYeUF/Nq3pdeqVo+fdOPMYWHIVQdmuANgZvhRg50jZ9sI\n08qE/d5tz+NYf4xCOz+zaV88NrdA+pMvpKMx3gkd/4kbBl1v6Saj3eTtH+wQ\nitawujnxH1zuEiLNHtreOat2YGhG+jp9h+qgg+OvjsiufF+KP2IYPg6tpX0+\ng6I0yuuE2IUn93T3k5no+ZrAf0BDtw7tOjk6plb1Tf9dCZhqzRuI04cHQ+tQ\nt/ec0ulrA2C43YzyL60XbYW7a5Bz4hwsC21BFEPP9cRpWnXmR6QuCcgScvJS\nudrzbfrWjgQ7CH4HwCQvhyiXfOjjAB8rnqbRkjjkmnswTgl+9bOmCNHDrvtN\nj587gzd1sdw1lMENcA0n8wZdkQdSiA94PumonVruYpX89yJZGzlKibbBhy8o\nJ2r1WMif/G7zKCbIxgW7R2tZNdPfY+nmiZ3wSSj/kLf/7kLu36jSqkCj2fH0\nqJyRU8bsyE9CArUdTC/cEbGHzISxzSlTdZc4ZOmJWZrO8a6njWrrm8kjMm8g\nhTu5IW/VyOnJpapHB8Wb4VEMYWbca96nWdWEkzlg7MXfRCOtJcJ/rJGKP7vw\nsY1w\r\n=dr5o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcN0y2p2kWSfzuZlPzc5BWeoWK1lHL8/aaYXJuhqLWVQIhAJKjMgnRwHUjFvRsOVYC91OdGHgBrkaCUycb3uVVNKY3"}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0-alpha.3_1642771312028_0.8430677145828751"},"_hasShrinkwrap":false},"5.0.0-alpha.4":{"name":"react-firebase-hooks","version":"5.0.0-alpha.4","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-typescript2":"^0.31.1","rollup-plugin-uglify":"^6.0.4","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v3 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.4).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"4bf7d07e95397ad4174177563011e2d071a5888e","_id":"react-firebase-hooks@5.0.0-alpha.4","_npmVersion":"6.5.0","_nodeVersion":"14.16.1","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-La1iGC50gjZ0RIlEpTVboXBe5yxZ9pSbM/VUyuvI6RZ2xLkpGf/rUEr7CYzUA3s2zrzAT3eAHE2PiEwDmxkV3Q==","shasum":"649962d8e92dc807c39f06e72aafb84d4e226b74","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0-alpha.4.tgz","fileCount":91,"unpackedSize":408914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6rhHCRA9TVsSAnZWagAA3JIP/RWHZKYtw2ryV0TyQvrR\nXX1anwk4I27hLRjFPdURHcT+YN7WSBRRLiDlKetUHZMn5DDtbjueQpo5bpl2\n/e0fPkN0qX9qtI13GlQfiPz/kVBKRHSTAAQIQaGc/PSaHuBFa8rJk9C+LAjk\nG4K7u+JtVJ6otRgzLtk94p3m6xnu47uCo3HwnoJSL13rBSNzBJJpcTyReGE9\na+2U6tjFkmBbq+MakTPGbGiv95X12JTj8X/EkR8wrXmtZO7JsBOYd1sZyUb8\nWv/vkYHIeM5zUpN+5ja6cbAA/LR51FunT3P0hAD4jzOKWGzpWFt3RF9BUVgw\natn99B/f3DCISGMq4s8M5sq4NIDl5QgkyBgHXr9LG4P9I05YhpIUaswC0EXX\n7gabjPKHGPn1rwt+ntOkBb70XqLabULHLAlf9c/B1GjqkWyzXjRzjo0/8517\nOxQVtvWl8oURVhAdIP+WmNf8cWCj78juioSVWRbyU3Al09povr0pitieeUld\n0mb8FnuoBh20TkcLyVb6U9/Up4ywDdFhATaGIhYbtfIIbBbKHTqypm0I2Xks\nPIMqSAqQ5cpLzBbDDg8ipibDy+aKFkFFWLZIugPPj/nQgRGI+JQEq3jBuyog\nFhjUzKwD8i1XR37PBSts6atjzX6xMFfsiWoOSVYGZdtMeNBvhrzaKYpFxaLy\nJ+2o\r\n=SRyz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENW7qjBFnADsat+z8ybkHGYjeIXah/UnHarlbvpOSK3AiEAjL4D6BZSR+HRpmrDprtvkk7ZUTK3H1s0q7Jkqt2KX/M="}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0-alpha.4_1642772551760_0.7845802506762396"},"_hasShrinkwrap":false},"5.0.0-alpha.5":{"name":"react-firebase-hooks","version":"5.0.0-alpha.5","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-typescript2":"^0.31.1","rollup-plugin-uglify":"^6.0.4","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v3 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.4).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"390fa340ec1466ac3f0687cefea355a8d8782409","_id":"react-firebase-hooks@5.0.0-alpha.5","_npmVersion":"6.5.0","_nodeVersion":"14.16.1","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-L4MyEhbCEL4M2vXKwGX2S7OgRkvZvLnorHGUFUTAXkAYnP0oahWl5iO8H45ci6Xi7c7IuwNT4ZCbDJemDZfl+A==","shasum":"c10c38ca4b869cf355916435df3efe7f9ca1fcf4","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0-alpha.5.tgz","fileCount":91,"unpackedSize":409903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6r/JCRA9TVsSAnZWagAA+XsP/Ap8aYGXRZeS1LyaB58g\nT0c9njTM/CUrqinulRjgSA4VX1iQqIsdZboj9pTo6pyQHAfYjLEz1GQ75zMx\nFXjHbiM6C8VImUNDElpGywPNwg/lkOaEUI2vdJff6L2LdkalY+cbOi1EUPap\nTBMpAKcc85G9H3IWrx0vJvtZ6CzXZg+vi0gUHOde3U6HfrYH+urPlLoIjxPp\n/Ml55tLDFuShzHdQFcQ6134qXWyteBiNXY6Q026SZpLC9pfqG9hXzYvrRE11\nwJ9prJ8Qb+j/Zke8a6HcJk1mav3YqsHHFzr1TbSAig7nk+L7xWx/0nj8yshh\n56kuVZJfJLqT8c75tHgDNAZMeipMiP2laJxUAJ6l2VBElgruI+fs+lbfQ8Yc\nXOsDTTRXIeWiU4sMLnL4P67yGN9aYxkkqNBu1bBOvJjYV3lAOU4cb3jsuQji\nSAvGMGWkBuyMvRYU2uFRvjAetlHtw2DfvWbhlbejKiigQ2h9UnceqKGFYLVW\nsamEej6ActzYeHw/7AqA9geEBun0RlUA14PCsT1YPaGqsYLvm4nBA111m39t\nZAg15bWkK6VlLo99MB0lPC2yYuj59EhX567aApCO/eeOwz8BD/xPYPyW80sA\nvRQYLA1JXz31rWqyV0MxhDDa1DYa7X3Rkds7kM6CIvzvOOJFDq2tU/11EsnW\nAsCq\r\n=wlyA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBt50k94yJHSpD6i/EirMDpML1tLlsAelcajrnT+KDCYAiB5UFdcWmhfFlPCTXizCwSJU4WAIXxbXWzHRmbQMbkAdA=="}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0-alpha.5_1642774472554_0.9949071469118711"},"_hasShrinkwrap":false},"5.0.0-alpha.6":{"name":"react-firebase-hooks","version":"5.0.0-alpha.6","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-typescript2":"^0.31.1","rollup-plugin-uglify":"^6.0.4","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v3 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.4).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"8746c2300b371b9ded5db5af2c35c3d1a51a7255","_id":"react-firebase-hooks@5.0.0-alpha.6","_npmVersion":"6.5.0","_nodeVersion":"14.16.1","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-O5Ua30LeqKqRIGJLKGL5uvQt583zcZQvFVeLfxvjINWei6b7FpjWxocwe/G3zhXVI8Nas+HUhPguE/+cz1/qLQ==","shasum":"93d9eb396aa2dd9b154cb342856538f7f7e86929","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0-alpha.6.tgz","fileCount":92,"unpackedSize":438915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6sXTCRA9TVsSAnZWagAANgoP/jspSpmQej/kSYMAs1Gy\n+HUzBZQazv4gTpyuj0Ws0hemsRpnZ3BH+SmBIn7O+UZiXLuOwdq3P0Reh8sY\ntkJgG+3kx1Ue5327Em7HJpptEhyYhysE0ydw9gPNtOjAR/V4QVXq3d85vRXj\naO/z0AA4v3uvVWadUJK4F81mXj0OQywH/ZIE/Mh3oe0KGNds7gjPGmR7bL4t\nB6Y5EBIlDJB49cFayXBzs2myaL4Bw+Kg6AM8/7vx4oPrAPfVpREZSoImsSM6\n5qpkQtDymRQHWLaTKV85vwrUtpWx/G9iSkxXdOWp1LhEQacS/iKkOnrMdIo+\ncATYrZMkML5l1SNW8dOkeRAHYH0ZO/l1n6DeQ520lwfBpbTM+hXmB+XPLI1H\nAOIuPQ7rbSDRa/LgDXLRlPENkPk5mrGNRR4ewpCuiriEIcevIwH6ZrMyOv+K\nxv8Bd9MtCo98xtw2mLaAJtW09HU0i8zP/cVoAYt1l6B1dtYxW4RQXwSADOB/\ntwUXPufqhr/Cqj0grKSeg9ZbaI6aOL/Lgf1oOLNXOC3a1E6U2JJggRPBCSB6\nbkPA5Z4wJTtzAYjS8pZZgqXBGwrlucTbfsvo+h46Za443jGRwmsJnx9+wSr+\nU4Qu9SaZ39uZl9Pb6P8srUsJUYFwBUCeM50AP9mA5guuDwt6gPDFt8l2O2k9\nUAtW\r\n=mKK6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ9E8eFMphAkW7fujAZeVPPd9mBhhPYvAR6nm+7BrJHgIhAMvV3cxiIYJZRyVVlTwObkD4bEbcLcHqgjNN5ICgRomR"}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0-alpha.6_1642776019250_0.3303099679473396"},"_hasShrinkwrap":false},"5.0.0-alpha.7":{"name":"react-firebase-hooks","version":"5.0.0-alpha.7","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-typescript2":"^0.31.1","rollup-plugin-uglify":"^6.0.4","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v3 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.4).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"8746c2300b371b9ded5db5af2c35c3d1a51a7255","_id":"react-firebase-hooks@5.0.0-alpha.7","_npmVersion":"6.5.0","_nodeVersion":"14.16.1","_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"dist":{"integrity":"sha512-yNAbb9N+Oz6kDDDmuryGBw7C1eIkyQUfIOY0KsV6oEpYeGdNBKtcg4WOhddht5VcH7AEpet5tkjiXXo/6r00FA==","shasum":"0160fd367e4d37c41036ca43ba359a4d1e8e184f","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0-alpha.7.tgz","fileCount":92,"unpackedSize":438899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6swICRA9TVsSAnZWagAAyZgP/RIqiZAcB3HZdaD0rSjy\n1COqy44xgQhSqM5hSetK30vUIsOmV5++H3xT9PPU8o9VuYWK5zYCk8XHR1xX\nB9+MOwylxVFk/tGpsUcdFGMrPOFLxYKP5y66eN32in4HpQbcXlwVmC030w6g\nEPo6X+c3dOEjbHU/UmJVfJadl7wIRB2MlkUtQmn3f1NEwNB06RsF7KzLoPA4\nndcuGP8u2oBeBcoPxydY35YHiHKv9SQhSzWyXaxhWvOMAu5Q9aqJ4M2H9lHb\nZzDWl/4a6rTHWsP3CsMXGVOVD9/55cSYPKS1pd7Fsi5Zo00X2ivfSXCeNx1v\nHO4QrTvSCwZFvrHH62G0Wd8jqe8s3CwPifTIVTUKQ6LncQIIi6hLCcCPY6sl\n/bnKu/LUmfbTUDAYtirPyCiZpJQ5ZhvQuPWe6iKyOG80QoCIbSr55iu2zMyY\n8GsCO8+k74t2Hao3eVZ84cxSiyiMCR1yirzHUO1Hr+bz3JDqg5X+crf+Oz1H\n1le60+zGwsaFwG0735o+hA+dseqgGL5SY+8XS5mPhQyATJwmxsW0wXtKJmlv\nTM1fYavB/3NouazLoPpVKbBuI5ApyIcJAhIqXlp/Ot6K9lYP1W7MJUBGNqNk\n3sfneXQCvlEQSZBLNZhaYUkSCrOM++ngqP30MbAM67wYw9AOuelBqsQ/CgXU\nWx5R\r\n=2TxM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpRYPbVT+xoP/D3BqqxIrEFMPMBjrGhf0o+2YcpKzxFwIgWVYfnHfVA/lShKztlgBkj9PN5f9DgatYuIZ6oQj3aZk="}]},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0-alpha.7_1642777608329_0.28976443698042864"},"_hasShrinkwrap":false},"5.0.0":{"name":"react-firebase-hooks","version":"5.0.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","gitHead":"70cf3fc12cdc1bc7842526868eea09b329e13c77","_id":"react-firebase-hooks@5.0.0","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-kfsUCAQTE4vHVaSKFA4WDTo0bC3keLTVccLha3m0CW7MnW2L4U7RCiHc5F8YY5H0X9eRsS86zzzkW1SvGBgwMg==","shasum":"039acec4647a105f3d31940cc7078836246fd7b4","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.0.tgz","fileCount":92,"unpackedSize":449383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6tKGCRA9TVsSAnZWagAAJJ4P/RQXMwIt0fqKDDnGMb69\ntlMWJgLakvYDeOI4U2lZkjv0P5I4Yk+MJ5gLqiP9obd+iZ8iJQ8e1Tngxuyj\neE3oWqMc5Dpwrvl/zVuDrbhSqsTOhLO6Tzwk/8g6ffkLkVGYxF5/4Li7LDqc\nKOgaStdXySTuRibnJdWbCEiwKW58PT+RlOXdI7qFJTDUvSfFkKR6rhMVKlH8\nBhRvDU5mSrXJnW+sgyGaAogOAVICHzMqkht6/SLAVivB1OdU6Zncsbo4pe6X\nXKuyqo5OsB2YDyEDPqxQKP9CD14nFQQqS+CqUlC0RYC/q917Nw+Ac1yNrOuh\nZy8mPlyWOp5wD7/w9ot6bRLpsEWzxvIuj1yCpIUtbjgXSAw5iGPNqxbNRImo\npmyw1hSTVPg2dD/R2md4ngUMUSaUGPX863dhjVMv/N38Z8SVdPpRwfMaVf1k\nL1O+LKRS+xpaN+ingtLOBso6NGGo4FYukIPLM2Gd7+RdxcnDXhOv4KhwVNRt\nMxRPlzVP5TrhQ4ze+D+s8GUz+Mmx/BJtqGt67A+SgJ6091ZNlv6k839sZKLf\njoRj7nUzllMD3T9Yquvg5WsrKYTgBodvy8Chz5UhnyVH0IakLhegE20xGXyx\npYNw9BQdRHhP6bSV6WDXP62rWad8Ax2OGY+HFg8N8P9OzdBlMdCXOCCMxHSG\nRm6w\r\n=buZc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFnZFnft7mu3ov3FTTO9DMPA/R1cAPufQp4jxPq/wmmXAiEAp5Jo1BY3+rTNyQk+gCFJWqJOQOWIMIh4wUcVILZoFJU="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.0_1642779270211_0.1799258592646933"},"_hasShrinkwrap":false},"5.0.1":{"name":"react-firebase-hooks","version":"5.0.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"9.1.0","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","gitHead":"bc1cbd45622d54d097f19c14d3260531ba11d56b","_id":"react-firebase-hooks@5.0.1","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Db1QIjm3BavgzODCk/FoC5UfF/SjY0ATcXYACqkOFd+rzUL14PhytfTs405oZWgDMEGvyJ0B3+oMbp2r3/BG7w==","shasum":"5a3769b07b81436b8976e69909ab252da0b1d7d5","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.1.tgz","fileCount":92,"unpackedSize":448638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9/RBCRA9TVsSAnZWagAA0YsP/1fhOrh2bf2PNr/DF2Eh\nhX7ISZyC/7fo+iWeSU9SYw6A/9cnYIjZsW+GTRq39ARP9S0Qfrkxs/udiKGc\nEnsCAb5e5aVasnaK2DD0RhOZhKyoXYre5v/txJi2LbTewOS5hRG3ZSfktTaY\nUsWWPtQnqsYKcPWclXtnTAytKV/DTQxoi1L5VBdS93wypw9+h93A48bKFMfd\nTYxfFMQVbgop1zqmDqH8aVzqrNcEXvddHChv3dD3v6BHTO9t8lRQ77jrkk/H\nSNtjF5NlfOyucCqt3R3642P0z6OJYwQw5FQbQRxqsQi9iS8cMbE2ZYrn0NiU\ntYpz7KA0xSmFXmblSERVdWNmcgEYEW+49LJPuPY+Ed4yBQWb22Wv6ZstDOEb\ndrW5ZCaGiAbyjQLab8kbvGR5zVmGrVyK9tgSFvvmnTIhjrgEXyrUQ0GzU2+3\n0wmqAr2mlPyIGl5qyWbn4eDKT6exHbl1hLH1unxFjpBBhGs/UsFsD9mrX3ee\n4A6BACINdcO++a9BDMYpiYgg7qVWwmbKDvlAiPakMn9Kb957EPMC3lD4npLV\nLABQ2mvq2/dxuSCEptPBBnH833KgT+JSa+Pzs5QSsrKk8YRFQ0B4rBWb9GVS\n4SWCBbw9HFdiqq3JOeNmLqxyDDVxmeUUnzGAAsOKfNj0eVZA1noTqI+43nnX\nUdhk\r\n=LQ30\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5fi/w3rWg+7UN1pe2CPn2Y3odvXWCzZkwUHr39qslcAiBlF9/Xzgd3+P6DQ4k3x9S7x5FvD/DlXiI5vdTuk8qvQQ=="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.1_1643639873519_0.13776336878714446"},"_hasShrinkwrap":false},"5.0.2":{"name":"react-firebase-hooks","version":"5.0.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"^9.6.5","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","gitHead":"809c53c1f639ff3a5ea880612f2c177bb24babe4","_id":"react-firebase-hooks@5.0.2","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-9Do3z5nvYxIMWh+cuHGL7Pzwh+C1PlGWZPyS1Gju6136rjuYbt6l9PR6+SkEWHxTKbRJEEY55sKtp+ZAWXajBQ==","shasum":"f1f6c41052226d4d1d7323667dfae1dfa5cc2502","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.2.tgz","fileCount":92,"unpackedSize":448464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/T8ZCRA9TVsSAnZWagAAX0UP/2R8b59554Gb7Qwddo0B\n/v9IX+lu6N38ymhLsXrMGWJx6GjieTnb5+kmt5QjPBdAh1TjSWAKNjpbJJuS\n6AoWDSSxiTjojIS1ekG6lETZJF2gy1NwTmZQj0sDYkEjOwfE1Zc5io6L+4yQ\nIs75majkhFUUNcvvGmh9Jxs7Vqp86VYrcuYesO/eAOeXZPEM0i+3NjwpU1Gs\n9dAKa0DlwdV8RGAUA8JnjzoUJjlqS67Oo3ZGVQakq8VPLJ21Pr5P+Q89od09\nx//30mDtRttjiT8s1RSNuMQFwYWwWDHlnO5QE0o7cKzyQ4tHqX2B1fmaiJuz\nukfSPRuyqUfFmtzR/YwkGuow3pPUZX/pRtxzKM9T00rG+icm7NVPpoDh6uSv\nsRIYGPUdB7ecKz0+mvanXZnGRvfwnGuEmK7SoSaH9sjsd7C+5QTGcoQbf+rm\nJ3wyvgIPdJPfeiVCKViGDZuBFxU6eI8AlqJvQ3gApoXwAWfMFZW6YvOYdM1f\nBub1xMNcIxToXkDRA9A0a3Fmu6vZa0Fahb2wCjHFH8VbzwD2TOdm4fh4bH/z\nUbnvmqxzZyW1JMqbriqHk35EwJbLkUgrp9/aC5Gnzksc57nLpt6EOEBPaaSh\nKqxe16HSaxSheeaanv3y9T0vgtya8rD8+9JZXPeMcTa02TBiloUIWxzaN2fS\nQoy0\r\n=iZF4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCF4/5w0KsGAzUwIWtG8HvHspLK2xWKzasN2FmdY5eLVAIgNvYx5Ub4UfpeNUr56Qg9uHbdW9UGq0WiZ9JaS9Lx6UY="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.2_1643986712963_0.44193947154408475"},"_hasShrinkwrap":false},"5.0.3":{"name":"react-firebase-hooks","version":"5.0.3","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w"},"main":"dist/index.cjs.js","module":"dist/index.esm.js","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@types/react":"^17.0.0","firebase":"^9.6.5","path":"^0.12.7","prettier":"2.2.1","react":"^17.0.1","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"react":">= 16.8.0","firebase":">= 9.0.0"},"typings":"index.d.ts","gitHead":"edab3f3f3b5ec01c8aafcc6096755dfcc69e4408","_id":"react-firebase-hooks@5.0.3","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-0+V2XwInZJNjW8B2cm+U21Hlv4xnp/1tJqIoDg2rjyWzKTQ9VoLPQ9PAt+fMqPumjLz5uCIREY7YqGSSjc439Q==","shasum":"3125a382d6b72deee776fe1df9e0c8173cf36d5d","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.0.3.tgz","fileCount":86,"unpackedSize":400821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFifyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZoA//bohJbbZiRaxGpU4zeN8HiMQpFwrc8QgR+raaiDy3nx5sHyLW\r\n5eNZsSHzjHoQib8g0Qe7qgk6mjwWQTJDd4Cau7kQEv0eTWjDhBQ02EPYESqh\r\nDIVfWLkkLqqXU4BFVtLTFNQjV8IzS8L9gCNpBYc1Xg5o5AdY1eqBn+pq6I9g\r\ne943yIONE1eF+sQpvItSqz+7wOJq3BUl0Rzzr1S8WuExgjivIGuy2VYpMu9N\r\nS1BlaTO5Zvr5nhENTi8VIooVBS+KzPcI3G2NOSoVqGzyyNibEZl4By4B6Cj6\r\naqCpGupjQeQQrjTHO/kBYDY+s7ztwVZdYLcrNO+FMtUUIbBgZI67xWAWNteX\r\nv94iHct2KJfLJ3lZEnaktBE2XsMc5Hf3d9pUjN80wGjEkPfG6SfZPxQYFOaT\r\nn2KAJGG32IQnLl6/US8rCd/jooWtzAE3GtaaU7UM6tgU9aD0UxVz3YpaTr9p\r\nM9y2hsXoDowbXhafBAVT0zfIHXSzFxLqhRiWLy2/95zrklLQ2hBd3dgSGbQD\r\naxq/csYWYmTsp+aimSHLM+z7TFrUM+A5FuYAa3+yhzkv7tXmrXsLkAepIaEl\r\n4JumENlvc9ZfCfo03oi9shaq2hKwKWHUA4H36wd9oriJ/l1Uj9XqY6Bh/iD8\r\n4hDkghK84wO53ILBOdGpUdi8hzDSTu6/ehg=\r\n=jgTf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCF1iyTrAH/65cd7OxgKX1PnxiUwol1A2yhwnbAQK7IvAIgNZvwOQCzkR5v7dGYQkqqy0kfXYY5AKYI7P1tD12W3f4="}]},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.0.3_1645619186533_0.6914401038297222"},"_hasShrinkwrap":false},"5.1.0-alpha.0":{"name":"react-firebase-hooks","version":"5.1.0-alpha.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-rnhJ7F1IpJ7kcdOZR/cjtiQ6aQwt768K2EEO4J6biVWF+3ovl0YBMVf0c6d7nEYF/l5tLz73jPQW4EWkpuPY8g==","shasum":"a839ed147639855f71fae731d08e59bd9f3634ab","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.0.tgz","fileCount":92,"unpackedSize":426639,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJsr6D1ulxS2uxxhBEn41v7p4IheKEqCcYX5BnmI4vcAiBRv6IQq1bLmeDL0Fsu5tZxxPfvQx0KLLP5IRDYPJtiFg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjajPqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/jQ//bDfjEI3W9DC/MKErcT6rpS/tu5rWAmpucBq8YNWMj6ZFldby\r\nLtuU1oBCGV2tLV/Q1q3k/hldqWKcJ0i8mGguuJrc9fpgbX/aloLEqbeXJETx\r\ncmU+hOCDuh5VmduRQ/pgQxQTXxLQ0le5Ig5w5quqd/VZA6FnlMWRE03oYfZG\r\nvLYMliJY/lObMHUZa8U1A3ObhUg52UFnlEA1/vJpXjtfcE+vNEQ5NV3o9jId\r\nXahgunz5fJZ5Vo7BYesU+VNR2UlBiPtOcp3zG37LmZDHD/zlSo3NzWhoKLuC\r\n74G1t3VsbgcsVsYoIGQ+EtQYdarWMHToLfGTQq8O1NuBlc+2ZaXNgg/3rJsG\r\nSJ4vaupJmatAeHLo1cZ9J7z6TwIpqFJpirlOyDGPRjv4wxl9Tx2ncbMDg2O4\r\nF8D2/XzdCPMEnbO74Z7Vf14x/qBls8xEbq2ECU1I7eRIL8SaQKbt/5H5C2AW\r\nt9859o2M/DfbIsQwyitY5M8qtQX/9OvgPjJRe4lUou4NrOBrvFfneHhCSoLM\r\nxIGDgp6tjGn0j7mbSn8rRb6/uJxPESFV/Svzf5LSKdjpQkeKCtz7C+yDPsjF\r\ns10qU9SNFJ53HyL/VbANYwdPUWZproTMskYL+xokbpMomrOsRhrqD2p9PdXU\r\nn+XjoKCqH59M7/GmCuMiS2QJ3MZRBslFIHU=\r\n=ub1/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.0_1667904490368_0.03442305830382231"},"_hasShrinkwrap":false},"5.1.0-alpha.1":{"name":"react-firebase-hooks","version":"5.1.0-alpha.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-uxQikra4+tobP8pnnfY5BjeMaGZZRkRGHkLA2Y4Umw+2xZ39UAS6mv0EiLuaEU9AwUDY8Gqer2ZaEECv2tHHWA==","shasum":"91f8af54d1149f3108a4bc1389985ef1233116ac","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.1.tgz","fileCount":92,"unpackedSize":426639,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDcFOTOIvq3clvSNAXOaUkajtnrPsSEK6L5MmBhU5Vg4AiA6sVvPqbdfz/6/SOZ11z/MR2/w0vESC3zbq3F92nEzcw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjajQYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEug//Vfh3QcwM9ygKvQAe1Q+eZXF23N2WPiQNm2laxXmmDKNNBlvp\r\n80W6FYsXAjOgJJwwI2ntQ/PvSmV8dUujRB4ElcW7oqC+hlK2qfxfkvg4iPxL\r\niqZi1xuZhRF0NpS5JmUyWN9gwizu8EP+U/wkEoSZ38LNu0ilxXS72YlvE7a0\r\nzzkqqZ9+58+/pGkNXnGt4huAlVRYRgnvwBI0Iv4GXuwDpMbxoBsncoLEMYpH\r\nDZP3vr0x0IzFHmelFx97c1Qb91HfvQTJt48EPZBIOmmc5Emlqu717Yq04JQj\r\neaobIMf0YxcZ5ZWVG9CxsQ99nxsbdsQziijl4fbQz20t4B0kv7Eh098oby7i\r\nKKd79OnUCKc5cuZjX3UB6qi5O3rdnjUWi7ylmAg87o5QSy6gBu3Lkehbgjmg\r\nG7xmLQIHbznE8YS7qJU/gmhYgmRKqg0PKVQnzvI1jf6MALCDpQUbDS+U8mzj\r\nq/39YiR4nMlufO28kMh9oxeeQMGGfF5KT3r9ckGkQ6mMffa0GFdR25hnwUpt\r\nC7U5t3z6/vSTZHIwj80aaPjdykntSgI546Y1yxW3ED15PN3779T4DjzGcwR0\r\nQiIRsOARZLBFUjQJmaFpPYF8Moxvs/EW3TRkTJSPcKb3mCBdcTeaWrv88Cpa\r\nd7cS83J/McppaNZoYhukaxcl+S/3ikkUcjs=\r\n=AOJw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.1_1667904536603_0.07504889951477756"},"_hasShrinkwrap":false},"5.1.0-alpha.2":{"name":"react-firebase-hooks","version":"5.1.0-alpha.2","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.2","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-uXxymfzYmdMAT36i6fJNd2K3Ek0Zen5MnBZ6vFitbed0pRRPNl9doJ+alw48XdBlSe4OXyLRsSgPVX3YwPYdHQ==","shasum":"9ef5bd197e279f9112de3ae866eb98eb0ed74e90","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.2.tgz","fileCount":92,"unpackedSize":426639,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkv1aPbYeJiL8+FviswPa1XJhVEIBZ1C6e1DY4Jcv8/AiEApJeucfAXXrVBQaJ+ErfhaOYOZ+7EUUl9i7CorC/sVeQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaodEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLqg/+KUNuymquJ3U02qf3o9/N4cpEuZEQe8QkHi+QaC92WQJFgfGT\r\nEIO1P6an44l5bO8sp2QAEzxI0GcNQ0xOKY6i45HnfVllM4TT19AM/neGp0Sh\r\n0fYH2tdN3Fw4UGRWEsOF6gOa0LqlRUbEJGx9lZZMCB5tqMihwhilhPfD+qqn\r\nXPv4sNrs/TpY7wUBAWC3Ro7Vdg5+LwA1rJ7q6KkPhWpFR64Hl8nqM+ebNkRx\r\ne88XZUKl67Mx7LsUQ6w/EicV8P7UOqpuIYHZs0377VynVK9Hfk7utvDG2V2Z\r\ndeC+EGDcZBP1TVDEQaXexQsX7oVRhI+Ww2bYdd8k0oeOcbPaNY76eAPaVJSQ\r\n/KothdoE5wraZ0PFRj28y16FLCREkwMTRTj2FuVVePYkEdACEdazLlwLCCRA\r\nI2wwmlJswxDXHDHDi8G+f+T4Mb8l02/LCIy3Q93v0tOV/MscC6x6U3X1slQ8\r\n5G8OZOXg6MAY/vFBgR8uT/iXCECcNI/dsbd0rePQQhK6NL4e7RHmAS8mzb4k\r\nDfRMOOfonTWKX7TpaNqIp4bWacQ9LuaPr6z6QgV1vDUusH3/TL7d8oAC3H02\r\nhNy3xahVNVguLvK9KL8r5M4NKoJsLvSlth7A66BumAK243WIWeH8ZZAqSL9n\r\nYq+sYwqE7Bn4Q02ujUEUBSgX3XBZ/pdXCj0=\r\n=GL47\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.2_1667925828276_0.6878417838856805"},"_hasShrinkwrap":false},"5.1.0-alpha.3":{"name":"react-firebase-hooks","version":"5.1.0-alpha.3","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.3","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-UHULY6HqLAaGb2fBG6bi2Gye4oUOsuGXkb/Z/u8gzIlHqgayv/uCF3diK4PgB1NN6XG7aonefeOKARkpY8eI7A==","shasum":"59e02f38db8665a53822bcdc51ee32491c823204","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.3.tgz","fileCount":92,"unpackedSize":426639,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl5cVQJBnIyrWNwTsnbNluOdkyfC534PtGobxZShkwSQIgGHNs5Ws+6g9rWmd7p75Sw2O2eq6UMx3thL/KbFtfQho="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaogZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWuQ//UZWbORuzu0c0BXlcjgtrI3a91z9Gea9VJPqKnqam9wIxvm9Z\r\nLbrpft/bRWExZTNb4Ycd0aOdseBJnl/YQx3PARgCHeeOejreFft0iJSjDa6y\r\nSVcuvKIdIsUtohn6kNVK4AdPlD/hHlymMZOtT1HwxEJ31MQDgO5DA33uEPLI\r\nKf2llatpY4ScdbwUIVi7EswRCFR0/4yXiwHgVnZCftHF138P6CMxRXqjaVyD\r\nwWDOmaUxius+FhD2bzbsY4hWpz5MG7JzkEBgJ+Rbz+Y8oThPOj/TjF+DD1Ke\r\nlYWs3IgAb3G3X1RGjreuy+UW2RZ9sg72eCKkel/cYADD8/5RtIwWwtW1FVMo\r\nZvyFD09tpiFkwZk2FfskeVLvJctcM7LqQxHuT1W4PGEd8vQesYbKUHSzQCNR\r\nSuSvBxKgLRbQSyaYA4/XlkIE3thAQV55RWCJHS/510HTucInrHQINW2g9Ezs\r\nK2WxkBKI4h6hAaTJUpmJnofiU8HzeuRnUdHXfTkfkISPd4rm//iene6eEkXX\r\n7I3NCsq9EhQDf5D/Uu25+xZ+f3UF7lpdVVBmOQ67mep+BN2EWGKuVx9hXOIT\r\nrFs0qaek2Je4ta6/F3p/jGYDDLUgmkPhJlvriyblQuWembA8toRAqN7DDW2D\r\n2nb8/Q8Iy6CQeIC2j+I1XTtOJC35jWGXZpk=\r\n=rNh7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.3_1667926040977_0.8908483860481138"},"_hasShrinkwrap":false},"5.1.0-alpha.4":{"name":"react-firebase-hooks","version":"5.1.0-alpha.4","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.4","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-tRex99dlVn97CBnc87lUaFf0gzU6JevPUWLfRm+6FW4B4JLgvO9nvBTqwn2VpzoiNee5jyNmVPn8mMw9QPfllg==","shasum":"9220f06edb4c3a2b47f5acb7f88f3bd7a7313c41","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.4.tgz","fileCount":92,"unpackedSize":427019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEI/n6cvEmoV/id0Rvq0NO4VzrG8AGjJQv7bnf1lIbGsAiEAnFuaikW93Cb0Op6VwEMdjAxcwWY45GljVtA+OUElvb4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaohwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjNxAAhigiVDzM6rb7NwfxDjgIkBNETzlQmyg669hmIlg5Yhov7T90\r\n7RqIk/DhcYpn3xPzXipu6UXziBAGg8gFhxxg1Cj1nH44PPpAcb3yf9Y3EvlL\r\nTX6cMZtlwbjypzmOaQw4fuGznsghDoTAKGI2+WKgn15irQUoZV7ukB+K12Vy\r\n76UOov9M8RdPeDyGhO2sYJQAjC/sZTiC6o07Z/VLv+bSbgTxBESuOOubN2Et\r\nM94FyzLObMutkMQKJHquIgfKGDQmk6BzP+1zGgjUwXNVulSka6Lpd9iiJv3n\r\n0d0kPqw01ooSrPwfIjotqRfYZxcGeLImObUrS4/yvsMwi5yPbpCEYOfyGvWY\r\nMlQINtlg3nZNoZqa4OuADV3U9f5gLP9v9kOw5jpKW2AII3NxBI8rGiEp0j3d\r\n61JTSF2IFnPvC4Pv2qDcHSqeu11AzwgaLw2CJyoJWV8T6La0Ah7ASO4oGERb\r\nAbe1TF2l8fy2lrG6nq8zmZEGmDPANFTBxRz/mcGGCgLuwpBfoC7o3Nw+dIwy\r\n+tdhvlgeJRwXBWQQAQ0P8VIRNyhFQ2Iut6G6JszDgvV8Ig25V7gA8Nu2vukJ\r\n60Tuy1Ktel0r0uwNb+slcK2hR5ScmVHTTe1ZJslniEqUo0HUr9n7G/OG9O15\r\nQTzD+TGwc3Oceq3BPFhk9MyU45uKVlAeRP4=\r\n=t6Ot\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.4_1667926127949_0.5639180008341618"},"_hasShrinkwrap":false},"5.1.0-alpha.5":{"name":"react-firebase-hooks","version":"5.1.0-alpha.5","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.5","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ZLTmKQdPKwlhQe4HPTQ6saJqzZynQMncXMYxY23l3JGf//fE7lG87Kez7EvHKvYAUf0x/Ijj66ElhiIkl0ElUw==","shasum":"4f965b5bed0e72b4480ff39c841709da1f75897e","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.5.tgz","fileCount":92,"unpackedSize":426682,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+lCU8pSjUod06Q9cjUVAPV5GLl2g3kFs6Hvxy8+Go4QIgAl1m5hiR9dk2xih9azkbHnE8Of3HpfANRGqe94mLxpE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaol4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpO/w/8C83AOAWwDtyREYfz8knfa2qJbe0V0w3RvsKCxfGgTZgZjCmc\r\nOcLX+LVbkosWWDw12zZA5UWdc5vr7zi0/xbbQwF4zwUMv+gwavp8rQNwSRqO\r\nrRsFjcjf7YZN09B/MyptaMjvUodLj5ik9CI+8xqjQwF34q5joKxZtLDygWsq\r\nyh621Qfzl04QKGf2AMbWF2tzRvCkaTro8XS+bqkiVqBCHAGnMxbGTNxXCO1T\r\nQyfDS+SuCUj/3I8urrhO1KFkvawDAm1woTG9FtRuSyEJ9V2Ki5+vFZqgYaaN\r\ng9h3sZ6/pPsEqCMdnn623igv3l712W77vEgx+pxlHXavge3XNLxXb1IlfzMV\r\na8wvaw84fx1NMjKbHiGUe59dKwMFmOnw9E39q8KMtBSG2u+ihf4VwwCnF2PB\r\n1ZSwq+hxFIXqbmMgSj08XVKBsten0gNB19C24A4OgL7hVVrSz0ugPXd5X75k\r\nfJiI0T/snnUJ9lXFs+AwPps5bqPlu3NN0inT6r3iCbHbkxW4FzWr3cgObmtf\r\nr0F69lVmN96lSYmV7hu6BJ3nJyWsQAqym4pEiy/itSt/7I4XOA9rR6PxbCFT\r\ngtCXPAl8mGF3opt8lsgI1bdNqb2V819DGeEoWDJIYyk5jo+82FNOqwW3FfCN\r\nJFPl1Q/g3pPkBq9uC+7WI3CHRFunBwwAVbA=\r\n=RFoV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.5_1667926392287_0.17266667126021074"},"_hasShrinkwrap":false},"5.1.0-alpha.6":{"name":"react-firebase-hooks","version":"5.1.0-alpha.6","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.6","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-UH1g/BPWS/Ava/MYJOAHoe8hXCShYm5j1yCu9QNoEef6sLwSg/zl0KLdWX2iTsBMwggJaQzwbXCxxDthCo3d3Q==","shasum":"59a3b4c082f8556c93ba905074a1006072e7d782","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.6.tgz","fileCount":92,"unpackedSize":427468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICu+przscpJU06PkTMz9ka8f4/U4/4Z01jsP2NZ27NK3AiEAn9vlakMeD/kVXPJDJxnJX1lMgckC1t8hTS5eP/lsbUo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjao74ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrt5Q/9Edc1TQhUJ5CbWMyduSjEoGRUTGgM4+AzABklS91i31KYwaRb\r\nijYWcokUWztqIJOTAWZfyFDTy9RiATiHVhmRvoDZsG0EnNwXNBnhEqlPIBXL\r\nNMmyYOmx+WvUPH5EcKz86xvwccqo55ASsz9EPYFttMekNiRBFY7UsP1KIBsr\r\n0U1JZki9Bq78FuSrSMryoD1bIFB+PPOo8WWumIhULzpLF7RolZFQNIKNDw8N\r\nFbQOxZE3Zj7hUWh9VWZO6pFSyBFEgYMOg0vXDjSWpneDFdaUQM1P3v6mcaxb\r\nbPQWTtGB8P43dHW7qiAx+H1wBGrEKxN7sXHughLPlpr7hXh9fsw4brDFIEbc\r\nFQMX3MlTKpuDepORwF/XEA5mqh9zhlRteDNdMucQkBtel5N8tSyxkkld9Q9g\r\n6eyauKVUuRq9hL2nsOJtAtDJYVLHIPiHM/+mjUuACe9YY4yQCA9D7J0dnXvB\r\no4r2qtY0tTscWoP/g/gE0lYtRgAcqaiD/hrYHNbsuxtB7VqWiFfWbUIZohIj\r\nS5YlQIu8wVSwmhcuOubUtp7Vw4DRKJgibV7BO2cqXzHg6Bab8RMYdLC6ou57\r\nkemyFPjHwzNrs4w8LFekSvuYOPHg19pCbPMgePC6d85/z4qw5RdAP81jjWHu\r\nt8k9KhpolZobkDl4SArx0pjLECvqXwFywfc=\r\n=HMEi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.6_1667927800672_0.7507165533428211"},"_hasShrinkwrap":false},"5.1.0-alpha.7":{"name":"react-firebase-hooks","version":"5.1.0-alpha.7","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.7","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-URfoX2rGujf97HSsFFXD/7LIN+cMG29inyo4XVNhj6nlpbpdp3E7t5iET5d7FEOf/Ot1jomBockbgGaOpXVNKg==","shasum":"6772a2683c64b69825a29a1227b38beac2bc7a82","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.7.tgz","fileCount":92,"unpackedSize":427365,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKVqdhNqnV+krkb0bpX+PvAUNi003ZdgEsZbyP0qs0CAiA5IHfoweV2AJ66l8LwC5BJJ9IJ6Py2OoqscEStAosYQQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjao92ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFXg//ZsAOjNtlR6ziwIZnZQNg1LhymaO/np7DOonfS8UxkKjQCUnW\r\n0J5gme2T0x1swFNi5jcV0SgRKYGZr/UmVx1WBjvrMRUo9kjI6BzwnDzh9Uss\r\nuhL1ij5NVeTTE6K8PIniwfEzeFP4XCdCv8xAIlt6hf+8VeND7OOpchkMafZR\r\nRcE3AGL9x70q2nZ/+67E2+7dE+HNNUA8+VrJ2DVxOfBHKAhLzanvC5ySP9mp\r\neeiYOlSaFV8oeqUAHwMcseBzzFfu1qs/bRgsOhF8Yz4epk7EYGaCcPyLAWha\r\nQ/Ckm6/9pimrcZ0Ol0Ekw7axfvR4mWIfqbHQniIcc8493o/OBM17IVIC7YKn\r\n+dZ4WwNyvXdO10yfkUSsHWuNzoFAgY1lQ4enjgGifivgjXDDmaysh61+czg2\r\nqemnDsJsmpKFU/tED6yTIugAAHDWpEo5hTg/NDdAxgALPFJR4eW0XPUxgk2B\r\nwkizfeG78cAPWDy+30jKLLrtTzvQZEJYBDHYh5h7rpSLLcZ+F4snq8ahxqKL\r\n60OTX8oy1CGgUtfTXRcMrUAxZBTiEu0aZcWi8kuf+3FSJ93nO0g7LIvm3ubf\r\n6NRHGtbYQnYOoua9WGSJAU94nlT2OHitSaOQENyDQaKGKw3g3TvJUgYloJoe\r\nv8X9LZzFq/Klpl/ICmX2DqvDfIKCJARMBHk=\r\n=PAwb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.7_1667927925861_0.5734748213710714"},"_hasShrinkwrap":false},"5.1.0-alpha.8":{"name":"react-firebase-hooks","version":"5.1.0-alpha.8","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.8","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-x1uiTfkiP+jo0NjdmslLoPvvOWgNkh/wn3LUkzOFR8yyzBTVuG+N0pBGBxCFJViG8pargSeaSCr8Y2p8JluyWg==","shasum":"702c93a7a503c8920de36b7706a4639f3d604429","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.8.tgz","fileCount":92,"unpackedSize":427399,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHz28AuGdHwj+b4hZEQU7aqI94rAEmWvqvZhYNENyXMfAiBRk/uy9+i+jp4S0euOG6vWHj1jsEakOPyXEpqT46MWgg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja2pmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrM+w//cn0rYcUj2hAfZEHFC3jLp0nqawRwWbxDqintejDoZR88uuGY\r\nxL8y0Vss9DNJ04VvpLCIeExJNWso9DvYLC66Ib62JsQTsIWZ0knTBYCPiFuO\r\ngATS9uDXp8cenLN+zHJ9gp9UdZJ428l5A9i41mgLMxDw2K4iwjemF3hx+01j\r\nVQGOTX4cA4Nc06zgGhRjQWNNtqoEOIH9xjD6YaM2r8lv7bqC8LjFhoE81VMo\r\nWZZ0maETInZVOwFl7b4xVRPQdG0BQRWWMWUFs8dnm1wWJzvXLjvSLZoaAMJ3\r\nYCokONaqnvimLet0mTQ3rGekjHSaf/uyIIhwPot2Aj3G05zM8Kc7zlenMwWA\r\n5JWTYtIUFDbjE37ayNtObeidEuaJDH5PWpYdw63HCpJd6RW9tmDZrq0BGZjJ\r\nLcPmgeekfjDjLswp36CE/s0qZq0xjhQ41rfc1+MEKTi2A080juFiVeuPb9Bs\r\nQHzC/XrO25edqWjarrfhFd367vsihBXw3foRcIgTVHfvDOykSvbK4zpTmUTB\r\nnfZSiLjXb2lfAWbRzFWXvmlsMQR4CiMjiznNJz8+tHFR2Lc6rPRLxIXPAXsJ\r\nFaR1Mm1S8oVwBSr9iMtGENcrzMxjjDHRkI8DCEwUri07n8mgo4cIMJLvgfAZ\r\nyWwjoUYsZ9wRhCjJUMTsT/vxWvQt3nK4p08=\r\n=SyPa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.8_1667983974596_0.9687667616935542"},"_hasShrinkwrap":false},"5.1.0-alpha.9":{"name":"react-firebase-hooks","version":"5.1.0-alpha.9","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md","gitHead":"44b830d927fdf715e9b67be71115d7477927122d","_id":"react-firebase-hooks@5.1.0-alpha.9","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-CDsiIXkDirReS5og10Ekg4osJfzFp5Z3NGoqaTOE5EU7BVEhdhpNHFbpJSqf1q27Zs0nx4WO8/EW7DX3RA/kMw==","shasum":"e563216214e249e6ed0b644cc5cf98f0b40d597a","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0-alpha.9.tgz","fileCount":99,"unpackedSize":427734,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELy2xxGr6FCK+sMMh9XL6G6ENnrVdx93c24POOaRtP+AiEA9IcCrkC5iRTMq4IIz3AXVDTq7p1tWNv6+7JNkC6B6wM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja3XDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmot8w/+L/PY0qvBpL1EGAeM3o6dT6E+TMShhVWMVTM2j29Pq+ErVMZC\r\nj5h96K6FR+kfjw2rajE6sW88/aiG9KX0MU+BgwvR7Ae5aMzJ/0VWMKpbgx28\r\nW3zkqHbBFC0Mqv7qizmBfE9LwnnLS9dMxJe/ylGElYgeZt6awkITsj9SiIru\r\nfbeD19WGs0jcfsGFldnRb+GfKG4u5oft5kO0KF8jwwHtbqxgANhfDtTcWgUH\r\n8JNYeEMDfIubbJ80AwNB0NE7Pj4KKebcjT9qq98DNtK0mlYFtoiznwtxYMV0\r\nm4NaKufvpeSwKPUJ8RxfVceNkj3mIAdcKmbPD6bBdppRC2Mdx2Q2qaFlqupP\r\nPUBtdusWkzhbp36ygnQ/eSt9mx8elJ3i2WriBvx5POIMJj6O01+j84ePfDLE\r\nvKaxvqdYXkEhH7hh8xo2NajLw6sX+937DT2F1P5Kj9nCFdiIBOwMuF5/+N6g\r\nQ1A+UAREdC6WFItrTcr/qjizpKd9UC4+rMOA4NPULVIKdFzu/8xCOyAW1Sbm\r\ny30O+HPb332cwdDKD0BsWnlU8TRmq3oZYVptfM+4iVEdHjIpAgAYs8PiWUBi\r\n/SyF6srpX4jbq/mJgeeLbF3JqeEjbkth/CniRmc+Awv92ogg38M07aGRrzn0\r\n+FCfcuFXVwECvMh4NJu3ICGzlwf2eceNEOc=\r\n=9wkZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0-alpha.9_1667986883219_0.7040638223394105"},"_hasShrinkwrap":false},"5.1.0":{"name":"react-firebase-hooks","version":"5.1.0","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","gitHead":"593f47965709d4abf23029c1160bb834c9f825bc","_id":"react-firebase-hooks@5.1.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-R+2cRCNoA3pw3l9yI90up5/iVhNO3ZgRh+1PPBCj8nIZfcsZHLCktacRhXbzcKX0G47ldHXC9JLsFWOmjzvcxA==","shasum":"0f69c97c44eb155f1bdae009c8ffe4b712939a97","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.0.tgz","fileCount":99,"unpackedSize":427679,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7MfSig8jfLy+8SvZmotEPwXaCRQhUrmICcqazYtritQIgE/luINBpvvZcHr7VgjPNd06XQDeJqOwzeoGhpNJR7as="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja4ByACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrD3BAAjvSQKq1knfdz30kMrUcTLz6DEKmsr0xZACzaZ/ufls6WruYx\r\n5u7OzyFz116VnFp/EI48CxFzv6Irhue/sqOcXAXb6WZmGVEtgvLGeBdzLf3F\r\nefOM+liMmI/JlCSW6uB8ZaPzfvqXFNicByjrTIwIuvDlVa5C4zCusc57CsFa\r\n+hZUu9EcqeCW579K3lFIMNBit8kJvqGyawbaBldSrR8bTvn2C94szOPBlHkj\r\nfvoIGVaTJJYXpDpsTpL+abDYgSfgIuCPV1IH7PmIcvcJd345f2mq3DqbrHkr\r\nsvAHRy9+/NqgusKwHkKuZsSSYjrfasgNtW+eCrXWt4Bx9NidywTbH6KhGtQl\r\nHkcI9/HbkztbU3nTKei0oKFXjEGp69tpGZWSHNVRX5LZBUYwstJEpstoNcmb\r\nFk5n416ibHXboL65yRRMKHYxU6e+D2pfACtUoR3mI8EDpvgFdcX9ZAfBGNYl\r\n1Wg6hUNnajO/iyOZNUpPJ3tLwmYMmbXCQ/c5pdWb+/lxNuonHcSIsWfSc9aQ\r\npwR2+g7IeMm0KhvHtmd6Lgq/tP1X7tRT59zzphUwE9yBiTA9/AEVg2CO1mmC\r\nlBEl5Vhn8E3TxI/YSiD2Q1wcJIRiXEFNn6VolEllpVkJxMVFWc4ZZKdrKDQs\r\nBBbi4DJMb67du9vH9VUP2FEtvqsi54IgDvA=\r\n=Tz7D\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.0_1667989618396_0.5817355482537718"},"_hasShrinkwrap":false},"5.1.1":{"name":"react-firebase-hooks","version":"5.1.1","description":"React Hooks for Firebase","author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"license":"Apache-2.0","homepage":"https://github.com/csfrequency/react-firebase-hooks","bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"scripts":{"build":"npm run clean && rollup -c","clean":"rimraf ./dist ./auth/dist ./auth/*.d.ts ./database/dist ./database/*.d.ts ./firestore/dist ./firestore/*.d.ts ./storage/dist ./storage/*.d.ts ./util/*.d.ts","dev":"npm run clean && rollup -c -w","prepublish":"npm run build","prettier":"prettier --check .","start":"rollup -c -w","test:ci":"firebase emulators:exec 'npx jest --forceExit'"},"devDependencies":{"@babel/core":"^7.19.6","@babel/node":"^7.20.0","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.2","@testing-library/react":"^12","@testing-library/react-hooks":"^8.0.1","@types/jest":"^29.2.1","@types/react":"^17.0.0","babel-jest":"^29.2.2","firebase":"^9.13.0","firebase-tools":"^11.16.0","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","path":"^0.12.7","prettier":"2.2.1","react":"^17","react-test-renderer":"^17","rimraf":"^2.6.2","rollup":"^2.63.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{"firebase":">= 9.0.0","react":">= 16.8.0"},"typings":"index.d.ts","gitHead":"09bf06b28c82b4c3c1beabb1b32a8007232ed045","_id":"react-firebase-hooks@5.1.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-y2UpWs82xs+39q5Rc/wq316ca52QsC0n8m801V+yM4IC4hbfOL4yQPVSh7w+ydstdvjN9F+lvs1WrO2VYxpmdA==","shasum":"fc92bb4b860c6753c806583f64d7f069b6ee6785","tarball":"https://registry.npmjs.org/react-firebase-hooks/-/react-firebase-hooks-5.1.1.tgz","fileCount":99,"unpackedSize":432634,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkOl3cBdYQRb4ZPb7Pc45ux4il30f8pHN6s1UAeC1RRQIhAJSJDOrldm/MI1FkSS/7eDs6e6/iEZiAAc2ixUgT/kAT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc1HIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6XQ/+MgI6aoXh0yyeruAKm0cxcTdB8SSXvtNJ/m43AsFogHou6IuW\r\nOjFpDqLgz3r3umNHNWeEiOkKIwiXwc6joWyRC6AsHy4qnnD2VZn08pdphkb+\r\nOwN/qlKQY3jSwyIkIzRZ1DosTi4PISmJPekaGZj/zpdSzLNTrQ0ZtLMq2GBM\r\nT/2ekHkuKs2878D5o0mGce8CJ4HvPCKt4C0rcFp7OY9SY3jTVbtNmSvNAej4\r\neSXgT01VLG8pW4+JHMTdB5Vg12yN3PM6w8FtodS3pChBgWTXsYRDpGCg0ivq\r\nSQgyvV7Sl8rIkIF5gB3jXLlD2lzWbePiZsYRIkJ/ye9G7lZv5Za5whyii+S8\r\n8I6d9TE5M1q2Tx7d3Utq1gcp74fNfqhKesmtiRi+uEUg0p47mtw76hvT8tIv\r\n4zIfHtd2fZ5ZFDAjNUQw5ERjk5tuz5pi75vJdSbs6jS2HUOe+2qD9WIsP/dA\r\nAQ2dDMsuq2X9NkgPmMa8ZStdIh/lrSRvcPRfqAv6tSHY1a3jaH2mv/Ug+f4X\r\nFJrm1nxIL9qCVsBCGdaKkBeXNz8GKlsQhImBph0eBvezb2SqfqIBI18j5Y/x\r\n4x/CUTFqsFtRdamxGTlSmOLakH0C/piG4sAungYqzSP0ppkbsdkB61QzS4wf\r\nvyguNQZOENaZplnkdciVDOrH+PUQUuJ9q4Y=\r\n=O9oK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"chrisbianca","email":"me@chrisbianca.com"},"directories":{},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-firebase-hooks_5.1.1_1668501960253_0.020224995928650902"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-26T14:27:28.609Z","0.1.0":"2018-10-26T14:27:28.808Z","modified":"2022-11-15T08:46:00.551Z","0.2.0":"2018-10-26T16:20:33.623Z","0.3.0-alpha.1":"2018-10-31T09:11:23.687Z","0.3.0-alpha.2":"2018-10-31T09:18:17.968Z","0.3.0-alpha.3":"2018-10-31T09:20:13.664Z","0.3.0-alpha.4":"2018-10-31T09:33:38.316Z","0.3.0-alpha.5":"2018-10-31T10:18:59.232Z","0.3.0-alpha.6":"2018-10-31T10:22:14.971Z","0.3.0-alpha.7":"2018-10-31T10:26:36.088Z","0.3.0-alpha.8":"2018-10-31T13:35:41.245Z","0.3.0-alpha.9":"2018-10-31T13:39:56.971Z","0.3.0-alpha.10":"2018-10-31T13:52:57.329Z","0.3.0-alpha.11":"2018-11-01T10:19:11.400Z","0.3.0-alpha.12":"2018-11-01T10:22:33.409Z","0.3.0-alpha.13":"2018-11-01T10:27:18.528Z","0.3.0-alpha.14":"2018-11-01T10:36:23.407Z","0.3.0":"2018-11-01T11:23:44.085Z","0.3.1":"2018-11-01T16:25:57.867Z","0.3.2":"2018-11-04T10:06:21.778Z","0.3.3":"2018-11-09T13:38:31.577Z","0.3.4":"2018-11-09T13:41:30.406Z","0.4.0-alpha.0":"2018-11-09T14:40:02.044Z","0.4.0-alpha.1":"2018-11-09T14:41:02.220Z","0.4.0-alpha.2":"2018-11-09T15:18:00.738Z","0.4.0":"2018-11-12T21:58:08.247Z","0.5.0":"2019-01-18T10:38:08.313Z","1.0.0":"2019-02-06T17:43:30.117Z","1.1.0-rc.1":"2019-02-14T15:32:16.553Z","1.1.0":"2019-02-14T15:39:07.425Z","1.2.0-rc.0":"2019-04-12T15:03:12.438Z","1.2.0-rc.1":"2019-04-12T16:27:35.619Z","1.2.0-rc.2":"2019-04-14T09:37:39.981Z","1.2.0-rc.3":"2019-04-14T09:39:53.102Z","1.2.0-rc.4":"2019-04-18T07:17:39.654Z","1.2.0-rc.5":"2019-04-18T07:42:36.554Z","1.2.0-rc.6":"2019-04-18T08:31:44.392Z","1.2.0-rc.7":"2019-04-18T08:35:40.174Z","1.2.0":"2019-04-18T08:44:35.552Z","1.2.1-rc.0":"2019-05-07T14:51:23.460Z","1.2.1":"2019-05-07T14:52:53.318Z","2.0.0-alpha.0":"2019-05-16T10:03:38.713Z","2.0.0-alpha.1":"2019-05-16T10:07:59.736Z","2.0.0-alpha.2":"2019-05-16T10:10:08.838Z","2.0.0-alpha.3":"2019-05-16T14:12:44.716Z","2.0.0-alpha.4":"2019-05-16T14:16:03.171Z","2.0.0-rc.1":"2019-05-16T14:37:30.314Z","2.0.0":"2019-05-21T07:53:22.337Z","2.1.0-rc.1":"2019-08-02T07:52:28.898Z","2.1.0":"2019-08-02T08:08:47.515Z","2.1.1":"2019-11-11T09:07:56.038Z","3.0.0-rc.0":"2020-05-25T07:04:27.443Z","2.2.0":"2020-05-25T07:16:05.769Z","3.0.0-alpha-0":"2020-12-15T07:47:16.125Z","3.0.0-alpha.0":"2020-12-15T07:48:35.663Z","3.0.0-alpha.1":"2020-12-15T14:20:44.920Z","3.0.0-alpha.2":"2021-01-02T07:35:32.604Z","3.0.0-alpha.3":"2021-02-20T08:25:38.135Z","3.0.0-alpha.4":"2021-03-02T07:56:48.424Z","3.0.0":"2021-03-02T08:04:07.735Z","3.0.1":"2021-03-02T08:06:00.886Z","3.0.2":"2021-03-09T08:24:57.487Z","3.0.3":"2021-03-19T08:34:11.018Z","3.0.4":"2021-04-24T06:42:12.326Z","4.0.0-alpha.0":"2021-10-30T06:55:41.042Z","4.0.0":"2021-10-30T07:42:37.979Z","4.0.1":"2021-11-06T08:57:43.082Z","3.0.5":"2021-12-21T15:50:42.748Z","4.0.2":"2022-01-11T16:59:09.664Z","5.0.0-alpha.0":"2022-01-12T12:52:22.377Z","5.0.0-alpha.1":"2022-01-12T13:19:44.897Z","5.0.0-alpha.2":"2022-01-21T13:13:09.414Z","5.0.0-alpha.3":"2022-01-21T13:21:52.142Z","5.0.0-alpha.4":"2022-01-21T13:42:31.962Z","5.0.0-alpha.5":"2022-01-21T14:14:33.095Z","5.0.0-alpha.6":"2022-01-21T14:40:19.395Z","5.0.0-alpha.7":"2022-01-21T15:06:48.499Z","5.0.0":"2022-01-21T15:34:30.427Z","5.0.1":"2022-01-31T14:37:53.654Z","5.0.2":"2022-02-04T14:58:33.123Z","5.0.3":"2022-02-23T12:26:26.651Z","5.1.0-alpha.0":"2022-11-08T10:48:10.529Z","5.1.0-alpha.1":"2022-11-08T10:48:56.796Z","5.1.0-alpha.2":"2022-11-08T16:43:48.460Z","5.1.0-alpha.3":"2022-11-08T16:47:21.175Z","5.1.0-alpha.4":"2022-11-08T16:48:48.129Z","5.1.0-alpha.5":"2022-11-08T16:53:12.618Z","5.1.0-alpha.6":"2022-11-08T17:16:40.843Z","5.1.0-alpha.7":"2022-11-08T17:18:46.088Z","5.1.0-alpha.8":"2022-11-09T08:52:54.771Z","5.1.0-alpha.9":"2022-11-09T09:41:23.392Z","5.1.0":"2022-11-09T10:26:58.563Z","5.1.1":"2022-11-15T08:46:00.486Z"},"maintainers":[{"name":"chrisbianca","email":"me@chrisbianca.com"}],"description":"React Hooks for Firebase","homepage":"https://github.com/csfrequency/react-firebase-hooks","keywords":["react","hooks","firebase"],"repository":{"type":"git","url":"git+https://github.com/csfrequency/react-firebase-hooks.git"},"author":{"name":"CS Frequency Limited","url":"https://csfrequency.com"},"bugs":{"url":"https://github.com/csfrequency/react-firebase-hooks/issues"},"license":"Apache-2.0","readme":"# React Firebase Hooks\n\nA set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [Firebase](https://firebase.google.com/).\n\n[![npm version](https://img.shields.io/npm/v/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n[![npm downloads](https://img.shields.io/npm/dm/react-firebase-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-firebase-hooks)\n\nThis documentation is for v5 of React Firebase Hooks which requires Firebase v9 or higher.\n\n- For v4 documentation (Firebase v9), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v4.0.2).\n- For v3 documentation (Firebase v8), see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v3.0.5).\n- For v2 documentation, see [here](https://github.com/CSFrequency/react-firebase-hooks/tree/v2.2.0).\n\n## Installation\n\nReact Firebase Hooks v4 requires **React 16.8.0 or later** and **Firebase v9.0.0 or later**.\n\n> Whilst previous versions of React Firebase Hooks had some support for React Native Firebase, the underlying changes to v9 of the Firebase Web library have meant this is no longer as straightforward. We will investigate if this is possible in another way as part of a future release.\n\n```bash\n# with npm\nnpm install --save react-firebase-hooks\n\n# with yarn\nyarn add react-firebase-hooks\n```\n\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\n\n## Why?\n\nThis library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.\n\n## Upgrading from v4 to v5\n\nTo upgrade your project from v4 to v5 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v5.0.0) which have full details of everything that needs to be changed.\n\n## Documentation\n\n- [Authentication Hooks](/auth)\n- [Cloud Firestore Hooks](/firestore)\n- [Cloud Functions Hooks](/functions)\n- [Cloud Messaging Hooks](/messaging)\n- [Cloud Storage Hooks](/storage)\n- [Realtime Database Hooks](/database)\n\n## License\n\n- See [LICENSE](/LICENSE)\n","readmeFilename":"README.md"}