{"_id":"react-hooks-global-state","_rev":"44-e7cfafa8b21e64de74043db49b3ac328","name":"react-hooks-global-state","dist-tags":{"latest":"2.1.0"},"versions":{"0.0.1":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.0.1","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"webpack-dev-server --entry ./examples/01_minimal/main.js --content-base examples/01_minimal","examples:typescript":"webpack-dev-server --entry ./examples/02_typescript/main.ts --content-base examples/02_typescript","examples:actions":"webpack-dev-server --entry ./examples/03_actions/main.ts --content-base examples/03_actions","examples:fetch":"webpack-dev-server --entry ./examples/04_fetch/main.ts --content-base examples/04_fetch","examples:onmount":"webpack-dev-server --entry ./examples/05_onmount/main.ts --content-base examples/05_onmount"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@types/react":"^16.4.18","@types/react-dom":"^16.0.9","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","enzyme-to-json":"^3.3.4","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"^1.2.0","ts-loader":"^5.2.2","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.3","webpack":"^4.21.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.9"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"31ad9455d1c26c0efe352d741011ac36033e5f7a","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-3HwhzGiT63d5Kk1/gwyUiGtXc2M3Oq6+fDvxGft37/vjO22zPQCF+G8CHrcK1IDnjkSipKLKCj9/9NWWAUHYaw==","shasum":"118020126acdce8460557b5ffe1437ffb2de9334","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.0.1.tgz","fileCount":42,"unpackedSize":25791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb1J6aCRA9TVsSAnZWagAA4c0QAKIJbmATY8kTHNJL6uJE\nHQ+1XKmiy2wIfxAj8vp2smig6RH7NZ/tEBZOHntNByBymGfBeFXufogXJfmM\nQ+K2rg8ZOiUBjN98xXTW4R0MuoQ4XWQDFE1rBgDZ3MDOcEGgqoKNvIgSB0DX\nIGEz0UNuPf6wkie+AsZ0M+EdToXizxChNa1cUxgeby70gpj/wM9krLWWCVG3\nRDsQCIG7nRZAkKLlr7UUflTubP37RinpTUPLBjYdIpVUxOCciI7NIUMdZu2Z\nIF1Ew2EY5P2wu35Y0pMwcxPohm7LXbSfCBGd70Nv8nE0h5rBmHbfdLyOzsPY\nzgdDcfJJwvOhe2I+RUwgk+1Ki5tNDU/V/DQBFNE2QWCc2LkNfaIlMUQqmulB\nBgtJudgZmGl6+DAtrJSVUnuFIxx0H8Z6pYZyrvAKmFZUBtMdOqXvVE4cIz1N\ndE6gpYtenO43vJF1CPHJat/IZB8M9hJg7y18GE/0lswunuMINJKp4uTn2vM4\nqN1HsMtjK7Vof+NV/Et9LJn5dheBvrzfNGOQ0JR6rbZD8KQQHg2iKd1jrFIi\nEu5g/z3ngCukAGobYB3rPRphd5wt06g//Wf/SiN7mqWgmQcZM0m4wQRUkdLi\nh6Duiw0mihT36tE1vyPYTHZOJ2igAsshM7rym9uTr8SlN4rgoK2fBHh4+2Wr\n6u6z\r\n=syUF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ+6QCzjUq1sU2sPYLZzRIh7bQqNPztTN1pIHGtqnFkwIhANwIFdXGDO5NAi/3N6oP5zd2ntM1Iz3UU6KVU6urEswR"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.0.1_1540660889889_0.9672110388892763"},"_hasShrinkwrap":false},"0.0.2":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.0.2","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"webpack-dev-server --entry ./examples/01_minimal/main.js --content-base examples/01_minimal","examples:typescript":"webpack-dev-server --entry ./examples/02_typescript/main.ts --content-base examples/02_typescript","examples:actions":"webpack-dev-server --entry ./examples/03_actions/main.ts --content-base examples/03_actions","examples:fetch":"webpack-dev-server --entry ./examples/04_fetch/main.ts --content-base examples/04_fetch","examples:onmount":"webpack-dev-server --entry ./examples/05_onmount/main.ts --content-base examples/05_onmount"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@types/react":"^16.4.18","@types/react-dom":"^16.0.9","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","enzyme-to-json":"^3.3.4","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"^3.1.0","ts-loader":"^5.2.2","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.3","webpack":"^4.21.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.9"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"0d25c98332843864ca0e3dc4d4bcd10538daf5d1","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.0.2","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-26+R14rKqckP9IGir2WTMS8x/hI7h2L2iRWz2UE/OePGhmFvg1Fs4sxQZxTPizK+1K+VooUDZ1PkCp3yOO4upQ==","shasum":"1a113f305586b6ccdc2478f60378351667e80236","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.0.2.tgz","fileCount":42,"unpackedSize":25230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb14+hCRA9TVsSAnZWagAAHVIP/1qcn30UfbGS3nynXiGo\nlVDiw6GF9iUU5K0ayfj3JvdvSyy3Gf81/0BeysN+XEPDZF1f+ifp6vZzl8CE\nOMi6OAIDlaFjD8i6z1T1LApfP9RVtgYc7dhaBF+dS0enIEMCKKvm9frMuUgS\nBob4+ErXjiySSznaDU8At5oRl5M3p3KV1Y1UyP6S5PZ5RHX2M4MVdL3BX3bQ\nJicrPj3J+cjkWQyxGnIAL1CBcZjdGd8SEIVUfeQcH2HqUT3utrSnVf5A3mVF\n6m0HmBtlX6ZStavCm3xgPMb7al+QGqzv9JHI2QDWnTVB5+gprPdH8mWFXVro\nyks3L4FmlOGiZvoviCZfPN3kuVDDvWWObpPvC003ee7ixRJkIgsJGUwjFkvQ\nFjY8dAcVDKaS/2ywalH5G5YB9dfvG0y/5MmIDYJkHA89PcXwNLLuiH4EXP01\nDVDaw8Lt1bZHtzGSn+2W7XpT9dg4rJag9+SarTN2C28/GMaeV6Mvl9Hw9AMD\nr0YJ0EOldVp7Py3jRnQhgPSmKnttphvhOuz8J/Gpe+7ctnVTCIdVXt8FS86w\n5indC7+MF/7VHc4YTBlWDOLjzrWjt3CbV4sxOzxJuXrwgkqxcrmHadJ7+/8z\ny07wfL3ET7VLAZHbsMnc1Wq3CxdQ1vx+xt6UbSieE5FmrGEfb+tD7zfSlOgu\n6JT9\r\n=t99Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn3M2YbhGyHX3OmkVP7NN0deLTNA1Xf05wxBnZDJ0gugIgMrWcuHBqVqPtwpy1t12EW9hLYfWX4rhDJyY/5ITpFR4="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.0.2_1540853664309_0.2867952046410325"},"_hasShrinkwrap":false},"0.0.3":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.0.3","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"webpack-dev-server --entry ./examples/01_minimal/main.js --content-base examples/01_minimal","examples:typescript":"webpack-dev-server --entry ./examples/02_typescript/main.ts --content-base examples/02_typescript","examples:actions":"webpack-dev-server --entry ./examples/03_actions/main.ts --content-base examples/03_actions","examples:fetch":"webpack-dev-server --entry ./examples/04_fetch/main.ts --content-base examples/04_fetch","examples:onmount":"webpack-dev-server --entry ./examples/05_onmount/main.ts --content-base examples/05_onmount","examples:reducer":"webpack-dev-server --entry ./examples/06_reducer/main.ts --content-base examples/06_reducer"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@types/react":"^16.4.18","@types/react-dom":"^16.0.9","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","enzyme-to-json":"^3.3.4","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"^3.1.0","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.24.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.9"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"2aaa25d2f76d2641dd53c451f5457763183f829f","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.0.3","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-5EQOB+f08iDAM6Q3QNVS0ALxo7xz+weRoUdLKu2CZcBGiWY+PlD95jp7ACnHDzNvfUjCYOmD7rlEsRVy3B9+xQ==","shasum":"eca4502f41b5ae0749dc27e810ef047571cc23bb","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.0.3.tgz","fileCount":48,"unpackedSize":29607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3vQHCRA9TVsSAnZWagAAj8YP/1tMBcDLTdDi3AodTdCh\nTvAwwhMLtmkLfE0tct+v2/hrAzrUF1fkmlESpxhsMhfmChAxcSIRO0qwpGNW\njADtELGkXJtkOu9DzZ0URmcHJTN1eIOIUuRv+sjg15ZBO/4zKXEMFiAJ1/Er\nwTaPM9WaL9MqDM/v4xUM+IzagjnPqCPShkfxcuJA5CJw5Ya1syDcp7StEAgV\nhGHh0Nl1rb7S9dB1Wg9Y93MDlmVF40omNDOiwhFwnJG/+UW3+/D2xq5GTQVJ\nDMCqoduXU9gQY2pLOIbux5vhUJwL26GNvOmqh//j5od5KCIV5lKaUxAaHRuv\nnUyquoX3gT2bU8Hh/EnK7YBXpWRJsGARELvs0iwOU82LVihITJCU1tQznW7j\nbSMFIrjYd2XPpRf0f+lUOgzLbsrq5xS2JTApuyp2K9L7pdLmx4Wiabk25ggs\nreAkJAZVCb7acDGHfn9QXp1k5W3skfd65ocpyXnvpRAt57Pww0pPzubqTq6+\nbnt2SdKeI8W6DJqcN1HVNcVpmRPXXnYIS9a5zyXNIx2D58tmUo9Rt1JWTBex\nGFk3RjLVl2PpsxvgK2oiCkILzpikhR1uqkW5jqO7T6aO96Oa83yBZTxNCgUd\npTUCmXf+7G37XIHf2QmJoodzcwUEz7A/j1vkS39/XsC7Ka+Xj5vuUDBtUBSe\nUbL9\r\n=W9zR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5DLTN/WcSwOGP1sVcT/lP6ecBhVIgzLv++JUVinqy2AiAr67Awvl5+USy6GIB0IONDeznzLr/2m8UjOxyel40pRQ=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.0.3_1541338118496_0.012785030491226257"},"_hasShrinkwrap":false},"0.0.4":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.0.4","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"webpack-dev-server --entry ./examples/01_minimal/main.js --content-base examples/01_minimal","examples:typescript":"webpack-dev-server --entry ./examples/02_typescript/main.ts --content-base examples/02_typescript","examples:actions":"webpack-dev-server --entry ./examples/03_actions/main.ts --content-base examples/03_actions","examples:fetch":"webpack-dev-server --entry ./examples/04_fetch/main.ts --content-base examples/04_fetch","examples:onmount":"webpack-dev-server --entry ./examples/05_onmount/main.ts --content-base examples/05_onmount","examples:reducer":"webpack-dev-server --entry ./examples/06_reducer/main.ts --content-base examples/06_reducer"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@types/react":"^16.4.18","@types/react-dom":"^16.0.9","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","enzyme-to-json":"^3.3.4","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"^3.1.0","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.24.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.9"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"5d8c0a9da255685b593f02d98ca59d120b6e1359","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.0.4","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-WdDorSW/Ua/WRNSz1wZw2fAtyQgNfm3lWDHpL1FHTSEY996XtQ9ZgbBB4yxOu6T7O80vUXhzWl5x7OXIKrChdA==","shasum":"f5c6e10b8157519e15995c211db42dd18fc93b8e","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.0.4.tgz","fileCount":48,"unpackedSize":32097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4FA0CRA9TVsSAnZWagAA5fkP/33s3Zn5d+g1fRzvu4pD\nKk1DxSwO+m04Gd9WwRaTmN2YMPsCFZzUSKCiiCH2B4W1nEwouT21wbnzg1mM\nqYOt4uhE8cp6WZhZoJ3HJ8IpSxwwBfQzb7+GMIOjdxYzSmm/+54FGXBErqqT\n/3taWjd7V2GJnSb8IWtwGNIJ6mBEE04bmwp/NjyQx970nXTyQ/EC9qvN6xdA\n6W+8TUT2vKr8xXx92U+hStOLmtJInYhr4Viu956zXgIHificki1MI4L92k0O\nkttAKrKcR6R5YM8KqW9kRfYnHGJ78L6fRHAnzfeM7w1ilcIHTsmeA1KhM0P2\nEJVG4WWJpD+4XnvQA8OOv4fc4UuYwvsgXG8lmWCQqHk9DL2Qs5MKWBYO1ynI\nEU3fb8kXSBGjGqWFtSCjD9gOOZEoo17we/mHZfd+MJbExUEEl4Hqac4IYjAn\nTNmjQox0EP5NtGZIkjkD2WqE9DncOExummDBBSGK2JhUct9tTTeEZHQbXZZu\nO4LLHCd2vEA4y83LDPb0+DV9ngzUvNU3VO77fS7P5ep59FFso8D+8pu7Kmuz\nDV7+RQ2PKkAsqZWkowFWn1/qT1Uj/SwKitv72ugIWdtOEqOTHGOF6gyP0U+7\n13HHD1pMqOU00yMJd4KurTh2RfrZZ0DwxEI05OejntaiysFzxden6DCAC1ap\nKD5B\r\n=FYwe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvlZuiZlVp+nGsn//fumpcOA3Q/RKZAq70vc5iKivoDwIhANK5wtfJ7RR9P91pnoAYBcVqxbKZQzRMSPLd/TZOxMMK"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.0.4_1541427251931_0.5473154405298208"},"_hasShrinkwrap":false},"0.0.5":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.0.5","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"webpack-dev-server --entry ./examples/01_minimal/main.js --content-base examples/01_minimal","examples:typescript":"webpack-dev-server --entry ./examples/02_typescript/main.ts --content-base examples/02_typescript","examples:actions":"webpack-dev-server --entry ./examples/03_actions/main.ts --content-base examples/03_actions","examples:fetch":"webpack-dev-server --entry ./examples/04_fetch/main.ts --content-base examples/04_fetch","examples:onmount":"webpack-dev-server --entry ./examples/05_onmount/main.ts --content-base examples/05_onmount","examples:reducer":"webpack-dev-server --entry ./examples/06_reducer/main.ts --content-base examples/06_reducer","examples:middleware":"webpack-dev-server --entry ./examples/07_middleware/main.ts --content-base examples/07_middleware"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@types/react":"^16.4.18","@types/react-dom":"^16.0.9","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","enzyme-to-json":"^3.3.4","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"^3.1.0","redux":"^4.0.1","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.24.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.9"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"1e993634c68d16820235ce23772429ffa0a87b48","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.0.5","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-tNiIe/f7bop+VhrWc9ncWeCLHlAvwSo7RL1kCqGddRVEy+i0KRbZfV3PcL68Q3rk/BiL71YUH6/bZg6k5mMLDw==","shasum":"6ad85ff2ae7a6249cd6013eec7b7a0e26a963b72","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.0.5.tgz","fileCount":55,"unpackedSize":36855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4aheCRA9TVsSAnZWagAAO5UP/A5f6Bj2FP6zaNM1rpuQ\nP2jgF/5FN7NoY2SVjLH/45BTT85TPJWI42zExKfxqaZn3k7dxbjZP0QzNrHx\nujyvkepq0sQcM8OYYPAeXfHflPNozt0LdqIQGce8TPdG2xZ0ziDzxOvIb92I\nAwkF9F8I0oFPIcJziPuTU9+y9P/y+9Fu2CgwoFbvBAjXK3kQ3NLZpiEMR5QZ\n1qHPvJ2ARYlowVPyd1JcZy8vLYCSUOybF7zrtvnxXWc8EjmDMbJJNau/ecYb\nZ88jFeNVZTu6PzXlIaXMTKnhlopfccYLejxs/hl75bOYCIsdwtnMkdwGkEMr\njasP1j5yghywT/UQaJaEQGz9/QlmNyg69EV+dCxnbgBJWn0rF17gCVho9fYK\nDYmIPV1uNT3qQSTdeJIi95wuY++oClgNLiHlV+YuK27Hc7tvrq89+K1Wu61H\nNEsM5FpA8wpYyCUnhZKgBOw2OOdIUbxeXGDneoMCtG2NqIyewIMQY6dvRCYY\nhG8u0m10rHqU3MuxRjHOUXVIELnFxZ+Q3RIzpJNvCJZ7pRw5c6GvzQVPlFC/\nRCkLaBcjCnxt6KielfRVyGIwbY+DSyRl8pI+7uSc+Vlu2qA+mYoUYgAENUc+\njJuDBzghkdwgm3i2Wjsu45WTItdg8OAJMebZw0EzQqGR3iBYhzfwSw43XqNl\n7MH/\r\n=3ncV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx1qEzQd1VHpvILrs3zKDxhcuZnG5ITQuSNbZ/xx1CewIhAIsIQY7Uc9I+8jaXONC664KYRVE9QmRyKBsdJLUC/VhX"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.0.5_1541515357414_0.13234530092750774"},"_hasShrinkwrap":false},"0.1.0":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.1.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"webpack-dev-server --entry ./examples/01_minimal/main.js --content-base examples/01_minimal","examples:typescript":"webpack-dev-server --entry ./examples/02_typescript/main.ts --content-base examples/02_typescript","examples:actions":"webpack-dev-server --entry ./examples/03_actions/main.ts --content-base examples/03_actions","examples:fetch":"webpack-dev-server --entry ./examples/04_fetch/main.ts --content-base examples/04_fetch","examples:onmount":"webpack-dev-server --entry ./examples/05_onmount/main.ts --content-base examples/05_onmount","examples:reducer":"webpack-dev-server --entry ./examples/06_reducer/main.ts --content-base examples/06_reducer","examples:middleware":"webpack-dev-server --entry ./examples/07_middleware/main.ts --content-base examples/07_middleware"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@types/react":"^16.4.18","@types/react-dom":"^16.0.9","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","enzyme-to-json":"^3.3.4","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"^3.1.0","redux":"^4.0.1","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.24.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.9"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"cf0c067ace7ca7fa7efef04f2ade62ab0451ef79","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-Q7KzCSEf9eSWZeRMLXns2ouiuNZipRCqqkqklKByVor12XbherzOJ/QOHePIZhsaV30KZ0i9JkUHotSuA3oMYA==","shasum":"5b12ded8901529776f817b304d643de28eacc475","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.1.0.tgz","fileCount":55,"unpackedSize":36436,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4uUBCRA9TVsSAnZWagAABpYP/ihPx3oRBH21mvsJnIdV\nSU7fNaM0l7v4XyDSzM34h1c/fvJaPeBd9dN9RaX4OVShUvIllPaUvR73LNhW\nIXXWYlObdiWhlP5qQuquNv/kVhZWRUfIRzLAfJ1AwNDEMPgd67BCt2IsDe/9\n8hYlSP1VARUVTix1vydnoJQGoAR9xXjJEWAwwcdQxSPTJMU6PZ1fK0Nrt5Vn\n7v+njScy/FAF7+oPUQrbpRG9wyDr01mXPXsvDnDItDcvbf8mJZHfKHsoNOw6\nfCSE+bZW6w6U+df8U3ccIyX2kXE9C3dyoH5fFjOytY0pvD12JyELf2ENF+sv\nb1Y66KzucUqLG445tAAOx4HL+skunt3oQmC7NenWjgJhJX6dxn7G80i3er10\nz9t1g+nJFaLyUpdqMbrAmM6XUEY3WeaUEaurt/q1WeNfB2PCYLrQq3xpQ7DU\nl5iKtx20VyHkIuCPxhMhUZrLlGOZLu5v3D4u6vlq4oMMW/lR+mYNCY7Mc4oj\nhiU5+eS27kmPIYKSjp7jTAn9kW1US2zwqfxNrzOtft/aajUlsw5D6vs55wPw\nE2zlugoNp+Ui6Wj3vZTezTVL3Cb5pTVzFYhUfpBCJPWUncawRu+IRHmzOuQZ\nlU4Sm1/LPMZG4xWlHS73eu+Ebu2W8HMIC3I5IIrh7KgaLhvBCe58HNJJhlle\nuqtg\r\n=Bu1E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwK0FuCqKQRUsG9gLT9ldRo/AECvyikEjyRcmvcFL1UAiEAvn6Ngemncz4IAmZR+tfl0msvsBSHLPwmMTLgJ2mCgJg="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.1.0_1541596417014_0.1789933596581057"},"_hasShrinkwrap":false},"0.1.1":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.1.1","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"webpack-dev-server --entry ./examples/01_minimal/main.js --content-base examples/01_minimal","examples:typescript":"webpack-dev-server --entry ./examples/02_typescript/main.ts --content-base examples/02_typescript","examples:actions":"webpack-dev-server --entry ./examples/03_actions/main.ts --content-base examples/03_actions","examples:fetch":"webpack-dev-server --entry ./examples/04_fetch/main.ts --content-base examples/04_fetch","examples:onmount":"webpack-dev-server --entry ./examples/05_onmount/main.ts --content-base examples/05_onmount","examples:reducer":"webpack-dev-server --entry ./examples/06_reducer/main.ts --content-base examples/06_reducer","examples:middleware":"webpack-dev-server --entry ./examples/07_middleware/main.ts --content-base examples/07_middleware"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@types/react":"^16.4.18","@types/react-dom":"^16.0.9","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","enzyme-to-json":"^3.3.4","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"^3.1.0","redux":"^4.0.1","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.24.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.9"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"4c97a8165810cf06901ebb6f5c7df37d7793a169","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-tyWuciLRSK/ZQSkMLbmvhUOAvOLecyJq6uYgMEWZvBzED2MJhpHxYaBLzpuXFdoXr2rcOXDB+yL6RBoP0NbRmA==","shasum":"a456941c4faac8477504f6ca02a1314cce8de119","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.1.1.tgz","fileCount":55,"unpackedSize":37494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4u5ZCRA9TVsSAnZWagAA0HYP/2dKK1esGVC5IV2+YRcI\nxVqkOMPFCaeJ7424VcLcsgC5aW1svrfWfJkwfVxXIZpYuOcUH/BAhzZDn2pK\nfH8ugOYffqzUo6uaFUG5MLuCAK9sUavH8MUuLreLk0H5ZfOOTpiK2HGTar6c\n6eE+y+TyXu7Z7nFlO7DBosfrA1lYRCU78he4JCW0/vBz6bhwsYtNOET8wg0D\ndR3i9vwDv7q9bL34W3ZgKXewVmQCUA/VzBXiUWFu1dW6F6FIgOwbXsLp0PLZ\nO9xtFg+0Kj9e3lSP/K5ctYc8tLZ35xt54j5hwcQLWmKA66k62hAi4GtLojF7\n0/yIOZQh+fDqSy71Bxjg04MApcfL2VW9NDYM7w2cdtI7iR0uLcbRcVhb1Ely\nqye3cmpE4PQH/DG2JA7HsShHiQz301mivQXuqbjbgEzroJaqymV6F2N4uzMb\nixH0JaoTKeEofkNqSSx7SrjyM5WCebvKa4tQUN0iDv5xxLvhZimyiLCmXmok\nkBhwmzH3IjQulQrlPbRu5KA7Y1p2x2AOPgivXZyrlvLUVUOhOPlJNpH4iK/k\nxFWhEnWhHFht+nFyndXBGz47qomJFK49Su1ic9n2II8qJF/Hpzdfur7GA7+e\nFCwfLIi6BqDG9cY+sIkel477pxepZDjZ5oCJA818JseQFkyXZXhCS0fgjqMl\n2VL3\r\n=Rayz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDZY7EYrVLqC2iaxEZIVe/MdMt9XgsT0iigbB/6dCdEAiB0IVeXFlqFNCSJaHgmiWphL66cErre8MER6PXsGnB+Cg=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.1.1_1541598809145_0.09121053302742443"},"_hasShrinkwrap":false},"0.2.0":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.2.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"webpack-dev-server --entry ./examples/01_minimal/main.js --content-base examples/01_minimal","examples:typescript":"webpack-dev-server --entry ./examples/02_typescript/main.ts --content-base examples/02_typescript","examples:actions":"webpack-dev-server --entry ./examples/03_actions/main.ts --content-base examples/03_actions","examples:fetch":"webpack-dev-server --entry ./examples/04_fetch/main.ts --content-base examples/04_fetch","examples:onmount":"webpack-dev-server --entry ./examples/05_onmount/main.ts --content-base examples/05_onmount","examples:reducer":"webpack-dev-server --entry ./examples/06_reducer/main.ts --content-base examples/06_reducer","examples:middleware":"webpack-dev-server --entry ./examples/07_middleware/main.ts --content-base examples/07_middleware","examples:thunk":"webpack-dev-server --entry ./examples/08_thunk/main.ts --content-base examples/08_thunk"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@types/react":"^16.4.18","@types/react-dom":"^16.0.9","@types/redux-logger":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","enzyme-to-json":"^3.3.4","eslint":"^5.7.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"^3.1.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.24.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.9"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0,"no-underscore-dangle":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"287fbd1cf609d7287e536898ad20252cc29e5dde","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-iqgKtdVvY6uAb9tscBv2yBgtyi03kfUW4IIyKKDn4NG80MI0zFf6a76BuEUD6D0ugM1joiT7jKjvhzhA3cBlqg==","shasum":"e59fe1af55b6dd25374cbd725758c3c5caff982e","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.2.0.tgz","fileCount":63,"unpackedSize":49793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5ZZQCRA9TVsSAnZWagAAcskQAJM3Uld0Iyh7H15Sjk08\nXwVmUKO9dicqfIeE82OsDp4HyzgSaPdNSjcixadLvZk8xkTm0ojs+RILAoj6\nMzCEfjiMAhvp25g5KVxfQFHkpjKewklN1VvougSu3bUc4vV24uPQHGVq98wl\ndLy8USZVNDwXFP17PbKbUkGdoNUFkxdpWxsBtFnUbSMSVyQWfMaNQCp7cdgC\ntmxUzDaINXvWRC5gXG7PCvOKweNLuSw/hNolvuRV5ortC0+joukKDJ5Qdd2K\nOGkkht8qP8TqNzK5cRdAvdFEYcyBO1p86zvCw7Zy0M1FcGrt99bN2qhEMubH\nnc0syxHwr/MXMaE9G5b/LQqdFZDsBUe37h9sv8aqyK25XG0ihkcP7Qq5u6LJ\nCEb06pl+HUyd33eQSYFemPekRLus7BQkhUrEe1dO+1AeqPhZNFkh/wp/cfvf\n3RYY3aJHFCas7t5vgwo+fygLcDuy8m+yvv4InsgqwECScCkpPq4cGzJMbSRd\ngAWOIVEB8VILonzA342bU7xfWeAWcsSDP+WNn6wQGKaj3h7yB5pNkkIAVUcE\nUxZeXHY7xHn/sq0wITHjCyhsVNdSyuIfyvjVtFFaN68xvM7Ie6IpCHHWFWnr\npA3O0e7qSEj3Sd/TVO+m9cH7u6QByogL1Xda4FjL9Ck5xU8DOMWlCWqCYxeN\nCSrl\r\n=ZEoF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvp3LYiWI9rb23z7/vjNjDjkEwZsILdcNfLeAeVnLkXQIgHv8Rjc2MAMlNfk7rsOecDeHBhfegpnY45l9Oi1tnrQs="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.2.0_1541772880355_0.37770106300009143"},"_hasShrinkwrap":false},"0.3.0":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.3.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.5","@babel/core":"^7.1.5","@babel/preset-env":"^7.1.5","@babel/preset-react":"^7.0.0","@types/react":"^16.7.1","@types/react-dom":"^16.0.9","@types/redux-logger":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.7.0","enzyme-to-json":"^3.3.4","eslint":"^5.8.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","immer":"^1.7.4","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"3.1.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.25.1","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.10"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0,"no-underscore-dangle":0,"no-bitwise":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"91528ef92c7f13dbf1dc5f14b09d347f8769c3fd","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-RMrEmenllsjXdx6CisYbqzEk8rGhmyj4zJTsbIOnebmje3YIy399mGgpjdMJAv0XBp7jTJwX81iiWoUBylRboQ==","shasum":"f6ca062b024f244531d40fdc49ad1d7ee80cca9a","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.3.0.tgz","fileCount":78,"unpackedSize":60779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6MlACRA9TVsSAnZWagAAmsEP/A6e0KupNmen+4J+DF5T\nP0ATbyr7MGmSNXknJb/uyb84tQIbxDq8rNo6HH3vHO6+eClJANEZPNQj93nj\ncMyc6EM4V3HwJCpRQToQmyriSMXclaIGA6/cVMsxYwG2FOoRKNGJSONAWg1W\nkkVK8hSNg2okU+5WTXBeUSY1wBa18pIJuxN+duqqb4xbfl0mZCDzobSdgHTw\nehTzog/N38/bb9h9DEnOJvnh0Nps2Qk7jAFRfAh1BpTKK3h5cxX6/sFoYnbX\nvZnvjoCvBtm7NuvOO1KjKmQ6OTSCnZvzId8O6VTfTTEAuBXfHpPG1FaD++Mz\nNLbXXpmX4JcFyy1pcARUdpz/QhR3crf2SFzSRMN+Nuro/Ida+lzp36z3q1fW\nEMeZTmNNEcjXxajEPyfduFDcSpcKc/VHV1Tc9G+j/Knvd8K2KLFflGCw5WZP\nTku0vuv8ls40mlKEddOobk9uZJf/hMj5qt5OSralrzs4YT8gnxwzQnKhTlsc\nK0O9tg/wZFbYUxLn/6Pi2XotqPuSmxsVCVyNTEvXfvskXMbtZMoEDHvW/hZe\nBSvUJXJHsbIv3UFOToo2MeNk8lssZBQJsm5/ad6HDNsNMA6aCozX4akoHu3Z\nRwtFbgoYVxB2KLZgJTaINPVnBvnR2oBZVBqm+1gRa1vG0uI5721B7rdiB4y1\nItZq\r\n=/WUz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBtQedcQiizqZHLTy7oupOxzTLCrXBzgv5fxG+9Kp4szAiAY2e5Vqle1CAZnBrgtJPjCCIypBhHOxGPQOKilZ0itsA=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.3.0_1541982527068_0.6481924842140478"},"_hasShrinkwrap":false},"0.3.1":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.3.1","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.5","@babel/core":"^7.1.5","@babel/preset-env":"^7.1.5","@babel/preset-react":"^7.0.0","@types/react":"^16.7.1","@types/react-dom":"^16.0.9","@types/redux-logger":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.7.0","enzyme-to-json":"^3.3.4","eslint":"^5.8.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","immer":"^1.7.4","jest":"^23.6.0","react":"^16.7.0-alpha.0","react-dom":"^16.7.0-alpha.0","react-use":"3.1.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.25.1","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.10"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"react/prop-types":0,"no-underscore-dangle":0,"no-bitwise":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"f764253da41819611c97caa967295f2db8ccadd4","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.3.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-Tdsx4RY4CSX4m+jRIBtPGRo8HewygM/DB1igjmnNr9eSxsGRDrC2JRuVKjrlCzDddGTMJW+6lxfVFMK/y6XyNA==","shasum":"43da80578c363c57d64c59810ca2258b9ba15094","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.3.1.tgz","fileCount":84,"unpackedSize":65371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb8BKyCRA9TVsSAnZWagAAzqAP/jvG2njTqO8zPNfcYqQ+\nzP798o0R2+5xWqJAqHYwJOpiQ1GnU6dKGHxwXcS7VVCqIzXjTjauu1nf4w8C\nDVuWLwOGAIGtJCDzj/9O+rsUvdgcch9Q0PUgoOi6s0Qq0/d1Jgh9kFTkipxT\nBkzRqjGWj9NK9vq6ZSGNi2QXsL6qiab1Ba1jSR5oRfdvcye3KbXDHzQPiQ9M\nAPjbKir55ICRKZwbBXBJlY49Md5BmW0/9XZG3J81ZzA60ZkrSwy4abYHDogP\nmzQKH5tAEMEXd3PnBpjgwhnw2UeXIAwzX/bjRaK6b5c39ZOa0BbpNn2OrGRW\nMXF/AOhi8pLzazxngE7fqzpUwxMb20OZFcNAMEfWCc97OJQ9/OsHmvj3f4MK\n4v3bqDddwtVGc4gRFpRvYrWMDnYTuIYrR4UcNWEdMqaVLpqBHHisNYhtiHhi\ng1Bvtc2cDmpdD/fN3CKijUS+Sk6RrKmKjWugIPQnVQcH3hM7l4bI1l7rpQXA\nIUR5LaMy2HICRARRA7ezJNilnweYbV7F+C4juUetsshD0Rl1VLy2JWevUGh3\nuI2Rvhva3yEv5tO1fCNbgkXJDQGhqn9MvGLrwWT0ZYBMXFsg5eMdMMtF7aRX\nTmh8UOtGDC6I1baD9wltw2hBYmx9PIzchg1HOfJZKqYObeMqZe/2ye1fbspu\nTh5F\r\n=d3Dh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZE0LN3TfdXVUUx54VeyQDkgn3+YRXLQvcAGcTzfYUMwIhAJbxhTjVZcaedm2TtXbq6Jwea3KEzQiPuW9r+s/PPHYl"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.3.1_1542460081510_0.08125985571544425"},"_hasShrinkwrap":false},"0.3.2":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.3.2","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.5","@babel/core":"^7.1.5","@babel/preset-env":"^7.1.5","@babel/preset-react":"^7.0.0","@types/react":"^16.7.6","@types/react-dom":"^16.0.9","@types/redux-logger":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.7.0","enzyme-to-json":"^3.3.4","eslint":"^5.8.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","html-webpack-plugin":"^3.2.0","immer":"^1.7.4","jest":"^23.6.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-use":"3.1.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.25.1","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.10"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"import/no-unresolved":[2,{"ignore":["react-hooks-global-state"]}],"react/prop-types":0,"no-underscore-dangle":0,"no-bitwise":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"01070a90042acf0ca40cbe1804dc360747f8c666","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.3.2","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-S3999thcfR5rkKhvG2YES6D+lRJ1HN9i0nGAY/NCuZnk9dQX9W45romelAPQiwhzSDVfewxDRCAewt4hDn8Rdg==","shasum":"39571e96143b03fb03a3920d6ba2ab08fa09dcd8","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.3.2.tgz","fileCount":10,"unpackedSize":25752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcAAU0CRA9TVsSAnZWagAAPO0P/AqH3ySeNGaNY5pHOx3J\nXRjvnruBeU70FA0O/l7lyGvionH32oQofPulDGc7/jXoQ/IERMU2cBIekw1k\n6nRxQSS7vbA1pM4cRmzlUHymARi7AmPQ3bLaXi/JlRxAxFJsrVNONXnoFvxQ\nVIafMyi93L6MGZPiRel3SOB6z6NiBL2DnxbCKXYJ2L9BiFyiTedmILUvIcXS\ncYVTDn39Qv+hJlGy4mlWMcdUTx6MSBWybHgrdYQquk2b90qSAji1f1InOA6c\njyqqNToTzC7/ClG7MvO2IXdYJP25q1hYLdm4iUmjRFMB6aboiqhH8yAXe773\ndKH79XnL4SrFbqwR4dGv+yZ60U30XkxH+ZgwTQVLdEirEA7G386O8mB/0qcq\n+hTvcnSWwYrg2ZZCY1y5Wj61jJJnevAZNnlSmzfowNMptP3Vqp0Z1AkMosTX\njicHTcbvXDjlHlc6AK6hd1zYypZe49XtHXrLA8AFPX3Feo+lghEfVjbMJpjO\nLMAa72hq9zxjV66FZBw7C4z/vZpAlI6dU4Ja4VOv6IPMgHkIIc0qhduK5R6t\nAAqA6/I8rL6p0rhfyTFxE2yIa8TxXJgmRSim/ka/aTP+QpUt2xn3IRTzzgdD\nLqZPPOOmZbn6Ke4srIz13WN5S6SlOQTO3reZLFfsa2Zn0lOb1mvLOaPklQkN\n/9w0\r\n=2Sms\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGifxaTvhXFTuDrh1FNZ20ePNhO+1hM6Ef6ZLkCEhQcyAiEAy7IXY/kaNpEMP7tEHjBj/bstQoJDy7NckUN+YA//6ZU="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.3.2_1543505203820_0.6106507611797944"},"_hasShrinkwrap":false},"0.4.0":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.4.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.1.5","@babel/core":"^7.1.5","@babel/preset-env":"^7.1.5","@babel/preset-react":"^7.0.0","@types/react":"^16.7.6","@types/react-dom":"^16.0.9","@types/redux-logger":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.7.0","enzyme-to-json":"^3.3.4","eslint":"^5.8.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","html-webpack-plugin":"^3.2.0","immer":"^1.7.4","jest":"^23.6.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-use":"3.1.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.0","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.0","typescript":"^3.1.6","webpack":"^4.25.1","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.10"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"import/no-unresolved":[2,{"ignore":["react-hooks-global-state"]}],"react/prop-types":0,"no-underscore-dangle":0,"no-bitwise":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"54915782d651bbc1012e7157d0468b7bb1acd4b0","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.4.0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-cpFUV53TFxuKefaju+vapSg2GfO43R+rAZel+TQLzvZNVSGjVtuiSlSVzF183TdNP1qGECng+zKkdYWTxSivSQ==","shasum":"ae0a835b17e78724aa48e3d7f9745ac47fdbf4d6","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.4.0.tgz","fileCount":10,"unpackedSize":26433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBRrBCRA9TVsSAnZWagAAtiEP+QBJIw8MCmLz0JQSacHM\nsI5A93ZfNgIvxRbQ3GcdFadmgFLbVY28bqJTS9NGugnBNAl2iOvMtKmW0ViJ\n6bHmqB0A+gvdXcogaW3lV/Y1LIsl/5lT04k5iEPoFWX3ksIIj9nGoVyo5om9\nuVsZN8BqTjr8nDaPEkYAXmId6QQtEfNZltgLP19Qw4LGOmps7KA7oTdJCV5B\n3Od7o55pql2TKXrTh15dVc4WN7Vw07/bKy2PAsyNY8sGYIZrWb65xHAr7UgB\nbSa0jHcuwm2syl64uJ56L/D98VtswSAaLD0cZONAu6C6lQ5LYduPb4uJY2fn\nIFrCoJqSUMLskbyF9DcILZXLLUVpsUCKnY0En/JwHriHhISVS0K2QCUx8nOC\n8+EsN1kSYAQGMExGCguplEsZdPeuAtLi0w7mGyBMsKaj+NjsEDrIbQFh2Y3t\nKRISLUispvn8q2mkk31hQv/a6ZJlyeEqbTCqbDaq3mT2AdJQJNh8wLKiR0RN\nNMl1jsLboY1cFjTVqdf2EeV4V25QFpZ8an0y3fgCac9IDbJ1NLbknRkdVTOq\nuUz6n3MTRK71NK2ZyRdVTQRheSMh18BQXXpvkxfIQ5e8KeE+PPYW6owufi7k\nC1new5FUMBmhZ2xZz5s0cM+zkz8EFbMD9CNXjVVJ687HITPVkNrWVfVLsWfq\n6Vrp\r\n=05Xg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrdHYltM67cCzjI/N0HX2oWMYVpFGPC0JW+faO2Gkv6AiEA2i6jmBjBJTwgWvG68PdhluP8gjmNCKOpZIfllkEjyzI="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.4.0_1543838400924_0.31761185685868054"},"_hasShrinkwrap":false},"0.4.1":{"name":"react-hooks-global-state","description":"Simple global state for React by Hooks API","version":"0.4.1","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tslint && npm run tsc-test && npm run jest","eslint":"eslint --ignore-pattern dist .","jest":"jest","tslint":"tslint --project .","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/preset-env":"^7.2.0","@babel/preset-react":"^7.0.0","@types/react":"^16.7.13","@types/react-dom":"^16.0.11","@types/redux-logger":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.7.0","enzyme-to-json":"^3.3.5","eslint":"^5.10.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","html-webpack-plugin":"^3.2.0","immer":"^1.8.0","jest":"^23.6.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.1","tslint":"^5.11.0","tslint-config-airbnb":"^5.11.1","typescript":"^3.2.2","webpack":"^4.27.1","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.10"},"peerDependencies":{"react":">=16.7.0"},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb"],"rules":{"import/prefer-default-export":0,"react/jsx-filename-extension":[2,{"extensions":[".js",".jsx"]}],"import/no-extraneous-dependencies":[2,{"devDependencies":true}],"import/no-unresolved":[2,{"ignore":["react-hooks-global-state"]}],"react/prop-types":0,"no-underscore-dangle":0,"no-bitwise":0}},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"fe067d47f4f9e29fb3da8dc33c30e5e211b4cbf0","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.4.1","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-6dD6jZ/bDBZEKWNUpMwutWZCK3HpABMZvLKVKpPBxy9txBanaY6oZygvKRnc2Xm15xKvn+BIXwyXrOGOaWdNZg==","shasum":"81815cf6239e924d1aa47fda2a07be0c1d1c372a","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.4.1.tgz","fileCount":10,"unpackedSize":26420,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDJlCCRA9TVsSAnZWagAA0z8P/Axk2qdSCtKN/cC17/gi\naxxJ5c3t6vOoSFQj6ZtSGt8rPd/ZghSvFOkEeCRmjEcmw963B9yldxfbSIWo\na9DFp4LuJ75G+LY33gonEegFG6jv2U+2WuXiaCub/oG336oMCxSt5H66ZxqB\nAWS+umrkzs6hAmJ4Bvc4cz3xoioY1l3Vlphm8E3u3Xw1KPmjLU+H1o3n4f2J\nJoDYxTe+4+N6fCNfS8V1/lLneF01MzDUtM5VkO80BA5mYrfxIOLcLB0Xr2br\n+uGaahd18R77XJfUUbrd9EgnH9r0kun12sUMU9OkSmqrNzRrOU50cpoea0OT\nNhyCr7mZrMA2vcf/L1qFc5hCyuKKSyjoLPlMSMspLXWUGOmQLgTl63NT9tOb\nxEael3NXc6unGzbyuBo5ao7aFLSvOdZ/w23xR6Oe7lH9/wFt4A9QMQnKScyG\n9Y6gDK3asK7uOL3OW8ElzPEWsPBk5kHVBDphtQgKw+T6MwwFIRcZwHFVedRb\nlgYNYGo5CJQGzn8xTN7CHo5KPeLHAChdHEd726bwKPanWXuJ5L9iPLoVWtvG\nxa2oTSLd4uqXL1L6PEg6XsfYx0J8yuTa65QOhCQbWENy9fu1RngnaXqozdYs\nA1y7DwSVjZOjhQfnRHJF9nUAcA63jvST2QV9T6elYrADgwXOD08FMlnp+Sd6\nj10I\r\n=pvvp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPvxNLlh6OVbrFKiBWJsJWoTnWPUz24ARyyaKiZr2hpAiEA2mNYFu/m87sYUSnihzBZsDv+LlhF4+cyapsWCzg4a30="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.4.1_1544329537637_0.8773635489825522"},"_hasShrinkwrap":false},"0.4.2":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.4.2","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-env":"^7.3.1","@babel/preset-react":"^7.0.0","@types/react":"^16.7.20","@types/react-dom":"^16.0.11","@types/redux-logger":"^3.0.6","@typescript-eslint/eslint-plugin":"^1.1.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","enzyme":"^3.8.0","enzyme-adapter-react-16":"^1.7.1","enzyme-to-json":"^3.3.5","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.12.4","html-webpack-plugin":"^3.2.0","immer":"^1.12.1","jest":"^23.6.0","react":"^16.8.0-alpha.1","react-dom":"^16.8.0-alpha.1","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.3","typescript":"^3.2.4","webpack":"^4.29.0","webpack-cli":"^3.2.1","webpack-dev-server":"^3.1.14"},"peerDependencies":{"react":">=16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"982939da51368a97490c34e244d7a49f979b71df","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.4.2","_npmVersion":"6.5.0","_nodeVersion":"8.14.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-8KqTdqcPhPanAkWT0zWrBcQ+QUzsXVAZUqHu2R3jMp22SHwcbQBXYTklTOSXsXk4+Dm9VFQL59j1ef3rnoJJ1A==","shasum":"508cf772ed8a8801010e43b65cda50c91ea5ffb6","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.4.2.tgz","fileCount":10,"unpackedSize":25752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSX9eCRA9TVsSAnZWagAA1uAP/1W1kN6P6XnORNMBajP8\nsiwQROnOyOmejGwZa7OFH9wMCNUtsnitGxT7jX6Yw31n+kBrdG8e2jbBabTb\nIFqFThXVORJOBAyN7ndhmJaJJ2l5tSt/CExhp/xgObwQQv5vCijXhw24keMq\ns5kWOZFf3dbMr8CDEpWASDlM6sms+i/1FP2BfzkVpOQtEioeNQUTFfaTJTWS\nQwcl0huUSSFYR9A1byg1k4k43Dt0jvsWIXFIuI+7B2whsYQ+YCs8dcqcwHPe\nqSQnDzhaljDU9gT2fvYYgdAdu3QRgtvx6YTQDYVsOp5pxm54IRKpw/tzWJMh\ngIBSXTosjQ6oUnCi2axOTP0Vp6+7ychTDhjYsMvWuUAoYaTVY1/eIOXSAsPq\nAZLnslMRzBCsOrGJnzHnIq4lK4oN+3L48/PTiMqwIXxvTUPltrMWkyZpjyJB\n86CIThY7VJsXB1fFwgAD9x4dyK6xauwvxje0kuU/XOwyBDKOnn/lwgIli7GU\nECA96Ue0nzzvc5mzob2xDMo54hRp5D0t8fjBhuLkAYpRJaC316tXw1XMezCw\nccreqm1pdn0f/T8/WUE/PWe86LOqdf9kgBh9yHt1ey+FzT1NygXvQ8CTeNKE\n15sea4zi2YXbLq89aGUCtCN2YXvcJUH5V/xsFXF5uljoKZMj8BXcbaw7iQAx\nSC2y\r\n=pXpy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAT3dJjTuKf+nRwGqMbmv7Vm8/XETY7lyH0t71xnXkh5AiEAlKLfSQ0DqKAbu00XCmG2GhCFT6TUvbFEZs71+30Vc8E="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.4.2_1548320606083_0.9916593875996778"},"_hasShrinkwrap":false},"0.5.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.5.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-env":"^7.3.1","@babel/preset-react":"^7.0.0","@types/react":"^16.7.20","@types/react-dom":"^16.0.11","@types/redux-logger":"^3.0.6","@typescript-eslint/eslint-plugin":"^1.1.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","enzyme":"^3.8.0","enzyme-adapter-react-16":"^1.7.1","enzyme-to-json":"^3.3.5","eslint":"^5.12.1","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.15.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.12.4","html-webpack-plugin":"^3.2.0","immer":"^1.12.1","jest":"^23.6.0","react":"^16.8.0-alpha.1","react-dom":"^16.8.0-alpha.1","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.3","typescript":"^3.2.4","webpack":"^4.29.0","webpack-cli":"^3.2.1","webpack-dev-server":"^3.1.14"},"peerDependencies":{"react":">=16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"65aa5b8e16df6f1836f94d8a507ee72e2ae8448a","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.5.0","_npmVersion":"6.5.0","_nodeVersion":"8.14.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-7SsHqR+NSY+3CtWjTS+1xl7E+R0F3+sEKN3b6nwOVwNfAn9/tFHgNbLJvyVbEmQ5LQVOBAWURI34KppHRebFNw==","shasum":"030bb2b91fb841c88ba42ad0416853d27d6745ea","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.5.0.tgz","fileCount":10,"unpackedSize":25748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSyj5CRA9TVsSAnZWagAAMwIP/jDUz6oaNPex2v9UOKB+\n3fWs2z14SuK6/jXAktLH9GB4SaNtMlDXQVemE92Fv4k5ClHCBcoHsIMTgauT\nhp0jIe22aG4po7xxRGF5MYO1XyOPdyjVlQCHu8RFfGh7iSXVckCDm9mbPm8N\nTTU+Bo4I+jNN3hKic4t9Kf5v8GXCxudBDR6HejruaSnjzj+4Bf6i2GzRI8cX\nCquOoM2XnQqQgSl0vTr1P+KRcYp74iwjVYtMHl0H/hMU1cFl+UVJXayBIg6M\nGVGCtLnJ0uoEw4rh1Rcn55UDL3PffMMwrpwKGCEor0+CQcMp35pcAI5cgnL3\nE5+xoNcmTdLlWazchOsA/ck3uVJfqdnjMEE+/mFJumB3BiFkeMPtik5+7bGy\ng1oXpWR9lSKzAcF09ClgMssjI6wn+7wXcGHu9MzS6c2APngB75+QQ5FuNM4E\nnCLR8Y90/fKNzJ5a21o6JT+BzBKZGSmP1tXVyHaMSZSB9n/BWY9DxAtx/Pp5\nalOS4yqIfmxqapjhY5xl6lWoVdrOdutTF53BK1Idha1tQbHueuHU5FSlMMzk\nws+5X8/2Q2bjTA62zFU631Isi2GO7GBisHHVhQwYYjiygJStNIf5kWfR/csf\n2sO7duJ+7gvRlDG1jXU3+PwFLD8AUmJMiBKAhF4VWjQlQmaHKDqtuuMCFiTt\nD/36\r\n=4gFy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZmAaCjBH9+GQLTHs2lIR8nVeYjX9SCPAWV1GvK5MybAiAccektabfPinojZQd5LmGLaozDxyrT/zADamkk3tmJtQ=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.5.0_1548429560743_0.905264956756674"},"_hasShrinkwrap":false},"0.6.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.6.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-env":"^7.3.1","@babel/preset-react":"^7.0.0","@types/react":"^16.8.2","@types/react-dom":"^16.8.0","@types/redux-logger":"^3.0.6","@typescript-eslint/eslint-plugin":"^1.2.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","eslint":"^5.13.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.12.4","html-webpack-plugin":"^3.2.0","immer":"^2.0.0","jest":"^24.1.0","react":"^16.8.1","react-dom":"^16.8.1","react-testing-library":"^5.5.3","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.3","typescript":"^3.3.1","webpack":"^4.29.2","webpack-cli":"^3.2.3","webpack-dev-server":"^3.1.14"},"peerDependencies":{"react":">=16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"ca79e8332ee6d4964f8cce932314ef21b2f34cf5","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.6.0","_npmVersion":"6.5.0","_nodeVersion":"8.14.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-NwfSIMWajZMX1AyLckcv1Re4D8YHIZns6XQKGJdTVvWFpwOx3ioGJY++PFxWHmKf6AjhyETVul9LuKcuelEjzg==","shasum":"a2e331b94b44613d9f09c3a56bf8650a6ce55ebb","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.6.0.tgz","fileCount":10,"unpackedSize":26371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcW9gGCRA9TVsSAnZWagAA+tsP+QEjqKefKiK5+h/uMgZW\nw2zNHWw/dnD64a4AozQbUy7Ubeq1X9vBa0ZoyQMOu/F3j9WednryLenf0Dfl\nIqiBb2XumPZwLBjIAFACyKiQoemGuQAPM21j+BjVLdWH8V7VEGopPlA7XH4g\nSnO6x6J7+pkjPdWVkCSo3IGzaccIwvPUfeaMIxcGJ+9wsApP5IUD6JKmWw+g\ngLGLNYH2vOwH4ZDSIi8NGhyv8ukwsNdXw2BwrH1BcHDpOI1TCie0x8H4t/jz\nJ6pYltRw0boFOxGJXM3CKSHyE/Pp+mNPd2GHMT824GSs3xS2fxTQFyYNbSgj\nm3LuX/ccxUMXTtiCQtXnM69/M7XHxwOjtcCivTFqFYyAdbwtKH9A6Kzcl9CP\np7h7L/IPTOJmn1jVAQD5gY/dmxtvpHPNpSUC2YBfNR4OMi+PyGnybNuGYxIc\nBJSgYqICXcrqGIkDjNtZYQRcOzZROcYPQ6m50zahv7YOPkO7VLIzJH0BAbbF\nc4DqSqIP3duAWEohldvXFBDGBBjPiQF3PQwrjkGLWsdgnI65W3x+lOaCk+FU\nrHKLRaSMHUTExMNNzMPc+TuO+unHe/eXGqr8gUuahf3dJdVtHxRLuVEMRSyi\nyME2G04yhCG3Y/qP+0sgMMXC6Xk48II2Mqvx42yt5SYTKCzI2WxheSjYq49h\neA/L\r\n=Z45+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhEwYT1htYZN73Ir4qMiMwsw3lGDm7+ToGfZZTGaKEJAiEAk3TWlMPq3uwY5RPxNamZjRIJdXzhJ3InYuH8toorBSU="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.6.0_1549522949838_0.42533301281182534"},"_hasShrinkwrap":false},"0.7.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.7.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/preset-env":"^7.3.1","@babel/preset-react":"^7.0.0","@types/react":"^16.8.2","@types/react-dom":"^16.8.0","@types/redux-logger":"^3.0.6","@typescript-eslint/eslint-plugin":"^1.2.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","eslint":"^5.13.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.12.4","html-webpack-plugin":"^3.2.0","immer":"^2.0.0","jest":"^24.1.0","react":"^16.8.1","react-dom":"^16.8.1","react-testing-library":"^5.5.3","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.3","typescript":"^3.3.1","webpack":"^4.29.2","webpack-cli":"^3.2.3","webpack-dev-server":"^3.1.14"},"peerDependencies":{"react":"~16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"6ec10665a7bb0313fc24f61ed2a8988e6d60e2cd","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.7.0","_npmVersion":"6.5.0","_nodeVersion":"8.14.0","_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"dist":{"integrity":"sha512-HA6B1w0skvfrs8LzMkv3wzLqjIcri/bQPmGAJxENYA+OKOwcE5Xg8VvU6SMoRLgRUBOD33x212SmNxLZFQLS6Q==","shasum":"c50436fcd0d8da2849ebb878b6791d32250605e5","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.7.0.tgz","fileCount":10,"unpackedSize":27672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcYOyxCRA9TVsSAnZWagAAuuQP/jJdTIrbw0Boy6vO6arN\ntSo2D/cuEgkVbGgkz4C8lGZaqXKqldkF68dUK2nDQIEuV/umSRBZS3rGLYLp\nbWFf26cFt7V+6llmb8x52aztvakup8Y4Z9XeemaygXvF1dmX+6fm2IwZbmHl\nT4o5mlYv167kqahzzrbjVSt+PjbK1CCTzuSKipCHu+zqm3TnlaubpU7DiQ7X\nCHf+/s7RiLOGHxkq4bs/SazXnr0yRXrUnEmHwlG0gsd9iGuA8rjtIfCUL88+\nFopeFvFntUteb77io284UwuKlVRInHVsT/XyT4lK1hRcZ60HXhlXjGPqGxLn\nFlMPREtzTZj6HKZrlH6BDl6u/gPpEjTG1QtxCcPStxibN2jguF9F+LIzqF7h\nm/z3WNcF+91LuFVyIlC0+YM14R0k/1XZQh/5PiT5EbnbKA75UKoLFQlqddqO\n80cmvIFtvbKIHui/HsL2L6EzeHgMVOB5Taf8vWCCPQwRCSbc2opn9AMv6A0M\nlRmcip4VMMvqWS3+n0kl5+U31WTa0s/G0IK0L8+iBl1ZxSQQkK7E/HrbripU\nODirT6Abj9nYXHZXpUEb7hQDDnKkJsOwmc0Co/w9W9xr8WJ3XIL0c1+tPCV5\ntbvGagjbIZnU6a2EEWfQeT30mvDucuQVLFvCIx1+yoXV6mKyvQnUKJHaqH8i\n5was\r\n=dnfN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzLIQu6+KYhSJsyITVvK6THdwzxCxSpOKwTTeZk4m6AAiAq1mIILmBR+0zZB6sZTGaHOdt+R9iHNZ+bFnXB2/Wu3g=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.7.0_1549855920429_0.8986997257271359"},"_hasShrinkwrap":false},"0.8.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.8.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","@babel/preset-react":"^7.0.0","@types/react":"^16.8.8","@types/react-dom":"^16.8.2","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^1.4.2","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","eslint":"^5.15.2","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.12.4","html-webpack-plugin":"^3.2.0","immer":"^2.1.3","jest":"^24.5.0","react":"^16.8.1","react-dom":"^16.8.4","react-testing-library":"^6.0.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.3","typescript":"^3.3.3333","webpack":"^4.29.6","webpack-cli":"^3.3.0","webpack-dev-server":"^3.2.1"},"peerDependencies":{"react":"~16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"5fd32658d32c52217f2a80cd39cd50bf44ed6d2d","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.8.0","_nodeVersion":"8.14.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-TYDCf6j/wEMPyUO8ZBqJwulhNnjNNSKlRdIkQY8I+zUPqrs4w86A0wz0Jwf9nhG69026bC3sCnaL76wOwvhd6Q==","shasum":"a7a86b6b6217c41f4228a24cbc2c2ae022d2a09f","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.8.0.tgz","fileCount":12,"unpackedSize":29368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjPXoCRA9TVsSAnZWagAAskoP/1S6b3aTjy7EXBhtkWb9\nZIxYgo/K6kjQ4X0VowI4ddu/x8lxWTSV/jOMpHv8zxwo1DrBCqDamKSLzUX+\nZx1zZDYnF0t4/2gAGaVieoKeqN9LprR9zcGSgRAsvfbZKh0nDHfj7r4QKe69\nVNX4Nx4rTcsksk4HWxV1cDhiZzGrI1neSVVmieYyNILMCJoxTtCSIY3aaHqL\nCb802tJApAUVoKq5pi4RdCEsbPJIEKW78Q29DyQXJO8Sm/HIqYCEtmrJFOro\nmwfuh4snoD2FIBByZmCep//zL6W2nVnv+6gyqrVbh2YJjDFNaK4fVnHz+477\n6s1Ojxq7iKKKpL16K5fshoRIHDg4GsHEzH75qLavq0qqXbFqj/xqbtO/FUne\nSLmFVoWAmRNRK5kmCpLCzbbi0S4HL97101NpWGzEwuHk7IisaggnsVhDHija\n/ZKcy4WcIOA0UWewMhdtSwuJ3gh5XItMnBasb84501cUf7nycKU9VNNA+O41\nlDDfp62JINYwEA5LPNFo3kOqyVPto3yk4AuMGd3bqIqJqdzfR5NjxDhKW6TV\nY4xrxGTLqhwuNTjyuXkkDvAckLRLxY0XJoVp1M0BfoDAOsNTpZvoKKijeAl7\n7g8el7futTxJT/fu/apHx1V+S97oPJgaTVUhICYFZjx6CdNW6U2Ox/gBZx7C\ncqBJ\r\n=+vPQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfLUxy0iw1Q+Qe/v7uZCzoHrOUSbPAG+bpdbaXLSqKjwIhAPtvHD/erRUOIkkHCwR7h+Q90DZxTLK2cSpET59sOi6N"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.8.0_1552741863434_0.6595131074210743"},"_hasShrinkwrap":false},"0.9.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.9.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","@babel/preset-react":"^7.0.0","@types/react":"^16.8.8","@types/react-dom":"^16.8.2","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^1.4.2","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","eslint":"^5.15.2","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.12.4","html-webpack-plugin":"^3.2.0","immer":"^2.1.3","jest":"^24.5.0","react":"^16.8.1","react-dom":"^16.8.4","react-testing-library":"^6.0.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.3","typescript":"^3.3.3333","webpack":"^4.29.6","webpack-cli":"^3.3.0","webpack-dev-server":"^3.2.1"},"peerDependencies":{"react":"~16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"7510eaeed744db3e0d8e53e2c70642705eeddca2","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.9.0","_nodeVersion":"8.14.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-zG77NerUAk2HbLlDahkFdKpuTZFsnkuuZ48hzPSEtLStp5ydFO5CGItFG/uqJ5X+QTPbqSCqRH/X562ghQnaGQ==","shasum":"72faae48e1489241af399f91ef5402f21861af9c","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.9.0.tgz","fileCount":12,"unpackedSize":30121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjmOpCRA9TVsSAnZWagAA/+8P/2nOHAiMmOvo9nGJcBuM\nf0qzfgSPbleyb/1H7WMeZPPyKoatI1SoHQqEq9h7g4Z0hnBk5UG2rxNBM5i2\nPArAct0+5OyIPfMGmo8ZZGR1fmAsQD4GYm1fjd0DjaJJPt+4SC3YWqSAN9cu\nSGc5o+dZ+9OEPTA3enOCn8hccvykHu2bEak9l+f1W3mnbyAeNpB3Fc1r4ZF7\nN1w3y/bpm9P0RWSjr8MG+esT8Iie6iqN9SQNGyQ/UJqMFTm6FS6VJbLFw/iS\njB5VHreNbOANfOqdr4syiZKWUpeb9Cq7Xwt7bcNvaX6W4d7+Y5j2ai26cIzP\n73omK1NDN42a59Jc1plrhGBBhMsk4e0OpdIKaai7aFh9msVUufgGHHtz2bwn\nic83f/4PSgRjHr7ur09wX5HX3WwradntVWXzo8551LxZJyzvdUfQ3zXNs/mc\nTgS2iksvEMKmyOWvANPY7EZJi/+mMnMNhQgVbkCyGXDKyI05Smim1hUtKdVx\nsDxoxHqJkd2GwbqDeGmKzTjHqgcg44d342+Po0rLCkhzHT65zk09klDCpo9f\nRAkLk8NV7lVfh+9NhjEbUKj+hKERr5T6psHzYK4euYrNdTOp7pV8iq0IeBgP\nblxWJIw7rx+BgieqToEMe3L409gLKIjLGz35vroW/nnSpa06227Wr/sNT/TP\nN9rC\r\n=+HC/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTFbxwg2MuiIwNBjiciyaA8Bu9JDyNfr3GCyzRwcDjNwIgdpF76tc7ABf/DAwge3UoZiadzZDjrVn1T2/Y3+PqXXI="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.9.0_1552835497122_0.8262207494104421"},"_hasShrinkwrap":false},"0.10.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.10.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","@babel/preset-react":"^7.0.0","@types/react":"^16.8.8","@types/react-dom":"^16.8.2","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^1.4.2","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","eslint":"^5.15.2","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.12.4","eslint-plugin-react-hooks":"^1.5.1","html-webpack-plugin":"^3.2.0","immer":"^2.1.3","jest":"^24.5.0","react":"^16.8.1","react-dom":"^16.8.4","react-testing-library":"^6.0.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^5.3.3","typescript":"^3.3.3333","webpack":"^4.29.6","webpack-cli":"^3.3.0","webpack-dev-server":"^3.2.1"},"peerDependencies":{"react":"~16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"8224d7ae5200996a6f30f63f970c5cb7a1c98e05","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.10.0","_nodeVersion":"8.14.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-FxrRG/O4gsX2fR07nMfKxBsXAK9QIdDCN4b9CggfX6R+Euk2ZQk3MXJES22Dsnq1NkBvcrVlhezjN3Y+ZbHlMw==","shasum":"71244e9941516bf5ec96ee4199072c6faa2f3444","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.10.0.tgz","fileCount":12,"unpackedSize":31149,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6AtWCRA9TVsSAnZWagAA0IcP/R25GJz56ijDv0fi2xPo\nyH9wfhxxvewBlWMBZuwMIjQoSElfwAq/F+3/n1qP6yajd6bhPXPXGqfYV8gu\n2Ox73N692pInGF76H+D0Dy22nWQTjQv954gGIPWhpFYWgC3sjqF1BTUXZaCN\nfw2a6MzWtqG3MGYpaM+igP7Lel10nAPO11Tt2gFoF2qTmcOkqqwxeBkp/A2W\n+FHie7QZOr8WzE2VMmiYyB6I46tCUwQQDJ3gNP8lVq/r5Ue5sdvvQmuWT8mK\nU5CZnojU4n3i+XvOCmQNHbuM3iR619ZLgU36BQPA3NohzUeFmGELeGbvcC8n\n5xlNMYX9V8bW8wJlos9xADjNWvKL2Bme0k1wQBbpaZvNvQjoDdmUjNhH0JEq\nubo/tGmGkzvO3brl6AAPEtN1JgXeCHhrB9ZgVsC0Jwa8YFzxFn2f2XPh2DFs\nfMWmdo9dOspyxj1TI33+2V2U8xOAHNxNli6MQvUtyIABHmh1IM4/Q/nl6dUL\nm3oMHJ84RcEIsyFQPrxss0PYaEZId7uhntfRd806MJvmd/1qaR3R8u6+yvSp\nBqwkJKtsHk6ryEVIR6sySgJoe9dP9btCCdXUNqlkqVljB93sZSNSJM46ryGy\nAVYel5ZCtPGzZqlpE6Il1b6SmCCNU9y1H4iBZM+2SUCJIYKYnH4rJENj/Hjy\nJHXc\r\n=IRne\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEaAhU11Dm4t/h1eVwugaf//UyECvARf/284sfK44ZpGAiAFEpbP9G3aqzgGPuF7Rq9Bda8HlHfuXONve45RJ8jeGg=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.10.0_1558711125213_0.7924120948082278"},"_hasShrinkwrap":false},"0.11.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.11.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:thunk":"DIR=08_thunk webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@babel/preset-react":"^7.0.0","@types/react":"^16.8.18","@types/react-dom":"^16.8.4","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^1.9.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","eslint":"^5.16.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.17.3","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.13.0","eslint-plugin-react-hooks":"^1.6.0","html-webpack-plugin":"^3.2.0","immer":"^3.1.2","jest":"^24.8.0","react":"^16.8.1","react-dom":"^16.8.6","react-testing-library":"^7.0.1","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.0.1","typescript":"^3.4.5","webpack":"^4.32.2","webpack-cli":"^3.3.2","webpack-dev-server":"^3.4.1"},"peerDependencies":{"react":"~16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"11aff4a31311a1b34457bf8ca9b8a32425142880","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.11.0","_nodeVersion":"8.14.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-bfGZQ1KJiAIyZtXNK/xuq0S6/TxAUYXWgd2gmK0Chox1fyKpbpNqbT6Q0q79W3hIjU4xrw8ae+i3amPBX+14dQ==","shasum":"5f8582b1c7f3189f492dfb6e6367523f767ef47f","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.11.0.tgz","fileCount":12,"unpackedSize":30690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6H9fCRA9TVsSAnZWagAA4gYP/2w9CDkRHK2x1WpSxAU+\n0Icr/1jxvL45UGmp+ukr/O9eJZpjlZquKdcKtUONRTKGDmrD6n+/8H/N5+sr\nnj1f0LOm41NK+y8KCHtC3aiewlZRzvRD18vH9g1Pg1lWx4FJExNlA5ZDYA/l\n4ZqNcqKYEID/r+E3wZ/CxAAivMl74H1vgspibGfsZktLo76TFXEwWLRt36qJ\nyLLRbHfbCpn0AmsFIZ0PaSZEzFhwtJgfqR/YIQ1fcrzxVleGAq+c296m+yF/\nrNMCdqoKCcjAtKH3hQdl8k+QEICwm3WNMju6xFL1rwc6X0/jkKvpp3YxeBkD\nhzdCCzDk7TEA8b6g9f9emozvhCYm8H2RpUAC/nlHXoOOw2A1DXa80v5X3R5J\nJvFfSyf4S+WGESpzxckQPq9e0rGtJ8BFPcT2dyRyqF7dYCCfn8cqFW60KtzT\n/jITrKcoz2ixj97hnuCdUCr2mWwQH2A1t4NdZBIrlVAc4ipGXEku5/rz4MAy\n3DNg5gF9PMFaPF6HR0AVxczdXTUZ5imCXCXTiE6nmYmkRAGzlsHKXcFu6EDX\nQQ5GXOk/RVdPRcfQH7C9KjRVYOe/oY+MN4i1s23ZyB8thwYtlffCrkR8qtcV\nyin1/TCiohXLz1EI9uBKAL8dH7uz+VBvclWvcjBprVX9gVOAN9Mm+Fx3HZxs\nM3/J\r\n=Rr6D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfJcDpKXtASCG3y73dbKVEOuo1fcXRZ4ZQUOFfY+ZqnwIhAN5kgpbHg/9z6wNSOo77vOPIxFxR4ZzqeNDX6lS0n9Zm"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.11.0_1558740830690_0.7605665177090393"},"_hasShrinkwrap":false},"0.12.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.12.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server","examples:hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@babel/preset-react":"^7.0.0","@types/react":"^16.8.18","@types/react-dom":"^16.8.4","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^1.9.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","eslint":"^5.16.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.17.3","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.13.0","eslint-plugin-react-hooks":"^1.6.0","html-webpack-plugin":"^3.2.0","immer":"^3.1.2","jest":"^24.8.0","react":"^16.8.1","react-dom":"^16.8.6","react-hot-loader":"^4.9.0","react-testing-library":"^7.0.1","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.0.1","typescript":"^3.4.5","webpack":"^4.32.2","webpack-cli":"^3.3.2","webpack-dev-server":"^3.4.1"},"peerDependencies":{"react":"~16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"9f267112786184e4ffd4834ef26ccdcf4ade3354","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.12.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-BzEzv0l16h75SI6nFeGqCZpqPcRQdQVTHsXQX1l2jFtUryMaDvbYpb9KA0n2cAyuJjAewr1UdOuOCw0oJS9jTg==","shasum":"8c6755aa73945000ba3f53edbd0d300f840b399d","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.12.0.tgz","fileCount":12,"unpackedSize":32213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+mPCCRA9TVsSAnZWagAAx7sP/3ZkzGRirLZJqeNX7EZK\nBK6es755ZEuIuBCLgw0jVqLyJ38FzfxxeE0fAJgfGP4AhKTj+F5NjgtceCMq\n3IM2mXjVIwqmLJm2/SR1vX3zbIGHjny8MO/jPTpB5irgF942k6oFC/rDRmq4\nvsi0kZI/lq8M/DSH+8Q2HfhCqtmRM3RM/kdiIZ3rA55Rz9DPEwrJTHvt6pXI\n/birG3aAYauGZHU9VzOFEn77svtYrHPkGciID5qZv3Q7Gjj6B4uAK0Cz/qky\nc3C5BkV4DdjKIsggGWLp+HH25ovCUegVZ3TUWZ871EMxWoboM08cuf/Pjo2H\nX6PHf7YRGD12qj8yf5knhz/a1OK/CLM94WYTMKn7B/NjOCKpndbM2Myj7jhE\n923ZCD7C3zr4uWn0U35gpvZiTq+xhQ2YrLPHClyM7DrPrDRhkVbdwgkm4YCO\n9uNArFzRBNCADdnIy8ZpSdQ3pPXoC0d7eDDK13BOe/wEITOS7jOkkdFYDpRr\nu4fVJ3H0PyTK9ymAWxmPbVQaWLajIDAlTa1wnbYkIygWuL4QCTYGFmndHDYe\nYYtnJ8ceKY+qwk0nUDFNYmXNbnr1CFYrpD9NwG52pm4enCHhR1tQ6YONPiL+\n2EqMzXY/FDslqRhxY0t8bAWj5K+CaU+5V3XWKtmLFFmWN+fpZfuXgxYvRqGS\nHwjN\r\n=4l87\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDCm0xZIOceb9180J3nexeBYZvAnHr+OSjJVnU7Z3eZAiEAliTMhvvxCHWDlhbr1B2ogH2kEzXGd7QA2OjKx204NmM="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.12.0_1559913409894_0.5820089246377314"},"_hasShrinkwrap":false},"0.13.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.13.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server","examples:hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@babel/preset-react":"^7.0.0","@types/react":"^16.8.19","@types/react-dom":"^16.8.4","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^1.10.2","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","eslint":"^5.16.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.17.3","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.13.0","eslint-plugin-react-hooks":"^1.6.0","html-webpack-plugin":"^3.2.0","immer":"^3.1.3","jest":"^24.8.0","react":"^16.8.1","react-dom":"^16.8.6","react-hot-loader":"^4.11.0","react-testing-library":"^8.0.1","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.0.2","typescript":"^3.5.1","webpack":"^4.33.0","webpack-cli":"^3.3.3","webpack-dev-server":"^3.7.1"},"peerDependencies":{"react":"~16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"9cdcecdbeba53a08f0f90a4f925cb1078e27a243","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.13.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-xKekdUj5vY/ZBI/PqYgfhf89SCyGgtGXBcyQ3yiDbkvmgaNm0qk0x8rO5Po1CZ6wSOOAkk5F8wR8eZSHkH/goQ==","shasum":"dc78f8568b6a5969c26af7f68988e4c78a949848","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.13.0.tgz","fileCount":12,"unpackedSize":33225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/wpkCRA9TVsSAnZWagAALVkQAIzE/PmDOHWJMGX1T3Ck\nu92cl4eIlgfp3PYKZ2irv2PvQXXcy3w+G02n5zPjWs7Qr6Dpeo8BEc3DXCcI\nhySWJGLsczWGOU+fnCiSPvi4qkn0dsANF0wXjUoq8CqLV3ACvcMaRCMFiQhe\nsePJQDypMbcPhW4qSFQx4OkbROZRLdH/7JMcoNfS96oKunIw0EpvGp8U7LHw\nk67gaIpzYuE1ohMiFqL70PWR/sI4NEITCIO/932+h2rJWLiWo80kC4G1NYc0\nPTFOYoxPz1/ygL5sFFtzZyUk9gxIF+Zmk6ZoaKMtLUGUjOjxCP9tbSNCw6pe\n8ulVfwWyYxpcerb0ViCLXjQ7ef+GOfg1N18bqzUIeLG5QZ4S+4P8EL3nGGi9\ntKkfS6UwPRwgZxMHDGLdEJ1hh0rZ/ODJY6IHf261DavWV6xquS6lJmXN3m4W\nmOGf5IYNfEG9XqM9rmrbHTAt0DUmQuuU9MPmqOuNLrr1cyH5tBeTMt+tM4vL\nIxUF/124bPw5bQvTHRBMmitBo+yZWYzIyeVAcOCVnpFuSPi5Z59Sn0eeQmN+\nx3IMhz95Eh0ofISOknYkZdQgYNnYu6SUsndM0XM6LRpznjOkEMmSKATn7WhO\nYevrxQo1Du+/9fltd4NS8A3sbr/s5qg8ia8Gi74CPkaFhgU3C6rV7ijv/qE0\nvXQe\r\n=RNZw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/JQ5ERJZgRXOw4vRk/DK76ASE+yXP6HGPnM25b3WkiAiB0ZyGJGL9T6LNt4zODeCpaHbKYiAo5ct2efZmiDcZVQg=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.13.0_1560218212168_0.34918585174546535"},"_hasShrinkwrap":false},"0.14.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.14.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server","examples:hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@babel/preset-react":"^7.0.0","@testing-library/react":"^8.0.1","@types/react":"^16.8.19","@types/react-dom":"^16.8.4","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^1.10.2","@typescript-eslint/parser":"^1.10.2","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","eslint":"^5.16.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.17.3","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.13.0","eslint-plugin-react-hooks":"^1.6.0","html-webpack-plugin":"^3.2.0","immer":"^3.1.3","jest":"^24.8.0","react":"^16.8.1","react-dom":"^16.8.6","react-hot-loader":"^4.11.0","redux":"^4.0.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.0.2","typescript":"^3.5.1","webpack":"^4.33.0","webpack-cli":"^3.3.3","webpack-dev-server":"^3.7.1"},"peerDependencies":{"react":"~16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"f11045dd380940b7d218848901d389c552e8729a","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.14.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-lDnjvvXqrs0AxJHPx3BuXNieOwnjIMLD5rpDAImOOXhCXS8PkZjmosStv7ponuj2SGSMYf+LXt8Spt/SEtonpw==","shasum":"10351425bbc87d46a0ff69be9878d3fe8938e95e","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.14.0.tgz","fileCount":12,"unpackedSize":33571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBMCCCRA9TVsSAnZWagAAPvYP+wdImFnGClXMGTZ95uVV\nqM59meSrk+mQHKU4nvg14r+bbq7GJU0bTFJSiPU+AJva1RlMiOQ10YwpAJDx\nALqQlBJ41i+aTKxrcRGQZUKTqd71ph73WaNRyOOD5tzqbKfOiFN83nWLc3L9\n/Ec3ZhtnSCt+Kkr3JqdqraQojr9QseVchjeiai2qS5uUBSB5qh42q+1Nynd9\nfjZ7UKIHpFEZ1PIxAZD2B383ipTqaulRKrdU3LHmgyE1BqF7qCTlVZP99Nfa\nfg+Hb+UHwFiKz9RYg8zKOTfeJxcD2Duwk1F7MuAl9qfOE80Hk1Ps70rVNHzd\niljnNAHETBbCJ07mBa1HXwGmaD1skeiixcHzFVKztFIeh3Ljog1s2DmqEmvN\nzrvBzIO1FrwluLhPx31iROi4qUnJtJb+NUw0S9oK6HR5PAUKlmW99cJEYNI4\nhomkMdMDTjAvk6YBjzD1lYPdMSClOcZlWBRR2cyZt8MgEZTk095gReYqinD0\nmbzKX7dCbTvUTCoOcxTpyO14tV5YdZp25VXg73tIn9DzMJfNp5mkqematHQP\nTVzQa2Wu+k4FaqsYt7ekm+grMwRZutXAn8MViYbAwe3HaXmFnxz7lW4y0OxQ\n5mVeHXBe5jkr4XgwTN50h/N6fB4Pu9IRghwlMeXwEGRo0LgiurqKvc9jc16u\n5wUc\r\n=X+UG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIALaAnuv7Cp53l/KIpYZbk3qO5SbhPI4oxzx/MYn9KNyAiEAxTplYWi1ZRRzVdDQ0YVZR9v4IU1wkuT2yIQmCphLpAA="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.14.0_1560592514037_0.9548192392463983"},"_hasShrinkwrap":false},"0.15.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.15.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server","examples:hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.6.2","@babel/core":"^7.6.2","@babel/preset-env":"^7.6.2","@babel/preset-react":"^7.0.0","@testing-library/react":"^9.1.4","@types/react":"^16.9.3","@types/react-dom":"^16.9.1","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","babel-core":"^7.0.0-bridge.0","babel-loader":"^8.0.6","eslint":"^6.4.0","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^2.0.1","html-webpack-plugin":"^3.2.0","immer":"^4.0.0","jest":"^24.9.0","react":"^16.9.0","react-dom":"^16.9.0","react-hot-loader":"^4.12.14","redux":"^4.0.4","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.1.2","typescript":"^3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9","webpack-dev-server":"^3.8.1"},"peerDependencies":{"react":"^16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"4c1255f2fa4195ebbc2b696625ce225641c7eafa","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.15.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-y7iofw/ymdWp4q33LNra9AoQXZArnLCoYwzgU+QLdqkbaHyDaLej3tu83LnMA5m9AHeEteZ145MmdXZ39xMjCw==","shasum":"b8a5320007b225cc945be459b3da9a7a3a95b17d","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.15.0.tgz","fileCount":12,"unpackedSize":34741,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiqTECRA9TVsSAnZWagAA7uEP/1g3pTovxLa3ZnHAYbj8\nlBHZl7KAO+RsF/HZmmUu4K4aiEG4im90TQ20KfAT/mhDKvQjzUeun9DNl/mM\n3nlCLw7M8X3F78sRoZ6UIT3smyDwPx3AXra7f63PdIqMno8GVJ6mGvgJq9dV\nx7WzdAbcj4kPQ2ymFkfcdN6topiObx5fI3XkdVzxSWmCALpjtATChGleWQ02\nsALK7l01xsrbrySb3uvSxWOkMh/sPT9Il6v1jwLI7zd0gQt0WADJOJnVdGAo\n8hzLJiXej8BEjb+fsJyAIUk8llm3GLt07JBx2O6Za0QuU09qo/aMXyF0alM/\nIyiPiC5vqDjSNYjNeUKfxNwkBarK5l6MnmUZsVUG1UtEDy0qCAmDUlXdzTLg\nq0nBM/ALUhpZlt5+/lzD8GKin5OZioYIlRkfIaqZ2Q5U/qVKI6B6siPdJkp0\nkwKawaSB2pGqLsp9T6vUcJCTWCtWrDMadKQRctrC5N8nD+f1juIfcDwCNzo7\n/oVPA7wn1b3ngPfZO0GuUy8cBLGPR2YrBXzVt/Rm5VIPECDgbRVuhItqi5Te\nGhI9w8cVINjc7mulA0q5ls/JtOEFgVyyVOCR69Qq3WZtMbAHA5sI+Fzq316v\n+kIn82nUNAa1hDgdb8ZomptHLLvMUzMT1Tl9z+YyVhgoFB4HkSynrP6bzwC6\nUpVE\r\n=7eFv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAU0mZSoeCb1xzWK6al4BwdKhBJ4qHJ+TBk3kDYWa/+hAiEA0I+T4u2VL3ZrdZlif7ILkh9hRwUnT8rLeWlnU8eaLuE="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.15.0_1569367235817_0.25714000730213127"},"_hasShrinkwrap":false},"0.15.1":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.15.1","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","browser":"./dist/index.js","types":"./src/index.d.ts","scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server","examples:hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.6.2","@babel/core":"^7.6.2","@babel/preset-env":"^7.6.2","@babel/preset-react":"^7.0.0","@testing-library/react":"^9.2.0","@types/react":"^16.9.4","@types/react-dom":"^16.9.1","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.3.2","@typescript-eslint/parser":"^2.3.2","babel-core":"^7.0.0-bridge.0","babel-loader":"^8.0.6","eslint":"^6.5.1","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.15.1","eslint-plugin-react-hooks":"^2.1.1","html-webpack-plugin":"^3.2.0","immer":"^4.0.0","jest":"^24.9.0","react":"^16.10.1","react-dom":"^16.10.1","react-hot-loader":"^4.12.14","redux":"^4.0.4","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.2.0","typescript":"^3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9","webpack-dev-server":"^3.8.2"},"peerDependencies":{"react":"^16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"7155d0a6f71fb72c8269baccc6ada0a4e5e2432b","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.15.1","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Xffz+F0IrnWir1mNjFdqkGqbdbg5jnrOh7F/YlUwkNWeUvRTJ1fkMmjZWfSwG1804nyYzYOrupI52k/Gqly3NQ==","shasum":"9b5bd3700c23faf50deacc790f031fa429b9e203","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.15.1.tgz","fileCount":12,"unpackedSize":34775,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlSzGCRA9TVsSAnZWagAAsosQAI0DQCzZo87AL9SF+WSr\nvk8yFa89qL6fOcveZi6ftHohU2ZyWHDflxXXxtySmzFx++pU6V2WjPl4vqdM\ng2dUZ2TvwQqNHQUVX0uvqO5v/vd8bAGgiEj4loZ7C55eEMKNi1hL6ysJZhf9\n+vPiFbO8s3AJWELjNADWh6IewkDRCd9i5pkQp0AnQxwU9nk+f+mYdbffyVWD\nhh9GOs/N5PY8bsH3agss4JyZgx0h1s9xXnuru60c54Ug7XWl7jB2uzVjimm0\naOsgrLvwUHdQ1oEdgVkpBJHzoJy2TlgSQy37hbSNkUZZurv541aC8dTrK9MH\nVNiAwax5b8QTe2mbwL+94zGtrOjsoDulXc17QtYEjmRXgxhZ27z447rhTuTb\nWnq39QvOrGIH7sD0UtVw9yi0UNcMi6pRVONgrS/6J7OiBY4yqEvXW1yHXEEq\nWFymuEpllPld6iBl3DVHvsGAsXS/m1MCk+nB3PDVMzHxBjieUBPtVg86oQlh\n4bnKl6qVaIbbcnHjX3oIYCnENsg0YkDTPAJYj1L9eyV8bmJdCMZTUIiXW7bv\nUWJAyNAGYgdcb6xX1Wd66NkX5Kn0/GP68zlFo6oDKqv6VKM7lRSlcha3Aidm\n65iIZ8gePFqnNaPpfzQJBXFolAvT0QRyO0cPr5ZM9HyhcNbbSVDuXNakWbmb\nbyoi\r\n=lq2N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDd+1Y2SFIU85SUqkP0OV6hH61MiLIeIZ7Rf6UCZW+7WwIhAOFd3zI7R0nIhPnqL+eYbnzo/2tW0Emb3t6B2e+dRqLV"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.15.1_1570057413433_0.32926183205034776"},"_hasShrinkwrap":false},"0.15.2":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.15.2","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","browser":"./dist/index.js","types":"./src/index.d.ts","sideEffects":false,"scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server","examples:hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.6.2","@babel/core":"^7.6.2","@babel/preset-env":"^7.6.2","@babel/preset-react":"^7.0.0","@testing-library/react":"^9.2.0","@types/react":"^16.9.4","@types/react-dom":"^16.9.1","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.3.2","@typescript-eslint/parser":"^2.3.2","babel-core":"^7.0.0-bridge.0","babel-loader":"^8.0.6","eslint":"^6.5.1","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.15.1","eslint-plugin-react-hooks":"^2.1.1","html-webpack-plugin":"^3.2.0","immer":"^4.0.0","jest":"^24.9.0","react":"^16.10.1","react-dom":"^16.10.1","react-hot-loader":"^4.12.14","redux":"^4.0.4","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.2.0","typescript":"^3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9","webpack-dev-server":"^3.8.2"},"peerDependencies":{"react":"^16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"e72f70c352bc8a3df31a4aab9607f8a80d29be8f","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.15.2","_nodeVersion":"10.16.3","_npmVersion":"6.12.0","dist":{"integrity":"sha512-gLeVH3zoZIDMDf8SWJpyfRTJB1XAU11tTujZ+YdWHGrxStlmaGT4ayMO3CdiLJkzKO7nBmXGMS16ErbKRriPhA==","shasum":"05823755c06ec2b8254f9ff6c3a91c96c74686f9","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.15.2.tgz","fileCount":12,"unpackedSize":34799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrIGLCRA9TVsSAnZWagAA0GAQAKSF8qIRA1/qyVwhEzKM\nAlR8XQ9DMu8uVrtWNg3kPNT7qV5VOjD6nmI/Bm/g9kDVijjMXVzcgIPj2p4K\nV3aN/rzCOjLkAQx2OBlDUXHDCG6mZGZSG9lGQXdydS96yXWS9FIMHFPoISCN\npWUtvVgKJE44a5SfaiUva32c3+FZl54ABxURZc6XjXuGf/cBk5eD2qcLwiUD\nhDKVhvS+LiO7xzJwta6XTLgcSy5q2kqKFVoAIgLZfWrsNOEzWiUxONIWNHAR\njUn4urWInVrGOXm6Y/cn4XSZoz4iNMEWHUuiqf65CpUf94QFNJTx4wrq5DBv\nNATInmk7GW3yIjcvlhtrntdgUr2rKL2OiHjrFaNqbuJZn6jNMMF5RxbpeFKu\nNM0jkl567ftteWL3cHwZlhmdTfpiUL0ovBoZCzqwLmzbRApnt1jKlgF4BoO4\nireAid3aYE9yOKn0JYLXzVL8HBv86QweBOaMcEat/SzCsaruhlPqlZ1gMPeo\nArqpCmyZbp7w6uw6nksHMbReqWF4VR+qrQd1n9XB+gJTvR8cC4H+dVYlTsTb\nK/0ZeAey7XQ0X7Pl1lvTzqO9mj1blrdoKTEp94CjOYYgG6uOPCG5EqH7Kx0z\nefL4simaRrujAenPZawSjD0ULJNipasUS2ZOLcbWGreoaxCmVDABDx+FUEUx\nke10\r\n=Ps1w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKFgdYi5gwrETfJ+mDKPcszdzbPc1N7KgVwrZzr/OD5wIgNEX5/sbghBhKqgFKhQaAo7D67lCl2WwGvx/uEcVHUos="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.15.2_1571586443106_0.3455990402656366"},"_hasShrinkwrap":false},"0.16.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.16.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","browser":"./dist/index.js","types":"./src/index.d.ts","sideEffects":false,"scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:typescript":"DIR=02_typescript webpack-dev-server","examples:actions":"DIR=03_actions webpack-dev-server","examples:fetch":"DIR=04_fetch webpack-dev-server","examples:onmount":"DIR=05_onmount webpack-dev-server","examples:reducer":"DIR=06_reducer webpack-dev-server","examples:middleware":"DIR=07_middleware webpack-dev-server","examples:comparison":"DIR=09_comparison webpack-dev-server","examples:immer":"DIR=10_immer webpack-dev-server","examples:deep":"DIR=11_deep webpack-dev-server","examples:effect":"DIR=12_effect webpack-dev-server","examples:persistence":"DIR=13_persistence webpack-dev-server","examples:hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.6.4","@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","@babel/preset-react":"^7.6.3","@testing-library/react":"^9.3.0","@types/react":"^16.9.9","@types/react-dom":"^16.9.2","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.5.0","@typescript-eslint/parser":"^2.5.0","babel-core":"^7.0.0-bridge.0","babel-loader":"^8.0.6","eslint":"^6.5.1","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.16.0","eslint-plugin-react-hooks":"^2.1.2","html-webpack-plugin":"^3.2.0","immer":"^4.0.1","jest":"^24.9.0","react":"^16.10.2","react-dom":"^16.10.2","react-hot-loader":"^4.12.15","redux":"^4.0.4","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.2.0","typescript":"^3.6.4","webpack":"^4.41.2","webpack-cli":"^3.3.9","webpack-dev-server":"^3.8.2"},"peerDependencies":{"react":"^16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"0c6a6f7c6b2ad4a9784b9b1eea7be2c2bf27a1b9","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.16.0","_nodeVersion":"10.16.3","_npmVersion":"6.12.0","dist":{"integrity":"sha512-aLM+i/JTl4qXnBQRs1pLZLSOsWQvZZC+uVkfk/QcXv/m6bNYDqwvNtzV1hcC9TnzNc6cTzlIcUkK/MW2zHSCkw==","shasum":"560fd523c9612f999af07ac86a8e399255934d59","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.16.0.tgz","fileCount":12,"unpackedSize":34674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrlryCRA9TVsSAnZWagAAKLwP/2py48IvnAX7upaK3spz\n1hTV4swILsXvjrr6Fg0C7I7I6i02miAhW/ZMJJE4IvHcKEN/KKf27a4Rrkm4\n5jfd4TXStNR/avYsekrmbev7JMjZZ7YJ57hpVyUSgJo+coljvH+9ao2up9+o\n7zXRHALsUopkizWxnI+PLjIvF/qVGXi9iiS9jjTh/nwwa3JdpeA7/rLR0dxs\nnlnLNtEoSkcnLWWv0oj5wFN1wqOBlPnKAhEzAfqNjzgBhw8fcWlMwHH06Spk\n7mkpCHt34zYYtqz5ErKlgbnhOr4xXn2V2QqBhszWX2iPoNd3XskO7tS/hD5s\neebce17ZoP8Azn53HBmZx2VsN7GG39qq3jijL47mLIuIxn6admB4swNlzT34\nZ6lwRNj4pSum7bPTISRqbWRYr4s74m3tUX7KXyK4h3fpPXWfcsmw+neGX6Nc\nWW/7nSrTFibk8aN6mWB8JQnKzhUBNoad4CKgmbBepRYJaJxBHKc3+yA0RHnb\nn5y83AmgAXkDN92aNWWwFUEq1fLs6uHDQ146wrrlGODoLDBM6PjcqHoYQdP6\noIQr0MYwxuQEpNt8jzioZNbJtqksJSVsZ/kBRCgwTMleMrggkoOixUjZM2Bl\nYw32ztX0XO0KdM8Y6zT72MOqlX2cjbvWa7pEKGG2TSoBGlSm3+J79M1+vxHb\n1+nU\r\n=Pg+2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1+1XfLBfMZV50TzBla3G/AigrkJBnGPHiHUGUB9wTSAIhAMd3jYZIPSFSmFUJ2k4m2lQHzrZk0Li7X3u06aZhJo1e"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.16.0_1571707634082_0.25965650856243006"},"_hasShrinkwrap":false},"0.17.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"0.17.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","browser":"./dist/index.js","types":"./src/index.d.ts","sideEffects":false,"scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:01_minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:02_typescript":"DIR=02_typescript webpack-dev-server","examples:03_actions":"DIR=03_actions webpack-dev-server","examples:04_fetch":"DIR=04_fetch webpack-dev-server","examples:05_onmount":"DIR=05_onmount webpack-dev-server","examples:06_reducer":"DIR=06_reducer webpack-dev-server","examples:07_middleware":"DIR=07_middleware webpack-dev-server","examples:08_thunk":"DIR=08_thunk webpack-dev-server","examples:09_comparison":"DIR=09_comparison webpack-dev-server","examples:10_immer":"DIR=10_immer webpack-dev-server","examples:11_deep":"DIR=11_deep webpack-dev-server","examples:12_effect":"DIR=12_effect webpack-dev-server","examples:13_persistence":"DIR=13_persistence webpack-dev-server","examples:14_hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.7.7","@babel/core":"^7.7.7","@babel/preset-env":"^7.7.7","@babel/preset-react":"^7.7.4","@testing-library/react":"^9.4.0","@types/react":"^16.9.17","@types/react-dom":"^16.9.4","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.15.0","@typescript-eslint/parser":"^2.15.0","babel-loader":"^8.0.6","eslint":"^6.8.0","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.19.1","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.17.0","eslint-plugin-react-hooks":"^2.3.0","html-webpack-plugin":"^3.2.0","immer":"^5.1.0","jest":"^24.9.0","react":"^16.12.0","react-dom":"^16.12.0","react-hot-loader":"^4.12.18","redux":"^4.0.5","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.2.1","typescript":"^3.7.4","webpack":"^4.41.5","webpack-cli":"^3.3.10","webpack-dev-server":"^3.10.1"},"peerDependencies":{"react":"^16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"1a95e5fcc2720cbf06519f553712d3000dbd4eb0","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@0.17.0","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-0tgMq2vZyHS2/aIGD1K8iFLCoYIx1lb4IxfjrAKyttPaX5Z0T++V99Gcm7sXpTgU7a3hziHUcTw6NRd1Af2A2w==","shasum":"fad448158cb0f3110ab4e2090ab82fcd328a1d1d","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-0.17.0.tgz","fileCount":12,"unpackedSize":37261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFzd/CRA9TVsSAnZWagAAJRIP/04cAgieNP1z+tsxf0v7\nsKuDS0/y29ljvu+Z6JHz7zzKEk+XPgZyNi0SA7Lsn6AXCJ7nrycS0zm04icz\nfIAN+UHUz2oqOWAw72vgkvihKQQhEfaxietHkB5LmhX1HuQm3rqVKuTCEpyV\neAwm4zISHcQDPC6oTsGlUQr+MIAJx4nyq8qE5JIa4sdO4+xpiHHEyI3YC+++\nCmZuURx+YlBQ1bfer+ydN1EKzZyoRvZNVKM53zl8nGiZvcRmme9mts/AHvqi\nOx55QL3a4Rj8GLNHXN7oXXFG81DaBeXX8w6WG7eOBCYgxO1WPEcaHVqrrBPm\nZCfTO4opCOT+LnCKVDClZN3XeKJLVpZb5CutXHP0JzLCEsppfQH0z/7egjkL\n7V4S9HhnVWCnQ9p2pLiEcdenbO9VA2Zenhsgvccu3NTQ7UiV9CGENHtqH4A+\n9S9NN5rjXCZKB/s+7oxR4FYJi21DD1EK5sHBhl01sFCKB561VDLuNEXwyzHF\nSxMoyIpl1BZ6nI/F+Z0/wcKBU0tqcMqjR3ga3gnZsy7vLqqVdSUv/A4SCeix\nQRPidw7FVaea11yT/p4vh9Mj+skI7dMTz6o+vJvMgruThN/EjkHAXmeJlqlT\nB4KFf1zUBaeAl620MAU+2B0OJD47rgs9/zNJA5UjBQ6mTUi7gsqe2LiWLWfH\n8wmX\r\n=1QBK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtctgSXeHrSD1xt9I7jgC9nAVwn/xQWt3cRWVQd+lAlAiBtGe3WVx6q4hKm1TrkPujyL6hfgCsvjLuXO1YNIrZAzg=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_0.17.0_1578579839401_0.756388957219762"},"_hasShrinkwrap":false},"1.0.0-alpha.1":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"1.0.0-alpha.1","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"main":"./dist/index.js","module":"./src/index.js","browser":"./dist/index.js","types":"./src/index.d.ts","sideEffects":false,"scripts":{"compile":"babel src -d dist && cp src/*.d.ts dist","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","examples:01_minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:02_typescript":"DIR=02_typescript webpack-dev-server","examples:03_actions":"DIR=03_actions webpack-dev-server","examples:04_fetch":"DIR=04_fetch webpack-dev-server","examples:05_onmount":"DIR=05_onmount webpack-dev-server","examples:06_reducer":"DIR=06_reducer webpack-dev-server","examples:07_middleware":"DIR=07_middleware webpack-dev-server","examples:08_thunk":"DIR=08_thunk webpack-dev-server","examples:09_comparison":"DIR=09_comparison webpack-dev-server","examples:10_immer":"DIR=10_immer webpack-dev-server","examples:11_deep":"DIR=11_deep webpack-dev-server","examples:12_effect":"DIR=12_effect webpack-dev-server","examples:13_persistence":"DIR=13_persistence webpack-dev-server","examples:14_hotloader":"DIR=14_hotloader webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/cli":"^7.8.3","@babel/core":"^7.8.3","@babel/preset-env":"^7.8.3","@babel/preset-react":"^7.8.3","@testing-library/react":"^9.4.0","@types/react":"^16.9.19","@types/react-dom":"^16.9.5","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.17.0","@typescript-eslint/parser":"^2.17.0","babel-loader":"^8.0.6","eslint":"^6.8.0","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.20.0","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.18.0","eslint-plugin-react-hooks":"^2.3.0","html-webpack-plugin":"^3.2.0","immer":"^5.3.2","jest":"^25.1.0","react":"^16.12.0","react-dom":"^16.12.0","react-hot-loader":"^4.12.19","redux":"^4.0.5","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-loader":"^6.2.1","typescript":"^3.7.5","webpack":"^4.41.5","webpack-cli":"^3.3.10","webpack-dev-server":"^3.10.1"},"peerDependencies":{"react":">=16.8.0"},"babel":{"presets":["@babel/preset-env","@babel/preset-react"]},"gitHead":"6b1f35a6b7d00053c5569345d10c4f5bd6a3ab0b","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@1.0.0-alpha.1","_nodeVersion":"10.16.3","_npmVersion":"6.13.6","dist":{"integrity":"sha512-pS7mMB8yMRBV+3kRO/sONjaK/Anei1R6fPdjpyetzPhml1w7Dq22XLKIraRCs+xzINkaKiEyztATJwpKWGtWhA==","shasum":"b90f67dada97f4e72083edbacfc459e05a3edabc","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-1.0.0-alpha.1.tgz","fileCount":12,"unpackedSize":37227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKbwuCRA9TVsSAnZWagAAMkUP/RHTHKGIOEe/lD/FRExu\nQoKc1YcOl6sdiXiZsX7tx/w6IsnLP6pzFy5W0TUENdSiGyvgVtME7bFebB0M\n5a+DopYIYMvfLtK0K/1LtEI1RyzqPNiNjXbED6cPBeDMxf6EXmf7w1psFLz5\ngjFT0wiikiLJ8S2gmNkAsd61Cbd8fw/jrMQMNoZhqm88MWzyJKcOMOTDukLi\nlv7kxUsmytTwkfz3eBbIkJpgF28HYTslnCVzO/uOjhfNfRRSG8QOX+mCfiP1\nzibWXccVNK39QZodTXdam+spZrV2lP4HUiPROxQ/7hl33Hp/zpjME67YH0lX\nfW6N5/5XLjpfnUyDtlL2Gx0xp2HQC/7Oo5jbeZ8uN8KpaFXQLnM1BSpMVJeX\nnhS94gMT5KtjGV2PhBBchgdrOHyMVVLt6Bg18oF82u2nKAxDPwd3V79wddzB\nNcdETIZ/fO9GODUbgyOTO3a1DpnPK8pTDQgBIKQhNJAq0PxCkoUzK/SaAuXB\n11Q/Xg9WRmTaDf1TuUV1fbAlmbYkPhvrUKadLkCxqBZQtOGlMkU96iDZFBYL\noMQ22pVJ3weGws1Ac6FuKT6RMg8NFOeXj5JQMA71HC1mDmlU2w3uXxrEx0+B\nDPmBU75miTFImk+XSTCQV8BLLw7wWrA6QrAoxt5DsaieBO31MwDAVEffeGBM\nN8Q5\r\n=lNWZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIXalnwQbTs25gUm5cNLKLWIgvsw9Za5yq21xtWIPiNAiEAkRZ9C6i62CKa0CdPZuBOExvxuNzq85Gg1hgj4hs73Gc="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_1.0.0-alpha.1_1579793453878_0.552173072688809"},"_hasShrinkwrap":false},"1.0.0-alpha.2":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"1.0.0-alpha.2","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.js","module":"./dist/index.esm.js","browser":"./dist/index.umd.js","types":"./dist/src/index.d.ts","sideEffects":false,"scripts":{"compile":"microbundle build --format cjs,es,umd","test":"npm run eslint && npm run tsc-test && npm run jest","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","examples:01_minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:02_typescript":"DIR=02_typescript webpack-dev-server","examples:03_actions":"DIR=03_actions webpack-dev-server","examples:04_fetch":"DIR=04_fetch webpack-dev-server","examples:05_onmount":"DIR=05_onmount webpack-dev-server","examples:06_reducer":"DIR=06_reducer webpack-dev-server","examples:07_middleware":"DIR=07_middleware webpack-dev-server","examples:08_thunk":"DIR=08_thunk webpack-dev-server","examples:09_comparison":"DIR=09_comparison webpack-dev-server","examples:10_immer":"DIR=10_immer webpack-dev-server","examples:11_deep":"DIR=11_deep webpack-dev-server","examples:12_effect":"DIR=12_effect webpack-dev-server","examples:13_persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/core":"^7.8.3","@babel/preset-env":"^7.8.3","@babel/preset-react":"^7.8.3","@pmmmwh/react-refresh-webpack-plugin":"^0.1.3","@testing-library/react":"^9.4.0","@types/jest":"^24.9.1","@types/react":"^16.9.19","@types/react-dom":"^16.9.5","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.17.0","@typescript-eslint/parser":"^2.17.0","babel-loader":"^8.0.6","documentation":"^12.1.4","eslint":"^6.8.0","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.20.0","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.18.0","eslint-plugin-react-hooks":"^2.3.0","html-webpack-plugin":"^3.2.0","immer":"^5.3.2","jest":"^25.1.0","microbundle":"^0.12.0-next.8","react":"^16.12.0","react-dom":"^16.12.0","react-refresh":"^0.7.2","redux":"^4.0.5","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","ts-jest":"^25.0.0","ts-loader":"^6.2.1","typescript":"^3.7.5","webpack":"^4.41.5","webpack-cli":"^3.3.10","webpack-dev-server":"^3.10.1"},"peerDependencies":{"react":">=16.8.0"},"gitHead":"53560e48518c4c5a3e03bcb2476ed8a9ed391740","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@1.0.0-alpha.2","_nodeVersion":"10.16.3","_npmVersion":"6.13.6","dist":{"integrity":"sha512-RDpqrQ4XYQKtbWPoTnsLadi7HKnthj5FCzbo5wPpdBLSdjftvLPRpd7zypZUOnR8FQjGdSgiXi03+ys0yEjtwA==","shasum":"4fc4dcb53467ef820ac2d718b6ff65a4854882a4","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-1.0.0-alpha.2.tgz","fileCount":20,"unpackedSize":76891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeLCjMCRA9TVsSAnZWagAA1g4P/0UqiCqAUYOTQO8oGOeo\noThlVndvvijZU17NdSyXpbeo58r+zvPKRURkWocCphiS+TE2IkRju4rAOORy\nn7WvNRbPwDEpuPM/SmCIZgZtqPJ9jq0yZNWycgNB1r8yOPdRLokt/CghiGWC\nyxxCEoXouY1P7S91oFUI7+MPM5Kl7EEdca188rsoPv/AUp8HRPTg83qOkgS0\ngqhrcr1zehZoR3leyRcSLXw+NrpetlVzgwFkBPtRyrL7zWsnW598l5QcThBZ\nZPcXPyAMY/5jPVVVM9+U5rLZ4XcGL0nHfIP38hHWtaOk+reebD5XFAn/yytD\nPx4Jes5E68tu4It0I4jju4k8TsH2FRMC/ldYRHgLf1PsBNtAgYV3RfHa0mr3\nbIO2ZU8i2eUabJ4wLcbVIDWu/AnanBDNsEhziEK7CowxE07ekSIBYGhso9S5\nMGiaXq4xZb3vBNLu2bTeDYyyQPJUsAGUnna5hc2wUpoGcGItftuDWggsJO2Y\nynB1Vk+37KwSln9CmeIyCrB5zW/fY/mni2YMHCgxxGdgbJYljsbWvDMWFfsi\nU6YvANEXaRNYs6E8p98NE9QBe4N5YCVix3cIAbTwodKzEztAVnjBg84XMY/6\nqyjSyUEMRgklXhs417anDBY4XaUwgX2UN5rMxQTkkPP0GScjib2aeDzFHLpR\nqPM8\r\n=pX0v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4UlGPuK5f+MIugs3DtHk63lab7F8s3qUj+pr0H+xCywIhAJrasbzK/y/YOQ+qvbjaXGP4t9y/wi+4U6j81gvp7eXQ"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_1.0.0-alpha.2_1579952332145_0.13203397181095622"},"_hasShrinkwrap":false},"1.0.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"1.0.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.js","module":"./dist/index.esm.js","browser":"./dist/index.umd.js","types":"./dist/src/index.d.ts","sideEffects":false,"scripts":{"compile":"microbundle build --format cjs,es,umd","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --config '{\"preset\":\"ts-jest/presets/js-with-ts\"}' __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:12_effect":"server-test examples:12_effect 8080 'jest --preset jest-puppeteer __tests__/e2e/12_effect.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:02_typescript":"DIR=02_typescript webpack-dev-server","examples:03_actions":"DIR=03_actions webpack-dev-server","examples:04_fetch":"DIR=04_fetch webpack-dev-server","examples:05_onmount":"DIR=05_onmount webpack-dev-server","examples:06_reducer":"DIR=06_reducer webpack-dev-server","examples:07_middleware":"DIR=07_middleware webpack-dev-server","examples:08_thunk":"DIR=08_thunk webpack-dev-server","examples:09_comparison":"DIR=09_comparison webpack-dev-server","examples:10_immer":"DIR=10_immer webpack-dev-server","examples:11_deep":"DIR=11_deep webpack-dev-server","examples:12_effect":"DIR=12_effect webpack-dev-server","examples:13_persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/core":"^7.8.4","@pmmmwh/react-refresh-webpack-plugin":"^0.1.3","@testing-library/react":"^9.4.0","@types/expect-puppeteer":"^4.4.0","@types/jest":"^25.1.2","@types/jest-environment-puppeteer":"^4.3.1","@types/puppeteer":"^2.0.0","@types/react":"16.9.19","@types/react-dom":"^16.9.5","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.20.0","@typescript-eslint/parser":"^2.20.0","babel-loader":"^8.0.6","documentation":"^12.1.4","eslint":"^6.8.0","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.20.1","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.18.3","eslint-plugin-react-hooks":"^2.4.0","html-webpack-plugin":"^3.2.0","immer":"^5.3.6","jest":"^25.1.0","jest-puppeteer":"^4.4.0","microbundle":"^0.12.0-next.8","npm-run-all":"^4.1.5","puppeteer":"^2.1.1","react":"^16.12.0","react-dom":"^16.12.0","react-refresh":"^0.7.2","redux":"^4.0.5","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","start-server-and-test":"^1.10.8","ts-jest":"^25.2.0","ts-loader":"^6.2.1","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11","webpack-dev-server":"^3.10.3"},"peerDependencies":{"react":">=16.8.0"},"gitHead":"0d9bab09d0772e55e3c4197633736e56efcb8a91","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@1.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-yxHtkYz99E3rdRXXa6bFrt+FiLey+qa8H/kVY01A/CuW/UtUpl6BY12gXkWDbvzF9mfweMF4hTOH1jwu5zx4yg==","shasum":"a30580aec8f74327798ec75bf08b44ccb7d0b94f","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-1.0.0.tgz","fileCount":20,"unpackedSize":79709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeS4ceCRA9TVsSAnZWagAAF+QP/jJPbqwq6HFSPedV8Kka\nvNWw3WIpYVYMtLcIbnj1WxEdLraPfX0UFptlWd3dZMFyJ61qWRdMMlFhvlOt\n0Sp3jerGfS1gIBUGSLGYZvRiDmIhcfom4kbvQhKQqOFPE5OjRsFLSr9diKOh\n55ebk4kIi6Zr7bXPkzhabbyZI481B71eeCwugtHTpQclLBDowk5LCa1Dxhu9\nJAkZ9Ffu1mQw/vRu0LtJrS11wC9D9tYIrijnpiTu3vbqxjnXQWiGeTFwAEHf\n//1edY5KZzW3orMnTwxmbk3QmfA9RHfzgoXmkIIDi6sXmLniWrLycBnkpsb0\nTseQF/XVq42C4sCd+cXSrsEXVoW9OjsJ4uFFlFC5vyjeWa/F55Xskn+cxuac\n3Obgxhhp5Iv/z6eMMfDWq5fZ+/8mFG2xtjuF575t0IBuuuJti4uJVG/rJb1r\nAdjxJWfthDkEVDniF1KhhGunze1lbZ5l/sk6GdpMR6zum1bwASNcBznJ8PY9\niECVDL94dEyAt9BgQvLHYFNgExEYD0M8n9wG/B7xflOV2yCSUWviVr646Hs6\nSnvclWzHiu3uzZEgnzONBDNZXRQBc/5tMGcn8vYUa/lmOOr5cAeNx9FCoNKc\nR10Kg/plfJuBsZS5P04s084b6AlBzzMyyLBl5YP2A5euH19FcmYg5c9xHF1B\nYTVm\r\n=Muec\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlG6Pz24fK4HR8Zv16zPMNJUJybHZJC09jnn21ifuY3wIhANE6xTrrHnwQFrlM+1fWVcRkVMYAzPIbuRPBCF5nmGYO"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_1.0.0_1582008094183_0.4780261992944881"},"_hasShrinkwrap":false},"2.0.0-alpha.1":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"2.0.0-alpha.1","publishConfig":{"tag":"next"},"author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.js","module":"./dist/index.esm.js","browser":"./dist/index.umd.js","types":"./dist/src/index.d.ts","sideEffects":false,"scripts":{"compile":"microbundle build --format cjs,es,umd","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/*.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:12_effect":"server-test examples:12_effect 8080 'jest --preset jest-puppeteer __tests__/e2e/12_effect.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:02_typescript":"DIR=02_typescript webpack-dev-server","examples:03_actions":"DIR=03_actions webpack-dev-server","examples:04_fetch":"DIR=04_fetch webpack-dev-server","examples:05_onmount":"DIR=05_onmount webpack-dev-server","examples:06_reducer":"DIR=06_reducer webpack-dev-server","examples:07_middleware":"DIR=07_middleware webpack-dev-server","examples:08_thunk":"DIR=08_thunk webpack-dev-server","examples:09_comparison":"DIR=09_comparison webpack-dev-server","examples:10_immer":"DIR=10_immer webpack-dev-server","examples:11_deep":"DIR=11_deep webpack-dev-server","examples:12_effect":"DIR=12_effect webpack-dev-server","examples:13_persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/core":"^7.9.6","@pmmmwh/react-refresh-webpack-plugin":"^0.3.1","@testing-library/react":"^10.0.4","@types/expect-puppeteer":"^4.4.1","@types/jest":"^25.2.1","@types/jest-environment-puppeteer":"^4.3.1","@types/puppeteer":"^2.0.1","@types/react":"^16.9.35","@types/react-dom":"^16.9.8","@types/redux-logger":"^3.0.7","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","babel-loader":"^8.1.0","documentation":"^13.0.0","eslint":"^7.0.0","eslint-config-airbnb":"^18.1.0","eslint-plugin-import":"^2.20.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.19.0","eslint-plugin-react-hooks":"^4.0.0","html-webpack-plugin":"^4.3.0","immer":"^6.0.5","jest":"^26.0.1","jest-puppeteer":"^4.4.0","microbundle":"^0.12.0","npm-run-all":"^4.1.5","puppeteer":"^3.0.4","react":"experimental","react-dom":"experimental","react-refresh":"^0.8.2","redux":"^4.0.5","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","start-server-and-test":"^1.11.0","ts-jest":"^25.5.1","ts-loader":"^7.0.3","typescript":"^3.8.3","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-dev-server":"^3.11.0"},"peerDependencies":{"react":">=16.14.0"},"readme":"# react-hooks-global-state\n\n[![Build Status](https://travis-ci.com/dai-shi/react-hooks-global-state.svg?branch=master)](https://travis-ci.com/dai-shi/react-hooks-global-state)\n[![npm version](https://badge.fury.io/js/react-hooks-global-state.svg)](https://badge.fury.io/js/react-hooks-global-state)\n[![bundle size](https://badgen.net/bundlephobia/minzip/react-hooks-global-state)](https://bundlephobia.com/result?p=react-hooks-global-state)\n\nSimple global state for React with Hooks API\n\n## Introduction\n\nThis is a library to provide a global state with React Hooks.\nIt has following characteristics.\n\n-   React Hooks only API without React Context\n    -   You don't need Context for global state.\n-   Hardly misusable selector by state keys\n    -   For most of cases, function selectors are not necessary.\n-   TypeScript type definitions\n    -   A creator function creates hooks with types inferred.\n-   Analogous APIs\n    -   useGlobalState works like React.useState.\n    -   useAtom resembles with the concept of Recoil.\n    -   createStore implies Redux.\n-   Concurrent Mode support\n    -   Under the hood, it's implemented with useMutableSource.\n    -   (For external stores like this, state branching is never possible.)\n\n## Install\n\n```bash\nnpm install react-hooks-global-state\n```\n\n## Usage\n\n### createAtom style\n\n```javascript\nimport React from 'react';\nimport { createAtom, useAtom } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst atom1 = createAtom(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useAtom(atom1, 'count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### createGlobalState style\n\n```javascript\nimport React from 'react';\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst { useGlobalState } = createGlobalState(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### createStore style\n\n```javascript\nimport React from 'react';\nimport { createStore } from 'react-hooks-global-state';\n\nconst reducer = (state, action) => {\n  switch (action.type) {\n    case 'increment': return { ...state, count: state.count + 1 };\n    case 'decrement': return { ...state, count: state.count - 1 };\n    default: return state;\n  }\n};\nconst initialState = { count: 0 };\nconst { dispatch, useGlobalState } = createStore(reducer, initialState);\n\nconst Counter = () => {\n  const [value] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {value}</span>\n      <button onClick={() => dispatch({ type: 'increment' })}>+1</button>\n      <button onClick={() => dispatch({ type: 'decrement' })}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### createAtom\n\ncreate an atom\n\nIt returns a set of functions to be called outside React\n\n-   `getStateByKey`: a function to get the part of state by key outside React\n-   `setStateByKey`: a function to set the part of state by key outside React\n-   `getState`: a function to get the entire state\n-   `setState`: a function to get the entire state\n-   `dispatch`: an optional function that can be used if reducer is provided\n\n#### Parameters\n\n-   `initialState` **State** \n-   `reducer` **Reducer&lt;State, Action>?** \n\n#### Examples\n\n```javascript\nimport { createAtom } from 'react-hooks-global-state';\n\nconst atom = createAtom({ count: 0 });\n\natom.setStateByKey('count', 1);\n```\n\n### createGlobalState\n\ncreate a gloal state\n\nIt returns a set of functions\n\n-   `useGlobalState`: a custom hook works like React.useState\n-   `getGlobalState`: a function to get a global state by key outside React\n-   `setGlobalState`: a function to set a global state by key outside React\n\n#### Parameters\n\n-   `initialState` **State** \n\n#### Examples\n\n```javascript\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst { useGlobalState } = createGlobalState({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### createStore\n\ncreate a global store\n\nIn additon to `useGlobaState` which is the same hook as in createGlobalState,\na store has `getState` and `dispatch`.\nA store works somewhat similarly to Redux, but not the same.\n\n#### Parameters\n\n-   `reducer` **Reducer&lt;State, Action>** \n-   `initialState` **State**  (optional, default `(reducer as any)(undefined,{type:undefined})`)\n-   `enhancer` **Enhancer&lt;any>?** \n\n#### Examples\n\n```javascript\nimport { createStore } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst reducer = ...;\n\nconst store = createStore(reducer, initialState);\nconst { useGlobalState } = store;\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### useAtom\n\nuse atom\n\na custom hook that works like React.useState\n\n#### Parameters\n\n-   `atom` **Atom&lt;State, any>** \n-   `stateKey` **any?** \n\n#### Examples\n\n```javascript\nimport { createAtom, useAtom } from 'react-hooks-global-state';\n\nconst atom = createAtom({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useAtom(atom, 'count');\n  ...\n};\n```\n\n## Examples\n\nThe [examples](examples) folder contains working examples.\nYou can run one of them with\n\n```bash\nPORT=8080 npm run examples:01_minimal\n```\n\nand open <http://localhost:8080> in your web browser.\n\nYou can also try them in codesandbox.io:\n[01](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/01_minimal)\n[02](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/02_typescript)\n[03](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/03_actions)\n[04](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/04_fetch)\n[05](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/05_onmount)\n[06](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/06_reducer)\n[07](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/07_middleware)\n[08](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/08_thunk)\n[09](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/09_comparison)\n[10](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/10_immer)\n[11](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/11_deep)\n[12](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/12_effect)\n[13](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/13_persistence)\n\n## Blogs\n\n-   [TypeScript-aware React hooks for global state](https://blog.axlight.com/posts/typescript-aware-react-hooks-for-global-state/)\n-   [An alternative to React Redux by React Hooks API (For both JavaScript and TypeScript)](https://blog.axlight.com/posts/an-alternative-to-react-redux-by-react-hooks-api-for-both-javascript-and-typescript/)\n-   [Redux middleware compatible React Hooks library for easy global state management](https://blog.axlight.com/posts/redux-middleware-compatible-react-hooks-library-for-easy-global-state-management/)\n-   [React Hooks Tutorial on pure useReducer + useContext for global state like Redux and comparison with react-hooks-global-state](https://blog.axlight.com/posts/react-hooks-tutorial-for-pure-usereducer-usecontext-for-global-state-like-redux-and-comparison/)\n-   [Four patterns for global state with React hooks: Context or Redux](https://blog.axlight.com/posts/four-patterns-for-global-state-with-react-hooks-context-or-redux/)\n-   [Steps to Develop Global State for React With Hooks Without Context](https://blog.axlight.com/posts/steps-to-develop-global-state-for-react/)\n\n## Community Wiki\n\n-   [Persistence](https://github.com/dai-shi/react-hooks-global-state/wiki/Persistence)\n-   [Optional initialState](https://github.com/dai-shi/react-hooks-global-state/wiki/Optional-initialState)\n","readmeFilename":"README.md","gitHead":"5652342d18f299436030764ee881ff477df3f77b","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@2.0.0-alpha.1","_nodeVersion":"10.19.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Mb6v+7Z2FrJpfTBU+CW78xYJgRvgQAUt/4veDYLD9rPRrWb2SZd2P9vT3WowTwA47xevTkXH7q1uCgj+E5eTiQ==","shasum":"d43e22709ea15e1400c7b17ac041a91403f646ee","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-2.0.0-alpha.1.tgz","fileCount":22,"unpackedSize":86365,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewNljCRA9TVsSAnZWagAAXr4P/07t/pZUBGzAA9Z3xRV8\nMzOdalV9y6PNio4AwetjaRK9WzovGL4gesysU71Uf6W/z7/VSY/p4CICOg3X\n5NI65U+xnKTMpBLAHkC6njusvmk3zDKMnH4L/V4Yd8GzoNj/9nymNYlp1Wv6\nlEeRnKPNVVG/eDsNNPc5UbUfXcm590jVOmlq4cpF9r/Oyho+DUudZXI8qJ2n\nNgfcK7aX84q1AACUYJmhgZTt4Qiz5dh74TCRmoI6qLCi1weXPZTCWq9HsAGM\nusnUx3us68PRNWy0017g4fDs6nndGzlx9O772v3vqR7Li4fpOb3CLuoYqdw6\nSCOX9PhM8Qsi+Hb7sRUsXQ/tyDYG7EifFqIo9yfLWc6kQauk12iQGow0UG8n\nKKVI/difVnTRm8zRJBpHrb+xHOg1F8P0LTQswOoyBrF7wvwnQCPJhlqUEyXI\nbqguFBzm5D0R9mlxK6YJ6jcxlAwoyv7UHlmFah4Z/47YO/GuvjVthTvAoMZC\nIa8fCx/pYjdnRTsCEhxq8O7bWEVGVcTDqv+oDB/0aNSr06TbUVZPkHMcCn/l\nZuICUe/pyHdRYPftu/5WcA/vd3wkdQ6v7QtkA8WX5Xx4ViVzOfw9p/OWS7X1\nRDN20Vj2zHfjJbXjTMlX5hZtcgDEph3pFBBakj1So3AAMn28Wkmm5ei9TqLz\n5tBR\r\n=Nceq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDk9e4SDZupJyCRdVIfvdPYCKe1osNuwO3LRKLeuCi+DAIhAKoFfZDCXT4xJwcTRb/To4aKXItbWsBwnndoqAIQy9e4"}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_2.0.0-alpha.1_1589696867459_0.9762428567560735"},"_hasShrinkwrap":false},"1.0.1":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"1.0.1","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","e2e-test:01_minimal":"NO_REACT_REFRESH=yes server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"NO_REACT_REFRESH=yes server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"NO_REACT_REFRESH=yes server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"NO_REACT_REFRESH=yes server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"NO_REACT_REFRESH=yes server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"NO_REACT_REFRESH=yes server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"NO_REACT_REFRESH=yes server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"NO_REACT_REFRESH=yes server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"NO_REACT_REFRESH=yes server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"NO_REACT_REFRESH=yes server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"NO_REACT_REFRESH=yes server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:12_effect":"NO_REACT_REFRESH=yes server-test examples:12_effect 8080 'jest --preset jest-puppeteer __tests__/e2e/12_effect.ts'","e2e-test:13_persistence":"NO_REACT_REFRESH=yes server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:02_typescript":"DIR=02_typescript webpack-dev-server","examples:03_actions":"DIR=03_actions webpack-dev-server","examples:04_fetch":"DIR=04_fetch webpack-dev-server","examples:05_onmount":"DIR=05_onmount webpack-dev-server","examples:06_reducer":"DIR=06_reducer webpack-dev-server","examples:07_middleware":"DIR=07_middleware webpack-dev-server","examples:08_thunk":"DIR=08_thunk webpack-dev-server","examples:09_comparison":"DIR=09_comparison webpack-dev-server","examples:10_immer":"DIR=10_immer webpack-dev-server","examples:11_deep":"DIR=11_deep webpack-dev-server","examples:12_effect":"DIR=12_effect webpack-dev-server","examples:13_persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/core":"^7.10.4","@pmmmwh/react-refresh-webpack-plugin":"^0.3.3","@testing-library/react":"^10.4.3","@types/expect-puppeteer":"^4.4.3","@types/jest":"^26.0.3","@types/jest-environment-puppeteer":"^4.3.2","@types/puppeteer":"^3.0.1","@types/react":"^16.9.41","@types/react-dom":"^16.9.8","@types/redux-logger":"^3.0.8","@typescript-eslint/eslint-plugin":"^3.5.0","@typescript-eslint/parser":"^3.5.0","babel-loader":"^8.1.0","documentation":"^13.0.2","eslint":"^7.4.0","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.22.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-react":"^7.20.3","eslint-plugin-react-hooks":"^4.0.5","html-webpack-plugin":"^4.3.0","immer":"^7.0.5","jest":"^26.1.0","jest-puppeteer":"^4.4.0","microbundle":"^0.12.2","npm-run-all":"^4.1.5","puppeteer":"^5.0.0","react":"^16.13.1","react-dom":"^16.13.1","react-refresh":"^0.8.3","redux":"^4.0.5","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","start-server-and-test":"^1.11.0","ts-jest":"^26.1.1","ts-loader":"^7.0.5","typescript":"^3.9.6","webpack":"^4.43.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.0"},"peerDependencies":{"react":">=16.8.0"},"gitHead":"1c26a6413c2d0d6cb5946e3d974f722ab83b5019","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@1.0.1","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-GFe/7KOdf8toByd8eF5LBhogMn65XSyghIzInsnA1e8vqIxGdT2Ohs2Ohdclp8CX0QU9xNj72ZIt+WD/SQEh9Q==","shasum":"3e4e1009f3e8a6fd001cd507808b4f1b289e9b27","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-1.0.1.tgz","fileCount":18,"unpackedSize":62942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/8tHCRA9TVsSAnZWagAA92wP/jwuuiUYWSr1JYB3LcZ1\nBCN1y2GGVw9h87XrFW16Gz7kiSnV/L3Be+U4UgKCo9HpzrccrOytB4A9M54t\nai63ooIwyXstYgVdQaUnnwwACGVms6Ufa/MpXfpFbd6WgzymFZqP/8kPFjqB\ng2VxMjBAI4fNjm034t/BtC4vAPZ5NWWGj1juMl0ohdsPGHFPzwGQFtO6O3/i\nuUHYGX1X5zykDrqa6VND8SXYzZJ2f0p1bV0cPqD6AN18lgC1JzkVgHjr+CTi\ndvwdEJ4UjC2fkrHlbd+lo30efu8N6ZkXsKFyhz2FNkrhx0q5mTUOAJY3dqxI\nvU7Zx/H92p1A1U1iH4jbdGhvKPp3aDT5V9zFiHQj/vzpg2aMCWYTtv7I8np6\nJ/Sy/4go2pMlQjTdJw9PZO9ohK99IHtlnyjJe9+UTi5GVF5MaIURFQdQVXEA\nCjIS0NyUPCeCm2y8iGnN70UBJh5RacS12lTSWmsUwvJ/BM5rCvbNMbhbkTvH\nEVB9xR+TNw/Im6j79AGoXf+CFEs1bNU0+NJQXWQSswbVsvhORgEN6Tc/s5G1\ne+oe6PYUqXkNxg+djCbG3UrFC02fqF9VK3ThufLcMydgUnu6WPS0X17Snh1P\n0JcOToo3jzogq6ASXCIEEBBRG1QcKgcoP+cC5NqyN1IPxTS2fuAo7sdqwHWV\nTni9\r\n=kVWo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGYW5VE9zN+MEi61sXk4QRko9T2kGQjrOETkfyf9LTCHAiBPhRc25JKa958vhUp00+ERxiOymwyG+y5HB8ouQeSkuw=="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_1.0.1_1593822023119_0.3620580473379973"},"_hasShrinkwrap":false},"2.0.0-alpha.2":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"2.0.0-alpha.2","publishConfig":{"tag":"next"},"author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/*.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:12_effect":"server-test examples:12_effect 8080 'jest --preset jest-puppeteer __tests__/e2e/12_effect.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:02_typescript":"DIR=02_typescript webpack-dev-server","examples:03_actions":"DIR=03_actions webpack-dev-server","examples:04_fetch":"DIR=04_fetch webpack-dev-server","examples:05_onmount":"DIR=05_onmount webpack-dev-server","examples:06_reducer":"DIR=06_reducer webpack-dev-server","examples:07_middleware":"DIR=07_middleware webpack-dev-server","examples:08_thunk":"DIR=08_thunk webpack-dev-server","examples:09_comparison":"DIR=09_comparison webpack-dev-server","examples:10_immer":"DIR=10_immer webpack-dev-server","examples:11_deep":"DIR=11_deep webpack-dev-server","examples:12_effect":"DIR=12_effect webpack-dev-server","examples:13_persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/core":"^7.10.4","@pmmmwh/react-refresh-webpack-plugin":"^0.3.3","@testing-library/react":"^10.4.3","@types/expect-puppeteer":"^4.4.3","@types/jest":"^26.0.3","@types/jest-environment-puppeteer":"^4.3.2","@types/puppeteer":"^3.0.1","@types/react":"^16.9.41","@types/react-dom":"^16.9.8","@types/redux-logger":"^3.0.8","@typescript-eslint/eslint-plugin":"^3.5.0","@typescript-eslint/parser":"^3.5.0","babel-loader":"^8.1.0","documentation":"^13.0.2","eslint":"^7.4.0","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.22.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-react":"^7.20.3","eslint-plugin-react-hooks":"^4.0.5","html-webpack-plugin":"^4.3.0","immer":"^7.0.5","jest":"^26.1.0","jest-puppeteer":"^4.4.0","microbundle":"^0.12.2","npm-run-all":"^4.1.5","puppeteer":"^5.0.0","react":"experimental","react-dom":"experimental","react-refresh":"^0.8.3","redux":"^4.0.5","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","start-server-and-test":"^1.11.0","ts-jest":"^26.1.1","ts-loader":"^7.0.5","typescript":"^3.9.6","webpack":"^4.43.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.0"},"peerDependencies":{"react":">=16.14.0"},"gitHead":"a86311b17c499e887b8009b896a33627468137e0","readme":"# react-hooks-global-state\n\n[![CI](https://img.shields.io/github/workflow/status/dai-shi/react-hooks-global-state/CI)](https://github.com/dai-shi/react-hooks-global-state/actions?query=workflow%3ACI)\n[![npm](https://img.shields.io/npm/v/react-hooks-global-state)](https://www.npmjs.com/package/react-hooks-global-state)\n[![size](https://img.shields.io/bundlephobia/minzip/react-hooks-global-state)](https://bundlephobia.com/result?p=react-hooks-global-state)\n\nSimple global state for React with Hooks API\n\n## Introduction\n\nThis is a library to provide a global state with React Hooks.\nIt has following characteristics.\n\n-   React Hooks only API without React Context\n    -   You don't need Context for global state.\n-   Hardly misusable selector by state keys\n    -   For most of cases, function selectors are not necessary.\n-   TypeScript type definitions\n    -   A creator function creates hooks with types inferred.\n-   Analogous APIs\n    -   useGlobalState works like React.useState.\n    -   useAtom resembles with the concept of Recoil.\n    -   createStore implies Redux.\n-   Concurrent Mode support\n    -   Under the hood, it's implemented with useMutableSource.\n    -   (For external stores like this, state branching is never possible.)\n\n## Install\n\n```bash\nnpm install react-hooks-global-state\n```\n\n## Usage\n\n### createAtom style\n\n```javascript\nimport React from 'react';\nimport { createAtom, useAtom } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst atom1 = createAtom(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useAtom(atom1, 'count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### createGlobalState style\n\n```javascript\nimport React from 'react';\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst { useGlobalState } = createGlobalState(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### createStore style\n\n```javascript\nimport React from 'react';\nimport { createStore } from 'react-hooks-global-state';\n\nconst reducer = (state, action) => {\n  switch (action.type) {\n    case 'increment': return { ...state, count: state.count + 1 };\n    case 'decrement': return { ...state, count: state.count - 1 };\n    default: return state;\n  }\n};\nconst initialState = { count: 0 };\nconst { dispatch, useGlobalState } = createStore(reducer, initialState);\n\nconst Counter = () => {\n  const [value] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {value}</span>\n      <button onClick={() => dispatch({ type: 'increment' })}>+1</button>\n      <button onClick={() => dispatch({ type: 'decrement' })}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### createAtom\n\ncreate an atom\n\nIt returns a set of functions to be called outside React\n\n-   `getStateByKey`: a function to get the part of state by key outside React\n-   `setStateByKey`: a function to set the part of state by key outside React\n-   `getState`: a function to get the entire state\n-   `setState`: a function to get the entire state\n-   `dispatch`: an optional function that can be used if reducer is provided\n\n#### Parameters\n\n-   `initialState` **State** \n-   `reducer` **Reducer&lt;State, Action>?** \n\n#### Examples\n\n```javascript\nimport { createAtom } from 'react-hooks-global-state';\n\nconst atom = createAtom({ count: 0 });\n\natom.setStateByKey('count', 1);\n```\n\n### createGlobalState\n\ncreate a gloal state\n\nIt returns a set of functions\n\n-   `useGlobalState`: a custom hook works like React.useState\n-   `getGlobalState`: a function to get a global state by key outside React\n-   `setGlobalState`: a function to set a global state by key outside React\n\n#### Parameters\n\n-   `initialState` **State** \n\n#### Examples\n\n```javascript\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst { useGlobalState } = createGlobalState({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### createStore\n\ncreate a global store\n\nIn additon to `useGlobalState` which is the same hook as in createGlobalState,\na store has `getState` and `dispatch`.\nA store works somewhat similarly to Redux, but not the same.\n\n#### Parameters\n\n-   `reducer` **Reducer&lt;State, Action>** \n-   `initialState` **State**  (optional, default `(reducer as any)(undefined,{type:undefined})`)\n-   `enhancer` **Enhancer&lt;any>?** \n\n#### Examples\n\n```javascript\nimport { createStore } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst reducer = ...;\n\nconst store = createStore(reducer, initialState);\nconst { useGlobalState } = store;\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### useAtom\n\nuse atom\n\na custom hook that works like React.useState\n\n#### Parameters\n\n-   `atom` **Atom&lt;State, any>** \n-   `stateKey` **any?** \n\n#### Examples\n\n```javascript\nimport { createAtom, useAtom } from 'react-hooks-global-state';\n\nconst atom = createAtom({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useAtom(atom, 'count');\n  ...\n};\n```\n\n## Examples\n\nThe [examples](examples) folder contains working examples.\nYou can run one of them with\n\n```bash\nPORT=8080 npm run examples:01_minimal\n```\n\nand open <http://localhost:8080> in your web browser.\n\nYou can also try them in codesandbox.io:\n[01](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/01_minimal)\n[02](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/02_typescript)\n[03](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/03_actions)\n[04](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/04_fetch)\n[05](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/05_onmount)\n[06](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/06_reducer)\n[07](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/07_middleware)\n[08](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/08_thunk)\n[09](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/09_comparison)\n[10](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/10_immer)\n[11](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/11_deep)\n[12](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/12_effect)\n[13](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/13_persistence)\n\n## Blogs\n\n-   [TypeScript-aware React hooks for global state](https://blog.axlight.com/posts/typescript-aware-react-hooks-for-global-state/)\n-   [An alternative to React Redux by React Hooks API (For both JavaScript and TypeScript)](https://blog.axlight.com/posts/an-alternative-to-react-redux-by-react-hooks-api-for-both-javascript-and-typescript/)\n-   [Redux middleware compatible React Hooks library for easy global state management](https://blog.axlight.com/posts/redux-middleware-compatible-react-hooks-library-for-easy-global-state-management/)\n-   [React Hooks Tutorial on pure useReducer + useContext for global state like Redux and comparison with react-hooks-global-state](https://blog.axlight.com/posts/react-hooks-tutorial-for-pure-usereducer-usecontext-for-global-state-like-redux-and-comparison/)\n-   [Four patterns for global state with React hooks: Context or Redux](https://blog.axlight.com/posts/four-patterns-for-global-state-with-react-hooks-context-or-redux/)\n-   [Steps to Develop Global State for React With Hooks Without Context](https://blog.axlight.com/posts/steps-to-develop-global-state-for-react/)\n\n## Community Wiki\n\n-   [Persistence](https://github.com/dai-shi/react-hooks-global-state/wiki/Persistence)\n-   [Optional initialState](https://github.com/dai-shi/react-hooks-global-state/wiki/Optional-initialState)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@2.0.0-alpha.2","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-K3zkRHtrVPy3Z/9h95JC1GE7yYGy4bMxremdvc9WzzXM46Heunso3MODAfdWDYsP5jgSrps/uCJbx1ViJr0Oqw==","shasum":"288c004d700813969dcecf9b6b1d3d3fa93d08a5","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-2.0.0-alpha.2.tgz","fileCount":20,"unpackedSize":68044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/9ASCRA9TVsSAnZWagAAg/MP/1Eee4RWnkkuhPKTUl8V\nlDbBzKB2ixAhf927fETQ5vC1YXN1DOG4p6Dm1o1bnMxryrcbNR3YEkAjsuXU\ne2QBcB3kAAbKyXxSh6y9JQOkujiwmALSnR4RPQIKkRPFX7FV4Ruwrl1uEkcG\n+SL7T5/yuBNtKhnpX68Ht41A2Lafs5xkLDv/jk2Zw6T1Fr/5UwUGXk28cfdm\ncR2KLQ8VgFIZZBqKsv2QnKa23GNQuIQvhvWv9/rg/3NtM5j7+awPLqku56t6\n8j69TuhWv+9VxWvT1v3pzTXaI9wb1G2NMgB+eTO7OVsfsnYyWgjVlUsnMRRw\nZCf5XCe/s6aAp9jKMisunlb6koY8ZkC2wfdRvyPfZvcECUdFJ4pRajeiW6pu\ntSr0NTOnzwdkyDomrDt/4Qy+ry59BeA08IPJpodczQNl/3TZiEf5niP6Yi/Y\n4DmeMoAwa0RSVdut0pyQLuXBr17lDYFpgyHcjXaPeEp+2cKxJMm7yeqTP31b\naqdD2LcQkbmgDQgxVP1+uxHaWqDF+xOXqLwePeaC/aXKC01k4LqObUT8wYBh\nX9E0OpYBteMvTjkqrmYnl19I1nYHTQTjVryvUsWPGT9MW8uVmHU2rej487L5\nBttRRgqEdoz2gWAGIAIhYNTHUOuLCLkmYLwd50Fdg1iNKmraq+BnqdAfsPXY\ntx4X\r\n=Ru8h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8Axqs5JM/JPeus9RrTAtzb/fh9/ZxXcIKvzWbm39hFAiEA28q/gF05b2bRqfmtZXe5hzD71acfncxt2dJQhuaIadc="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_2.0.0-alpha.2_1593823249846_0.7846349284087604"},"_hasShrinkwrap":false},"2.0.0-alpha.3":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API","version":"2.0.0-alpha.3","publishConfig":{"tag":"next"},"author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/*.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:12_effect":"server-test examples:12_effect 8080 'jest --preset jest-puppeteer __tests__/e2e/12_effect.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack-dev-server","examples:02_typescript":"DIR=02_typescript webpack-dev-server","examples:03_actions":"DIR=03_actions webpack-dev-server","examples:04_fetch":"DIR=04_fetch webpack-dev-server","examples:05_onmount":"DIR=05_onmount webpack-dev-server","examples:06_reducer":"DIR=06_reducer webpack-dev-server","examples:07_middleware":"DIR=07_middleware webpack-dev-server","examples:08_thunk":"DIR=08_thunk webpack-dev-server","examples:09_comparison":"DIR=09_comparison webpack-dev-server","examples:10_immer":"DIR=10_immer webpack-dev-server","examples:11_deep":"DIR=11_deep webpack-dev-server","examples:12_effect":"DIR=12_effect webpack-dev-server","examples:13_persistence":"DIR=13_persistence webpack-dev-server"},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/core":"^7.11.0","@pmmmwh/react-refresh-webpack-plugin":"^0.4.1","@testing-library/react":"^10.4.7","@types/expect-puppeteer":"^4.4.3","@types/jest":"^26.0.8","@types/jest-environment-puppeteer":"^4.3.2","@types/puppeteer":"^3.0.1","@types/react":"^16.9.44","@types/react-dom":"^16.9.8","@types/redux-logger":"^3.0.8","@typescript-eslint/eslint-plugin":"^3.8.0","@typescript-eslint/parser":"^3.8.0","babel-loader":"^8.1.0","documentation":"^13.0.2","eslint":"^7.6.0","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.22.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-react":"^7.20.5","eslint-plugin-react-hooks":"^4.0.8","html-webpack-plugin":"^4.3.0","immer":"^7.0.7","jest":"^26.2.2","jest-puppeteer":"^4.4.0","microbundle":"^0.12.3","npm-run-all":"^4.1.5","puppeteer":"^5.2.1","react":"experimental","react-dom":"experimental","react-refresh":"^0.8.3","redux":"^4.0.5","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","start-server-and-test":"^1.11.2","ts-jest":"^26.1.4","ts-loader":"^8.0.2","typescript":"^3.9.7","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.0"},"peerDependencies":{"react":">=16.14.0"},"gitHead":"70e40b39d8915a5d61775ea261745581d33957a0","readme":"# react-hooks-global-state\n\n[![CI](https://img.shields.io/github/workflow/status/dai-shi/react-hooks-global-state/CI)](https://github.com/dai-shi/react-hooks-global-state/actions?query=workflow%3ACI)\n[![npm](https://img.shields.io/npm/v/react-hooks-global-state)](https://www.npmjs.com/package/react-hooks-global-state)\n[![size](https://img.shields.io/bundlephobia/minzip/react-hooks-global-state)](https://bundlephobia.com/result?p=react-hooks-global-state)\n\nSimple global state for React with Hooks API\n\n## Introduction\n\nThis is a library to provide a global state with React Hooks.\nIt has following characteristics.\n\n-   React Hooks only API without React Context\n    -   You don't need Context for global state.\n-   Hardly misusable selector by state keys\n    -   For most of cases, function selectors are not necessary.\n-   TypeScript type definitions\n    -   A creator function creates hooks with types inferred.\n-   Analogous APIs\n    -   useGlobalState works like React.useState.\n    -   useAtom resembles with the concept of Recoil.\n    -   createStore implies Redux.\n-   Concurrent Mode support\n    -   Under the hood, it's implemented with useMutableSource.\n    -   (For external stores like this, state branching is never possible.)\n\n## Install\n\n```bash\nnpm install react-hooks-global-state\n```\n\n## Usage\n\n### createAtom style\n\n```javascript\nimport React from 'react';\nimport { createAtom, useAtom } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst atom1 = createAtom(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useAtom(atom1, 'count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### createGlobalState style\n\n```javascript\nimport React from 'react';\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst { useGlobalState } = createGlobalState(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### createStore style\n\n```javascript\nimport React from 'react';\nimport { createStore } from 'react-hooks-global-state';\n\nconst reducer = (state, action) => {\n  switch (action.type) {\n    case 'increment': return { ...state, count: state.count + 1 };\n    case 'decrement': return { ...state, count: state.count - 1 };\n    default: return state;\n  }\n};\nconst initialState = { count: 0 };\nconst { dispatch, useGlobalState } = createStore(reducer, initialState);\n\nconst Counter = () => {\n  const [value] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {value}</span>\n      <button onClick={() => dispatch({ type: 'increment' })}>+1</button>\n      <button onClick={() => dispatch({ type: 'decrement' })}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### createAtom\n\ncreate an atom\n\nIt returns a set of functions to be called outside React\n\n-   `getStateByKey`: a function to get the part of state by key outside React\n-   `setStateByKey`: a function to set the part of state by key outside React\n-   `getState`: a function to get the entire state\n-   `setState`: a function to get the entire state\n-   `dispatch`: an optional function that can be used if reducer is provided\n\n#### Parameters\n\n-   `initialState` **State** \n-   `reducer` **Reducer&lt;State, Action>?** \n\n#### Examples\n\n```javascript\nimport { createAtom } from 'react-hooks-global-state';\n\nconst atom = createAtom({ count: 0 });\n\natom.setStateByKey('count', 1);\n```\n\n### createGlobalState\n\ncreate a gloal state\n\nIt returns a set of functions\n\n-   `useGlobalState`: a custom hook works like React.useState\n-   `getGlobalState`: a function to get a global state by key outside React\n-   `setGlobalState`: a function to set a global state by key outside React\n\n#### Parameters\n\n-   `initialState` **State** \n\n#### Examples\n\n```javascript\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst { useGlobalState } = createGlobalState({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### createStore\n\ncreate a global store\n\nIn additon to `useGlobalState` which is the same hook as in createGlobalState,\na store has `getState` and `dispatch`.\nA store works somewhat similarly to Redux, but not the same.\n\n#### Parameters\n\n-   `reducer` **Reducer&lt;State, Action>** \n-   `initialState` **State**  (optional, default `(reducer as any)(undefined,{type:undefined})`)\n-   `enhancer` **Enhancer&lt;any>?** \n\n#### Examples\n\n```javascript\nimport { createStore } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst reducer = ...;\n\nconst store = createStore(reducer, initialState);\nconst { useGlobalState } = store;\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### useAtom\n\nuse atom\n\na custom hook that works like React.useState\n\n#### Parameters\n\n-   `atom` **Atom&lt;State, any>** \n-   `stateKey` **any?** \n\n#### Examples\n\n```javascript\nimport { createAtom, useAtom } from 'react-hooks-global-state';\n\nconst atom = createAtom({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useAtom(atom, 'count');\n  ...\n};\n```\n\n## Examples\n\nThe [examples](examples) folder contains working examples.\nYou can run one of them with\n\n```bash\nPORT=8080 npm run examples:01_minimal\n```\n\nand open <http://localhost:8080> in your web browser.\n\nYou can also try them in codesandbox.io:\n[01](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/01_minimal)\n[02](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/02_typescript)\n[03](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/03_actions)\n[04](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/04_fetch)\n[05](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/05_onmount)\n[06](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/06_reducer)\n[07](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/07_middleware)\n[08](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/08_thunk)\n[09](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/09_comparison)\n[10](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/10_immer)\n[11](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/11_deep)\n[12](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/12_effect)\n[13](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/master/examples/13_persistence)\n\n## Blogs\n\n-   [TypeScript-aware React hooks for global state](https://blog.axlight.com/posts/typescript-aware-react-hooks-for-global-state/)\n-   [An alternative to React Redux by React Hooks API (For both JavaScript and TypeScript)](https://blog.axlight.com/posts/an-alternative-to-react-redux-by-react-hooks-api-for-both-javascript-and-typescript/)\n-   [Redux middleware compatible React Hooks library for easy global state management](https://blog.axlight.com/posts/redux-middleware-compatible-react-hooks-library-for-easy-global-state-management/)\n-   [React Hooks Tutorial on pure useReducer + useContext for global state like Redux and comparison with react-hooks-global-state](https://blog.axlight.com/posts/react-hooks-tutorial-for-pure-usereducer-usecontext-for-global-state-like-redux-and-comparison/)\n-   [Four patterns for global state with React hooks: Context or Redux](https://blog.axlight.com/posts/four-patterns-for-global-state-with-react-hooks-context-or-redux/)\n-   [Steps to Develop Global State for React With Hooks Without Context](https://blog.axlight.com/posts/steps-to-develop-global-state-for-react/)\n\n## Community Wiki\n\n-   [Persistence](https://github.com/dai-shi/react-hooks-global-state/wiki/Persistence)\n-   [Optional initialState](https://github.com/dai-shi/react-hooks-global-state/wiki/Optional-initialState)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@2.0.0-alpha.3","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cysb5Uw5vdQSbCFm8bWNQYJv8IGy12byorxnkBSnfl0ruR4k2ZO182zjjq4rfMPXGsSaTWs0WtY0D+gxyFulXg==","shasum":"25585f1906e08d6e61f1bfb4aaaa2bc816cdc258","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-2.0.0-alpha.3.tgz","fileCount":20,"unpackedSize":68295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKVsrCRA9TVsSAnZWagAAbCQP/Ax41q4Whsq+PENR6ef/\nviqhGVCLOYlvmB489QN6Un6Oxa1eD91iZyzEC+rXni1SlMp5y7oAbKWlwsY/\nqZjdLF3to80/QLGXWT+LaAEdYeY8RCqqXvx8vzZWYkyfJBMaYxA4lMS//wzK\nqHYsfwk4Bkdugjn37dVrDdAPhju5xldP5nemQuK1U9y/63SbIXrncu6FADa3\nKO2/fWIIhcH9YcBR/44h4O8aJxkAmJe2VmUZr4d75A/Oy7aDI5waBxUsBhJv\n9zvJhcZqkzr8CXIko1OAv+KwmIIBWQZ+DpeBhnH7q7lZkO4mXh/ul1OJoe9c\nODO4FxJ9z9nY9rUeVoPRV11gx3up9ZweJ4jr3yeupUduepyBrBi838nOdkbP\nBWXc/Oww1z08L4D+r+Zq5MDaR4Xc1zkFC+Ri7sL+wziDjc0xXnT4hF7P+nKC\nhwkD7Qd8gbaMabGj7yvdXKSDZge/NoE8ipaDEh+uP49ZHFQzEJUDBX5EpZed\ndaT/zoy/YIP9S2jDHKM6GEaxKxs/fBCOVvVn+yX4H7YN6roaKF6akYAoGXIL\nM+K2/vqVmC2ooATr/cn+5QecrSjWAH7F1oMGp399fQBx6uZSfDnH5zTKk7s1\n2IoV1ql0S/6kEtUjPMt8hMOdmV3bE5Q5whcnlcezCBg2aoOBdnggp2ga08/c\nYLjd\r\n=rQwS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5ExBMjAUtrN3kZpi7WjcNO0/BaePrfHYsNUI4QyXf1AiEAhshOt8N9cd2+94IWtrduUSRbjRjsZB+cqxUToMOZouY="}]},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_2.0.0-alpha.3_1596545834742_0.8745122783094283"},"_hasShrinkwrap":false},"1.0.2":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API without Context API","version":"1.0.2","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/src/index.d.ts","module":"./dist/index.modern.js","import":"./dist/index.modern.mjs","default":"./dist/index.umd.js"}},"sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd","postcompile":"cp dist/index.modern.mjs dist/index.modern.js && cp dist/index.modern.mjs.map dist/index.modern.js.map","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:12_effect":"server-test examples:12_effect 8080 'jest --preset jest-puppeteer __tests__/e2e/12_effect.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack-cli serve","examples:02_typescript":"DIR=02_typescript webpack-cli serve","examples:03_actions":"DIR=03_actions webpack-cli serve","examples:04_fetch":"DIR=04_fetch webpack-cli serve","examples:05_onmount":"DIR=05_onmount webpack-cli serve","examples:06_reducer":"DIR=06_reducer webpack-cli serve","examples:07_middleware":"DIR=07_middleware webpack-cli serve","examples:08_thunk":"DIR=08_thunk webpack-cli serve","examples:09_comparison":"DIR=09_comparison webpack-cli serve","examples:10_immer":"DIR=10_immer webpack-cli serve","examples:11_deep":"DIR=11_deep webpack-cli serve","examples:12_effect":"DIR=12_effect webpack-cli serve","examples:13_persistence":"DIR=13_persistence webpack-cli serve"},"jest":{"testEnvironment":"jsdom","transform":{"^.+\\.ts$":"ts-jest"}},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{},"devDependencies":{"@babel/core":"^7.15.0","@pmmmwh/react-refresh-webpack-plugin":"^0.4.3","@testing-library/react":"^12.0.0","@types/expect-puppeteer":"^4.4.6","@types/jest":"^27.0.1","@types/jest-environment-puppeteer":"^4.4.1","@types/puppeteer":"^5.4.4","@types/react":"^17.0.17","@types/react-dom":"^17.0.9","@types/redux-logger":"^3.0.9","@typescript-eslint/eslint-plugin":"^4.29.1","@typescript-eslint/parser":"^4.29.1","babel-loader":"^8.2.2","documentation":"^13.2.5","eslint":"^7.32.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.24.0","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-react":"^7.24.0","eslint-plugin-react-hooks":"^4.2.0","html-webpack-plugin":"^5.3.2","immer":"^9.0.5","jest":"^27.0.6","jest-puppeteer":"^5.0.4","microbundle":"^0.13.3","npm-run-all":"^4.1.5","puppeteer":"^10.2.0","react":"^16.13.1","react-dom":"^17.0.2","react-refresh":"^0.10.0","redux":"^4.1.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","start-server-and-test":"^1.13.1","ts-jest":"^27.0.4","ts-loader":"^9.2.5","typescript":"^4.3.5","webpack":"^5.50.0","webpack-cli":"^4.7.2","webpack-dev-server":"^3.11.2"},"peerDependencies":{"react":">=16.8.0"},"resolutions":{"@types/node":"^15"},"gitHead":"a0999a44574aba964b5516fa57083b53864f6b58","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@1.0.2","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-UcWz+VjcUUCQ7bXGmOhanGII3j22zyPSjwJnQWeycxFYj/etBxIbz9xziEm4sv5+OqGuS7bzvpx24XkCxgJ7Bg==","shasum":"37bbc3203a0be9f3ac0658abfd28dd7ce7ee166c","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-1.0.2.tgz","fileCount":20,"unpackedSize":80234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFvjnCRA9TVsSAnZWagAAu9wQAJuXnGbNgQ1HMs22V6mv\nB2ZbfbV0+PeKnI6PXCML3PF6fVFKLWUG6VeFQzQAei0k2aiNG/mB34zmf83x\nNo169GCG4fryvMprxjRC9OGGVgE6vhNzSVwG+r2deDVvq46P/ZDueTwQUAMK\nXpLNgDXXDdqcJSCU8B36nWDaac8wrWzuTjJ7bFlhuiofFiYUCw0uBfRrZU48\ncJyqNJF4KgT6wrn8b73OwIsPZy1yVbFekgnZuy26IENPhfHS5EM60zhPliDw\nEsEsaxJbmi/eRrT7394Z7ISaSv7HdXPWtHyEF5UyMLcV2lbyxTj7R+inBAYV\na0Ry7cOJcHsSQgbf/3LsPSEVtuaBClqqfHUDSfrTBQ/1D3n9FpLIvsjdgAZ7\nWYaqYkOuXeUPjrnX9c0eivAKi62XNeWkoW1jNp0AzTIY06QMCSkgbDaU7dsV\na76Jy7+fg6VdlsHv3DzN/FHpabbIJgahoxKJYpRewPN2yEAwjqLgNFB4nk33\nKImVIEplV9IeAMKqGdVMwcnSZZQUbssV3rKp6v8x/hWeDWezCPBWKg7suTOp\nsOlyXqECXMen42Sc7nhSSLl69GtjwVfz8OgCXQv1krmoT0/taE3fL4ZgbC+D\nPlyorbXCcxmNCZPL/W5ZuGibtJzTLUwHnME7W+3fbP5M/F3tKdd/uMkwV1H+\nX5Gw\r\n=ZU+u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRRRIQTAVRJ+EQZqMjBAaSetldO+0k4WK8lKuqRurffgIgQ4dsIdPzY42uLwl9IfCL9m6Q1FOJONaHyrZIcbxg8Ek="}]},"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_1.0.2_1628895463723_0.1655742301836054"},"_hasShrinkwrap":false},"2.0.0-alpha.4":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API without Context API","version":"2.0.0-alpha.4","publishConfig":{"tag":"next"},"author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/src/index.d.ts","module":"./dist/index.modern.js","import":"./dist/index.modern.mjs","default":"./dist/index.umd.js"}},"sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd","postcompile":"cp dist/index.modern.mjs dist/index.modern.js && cp dist/index.modern.mjs.map dist/index.modern.js.map","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:12_effect":"server-test examples:12_effect 8080 'jest --preset jest-puppeteer __tests__/e2e/12_effect.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack-cli serve","examples:02_typescript":"DIR=02_typescript webpack-cli serve","examples:03_actions":"DIR=03_actions webpack-cli serve","examples:04_fetch":"DIR=04_fetch webpack-cli serve","examples:05_onmount":"DIR=05_onmount webpack-cli serve","examples:06_reducer":"DIR=06_reducer webpack-cli serve","examples:07_middleware":"DIR=07_middleware webpack-cli serve","examples:08_thunk":"DIR=08_thunk webpack-cli serve","examples:09_comparison":"DIR=09_comparison webpack-cli serve","examples:10_immer":"DIR=10_immer webpack-cli serve","examples:11_deep":"DIR=11_deep webpack-cli serve","examples:12_effect":"DIR=12_effect webpack-cli serve","examples:13_persistence":"DIR=13_persistence webpack-cli serve"},"jest":{"testEnvironment":"jsdom","transform":{"^.+\\.ts$":"ts-jest"}},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{"zustand":"^3.5.10"},"devDependencies":{"@testing-library/react":"^12.0.0","@types/expect-puppeteer":"^4.4.6","@types/jest":"^27.0.1","@types/jest-environment-puppeteer":"^4.4.1","@types/puppeteer":"^5.4.4","@types/react":"^17.0.20","@types/react-dom":"^17.0.9","@types/redux-logger":"^3.0.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","documentation":"^13.2.5","eslint":"^7.32.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.24.2","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-react":"^7.25.1","eslint-plugin-react-hooks":"^4.2.0","html-webpack-plugin":"^5.3.2","immer":"^9.0.6","jest":"^27.1.1","jest-puppeteer":"^5.0.4","microbundle":"^0.13.3","npm-run-all":"^4.1.5","puppeteer":"^10.2.0","react":"^16.13.1","react-dom":"^17.0.2","redux":"^4.1.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","start-server-and-test":"^1.14.0","ts-jest":"^27.0.5","ts-loader":"^9.2.5","typescript":"^4.4.2","webpack":"^5.52.0","webpack-cli":"^4.8.0","webpack-dev-server":"^4.1.1"},"peerDependencies":{"react":">=16.8.0"},"resolutions":{"@types/node":"^15"},"gitHead":"b102d54a47c33d01db3cce6f5fb23651957c165d","readme":"# react-hooks-global-state\n\n[![CI](https://img.shields.io/github/workflow/status/dai-shi/react-hooks-global-state/CI)](https://github.com/dai-shi/react-hooks-global-state/actions?query=workflow%3ACI)\n[![npm](https://img.shields.io/npm/v/react-hooks-global-state)](https://www.npmjs.com/package/react-hooks-global-state)\n[![size](https://img.shields.io/bundlephobia/minzip/react-hooks-global-state)](https://bundlephobia.com/result?p=react-hooks-global-state)\n[![discord](https://img.shields.io/discord/627656437971288081)](https://discord.gg/MrQdmzd)\n\nSimple global state for React with Hooks API without Context API\n\n## Introduction\n\nThis is a library to provide a global state with React Hooks.\nIt has following characteristics.\n\n-   Optimization for shallow state getter and setter.\n    -   The library cares the state object only one-level deep.\n-   TypeScript type definitions\n    -   A creator function creates hooks with types inferred.\n-   Redux middleware support to some extent\n    -   Some of libraries in Redux ecosystem can be used.\n\n## Install\n\n```bash\nnpm install react-hooks-global-state\n```\n\n## Usage\n\n### setState style\n\n```javascript\nimport React from 'react';\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst { useGlobalState } = createGlobalState(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### reducer style\n\n```javascript\nimport React from 'react';\nimport { createStore } from 'react-hooks-global-state';\n\nconst reducer = (state, action) => {\n  switch (action.type) {\n    case 'increment': return { ...state, count: state.count + 1 };\n    case 'decrement': return { ...state, count: state.count - 1 };\n    default: return state;\n  }\n};\nconst initialState = { count: 0 };\nconst { dispatch, useGlobalState } = createStore(reducer, initialState);\n\nconst Counter = () => {\n  const [value] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {value}</span>\n      <button onClick={() => dispatch({ type: 'increment' })}>+1</button>\n      <button onClick={() => dispatch({ type: 'decrement' })}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### createGlobalState\n\ncreate a global state\n\nIt returns a set of functions\n\n-   `useGlobalState`: a custom hook works like React.useState\n-   `getGlobalState`: a function to get a global state by key outside React\n-   `setGlobalState`: a function to set a global state by key outside React\n\n#### Parameters\n\n-   `initialState` **State** \n\n#### Examples\n\n```javascript\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst { useGlobalState } = createGlobalState({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### createStore\n\ncreate a global store\n\nIn additon to `useGlobalState` which is the same hook as in createGlobalState,\na store has `getState` and `dispatch`.\nA store works somewhat similarly to Redux, but not the same.\n\n#### Parameters\n\n-   `reducer` **Reducer&lt;State, Action>** \n-   `initialState` **State**  (optional, default `(reducer as any)(undefined,{type:undefined})`)\n-   `enhancer` **Enhancer&lt;any>?** \n\n#### Examples\n\n```javascript\nimport { createStore } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst reducer = ...;\n\nconst store = createStore(reducer, initialState);\nconst { useGlobalState } = store;\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n## Examples\n\nThe [examples](examples) folder contains working examples.\nYou can run one of them with\n\n```bash\nPORT=8080 npm run examples:01_minimal\n```\n\nand open <http://localhost:8080> in your web browser.\n\nYou can also try them in codesandbox.io:\n[01](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/01_minimal)\n[02](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/02_typescript)\n[03](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/03_actions)\n[04](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/04_fetch)\n[05](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/05_onmount)\n[06](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/06_reducer)\n[07](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/07_middleware)\n[08](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/08_thunk)\n[09](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/09_comparison)\n[10](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/10_immer)\n[11](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/11_deep)\n[12](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/12_effect)\n[13](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/13_persistence)\n\n## Blogs\n\n-   [TypeScript-aware React hooks for global state](https://blog.axlight.com/posts/typescript-aware-react-hooks-for-global-state/)\n-   [An alternative to React Redux by React Hooks API (For both JavaScript and TypeScript)](https://blog.axlight.com/posts/an-alternative-to-react-redux-by-react-hooks-api-for-both-javascript-and-typescript/)\n-   [Redux middleware compatible React Hooks library for easy global state management](https://blog.axlight.com/posts/redux-middleware-compatible-react-hooks-library-for-easy-global-state-management/)\n-   [React Hooks Tutorial on pure useReducer + useContext for global state like Redux and comparison with react-hooks-global-state](https://blog.axlight.com/posts/react-hooks-tutorial-for-pure-usereducer-usecontext-for-global-state-like-redux-and-comparison/)\n-   [Four patterns for global state with React hooks: Context or Redux](https://blog.axlight.com/posts/four-patterns-for-global-state-with-react-hooks-context-or-redux/)\n-   [Steps to Develop Global State for React With Hooks Without Context](https://blog.axlight.com/posts/steps-to-develop-global-state-for-react/)\n\n## Community Wiki\n\n-   [Persistence](https://github.com/dai-shi/react-hooks-global-state/wiki/Persistence)\n-   [Optional initialState](https://github.com/dai-shi/react-hooks-global-state/wiki/Optional-initialState)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@2.0.0-alpha.4","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-vAPvSbdi5lzHu3f3EF3Kya026VCt/NuJBLA3JaHNFkZymA/rHPhURtcKKxwLmvVXkcT0PsergDkX/8Pf7s9z0w==","shasum":"c32759734db95501323d397383cc60386e7fa489","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-2.0.0-alpha.4.tgz","fileCount":16,"unpackedSize":45082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOZ6aCRA9TVsSAnZWagAA8GoQAJYozQg6thdhpCjZvZpv\nG+5hh2Ivwizp4UZWLUN6laIJy2E4LJeVqFbQZDVYJxKl9h3thAWTDuH3qO+e\nxRT5oN7dBCVgq45lKVAWtCcmgSpXwN+GpWovBfYyiqksC9yyC5RtRBMeEJNf\n3ZW+nXPXBj0LRLm68AgTlaLKCZaouAYAIDtXaDzMo4bEfX9Zwh0XZmVBVBNL\nPXLmboWsfL0NQv2sAaApQuwoiRR9bE+plXuNLp/kPdIgOGYc6/KMWtZEkYJE\nWJWFORev1zcNc3OU7uibcAdLDvRJ/qOgrm+gHrAk21AMAdURZHbMDrmh5J+i\njNGKlspDiVoY4Zd3sspQKX1+tCGFUFyfqVHSZXlmO3uS5JqPlpwLDeFOn0RX\n3Aen10YqSZJv88Tcl0WCZNEEm651E7a5B0L9wu1wfKQSZpb/50nQDaGLHTnJ\nYujD0wKr3dk39nChSQkHTtxbnD7KBFQl5qlbJ/ZYhkAV0Z51xX8q48sbnjRe\nBLGcq/zZMELxfDyNBjnjN6DocOnC4azrPdRvAJknEqOPsqFnPggE83IAyybO\nQaFHddNrauifcxo3cVfhsnytadGWRePc43kbfBF4iZWy6k8IW1SKjuQW5sJu\neKttJqVvbMq/ulQAsWlCXLSRnpmldyEr8SihrZ0sEjrg1z5DmdJiwLG1ZtvX\ncCgd\r\n=ns2I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlAqY+kRzfpaGvh5b3TkpTOpmStL5BA4WXeobKir6i5AiEAl90bkVF4z4WO0TX8bGimazcJiJkxX/rYIHvIk5GISNE="}]},"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_2.0.0-alpha.4_1631166106391_0.024420427071681905"},"_hasShrinkwrap":false},"2.0.0-alpha.5":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API without Context API","version":"2.0.0-alpha.5","publishConfig":{"tag":"next"},"author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/src/index.d.ts","module":"./dist/index.modern.js","import":"./dist/index.modern.mjs","default":"./dist/index.umd.js"}},"sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd","postcompile":"cp dist/index.modern.mjs dist/index.modern.js && cp dist/index.modern.mjs.map dist/index.modern.js.map","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:12_effect":"server-test examples:12_effect 8080 'jest --preset jest-puppeteer __tests__/e2e/12_effect.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack-cli serve","examples:02_typescript":"DIR=02_typescript webpack-cli serve","examples:03_actions":"DIR=03_actions webpack-cli serve","examples:04_fetch":"DIR=04_fetch webpack-cli serve","examples:05_onmount":"DIR=05_onmount webpack-cli serve","examples:06_reducer":"DIR=06_reducer webpack-cli serve","examples:07_middleware":"DIR=07_middleware webpack-cli serve","examples:08_thunk":"DIR=08_thunk webpack-cli serve","examples:09_comparison":"DIR=09_comparison webpack-cli serve","examples:10_immer":"DIR=10_immer webpack-cli serve","examples:11_deep":"DIR=11_deep webpack-cli serve","examples:12_effect":"DIR=12_effect webpack-cli serve","examples:13_persistence":"DIR=13_persistence webpack-cli serve"},"jest":{"testEnvironment":"jsdom","transform":{"^.+\\.ts$":"ts-jest"}},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{"zustand":"^3.5.10"},"devDependencies":{"@testing-library/react":"^12.0.0","@types/expect-puppeteer":"^4.4.6","@types/jest":"^27.0.1","@types/jest-environment-puppeteer":"^4.4.1","@types/puppeteer":"^5.4.4","@types/react":"^17.0.20","@types/react-dom":"^17.0.9","@types/redux-logger":"^3.0.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","documentation":"^13.2.5","eslint":"^7.32.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.24.2","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-react":"^7.25.1","eslint-plugin-react-hooks":"^4.2.0","html-webpack-plugin":"^5.3.2","immer":"^9.0.6","jest":"^27.1.1","jest-puppeteer":"^5.0.4","microbundle":"^0.13.3","npm-run-all":"^4.1.5","puppeteer":"^10.2.0","react":"^16.13.1","react-dom":"^17.0.2","redux":"^4.1.1","redux-logger":"^3.0.6","redux-thunk":"^2.3.0","start-server-and-test":"^1.14.0","ts-jest":"^27.0.5","ts-loader":"^9.2.5","typescript":"^4.4.2","webpack":"^5.52.0","webpack-cli":"^4.8.0","webpack-dev-server":"^4.1.1"},"peerDependencies":{"react":">=16.8.0"},"resolutions":{"@types/node":"^15"},"gitHead":"5810b5c90d37953d5dec81e61b6c7ae0f46166ce","readme":"# react-hooks-global-state\n\n[![CI](https://img.shields.io/github/workflow/status/dai-shi/react-hooks-global-state/CI)](https://github.com/dai-shi/react-hooks-global-state/actions?query=workflow%3ACI)\n[![npm](https://img.shields.io/npm/v/react-hooks-global-state)](https://www.npmjs.com/package/react-hooks-global-state)\n[![size](https://img.shields.io/bundlephobia/minzip/react-hooks-global-state)](https://bundlephobia.com/result?p=react-hooks-global-state)\n[![discord](https://img.shields.io/discord/627656437971288081)](https://discord.gg/MrQdmzd)\n\nSimple global state for React with Hooks API without Context API\n\n## Introduction\n\nThis is a library to provide a global state with React Hooks.\nIt has following characteristics.\n\n*   Optimization for shallow state getter and setter.\n    *   The library cares the state object only one-level deep.\n*   TypeScript type definitions\n    *   A creator function creates hooks with types inferred.\n*   Redux middleware support to some extent\n    *   Some of libraries in Redux ecosystem can be used.\n\n## Install\n\n```bash\nnpm install react-hooks-global-state\n```\n\n## Usage\n\n### setState style\n\n```javascript\nimport React from 'react';\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst { useGlobalState } = createGlobalState(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### reducer style\n\n```javascript\nimport React from 'react';\nimport { createStore } from 'react-hooks-global-state';\n\nconst reducer = (state, action) => {\n  switch (action.type) {\n    case 'increment': return { ...state, count: state.count + 1 };\n    case 'decrement': return { ...state, count: state.count - 1 };\n    default: return state;\n  }\n};\nconst initialState = { count: 0 };\nconst { dispatch, useStoreState } = createStore(reducer, initialState);\n\nconst Counter = () => {\n  const value = useStoreState('count');\n  return (\n    <div>\n      <span>Counter: {value}</span>\n      <button onClick={() => dispatch({ type: 'increment' })}>+1</button>\n      <button onClick={() => dispatch({ type: 'decrement' })}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### createGlobalState\n\nCreate a global state.\n\nIt returns a set of functions\n\n*   `useGlobalState`: a custom hook works like React.useState\n*   `getGlobalState`: a function to get a global state by key outside React\n*   `setGlobalState`: a function to set a global state by key outside React\n\n#### Parameters\n\n*   `initialState` **State** \n\n#### Examples\n\n```javascript\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst { useGlobalState } = createGlobalState({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### createStore\n\nCreate a global store.\n\nIt returns a set of functions\n\n*   `useStoreState`: a custom hook to read store state by key\n*   `getState`: a function to get store state by key outside React\n*   `dispatch`: a function to dispatch an action to store\n\nA store works somewhat similarly to Redux, but not the same.\n\n#### Parameters\n\n*   `reducer` **Reducer\\<State, Action>** \n*   `initialState` **State**  (optional, default `(reducer as any)(undefined,{type:undefined})`)\n*   `enhancer` **any?** \n\n#### Examples\n\n```javascript\nimport { createStore } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst reducer = ...;\n\nconst store = createStore(reducer, initialState);\nconst { useStoreState, dispatch } = store;\n\nconst Component = () => {\n  const count = useStoreState('count');\n  ...\n};\n```\n\nReturns **Store\\<State, Action>** \n\n### useGlobalState\n\nuseGlobalState created by createStore is deprecated.\n\nType: function (stateKey: StateKey): any\n\n**Meta**\n\n*   **deprecated**: useStoreState instead\n\n## Examples\n\nThe [examples](examples) folder contains working examples.\nYou can run one of them with\n\n```bash\nPORT=8080 npm run examples:01_minimal\n```\n\nand open <http://localhost:8080> in your web browser.\n\nYou can also try them in codesandbox.io:\n[01](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/01\\_minimal)\n[02](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/02\\_typescript)\n[03](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/03\\_actions)\n[04](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/04\\_fetch)\n[05](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/05\\_onmount)\n[06](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/06\\_reducer)\n[07](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/07\\_middleware)\n[08](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/08\\_thunk)\n[09](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/09\\_comparison)\n[10](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/10\\_immer)\n[11](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/11\\_deep)\n[12](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/12\\_effect)\n[13](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/13\\_persistence)\n\n## Blogs\n\n*   [TypeScript-aware React hooks for global state](https://blog.axlight.com/posts/typescript-aware-react-hooks-for-global-state/)\n*   [An alternative to React Redux by React Hooks API (For both JavaScript and TypeScript)](https://blog.axlight.com/posts/an-alternative-to-react-redux-by-react-hooks-api-for-both-javascript-and-typescript/)\n*   [Redux middleware compatible React Hooks library for easy global state management](https://blog.axlight.com/posts/redux-middleware-compatible-react-hooks-library-for-easy-global-state-management/)\n*   [React Hooks Tutorial on pure useReducer + useContext for global state like Redux and comparison with react-hooks-global-state](https://blog.axlight.com/posts/react-hooks-tutorial-for-pure-usereducer-usecontext-for-global-state-like-redux-and-comparison/)\n*   [Four patterns for global state with React hooks: Context or Redux](https://blog.axlight.com/posts/four-patterns-for-global-state-with-react-hooks-context-or-redux/)\n*   [Steps to Develop Global State for React With Hooks Without Context](https://blog.axlight.com/posts/steps-to-develop-global-state-for-react/)\n\n## Community Wiki\n\n*   [Persistence](https://github.com/dai-shi/react-hooks-global-state/wiki/Persistence)\n*   [Optional initialState](https://github.com/dai-shi/react-hooks-global-state/wiki/Optional-initialState)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@2.0.0-alpha.5","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-YFE/qMOC7ZQ4kmw9ra0fVUlO4A9Bo72g+4AM68ESyesBKSu11h5Z5l9frAbg2sUFIwQkcEkWQsW6RVBCl6CHlA==","shasum":"189bb684d7ccebdb8dc0797e721628c0bb3f5160","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-2.0.0-alpha.5.tgz","fileCount":16,"unpackedSize":49184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOfsECRA9TVsSAnZWagAAEIsP/0BK4LVLxt5ORPBYbMXt\n9s/IYQ+gEHRlmZlTCxxxWkN0IqwgtL7RvQ0UwfUr5I5Th/RuC1g2C8KHlT2F\n4DyAawQXESSepuGli4rfwKqrtwV6pT0TxBb0Zxl0TYO1SLuwMyz0VHOuYQ7B\nuTtrPmI8kZliP8/sx9lm/nX9L5StdVnK39BmBf2zfBrA9ycffKLwPBjShfyB\nSFvfQjmWmmxLlrf9P+zDJDwvmH5NQdRPMlu8JlMZ/l2LGHgMKFhBd965RVwB\nUhDfUYi5tqpLG41AQ0qwa+yOSRwNmsqxzfpCPfru/jrr8kf92hRKmzkpTGuz\nVWBUDCndl8wAoeIzpAJ3/A+7X8vc7TPPA7fHDIMxCrKjJs204ZhPit/dxkgL\nNDBZX19ZXAAlBX5VcPhgjILq/w8fpMmA9B5C2UhKO/UYCU4pbRtIICs8i8Tt\nNlxjF5yIcyIKC9/hbJEY8qjao7MvIhcj53skrvtbVYAoSVl48JJezzG8OQl0\nkVCZAXzWyxR9GkuDfsgab2ap8c0F5upHn/J1PDiFp6iCDp16BPml67u2mNgA\nkiBDBSuaxLxvi2OACn0UhhiPPJSboXO2OhVviCT5y9SNSfaR4vN4s/D3/pWi\nLjiTI0YqF2FdQbzSmF7ZhMkhqM3P+oNQ36cH13Wrzy/SFu9LMzFnc1pcPFVe\nOe3k\r\n=vc0L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXaiVkOyI0l9qLK1+TvYfaSKj6ejqgyhoIrbQ6nCDV8AiEA15FO4HJkY8KSjrjf8BnJTXRwgY+q4Ir8ltNg4S7xoyM="}]},"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_2.0.0-alpha.5_1631189763955_0.884829084652077"},"_hasShrinkwrap":false},"2.0.0-rc.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API without Context API","version":"2.0.0-rc.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/src/index.d.ts","module":"./dist/index.modern.js","import":"./dist/index.modern.mjs","default":"./dist/index.umd.js"}},"sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd --globals react=React","postcompile":"cp dist/index.modern.js dist/index.modern.mjs && cp dist/index.modern.js.map dist/index.modern.mjs.map","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack serve","examples:02_typescript":"DIR=02_typescript webpack serve","examples:03_actions":"DIR=03_actions webpack serve","examples:04_fetch":"DIR=04_fetch webpack serve","examples:05_onmount":"DIR=05_onmount webpack serve","examples:06_reducer":"DIR=06_reducer webpack serve","examples:07_middleware":"DIR=07_middleware webpack serve","examples:08_thunk":"DIR=08_thunk webpack serve","examples:09_comparison":"DIR=09_comparison webpack serve","examples:10_immer":"DIR=10_immer webpack serve","examples:11_deep":"DIR=11_deep webpack serve","examples:13_persistence":"DIR=13_persistence webpack serve"},"jest":{"testEnvironment":"jsdom","transform":{"^.+\\.ts$":"ts-jest"}},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{"zustand":"4.0.0-rc.1"},"devDependencies":{"@testing-library/react":"^13.2.0","@types/expect-puppeteer":"^4.4.7","@types/jest":"^27.5.1","@types/jest-environment-puppeteer":"^5.0.2","@types/puppeteer":"^5.4.6","@types/react":"^18.0.9","@types/react-dom":"^18.0.5","@types/redux-logger":"^3.0.9","@typescript-eslint/eslint-plugin":"^5.26.0","@typescript-eslint/parser":"^5.26.0","documentation":"^13.2.5","eslint":"^8.16.0","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.26.0","eslint-plugin-jsx-a11y":"^6.5.1","eslint-plugin-react":"^7.30.0","eslint-plugin-react-hooks":"^4.5.0","html-webpack-plugin":"^5.5.0","immer":"^9.0.14","jest":"^28.1.0","jest-environment-jsdom":"^28.1.0","jest-puppeteer":"^6.1.0","microbundle":"^0.15.0","npm-run-all":"^4.1.5","puppeteer":"^14.1.1","react":"^18.1.0","react-dom":"^18.1.0","redux":"^4.2.0","redux-logger":"^3.0.6","redux-thunk":"^2.4.1","start-server-and-test":"^1.14.0","ts-jest":"^28.0.3","ts-loader":"^9.3.0","typescript":"^4.7.2","webpack":"^5.72.1","webpack-cli":"^4.9.2","webpack-dev-server":"^4.9.0"},"peerDependencies":{"react":">=16.8.0"},"resolutions":{"@types/node":"^15"},"gitHead":"d1c912ec0cdbe74960b4ad9145ab8fb1f80f68a1","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@2.0.0-rc.0","_nodeVersion":"14.19.2","_npmVersion":"6.14.17","dist":{"integrity":"sha512-NNaVtszvCMIZQGKD9c9ZQH5eiOVLEc71XAWB5o5ec7vH8oe1JqwJGFWohF3GzwWPua7ud4uUD1GeHBY29SZbIw==","shasum":"ed5fd6a5d0d61076bab4ee44f3bd059bdffbe851","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-2.0.0-rc.0.tgz","fileCount":16,"unpackedSize":53109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLADhd2Ps347j8HowVTv2m7Rty6IbwepAMHI31M02oIAiBi7283pwJXykZ3t1Y2YUsQ5i0zsp9sl4enx9UegFT95g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikcGGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtkQ//fKiLxqkDOkURp5o4MDQjq7e4FgTLJwwrstS+ccniq9hLhR+P\r\n2iGVP7zg4UpsyhtakpJu6ZGABuZx3OeZwkX9sKQLeFuBeqXpvWTSfVnJn8ab\r\nti+PqR8kiUugUA27Dfi3J8c3kl+VO+yiWic7cscow+Ik9KgXPKUv4s0sRLUQ\r\nY0/GQOBPZq0WN4MA5fftIzaviyo1OmJoB9L7iniRReMOn/1k8lLFkWlrb8DA\r\nh53/FoxRz4mU05F7sJMWOWxskITcCtaAt0BV9Qks2m7TDuAltvOLK/MP9Ofx\r\nImxVdJuovooOsCTLXB2+p9YJCbx7xegaNOpB+fivCi6KAhB6U3VT1AhoQdUE\r\n0Pz3gWPVhnj2F8D11lq1pt1Njc1h2Lb+jJGiwwhYetxumGNoNq8JCODQQVIB\r\n9rhmhTmgKXcp4EVe1f+jtpg/dFPsCNKdWro7LZZh8+TV2rFe91X2Kpft16Qs\r\nSgQNZLfxSxoyRbHsw/b/ery4jITxy+KDoJZXZFmvV3LQCvg1SBZECMpozZzE\r\nF2XHdUAbLgHLIVgTyElZsUp74RPNP4YF0oU602vr3D5MvOxFOq3etb8AM1MK\r\n28hRkPz9UbD0A5tzCVq8fW2iLtA8xaAC5qo7VKs5GjvTBZeS0DiAcm3YUvV1\r\nTjXwJNZ8brW6/Vs8xl2LqCDVdL1qnyUwvJQ=\r\n=zBXe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_2.0.0-rc.0_1653719430173_0.5544071002750979"},"_hasShrinkwrap":false},"2.0.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API without Context API","version":"2.0.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/src/index.d.ts","module":"./dist/index.modern.js","import":"./dist/index.modern.mjs","default":"./dist/index.umd.js"}},"sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd --globals react=React","postcompile":"cp dist/index.modern.js dist/index.modern.mjs && cp dist/index.modern.js.map dist/index.modern.mjs.map","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack serve","examples:02_typescript":"DIR=02_typescript webpack serve","examples:03_actions":"DIR=03_actions webpack serve","examples:04_fetch":"DIR=04_fetch webpack serve","examples:05_onmount":"DIR=05_onmount webpack serve","examples:06_reducer":"DIR=06_reducer webpack serve","examples:07_middleware":"DIR=07_middleware webpack serve","examples:08_thunk":"DIR=08_thunk webpack serve","examples:09_comparison":"DIR=09_comparison webpack serve","examples:10_immer":"DIR=10_immer webpack serve","examples:11_deep":"DIR=11_deep webpack serve","examples:13_persistence":"DIR=13_persistence webpack serve"},"jest":{"testEnvironment":"jsdom","transform":{"^.+\\.ts$":"ts-jest"}},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{"zustand":"4.0.0"},"devDependencies":{"@testing-library/react":"^13.3.0","@types/expect-puppeteer":"^5.0.1","@types/jest":"^28.1.6","@types/jest-environment-puppeteer":"^5.0.2","@types/puppeteer":"^5.4.6","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@types/redux-logger":"^3.0.9","@typescript-eslint/eslint-plugin":"^5.32.0","@typescript-eslint/parser":"^5.32.0","documentation":"^13.2.5","eslint":"^8.21.0","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.26.0","eslint-plugin-jsx-a11y":"^6.6.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","html-webpack-plugin":"^5.5.0","immer":"^9.0.15","jest":"^28.1.3","jest-environment-jsdom":"^28.1.3","jest-puppeteer":"^6.1.1","microbundle":"^0.15.0","npm-run-all":"^4.1.5","puppeteer":"^16.0.0","react":"^18.2.0","react-dom":"^18.2.0","redux":"^4.2.0","redux-logger":"^3.0.6","redux-thunk":"^2.4.1","start-server-and-test":"^1.14.0","ts-jest":"^28.0.7","ts-loader":"^9.3.1","typescript":"^4.7.4","webpack":"^5.74.0","webpack-cli":"^4.10.0","webpack-dev-server":"^4.9.3"},"peerDependencies":{"react":">=16.8.0"},"resolutions":{"@types/node":"^15"},"gitHead":"fec58016830f1958e3c7be73b178ef89a9b8039d","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@2.0.0","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-liJt9F1MvnhRCR/ESbSXSVGwq1RxOHx5SzBfopP0P8uZqFlJ2ll+kZoLZlZ4Lo70mxUYn2a4ctnkWOAA2EbXQQ==","shasum":"353d69c44ff91b4f0da9b45cca9786755ecba551","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-2.0.0.tgz","fileCount":16,"unpackedSize":53325,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1Ou8K6cZV3yPJLUm6Q/SXyIchojLXD2+Cp9GRNAiRPAiEAq6ka0y8BOP17BSxtrqey6kO4d4Dr8umULVtKZLoZUfg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7FlPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoStBAAoMVVxOhZgv9KvETwW8EUAhq55T9p2rNBtHFGNQ1S/AcDviH1\r\n4IYrda9w+3TAYW2BqJnuD/Cau1oFhU0AXnS++jvFZnBLCJ2hXoK2Ul7tFCE2\r\nLoOsB4y3PnHB3xSsrPCBWHLHOfD8Z9jyRdRW5C2xpoDwrFVB8BHpnkXBKU/d\r\nF1D9VN2HulLVlSiavEo406DlBbRKPkGV9ZVr3QNXwTqdrrwB6phIwXAVIB8x\r\n/bdLzYwbdVn4H84Cm1r4IdwrB6KCRNCHd+9e0Oc58zmgkkZFD22R3R/n2vLJ\r\npFli5oDSS8DPvZF5sj0U5QD0QHEUr95TgeQtG7uIapakWUGHZ7Y614lUhoCv\r\n/TGwxhse45Ws5dw+kBSzDShAoBU7TX2eOfU0iZpIA0r8yE0zAP2NiRwfpdj6\r\n+7DoIYUfJTvYrmq+6ORTo+sMjNIIf40RusV6qCImskUitx9le9VtVh2gIpME\r\n5pidAEXnnroK9nkrDNv4XiyF0wW8rmYwa+uWH0C19Ipw6FMzNf2q8Vv+quNr\r\nUv6Picx0myttek+RK0CvatiwyHGJy0wjGdujadWhvuVFRHKuz463KyOcrBqI\r\nnqUpnZ/m07sZ9Ydu7Q3Ybu9Tw4Aa7Rj/bAL+HNg9tzxoI7RQpNq5mcvRMaQ/\r\noTqsrRFbmQX/ZhRmu3aeEM5jBZMrVdM580Q=\r\n=qYt6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_2.0.0_1659656527316_0.8399125192935486"},"_hasShrinkwrap":false},"2.1.0":{"name":"react-hooks-global-state","description":"Simple global state for React with Hooks API without Context API","version":"2.1.0","author":{"name":"Daishi Kato"},"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"source":"./src/index.ts","main":"./dist/index.umd.js","module":"./dist/index.modern.js","types":"./dist/src/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/src/index.d.ts","module":"./dist/index.modern.js","import":"./dist/index.modern.mjs","default":"./dist/index.umd.js"}},"sideEffects":false,"scripts":{"compile":"microbundle build -f modern,umd --globals react=React","postcompile":"cp dist/index.modern.js dist/index.modern.mjs && cp dist/index.modern.js.map dist/index.modern.mjs.map","test":"run-s eslint tsc-test jest e2e-test:*","eslint":"eslint --ext .js,.ts,.tsx --ignore-pattern dist .","jest":"jest --preset ts-jest/presets/js-with-ts __tests__/*.tsx","tsc-test":"tsc --project . --noEmit","apidoc":"documentation readme --section API --markdown-toc false --parse-extension ts src/createGlobalState.ts src/createStore.ts","e2e-test:01_minimal":"server-test examples:01_minimal 8080 'jest --preset jest-puppeteer __tests__/e2e/01_minimal.ts'","e2e-test:02_typescript":"server-test examples:02_typescript 8080 'jest --preset jest-puppeteer __tests__/e2e/02_typescript.ts'","e2e-test:03_actions":"server-test examples:03_actions 8080 'jest --preset jest-puppeteer __tests__/e2e/03_actions.ts'","e2e-test:04_fetch":"server-test examples:04_fetch 8080 'jest --preset jest-puppeteer __tests__/e2e/04_fetch.ts'","e2e-test:05_onmount":"server-test examples:05_onmount 8080 'jest --preset jest-puppeteer __tests__/e2e/05_onmount.ts'","e2e-test:06_reducer":"server-test examples:06_reducer 8080 'jest --preset jest-puppeteer __tests__/e2e/06_reducer.ts'","e2e-test:07_middleware":"server-test examples:07_middleware 8080 'jest --preset jest-puppeteer __tests__/e2e/07_middleware.ts'","e2e-test:08_thunk":"server-test examples:08_thunk 8080 'jest --preset jest-puppeteer __tests__/e2e/08_thunk.ts'","e2e-test:09_comparison":"server-test examples:09_comparison 8080 'jest --preset jest-puppeteer __tests__/e2e/09_comparison.ts'","e2e-test:10_immer":"server-test examples:10_immer 8080 'jest --preset jest-puppeteer __tests__/e2e/10_immer.ts'","e2e-test:11_deep":"server-test examples:11_deep 8080 'jest --preset jest-puppeteer __tests__/e2e/11_deep.ts'","e2e-test:13_persistence":"server-test examples:13_persistence 8080 'jest --preset jest-puppeteer __tests__/e2e/13_persistence.ts'","examples:01_minimal":"DIR=01_minimal EXT=js webpack serve","examples:02_typescript":"DIR=02_typescript webpack serve","examples:03_actions":"DIR=03_actions webpack serve","examples:04_fetch":"DIR=04_fetch webpack serve","examples:05_onmount":"DIR=05_onmount webpack serve","examples:06_reducer":"DIR=06_reducer webpack serve","examples:07_middleware":"DIR=07_middleware webpack serve","examples:08_thunk":"DIR=08_thunk webpack serve","examples:09_comparison":"DIR=09_comparison webpack serve","examples:10_immer":"DIR=10_immer webpack serve","examples:11_deep":"DIR=11_deep webpack serve","examples:13_persistence":"DIR=13_persistence webpack serve"},"jest":{"testEnvironment":"jsdom","transform":{"^.+\\.ts$":"ts-jest"}},"keywords":["react","state","hooks","stateless","thisless","pure"],"license":"MIT","dependencies":{"zustand":"4.0.0"},"devDependencies":{"@testing-library/react":"^13.3.0","@types/expect-puppeteer":"^5.0.1","@types/jest":"^28.1.6","@types/jest-environment-puppeteer":"^5.0.2","@types/puppeteer":"^5.4.6","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@types/redux-logger":"^3.0.9","@typescript-eslint/eslint-plugin":"^5.32.0","@typescript-eslint/parser":"^5.32.0","documentation":"^13.2.5","eslint":"^8.21.0","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.26.0","eslint-plugin-jsx-a11y":"^6.6.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","html-webpack-plugin":"^5.5.0","immer":"^9.0.15","jest":"^28.1.3","jest-environment-jsdom":"^28.1.3","jest-puppeteer":"^6.1.1","microbundle":"^0.15.0","npm-run-all":"^4.1.5","puppeteer":"^16.0.0","react":"^18.2.0","react-dom":"^18.2.0","redux":"^4.2.0","redux-logger":"^3.0.6","redux-thunk":"^2.4.1","start-server-and-test":"^1.14.0","ts-jest":"^28.0.7","ts-loader":"^9.3.1","typescript":"^4.7.4","webpack":"^5.74.0","webpack-cli":"^4.10.0","webpack-dev-server":"^4.9.3"},"peerDependencies":{"react":">=16.8.0"},"resolutions":{"@types/node":"^15"},"gitHead":"c30fbe8125e929a175b4fe65847f0bd433b670b9","bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","_id":"react-hooks-global-state@2.1.0","_nodeVersion":"14.21.1","_npmVersion":"6.14.17","dist":{"integrity":"sha512-tLSRhB5pD3QiNsGOo893m8lVZXDuIkdin8PKKmGqnJniAaD/tzl3BdAkba1vOv1/q1bpuN+9zrqqAHkRJhXzJw==","shasum":"91d1d85c6c920f2e8681579d71d552207c5fe4ac","tarball":"https://registry.npmjs.org/react-hooks-global-state/-/react-hooks-global-state-2.1.0.tgz","fileCount":16,"unpackedSize":55807,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChiHqxO49sFobSPOaakTs/zZH2ofNhxlT8mM1CZr3bMAIgf4fnGTeIzw3O1vYVAYN840kTurBn/lpPxcVM+A6XFqA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjIFwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPLQ//QV7DU1i1us29sa7gTtNqSDPeZA2TZCQYTZsslXeHnNnQf1Z1\r\ncQOpv79pXCE694fJq+2UTN9u5oT5kMZQ8H+YnKIEAFds7UJm+9xlqMUnKhoX\r\n38S3mZV7RkCbPncCFpmihuqBoZG1g939DADnV7mg7Lo3eOCzTRA9DS4/Elsb\r\ncOvYv0d9OsxTlpiUL0ZYYEEWwuFfW6dc1Gc0FwDnfagZ9EYv99m1bMgziivY\r\nFND1pshosTDYNjkB0ylzHAqnnz9fcI+7z3sOniijgaW8b2MaR/Gf/aVOkWvS\r\nUwMUYFZErvf1u1Fb/s2D48ZFsrn9Z5tGbpHqIlSCZlEuinGHBo0WNWEs/q1i\r\nFJVKq158wf5m8Q7m99D/2pxWLla0LbK3ScdACZrUlE+6wNeUb43u52Yk2ifv\r\nqiGPgkcCbM/lXtMk6m6kkXlEw+dlL8duS5agZC3jk+W+h8g+8vI3tqEPqXAj\r\niADreudfxLNIcahMeKaY+NJLXoAv/VAixKKHStEMICI3y2vZeWCVxU3NNWQB\r\n1BSZ/1ndmSJvdU1TwbAvu/Q6JnPkY5OzBi7j2b67R2EJx+gsMzwoMXc7SlJ3\r\ndrfm1Z/S5xOLlWkTIQ9/Ap/fwJd+0VE1P/MPytQ8SQ5W96WpdjuGZJs0dbEa\r\nRGr1fokRL0Mhl64n6QfmkB/lfIrANI8/bNg=\r\n=3wSH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"daishi","email":"daishi@axlight.com"},"directories":{},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hooks-global-state_2.1.0_1670152560403_0.07460907997735622"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-27T17:21:29.888Z","0.0.1":"2018-10-27T17:21:30.058Z","modified":"2022-12-04T11:16:00.718Z","0.0.2":"2018-10-29T22:54:24.536Z","0.0.3":"2018-11-04T13:28:38.714Z","0.0.4":"2018-11-05T14:14:12.194Z","0.0.5":"2018-11-06T14:42:37.596Z","0.1.0":"2018-11-07T13:13:37.197Z","0.1.1":"2018-11-07T13:53:29.284Z","0.2.0":"2018-11-09T14:14:40.478Z","0.3.0":"2018-11-12T00:28:47.304Z","0.3.1":"2018-11-17T13:08:01.674Z","0.3.2":"2018-11-29T15:26:43.902Z","0.4.0":"2018-12-03T12:00:01.112Z","0.4.1":"2018-12-09T04:25:37.753Z","0.4.2":"2019-01-24T09:03:26.174Z","0.5.0":"2019-01-25T15:19:20.851Z","0.6.0":"2019-02-07T07:02:29.976Z","0.7.0":"2019-02-11T03:32:00.516Z","0.8.0":"2019-03-16T13:11:03.589Z","0.9.0":"2019-03-17T15:11:37.273Z","0.10.0":"2019-05-24T15:18:45.323Z","0.11.0":"2019-05-24T23:33:50.772Z","0.12.0":"2019-06-07T13:16:50.020Z","0.13.0":"2019-06-11T01:56:52.309Z","0.14.0":"2019-06-15T09:55:14.223Z","0.15.0":"2019-09-24T23:20:35.996Z","0.15.1":"2019-10-02T23:03:33.594Z","0.15.2":"2019-10-20T15:47:23.292Z","0.16.0":"2019-10-22T01:27:14.194Z","0.17.0":"2020-01-09T14:23:59.504Z","1.0.0-alpha.1":"2020-01-23T15:30:53.970Z","1.0.0-alpha.2":"2020-01-25T11:38:52.272Z","1.0.0":"2020-02-18T06:41:34.315Z","2.0.0-alpha.1":"2020-05-17T06:27:47.572Z","1.0.1":"2020-07-04T00:20:23.274Z","2.0.0-alpha.2":"2020-07-04T00:40:49.971Z","2.0.0-alpha.3":"2020-08-04T12:57:14.826Z","1.0.2":"2021-08-13T22:57:43.930Z","2.0.0-alpha.4":"2021-09-09T05:41:46.495Z","2.0.0-alpha.5":"2021-09-09T12:16:04.072Z","2.0.0-rc.0":"2022-05-28T06:30:30.380Z","2.0.0":"2022-08-04T23:42:07.553Z","2.1.0":"2022-12-04T11:16:00.644Z"},"maintainers":[{"name":"daishi","email":"daishi@axlight.com"}],"description":"Simple global state for React with Hooks API without Context API","homepage":"https://github.com/dai-shi/react-hooks-global-state#readme","keywords":["react","state","hooks","stateless","thisless","pure"],"repository":{"type":"git","url":"git+https://github.com/dai-shi/react-hooks-global-state.git"},"author":{"name":"Daishi Kato"},"bugs":{"url":"https://github.com/dai-shi/react-hooks-global-state/issues"},"license":"MIT","readme":"# react-hooks-global-state\n\n[![CI](https://img.shields.io/github/workflow/status/dai-shi/react-hooks-global-state/CI)](https://github.com/dai-shi/react-hooks-global-state/actions?query=workflow%3ACI)\n[![npm](https://img.shields.io/npm/v/react-hooks-global-state)](https://www.npmjs.com/package/react-hooks-global-state)\n[![size](https://img.shields.io/bundlephobia/minzip/react-hooks-global-state)](https://bundlephobia.com/result?p=react-hooks-global-state)\n[![discord](https://img.shields.io/discord/627656437971288081)](https://discord.gg/MrQdmzd)\n\nSimple global state for React with Hooks API without Context API\n\n## Introduction\n\nThis is a library to provide a global state with React Hooks.\nIt has following characteristics.\n\n*   Optimization for shallow state getter and setter.\n    *   The library cares the state object only one-level deep.\n*   TypeScript type definitions\n    *   A creator function creates hooks with types inferred.\n*   Redux middleware support to some extent\n    *   Some of libraries in Redux ecosystem can be used.\n\n## Install\n\n```bash\nnpm install react-hooks-global-state\n```\n\n## Usage\n\n### setState style\n\n```javascript\nimport React from 'react';\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst { useGlobalState } = createGlobalState(initialState);\n\nconst Counter = () => {\n  const [count, setCount] = useGlobalState('count');\n  return (\n    <div>\n      <span>Counter: {count}</span>\n      {/* update state by passing callback function */}\n      <button onClick={() => setCount(v => v + 1)}>+1</button>\n      {/* update state by passing new value */}\n      <button onClick={() => setCount(count - 1)}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n### reducer style\n\n```javascript\nimport React from 'react';\nimport { createStore } from 'react-hooks-global-state';\n\nconst reducer = (state, action) => {\n  switch (action.type) {\n    case 'increment': return { ...state, count: state.count + 1 };\n    case 'decrement': return { ...state, count: state.count - 1 };\n    default: return state;\n  }\n};\nconst initialState = { count: 0 };\nconst { dispatch, useStoreState } = createStore(reducer, initialState);\n\nconst Counter = () => {\n  const value = useStoreState('count');\n  return (\n    <div>\n      <span>Counter: {value}</span>\n      <button onClick={() => dispatch({ type: 'increment' })}>+1</button>\n      <button onClick={() => dispatch({ type: 'decrement' })}>-1</button>\n    </div>\n  );\n};\n\nconst App = () => (\n  <>\n    <Counter />\n    <Counter />\n  </>\n);\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### createGlobalState\n\nCreate a global state.\n\nIt returns a set of functions\n\n*   `useGlobalState`: a custom hook works like React.useState\n*   `getGlobalState`: a function to get a global state by key outside React\n*   `setGlobalState`: a function to set a global state by key outside React\n*   `subscribe`: a function that subscribes to state changes\n\n#### Parameters\n\n*   `initialState` **State** \n\n#### Examples\n\n```javascript\nimport { createGlobalState } from 'react-hooks-global-state';\n\nconst { useGlobalState } = createGlobalState({ count: 0 });\n\nconst Component = () => {\n  const [count, setCount] = useGlobalState('count');\n  ...\n};\n```\n\n### createStore\n\nCreate a global store.\n\nIt returns a set of functions\n\n*   `useStoreState`: a custom hook to read store state by key\n*   `getState`: a function to get store state by key outside React\n*   `dispatch`: a function to dispatch an action to store\n\nA store works somewhat similarly to Redux, but not the same.\n\n#### Parameters\n\n*   `reducer` **Reducer\\<State, Action>** \n*   `initialState` **State**  (optional, default `(reducer as any)(undefined,{type:undefined})`)\n*   `enhancer` **any?** \n\n#### Examples\n\n```javascript\nimport { createStore } from 'react-hooks-global-state';\n\nconst initialState = { count: 0 };\nconst reducer = ...;\n\nconst store = createStore(reducer, initialState);\nconst { useStoreState, dispatch } = store;\n\nconst Component = () => {\n  const count = useStoreState('count');\n  ...\n};\n```\n\nReturns **Store\\<State, Action>** \n\n### useGlobalState\n\nuseGlobalState created by createStore is deprecated.\n\nType: function (stateKey: StateKey): any\n\n**Meta**\n\n*   **deprecated**: useStoreState instead\n\n## Examples\n\nThe [examples](examples) folder contains working examples.\nYou can run one of them with\n\n```bash\nPORT=8080 npm run examples:01_minimal\n```\n\nand open <http://localhost:8080> in your web browser.\n\nYou can also try them in codesandbox.io:\n[01](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/01\\_minimal)\n[02](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/02\\_typescript)\n[03](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/03\\_actions)\n[04](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/04\\_fetch)\n[05](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/05\\_onmount)\n[06](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/06\\_reducer)\n[07](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/07\\_middleware)\n[08](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/08\\_thunk)\n[09](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/09\\_comparison)\n[10](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/10\\_immer)\n[11](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/11\\_deep)\n[13](https://codesandbox.io/s/github/dai-shi/react-hooks-global-state/tree/main/examples/13\\_persistence)\n\n## Blogs\n\n*   [TypeScript-aware React hooks for global state](https://blog.axlight.com/posts/typescript-aware-react-hooks-for-global-state/)\n*   [An alternative to React Redux by React Hooks API (For both JavaScript and TypeScript)](https://blog.axlight.com/posts/an-alternative-to-react-redux-by-react-hooks-api-for-both-javascript-and-typescript/)\n*   [Redux middleware compatible React Hooks library for easy global state management](https://blog.axlight.com/posts/redux-middleware-compatible-react-hooks-library-for-easy-global-state-management/)\n*   [React Hooks Tutorial on pure useReducer + useContext for global state like Redux and comparison with react-hooks-global-state](https://blog.axlight.com/posts/react-hooks-tutorial-for-pure-usereducer-usecontext-for-global-state-like-redux-and-comparison/)\n*   [Four patterns for global state with React hooks: Context or Redux](https://blog.axlight.com/posts/four-patterns-for-global-state-with-react-hooks-context-or-redux/)\n*   [Steps to Develop Global State for React With Hooks Without Context](https://blog.axlight.com/posts/steps-to-develop-global-state-for-react/)\n\n## Community Wiki\n\n*   [Persistence](https://github.com/dai-shi/react-hooks-global-state/wiki/Persistence)\n*   [Optional initialState](https://github.com/dai-shi/react-hooks-global-state/wiki/Optional-initialState)\n","readmeFilename":"README.md"}