{"_id":"@bmp/unistore","_rev":"7-bdb51eecee85004153676eadef5f165f","name":"@bmp/unistore","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"@bmp/unistore","version":"0.0.1","description":"Dead simple centralized state container (store) with preact and react bindings.","source":"src/index.js","module":"dist/unistore.es.js","main":"dist/unistore.js","umd:main":"dist/unistore.umd.js","typings":"index.d.ts","scripts":{"build":"npm-run-all --silent -p build:main build:integrations build:combined -s size docs","build:main":"microbundle","build:integrations":"microbundle src/integrations/*.js -o x.js -f cjs --external react,preact","build:combined":"microbundle src/combined/*.js -o full/x.js --external react,preact","size":"strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize","docs":"documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme","fixreadme":"node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^-   /gm, \"- \"))'","test":"eslint src && npm run build && jest","prepare":"npm t","release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"eslint-config-developit","rules":{"prefer-rest-params":0,"prefer-spread":0}},"bundlesize":[{"path":"full/preact.js","maxSize":"760b"},{"path":"dist/unistore.js","maxSize":"400b"},{"path":"preact.js","maxSize":"600b"}],"babel":{"presets":[["env",{"targets":{"node":"current"}}]],"plugins":[["transform-react-jsx",{"pragma":"h"}]]},"jest":{"testURL":"http://localhost"},"keywords":["preact","component","state machine","redux"],"repository":{"type":"git","url":"git+https://github.com/developit/unistore.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","devDependencies":{"babel-jest":"^24.3.1","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","bundlesize":"^0.17.1","documentation":"^4.0.0","enzyme":"^3.9.0","enzyme-adapter-react-16":"^1.10.0","eslint":"^4.16.0","eslint-config-developit":"^1.1.1","gzip-size-cli":"^2.1.0","jest":"^24.3.1","microbundle":"^0.11.0","npm-run-all":"^4.1.2","preact":"^10.0.0","raf":"^3.4.0","react":"^16.8.4","react-dom":"^16.8.4","strip-json-comments-cli":"^1.0.1"},"peerDependenciesMeta":{"preact":{"optional":true},"react":{"optional":true}},"gitHead":"1d65577f9d1d983fb66ba27ef6054c673ed875e9","bugs":{"url":"https://github.com/developit/unistore/issues"},"homepage":"https://github.com/developit/unistore#readme","_id":"@bmp/unistore@0.0.1","_nodeVersion":"13.2.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-wU1eeaT9zR9k8rXDqEc05dMs6uI909dXd2y1DBvslVgUSz1CmRN3Op8zrOY+bfh9iSG0pKYuxelMxGTTW2jNNg==","shasum":"6d10c7862ed3df0a4b90bc99d3d921eaa02c3ca6","tarball":"https://registry.npmjs.org/@bmp/unistore/-/unistore-0.0.1.tgz","fileCount":35,"unpackedSize":120995,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5XJ0CRA9TVsSAnZWagAA4sAP/3fOjoQ5WzvABHh45f0W\n2PsKMKHHGuasG1nfFR6LLDUix0/WTMVYl/7gcz6oqzOIVHCbIX1IDP9X9MIJ\nypt/egeSUxKxVtLi0HK1ybhfDyn2Ru7QeLeEkEFyDTmugLaORPERHOs4GjkT\ndiH1mSCIrCqU399DsjduPLH90xMtD+atwprHwy4zpun1YtjbA5kpdo68CfU0\ngC86yA0OxKm+xvfdW9HgZMmDWHDOcxEHv/cLWEiERi3UjjiVPdjZCKFtQMfc\nKeF+BOWtAKth88mwqJYDF5iTv25/uIs7OcKQZ0hFo8IXVsuCopQVnp0RME3y\nu5mayFYQ0mqjTcKLaBU0/iTDKH9jkyJ8hqUiap1BtKVjRKCpAsFtAurUTC+u\nzPTogIs3I45HTzPaj63GOV0/rx0fFssbCs8hfxtsjajaIx3z5hKj8i6d/UkD\nYbJH0M4BoqT8AEbpZxHtKsu79pdKAXKIY2/MxhGT/0OSWGvk3pM9MqOcPyjU\nzEkZKbPfat1ZI3MbUkciNeLqss3ljRORD1IXtCusIg3ZGTfrVVT5SVTIz0at\nOgmhSiF46JBDh5zaU4WCU+CXJVsH9H/gy5h8+JBFSe5IK4B9/RwvJitTwY6D\nN4rOpxl+fDkhW+Aie3AW60eVWEj8+2rJp07GRRgMnL5JqAszUXk70tvTyl5n\nzx8r\r\n=enSc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmceIr86ft06aZGTOWXKFALSsmpOB/3T1ctJLXithObAiEA3XW3dSTWBmoPBGmN8Banvk5eAdp65YRIjDwbd1mVwz8="}]},"maintainers":[{"name":"lohfu","email":"lohfu@lohfu.io"}],"_npmUser":{"name":"lohfu","email":"lohfu@lohfu.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unistore_0.0.1_1575318131840_0.23227737325510445"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bmp/unistore","version":"0.0.2","description":"Dead simple centralized state container (store) with preact and react bindings.","source":"src/index.js","module":"dist/unistore.es.js","main":"dist/unistore.js","umd:main":"dist/unistore.umd.js","typings":"index.d.ts","scripts":{"build":"npm-run-all --silent -p build:main build:integrations build:combined -s size docs","build:main":"microbundle","build:integrations":"microbundle src/integrations/*.js -o x.js -f cjs --external react,preact","build:combined":"microbundle src/combined/*.js -o full/x.js --external react,preact","size":"strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize","docs":"documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme","fixreadme":"node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^-   /gm, \"- \"))'","test":"eslint src && npm run build && jest","prepare":"npm t","release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"eslint-config-developit","rules":{"prefer-rest-params":0,"prefer-spread":0}},"bundlesize":[{"path":"full/preact.js","maxSize":"760b"},{"path":"dist/unistore.js","maxSize":"400b"},{"path":"preact.js","maxSize":"600b"}],"babel":{"presets":[["env",{"targets":{"node":"current"}}]],"plugins":[["transform-react-jsx",{"pragma":"h"}]]},"jest":{"testURL":"http://localhost"},"keywords":["preact","component","state machine","redux"],"repository":{"type":"git","url":"git+https://github.com/developit/unistore.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","devDependencies":{"babel-jest":"^24.3.1","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","bundlesize":"^0.17.1","documentation":"^4.0.0","enzyme":"^3.9.0","enzyme-adapter-react-16":"^1.10.0","eslint":"^4.16.0","eslint-config-developit":"^1.1.1","gzip-size-cli":"^2.1.0","jest":"^24.3.1","microbundle":"^0.11.0","npm-run-all":"^4.1.2","preact":"^10.0.0","raf":"^3.4.0","react":"^16.8.4","react-dom":"^16.8.4","strip-json-comments-cli":"^1.0.1"},"peerDependenciesMeta":{"preact":{"optional":true},"react":{"optional":true}},"gitHead":"43ad78639550afe3921c633a26ee87cf27cbfb8f","bugs":{"url":"https://github.com/developit/unistore/issues"},"homepage":"https://github.com/developit/unistore#readme","_id":"@bmp/unistore@0.0.2","_nodeVersion":"13.2.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-Oox/7OU2JA3BlnI9L7YNwX1B0gwxcFnulc/anH5Sx9PTiNYImyGHUeiKs0xSenQ4iXUMzOtYZucjAueaVFBixw==","shasum":"5a4d06ee0f0b72ac947f7c37d7538a1769d994a2","tarball":"https://registry.npmjs.org/@bmp/unistore/-/unistore-0.0.2.tgz","fileCount":35,"unpackedSize":121015,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5XyqCRA9TVsSAnZWagAAduwQAIfqns0JpVRDt8mUyUUY\nIQEV2wxz5uKg97Aiz9yDJsWcL/CW+jNIk8UEZ2rcy0/SaxilbifQPSj4QV2r\nTNH5UGAAQprXrrrkj8pOVIu6ERjekBxfqkbfax7SF9idi1Hdd46LjmOx5Suc\n3Z3suf3u6+7YrpHjvFWrDHQdzZKR0A5I+Auhm8q3S2ns8l6GzYvE0RnJILAH\no5GbCQ7XA9lsUs4KWGeMJuFWoJMKnuX5ojgg8Bxm/kO2IHZUSqyH4Yor6Nb8\nF4HHTgFy+FUOxqi0CrYoyfrtqH9ilZ2ylTfIkx8oZQAxgLV5oovmk0P+M3+A\nJ0jAddkbgdmw/igAgBWZzbo0AYexX2iXBf594dYlADkc2Cf3gcCLjKJQ239M\nU/pPQ+gcxRwiPvHaoodtlAyknmmKEvPa1COqvjEUi18m2BNXd7YJu+nPor/N\nCYvqzTCG9gZ1tv0ipYcX1n7Uk6HRZiS6ip+occKsES4/5KkKiy24XVrRuhbA\nv2axkfBJVmkwI0phSNRWD8ZaLpyLmC677PHXUeETDO44lqV4JrPT2V84phf+\nte7SIeTWc1hy14ORZYnMpzHOOPULK7D/5afsg862G0/PDT+9erKakSEXiRSm\nIRqLifUcBioZJSXhyff80N+vbmL5gHBYc183Gt3pFgy0ixpTD6XEHaJlfc7o\n5A8X\r\n=vqod\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnB0Z2KOTDWqYBIoGHG8aHBYUDuljGH1g/eWJBusKMVQIhAIs97CeGZG790sM2h5cdhMQAdoKqBULx2LDavEh9Kx8l"}]},"maintainers":[{"name":"lohfu","email":"lohfu@lohfu.io"}],"_npmUser":{"name":"lohfu","email":"lohfu@lohfu.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unistore_0.0.2_1575320745637_0.02516053499218729"},"_hasShrinkwrap":false},"0.0.3":{"name":"@bmp/unistore","version":"0.0.3","description":"Dead simple centralized state container (store) with preact and react bindings.","source":"src/index.js","module":"dist/unistore.es.js","main":"dist/unistore.js","umd:main":"dist/unistore.umd.js","typings":"index.d.ts","scripts":{"build":"npm-run-all --silent -p build:main build:integrations build:combined -s size docs","build:main":"microbundle","build:integrations":"microbundle src/integrations/*.js -o x.js -f cjs --external react,preact","build:combined":"microbundle src/combined/*.js -o full/x.js --external react,preact","size":"strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize","docs":"documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme","fixreadme":"node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^-   /gm, \"- \"))'","test":"eslint src && npm run build && jest","prepare":"npm t","release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"eslint-config-developit","rules":{"prefer-rest-params":0,"prefer-spread":0}},"bundlesize":[{"path":"full/preact.js","maxSize":"760b"},{"path":"dist/unistore.js","maxSize":"400b"},{"path":"preact.js","maxSize":"600b"}],"babel":{"presets":[["env",{"targets":{"node":"current"}}]],"plugins":[["transform-react-jsx",{"pragma":"h"}]]},"jest":{"testURL":"http://localhost"},"keywords":["preact","component","state machine","redux"],"repository":{"type":"git","url":"git+https://github.com/developit/unistore.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","devDependencies":{"babel-jest":"^24.3.1","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","bundlesize":"^0.17.1","documentation":"^4.0.0","enzyme":"^3.9.0","enzyme-adapter-react-16":"^1.10.0","eslint":"^4.16.0","eslint-config-developit":"^1.1.1","gzip-size-cli":"^2.1.0","jest":"^24.3.1","microbundle":"^0.11.0","npm-run-all":"^4.1.2","preact":"^10.0.0","raf":"^3.4.0","react":"^16.8.4","react-dom":"^16.8.4","strip-json-comments-cli":"^1.0.1"},"peerDependenciesMeta":{"preact":{"optional":true},"react":{"optional":true}},"gitHead":"61ea57dfd4490e2a27587d01d1e1af0b0b61836e","bugs":{"url":"https://github.com/developit/unistore/issues"},"homepage":"https://github.com/developit/unistore#readme","_id":"@bmp/unistore@0.0.3","_nodeVersion":"13.2.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-mQhw+kWfjNk0rSBHEFQ5bCl6QQM8PJKd4llVs2Maw7vlzpbhJkp26CtKm28QkaPB4QWyIScaDSV7uKzYkDONcw==","shasum":"566349df83761d5085816e0a84d427bdd741db29","tarball":"https://registry.npmjs.org/@bmp/unistore/-/unistore-0.0.3.tgz","fileCount":35,"unpackedSize":121041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5YHTCRA9TVsSAnZWagAAhxcP/2VyAS64meAf17Tsh9jX\nIlmKvZhbXLCPIMkQc8XB0C9WOHlMD3ebciwTGBNnRKRQ7VWbL/a/iGgI/yNX\ndwj2Zsna+d+DC8qHEPepOYKCANIZ8iLjWPnxg3PBgRsqYq1xIDCsiIf+7PU5\nSvDnT2ZBkWTcEQ+UjqMv5YLH0peBdjtKIZmkUUcqlW1ozQgV0NiRmp5aZ+8J\nM29ZnVkfDkWhUjFZ5v/Ay48JL6jHg7/EK595HwTnWTOErbyRnqL6bwyKrt5q\nRfI9tlVP7OJVTX5OFYf43e1+yHRRCH7JRWUanxeAD0M5qwMMoAxwSa0c4Qlp\n07gkZUSFRa+oV3gHK6ujBmn8zRr/FdRdGMRC3vwmk0y+FPvo4mlCO33Wy0v6\nwn6FzItgGERb710SS7t/ZrN//insTzST1y2uaVriSGLDZ5xmVe9vzQEx7ZFU\nFDJw5V84u61C636PCWVpihRwUOL1Qmk265x+chuGJ7YlFKXe72VksXmsVsGh\nyUm8hL1wdXHq0TQefER7uYBrPhEItpEvIKrvEpoH/lupgbUKcynsnGF/VK8K\n9nhIlvaMmOZAeVXc5buQ3iYNBCls+XoU6KAAh2ZOZe9bsTBGG16YgF2WIvwR\nKzku1Cv89/lF+uSJkeXN0uZcM0WwCTYPGM3GbLxvHIsu4x/lvITb6vy0Yhal\nLapI\r\n=Tmea\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG1kkq5dGz3o7+HSi4sszaiOVf74QFfkzyUERKFM9Vk0AiA1LI0pbLtWVXsV2R1igUEiLBRbbhujQWjRphRRhg/S2w=="}]},"maintainers":[{"name":"lohfu","email":"lohfu@lohfu.io"}],"_npmUser":{"name":"lohfu","email":"lohfu@lohfu.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unistore_0.0.3_1575322067310_0.7281872291383154"},"_hasShrinkwrap":false},"0.0.4":{"name":"@bmp/unistore","version":"0.0.4","description":"Dead simple centralized state container (store) with preact and react bindings.","source":"src/index.js","module":"dist/unistore.es.js","main":"dist/unistore.js","umd:main":"dist/unistore.umd.js","typings":"index.d.ts","scripts":{"build":"npm-run-all --silent -p build:main build:integrations build:combined -s size docs","build:main":"microbundle","build:integrations":"microbundle src/integrations/*.js -o x.js -f cjs --external react,preact","build:combined":"microbundle src/combined/*.js -o full/x.js --external react,preact","size":"strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize","docs":"documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme","fixreadme":"node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^-   /gm, \"- \"))'","test":"eslint src && npm run build && jest","prepare":"npm t","release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"eslint-config-developit","rules":{"prefer-rest-params":0,"prefer-spread":0}},"bundlesize":[{"path":"full/preact.js","maxSize":"760b"},{"path":"dist/unistore.js","maxSize":"400b"},{"path":"preact.js","maxSize":"600b"}],"babel":{"presets":[["env",{"targets":{"node":"current"}}]],"plugins":[["transform-react-jsx",{"pragma":"h"}]]},"jest":{"testURL":"http://localhost"},"keywords":["preact","component","state machine","redux"],"repository":{"type":"git","url":"git+https://github.com/developit/unistore.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","devDependencies":{"babel-jest":"^24.3.1","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","bundlesize":"^0.17.1","documentation":"^4.0.0","enzyme":"^3.9.0","enzyme-adapter-react-16":"^1.10.0","eslint":"^4.16.0","eslint-config-developit":"^1.1.1","gzip-size-cli":"^2.1.0","jest":"^24.3.1","microbundle":"^0.11.0","npm-run-all":"^4.1.2","preact":"^10.0.0","raf":"^3.4.0","react":"^16.8.4","react-dom":"^16.8.4","strip-json-comments-cli":"^1.0.1"},"peerDependenciesMeta":{"preact":{"optional":true},"react":{"optional":true}},"gitHead":"418fd20da8404874a4f9d84697de4c9d75d3d950","bugs":{"url":"https://github.com/developit/unistore/issues"},"homepage":"https://github.com/developit/unistore#readme","_id":"@bmp/unistore@0.0.4","_nodeVersion":"13.2.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-LcP/vuOdmw0L5crvsxLS3BhgoZNj2+seNDT+zNWXomzEVxzThiQ9hKbCF7t/g/GDP8sUnJSuKwfwwmTdyUVtGA==","shasum":"b9d54b5202b4b4e81da9cbcee657ee26d100c528","tarball":"https://registry.npmjs.org/@bmp/unistore/-/unistore-0.0.4.tgz","fileCount":35,"unpackedSize":119518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd55EOCRA9TVsSAnZWagAAYTwP/2IfcvecVXAt8Sce1Beq\nq8O7h4ypcEO9O7A/X+r6ivqZr4lZN6jFHCql1RnlrL+tY68NHtK2upsLPGut\nlFIT1i5QxVQa/tsoru34qmkvTB1E0WzGuQACCHrSwDdIcAkijjAYdkVR09lO\np8CxvJKcQ1DF3MlDqQBH0Tyh4Gi1hoHreQFqRasIFI05QIVEFx6hFHwRJN9i\na7+mB7SJsw6L+uz0suohhBYoMx3AoYSmQY3DWznWX5R1ww5FKm1i8TqPX1fj\njhe338NgMVFe/vxoGNKn7LrOZ9e9/mkFeeTUsUi0b9DfSjSGnOK/0Rwx6vKF\nLbdGDXpF6IGX2UfQhX/U0uY1oY4t4I91MFzoSb2RCrOTPZeZ19emYhfs/0fu\nR86ixhHj21WZKiKedehOSINzOHptAwQzql7kDwQ6IeDFO3LzSb16/80ux/xf\n8xKasVqZ1hhXQ39yvovJh8rBx2/GcJQ50J4DA2ysasv4HpmbquiXfdgZJPRE\nUgYvREYriqDhef3xFGaHRHQNcs9LUFrqIBFcA1iaReCsneglw2N25LtEb8OT\n7nh1is4Wr0BKGHpgpZWVUO3ce6nLsBHxKxXwF6an8eCsKyp9T/xbHRUQsNwO\nrwDs4YqYLk5s4qSLuVlEU/uff4R3emLZORKZaboBAKgNDktRx/QhV9Esqaat\nBYmI\r\n=OW8V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG14Jt4HnnxlMCLCO7T37odwptCXJTcqzadl8700nzmvAiEAyRTZmFClVzmubaBrE3dWuwZ6QwuuPI+2eiuxdKorzbg="}]},"maintainers":[{"name":"lohfu","email":"lohfu@lohfu.io"}],"_npmUser":{"name":"lohfu","email":"lohfu@lohfu.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unistore_0.0.4_1575457038053_0.4302700007524154"},"_hasShrinkwrap":false},"0.0.5":{"name":"@bmp/unistore","version":"0.0.5","description":"Dead simple centralized state container (store) with preact and react bindings.","source":"src/index.js","module":"dist/unistore.es.js","main":"dist/unistore.js","umd:main":"dist/unistore.umd.js","typings":"index.d.ts","scripts":{"build":"npm-run-all --silent -p build:main build:integrations build:combined -s size docs","build:main":"microbundle","build:integrations":"microbundle src/integrations/*.js -o x.js -f cjs --external react,preact","build:combined":"microbundle src/combined/*.js -o full/x.js --external react,preact","size":"strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize","docs":"documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme","fixreadme":"node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^-   /gm, \"- \"))'","test":"eslint src && npm run build && jest","prepare":"npm t","release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"eslint-config-developit","rules":{"prefer-rest-params":0,"prefer-spread":0}},"bundlesize":[{"path":"full/preact.js","maxSize":"760b"},{"path":"dist/unistore.js","maxSize":"400b"},{"path":"preact.js","maxSize":"600b"}],"babel":{"presets":[["env",{"targets":{"node":"current"}}]],"plugins":[["transform-react-jsx",{"pragma":"h"}]]},"jest":{"testURL":"http://localhost"},"keywords":["preact","component","state machine","redux"],"repository":{"type":"git","url":"git+https://github.com/developit/unistore.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","devDependencies":{"babel-jest":"^24.3.1","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","bundlesize":"^0.17.1","documentation":"^4.0.0","enzyme":"^3.9.0","enzyme-adapter-react-16":"^1.10.0","eslint":"^4.16.0","eslint-config-developit":"^1.1.1","gzip-size-cli":"^2.1.0","jest":"^24.3.1","microbundle":"^0.11.0","npm-run-all":"^4.1.2","preact":"^10.0.0","raf":"^3.4.0","react":"^16.8.4","react-dom":"^16.8.4","strip-json-comments-cli":"^1.0.1"},"peerDependenciesMeta":{"preact":{"optional":true},"react":{"optional":true}},"gitHead":"40a0f3176cbaddd3601e3cebe279764ff7c79543","bugs":{"url":"https://github.com/developit/unistore/issues"},"homepage":"https://github.com/developit/unistore#readme","_id":"@bmp/unistore@0.0.5","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mZ64nCswpvtk0DMHctJ01ELah1pp/wPu0ukYExRWaK8nJ3ce7R2LwC9q6SbdygrL1EalMiuaZ22jwUgkixUwFQ==","shasum":"97adc15fcb34e2fc8d45de32ffdd62a0439bc312","tarball":"https://registry.npmjs.org/@bmp/unistore/-/unistore-0.0.5.tgz","fileCount":35,"unpackedSize":121234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei1iACRA9TVsSAnZWagAAmOEP+wXhi4bdW3Z9kxGwRarC\nRcX5PGhzRmYB2zMfAHt7Xij3iFSQTMvABpSVTpLodm6UdjtcpvJAiBze+3Da\n/dmcaW0Yh010MHV4T/VPX7hCfqhiA4rVrP7C/Uz/8mN51Se8xNt1zFwzj2UQ\nnQtakprQrA/q0NQ+YVghRr6miuIQ3V/pe7dPVq7/BTErbkZLQBvZCr6Drrbe\nImpMtMyNE1lXM/Vs6xhSJmF6wAYghXD9/SOaKmPoAhtdntxaN8+lEO0Qy2/T\n8W1wUnc1uM6/xWykZLC5Kzui9IESkQ3pp9P0bJMXU+kMw1C0L27FuX1hvqcQ\nrWnwh0/Qyt1oiovURs6LI1EgMmX/0IwB71j+mGk3oJLXpDFAHoWpNM20I3bw\nmLQjDR9t150Q0A3qjCNZSnhMt0o2/9zJXSlHVy1e0P9H30UwRConAEYepmqq\ngbflx/Bcp3OzgOIatpaXE49441DG/vJ7fz1g+JJra9vamQoukd75ce2mN2VA\nRhhkL096YhVsOgq2zkK2QPPhdMsZHabrfTwmr+LCiVXb59O+zSJvpsEfIlNQ\n82lGWswZtQLq5utFmxCEfexa1ln4T3J4/ew2lU9fDTW/eVpAnBDS7+xT+NwW\nsQUyFJzySYsPiDBy/f1e/fUpSNyj7J7opIThTjORv7q534yYM8pekx7cpXT3\nE9PZ\r\n=idtP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGSvqPToIiqTRQzW5+gXN9Ye7ZFhoLcV8JVGMj1WoPbXAiEAwEAAhI9QXBZ9DlouuajW4d75Fgnu+X7PW8ZBqF5Z0rg="}]},"maintainers":[{"name":"lohfu","email":"lohfu@lohfu.io"}],"_npmUser":{"name":"lohfu","email":"lohfu@lohfu.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unistore_0.0.5_1586190463814_0.8869829392984596"},"_hasShrinkwrap":false},"0.0.6":{"name":"@bmp/unistore","version":"0.0.6","description":"Dead simple centralized state container (store) with preact and react bindings.","source":"src/index.js","module":"dist/unistore.es.js","main":"dist/unistore.js","umd:main":"dist/unistore.umd.js","typings":"index.d.ts","scripts":{"build":"npm-run-all --silent -p build:main build:integrations build:combined -s size docs","build:main":"microbundle","build:integrations":"microbundle src/integrations/*.js -o x.js -f cjs --external react,preact","build:combined":"microbundle src/combined/*.js -o full/x.js --external react,preact","size":"strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize","docs":"documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme","fixreadme":"node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^-   /gm, \"- \"))'","test":"eslint src && npm run build && jest","prepare":"npm t","release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"eslint-config-developit","rules":{"prefer-rest-params":0,"prefer-spread":0}},"bundlesize":[{"path":"full/preact.js","maxSize":"760b"},{"path":"dist/unistore.js","maxSize":"400b"},{"path":"preact.js","maxSize":"600b"}],"babel":{"presets":[["env",{"targets":{"node":"current"}}]],"plugins":[["transform-react-jsx",{"pragma":"h"}]]},"jest":{"testURL":"http://localhost"},"keywords":["preact","component","state machine","redux"],"repository":{"type":"git","url":"git+https://github.com/developit/unistore.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","devDependencies":{"babel-jest":"^24.3.1","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","bundlesize":"^0.17.1","documentation":"^4.0.0","enzyme":"^3.9.0","enzyme-adapter-react-16":"^1.10.0","eslint":"^4.16.0","eslint-config-developit":"^1.1.1","gzip-size-cli":"^2.1.0","jest":"^24.3.1","microbundle":"^0.11.0","npm-run-all":"^4.1.2","preact":"^10.0.0","raf":"^3.4.0","react":"^16.8.4","react-dom":"^16.8.4","strip-json-comments-cli":"^1.0.1"},"peerDependenciesMeta":{"preact":{"optional":true},"react":{"optional":true}},"gitHead":"7e4085cb5d278462612714c204cbcaf955b4df0f","bugs":{"url":"https://github.com/developit/unistore/issues"},"homepage":"https://github.com/developit/unistore#readme","_id":"@bmp/unistore@0.0.6","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BfSr5rNhVTc3ja4SxKOyfMmaS9mAAtzTjMSkBEHPnrxKJ5FTARegJ3qasnuHW+bEkfpFMAHtv3XMq+sLspOu0A==","shasum":"f7d9320d89c66ed630b31ae05eaf37516703554a","tarball":"https://registry.npmjs.org/@bmp/unistore/-/unistore-0.0.6.tgz","fileCount":35,"unpackedSize":121356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejIlVCRA9TVsSAnZWagAAHM4P/RPP/X9HkjF7w5dGZeOD\nE2QT1hbQJaJKdxOu5ipOee64Ym4G7eKicbf+tzNig10MZWwqXnAUmrV7rhck\n0OoJgp4xRb+uvNPoNFxewVNRhINKjtpDsJj8TMpGXz0xgPnkWLGMT94SzLYV\n50zuNcijMn7tsvW8BGU09T4xavVmTErbIDjVZPZWW2iXHBl/bZyo1X5CW2IT\niaaR26H1Op5lGNoDH/bYR78BXwgWf3LiEpux+HewcIkh2ZNHEFn/ToX8IBcR\nBDG+x6KF/OACz2FxtAuH1a4eKIPsLOxSNY+6gl8seyQtxlApwnbvvWFmBEcY\ntO7bSPF7iuVUv5L0E+6TSXyPF3oSLe4I1t7BN9grvER/X1uDZdYzjAQvtPJl\nxIW5B8jJfQ+m8dZh3VdWOXqV+6RJOq30zWrO2iQxAKIpTkJK9q+4YTy7xxH8\n/miAx0B8dhS8mj9lTQgAKicWda+P/sGMDRwvo4PHaIqOomLllYVXkXTRSSAH\nLLVO51FjluqqA8Bz9DmDZVvIpmxM96inmQEp/Iok4dapWfqBFU21v10v6vvy\nTThUTisddkgchxpC2L9JFbuHRqME71KRD+AxtLJTZoH3EuUjN2Exy2NWxPpC\nucegZ6SBG7n6VfIvimQ3a4BxC0+91kFczckx99oar7rnnkbushpzB2DrNXMQ\n+LVG\r\n=LPb4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAz42HW6krfU7VWgmQoku0zszMUvLTPsCwWI93baN4dfAiEA5vU+HC7f/wWAqmdAn7lpeRIvacMdrdSC7bdC8POHVRQ="}]},"maintainers":[{"name":"lohfu","email":"lohfu@lohfu.io"}],"_npmUser":{"name":"lohfu","email":"lohfu@lohfu.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unistore_0.0.6_1586268500775_0.793534411255369"},"_hasShrinkwrap":false},"0.0.7":{"name":"@bmp/unistore","version":"0.0.7","description":"Dead simple centralized state container (store) with preact and react bindings.","source":"src/index.js","module":"dist/unistore.es.js","main":"dist/unistore.js","umd:main":"dist/unistore.umd.js","typings":"index.d.ts","scripts":{"build":"npm-run-all --silent -p build:main build:integrations build:combined -s size docs","build:main":"microbundle","build:integrations":"microbundle src/integrations/*.js -o x.js -f cjs --external react,preact","build:combined":"microbundle src/combined/*.js -o full/x.js --external react,preact","size":"strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize","docs":"documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme","fixreadme":"node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^-   /gm, \"- \"))'","test":"eslint src && npm run build && jest","prepare":"npm t","release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"eslint-config-developit","rules":{"prefer-rest-params":0,"prefer-spread":0}},"bundlesize":[{"path":"full/preact.js","maxSize":"760b"},{"path":"dist/unistore.js","maxSize":"400b"},{"path":"preact.js","maxSize":"600b"}],"babel":{"presets":[["env",{"targets":{"node":"current"}}]],"plugins":[["transform-react-jsx",{"pragma":"h"}]]},"jest":{"testURL":"http://localhost"},"keywords":["preact","component","state machine","redux"],"repository":{"type":"git","url":"git+https://github.com/developit/unistore.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","devDependencies":{"babel-jest":"^24.3.1","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","bundlesize":"^0.17.1","documentation":"^4.0.0","enzyme":"^3.9.0","enzyme-adapter-react-16":"^1.10.0","eslint":"^4.16.0","eslint-config-developit":"^1.1.1","gzip-size-cli":"^2.1.0","jest":"^24.3.1","microbundle":"^0.11.0","npm-run-all":"^4.1.2","preact":"^10.0.0","raf":"^3.4.0","react":"^16.8.4","react-dom":"^16.8.4","strip-json-comments-cli":"^1.0.1"},"peerDependenciesMeta":{"preact":{"optional":true},"react":{"optional":true}},"gitHead":"26aec5f06d70eca95e6bb6367b5bfef776b3e6bf","bugs":{"url":"https://github.com/developit/unistore/issues"},"homepage":"https://github.com/developit/unistore#readme","_id":"@bmp/unistore@0.0.7","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8Qq1F7tH1Cgqu4GwqG4I7/4Ndy7fsLPCEe2TlHilWcXjGc7DlqnKATXOwNkdF3Npb/qBok6xcOxp3GRHvjHMKA==","shasum":"99f394a296c5d90cdea3300482eba051f9150c51","tarball":"https://registry.npmjs.org/@bmp/unistore/-/unistore-0.0.7.tgz","fileCount":35,"unpackedSize":121382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemIauCRA9TVsSAnZWagAAKHAQAJ99z4+SwSGRcH8RrVBe\nKh0Pv38GfHiKMN75X85WfCZ6dnrXcmZv3k/iMYB/sdu9rG5qqCc/Ma6mjF5p\n3hnljkpPlmU38ihQRLiPgBJnCyCDeujuYo/TxJXa3DiDmGPWfV/qajri7p8j\nTKbSZfCSXkfbCADo84a+uVbNA8iBQk+Hg3df0p/CIXxRYv0xiz9IJRSd3p2P\nk1HYNJSAJssDCeGCNjaOTt+aOol3u1TRaSeNbsWF3YOPngmpP8PG42ppqmUy\n0o6rp8X6uQDdlq2NBDmM+87LRgnHKBjuDsM6GULOOHm7UgMMCMgUiKchZcuQ\nhxFF8F2Iu4r8pAqsgWupyqgMxGv14hX68Hyw0gMc1BDXwQ59dDfhyb+XwLSR\nUqdXTv0m8NC+KlDHsoMyUbiTnb4g49kp3vYKHw9tldK3LXbc4QqtWbCffQs5\nkAPGMXJdQnoU+ueNpCN1xM0lcs1iRstpTyPvaQ7LvwhDW/MeJ9rCV9a/HRvb\nNqi/3fXac9sda1WPpmJgPAvMAln3yosJii5it/7uuuJh8+JK2b1u0Assnzzr\nj9mtC25szHVzlLfEf2sdh7FW/gs3xHxuVPOCxd/6aNJgMUz4rzYnTaDVL0hD\nx87oNVQ8KWwk41qPh4LJHtkdxwta46e/sf3a42PbhkpU1waIDf0THMgBtLmQ\nYmku\r\n=ZWIQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVIIAyn3/W5KvXbaetYVXeRTmWdJi1/4vf7uvY77FqKgIgNk7Ylcx3Tb5ttecUWlFkNAL/mf1oDjwLEavaoEfkF+k="}]},"maintainers":[{"name":"lohfu","email":"lohfu@lohfu.io"}],"_npmUser":{"name":"lohfu","email":"lohfu@lohfu.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unistore_0.0.7_1587054254112_0.9343203478301603"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-02T20:22:11.647Z","0.0.1":"2019-12-02T20:22:11.938Z","modified":"2022-04-04T19:52:46.547Z","0.0.2":"2019-12-02T21:05:45.849Z","0.0.3":"2019-12-02T21:27:47.498Z","0.0.4":"2019-12-04T10:57:18.211Z","0.0.5":"2020-04-06T16:27:43.897Z","0.0.6":"2020-04-07T14:08:20.932Z","0.0.7":"2020-04-16T16:24:14.315Z"},"maintainers":[{"name":"lohfu","email":"lohfu@lohfu.io"}],"description":"Dead simple centralized state container (store) with preact and react bindings.","homepage":"https://github.com/developit/unistore#readme","keywords":["preact","component","state machine","redux"],"repository":{"type":"git","url":"git+https://github.com/developit/unistore.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"bugs":{"url":"https://github.com/developit/unistore/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <img src=\"https://i.imgur.com/o0u6dto.png\" width=\"300\" height=\"300\" alt=\"unistore\">\n  <br>\n  <a href=\"https://www.npmjs.org/package/unistore\"><img src=\"https://img.shields.io/npm/v/unistore.svg?style=flat\" alt=\"npm\"></a> <a href=\"https://travis-ci.org/developit/unistore\"><img src=\"https://travis-ci.org/developit/unistore.svg?branch=master\" alt=\"travis\"></a>\n</p>\n\n# unistore\n\n> A tiny 350b centralized state container with component bindings for [Preact] & [React].\n\n- **Small** footprint complements Preact nicely _(unistore + unistore/preact is ~650b)_\n- **Familiar** names and ideas from Redux-like libraries\n- **Useful** data selectors to extract properties from state\n- **Portable** actions can be moved into a common place and imported\n- **Functional** actions are just reducers\n- **NEW**: seamlessly run Unistore in a worker via [Stockroom](https://github.com/developit/stockroom)\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Examples](#examples)\n- [API](#api)\n- [License](#license)\n\n## Install\n\nThis project uses [node](http://nodejs.org) and [npm](https://npmjs.com). Go check them out if you don't have them locally installed.\n\n```sh\nnpm install --save unistore\n```\n\nThen with a module bundler like [webpack](https://webpack.js.org) or [rollup](http://rollupjs.org), use as you would anything else:\n\n```js\n// The store:\nimport createStore from 'unistore'\n\n// Preact integration\nimport { Provider, connect } from 'unistore/preact'\n\n// React integration\nimport { Provider, connect } from 'unistore/react'\n```\n\nAlternatively, you can import the \"full\" build for each, which includes both `createStore` and the integration for your library of choice:\n\n```js\nimport { createStore, Provider, connect } from 'unistore/full/preact'\n```\n\nThe [UMD](https://github.com/umdjs/umd) build is also available on [unpkg](https://unpkg.com):\n\n```html\n<!-- just unistore(): -->\n<script src=\"https://unpkg.com/unistore/dist/unistore.umd.js\"></script>\n<!-- for preact -->\n<script src=\"https://unpkg.com/unistore/full/preact.umd.js\"></script>\n<!-- for react -->\n<script src=\"https://unpkg.com/unistore/full/react.umd.js\"></script>\n```\n\nYou can find the library on `window.unistore`.\n\n### Usage\n\n```js\nimport createStore from 'unistore'\nimport { Provider, connect } from 'unistore/preact'\n\nlet store = createStore({ count: 0, stuff: [] })\n\nlet actions = {\n  // Actions can just return a state update:\n  increment(state) {\n    // The returned object will be merged into the current state\n    return { count: state.count+1 }\n  },\n\n  // The above example as an Arrow Function:\n  increment2: ({ count }) => ({ count: count+1 }),\n\n  // Actions receive current state as first parameter and any other params next\n  // See the \"Increment by 10\"-button below\n  incrementBy: ({ count }, incrementAmount) => {\n    return { count: count+incrementAmount }\n  },\n}\n\n// If actions is a function, it gets passed the store:\nlet actionFunctions = store => ({\n  // Async actions can be pure async/promise functions:\n  async getStuff(state) {\n    const res = await fetch('/foo.json')\n    return { stuff: await res.json() }\n  },\n\n  // ... or just actions that call store.setState() later:\n  clearOutStuff(state) {\n    setTimeout(() => {\n      store.setState({ stuff: [] }) // clear 'stuff' after 1 second\n    }, 1000)\n  }\n\n  // Remember that the state passed to the action function could be stale after\n  // doing async work, so use getState() instead:\n  incrementAfterStuff(state) {\n    const res = await fetch('foo.json')\n    const resJson = await res.json()\n    // the variable 'state' above could now be old,\n    // better get a new one from the store\n    const upToDateState = store.getState()\n\n    return {\n      stuff: resJson,\n      count: upToDateState.count + resJson.length,\n    }\n  }\n})\n\n// Connecting a react/preact component to get current state and to bind actions\nconst App1 = connect('count', actions)(\n  ({ count, increment, incrementBy }) => (\n    <div>\n      <p>Count: {count}</p>\n      <button onClick={increment}>Increment</button>\n      <button onClick={() => incrementBy(10)}>Increment by 10</button>\n    </div>\n  )\n)\n\n// First argument to connect can also be a string, array or function while\n// second argument can be an object or a function. Here we pass an array and\n// a function.\nconst App2 = connect(['count', 'stuff'], actionFunctions)(\n  ({ count, stuff, getStuff, clearOutStuff, incrementAfterStuff }) => (\n    <div>\n      <p>Count: {count}</p>\n      <p>Stuff:\n        <ul>{stuff.map(s => (\n         <li>{s.name}</li>\n        ))}</ul>\n      </p>\n      <button onClick={getStuff}>Get some stuff!</button>\n      <button onClick={clearOutStuff}>Remove all stuff!</button>\n      <button onClick={incrementAfterStuff}>Get and count stuff!</button>\n    </div>\n  )\n)\n\nexport const getApp1 = () => (\n  <Provider store={store}>\n    <App1 />\n  </Provider>\n)\n\nexport const getApp2 = () => (\n  <Provider store={store}>\n    <App2 />\n  </Provider>\n)\n```\n\n### Debug\n\nMake sure to have [Redux devtools extension](https://github.com/zalmoxisus/redux-devtools-extension) previously installed.\n\n```js\nimport createStore from 'unistore'\nimport devtools    from 'unistore/devtools'\n\nlet initialState = { count: 0 };\nlet store = process.env.NODE_ENV === 'production' ?  createStore(initialState) : devtools(createStore(initialState));\n\n// ...\n```\n\n### Examples\n\n[README Example on CodeSandbox](https://codesandbox.io/s/l7y7w5qkz9)\n\n### API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### createStore\n\nCreates a new store, which is a tiny evented state container.\n\n**Parameters**\n\n- `state` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional initial state (optional, default `{}`)\n- `extraArg`  \n\n**Examples**\n\n```javascript\nlet store = createStore();\nstore.subscribe( state => console.log(state) );\nstore.setState({ a: 'b' });   // logs { a: 'b' }\nstore.setState({ c: 'd' });   // logs { a: 'b', c: 'd' }\n```\n\nReturns **[store](#store)** \n\n#### store\n\nAn observable state container, returned from [createStore](#createstore)\n\n##### dispatch\n\nCreate a bound copy of the given action function.\nThe bound returned function invokes action() and persists the result back to the store.\nIf the return value of `action` is a Promise, the resolved value will be used as state.\n\n**Parameters**\n\n- `action` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** An action of the form `action(state, ...args) -> stateUpdate`\n\nReturns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** boundAction()\n\n##### setState\n\nApply a partial state object to the current state, invoking registered listeners.\n\n**Parameters**\n\n- `update` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** An object with properties to be merged into state\n- `overwrite` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** If `true`, update will replace state instead of being merged into it (optional, default `false`)\n\n##### subscribe\n\nRegister a listener function to be called whenever state is changed. Returns an `unsubscribe()` function.\n\n**Parameters**\n\n- `listener` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** A function to call when state changes. Gets passed the new state.\n\nReturns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** unsubscribe()\n\n##### unsubscribe\n\nRemove a previously-registered listener function.\n\n**Parameters**\n\n- `listener` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** The callback previously passed to `subscribe()` that should be removed.\n\n##### getState\n\nRetrieve the current state object.\n\nReturns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** state\n\n#### connect\n\nWire a component up to the store. Passes state as props, re-renders on change.\n\n**Parameters**\n\n- `mapStateToProps` **([Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function) \\| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array) \\| [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** A function mapping of store state to prop values, or an array/CSV of properties to map.\n- `actions` **([Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function) \\| [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))?** Action functions (pure state mappings), or a factory returning them. Every action function gets current state as the first parameter and any other params next\n\n**Examples**\n\n```javascript\nconst Foo = connect('foo,bar')( ({ foo, bar }) => <div /> )\n```\n\n```javascript\nconst actions = { someAction }\nconst Foo = connect('foo,bar', actions)( ({ foo, bar, someAction }) => <div /> )\n```\n\nReturns **Component** ConnectedComponent\n\n#### Provider\n\n**Extends Component**\n\nProvider exposes a store (passed as `props.store`) into context.\n\nGenerally, an entire application is wrapped in a single `<Provider>` at the root.\n\n**Parameters**\n\n- `props` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** \n    -   `props.store` **Store** A {Store} instance to expose via context.\n\n### Reporting Issues\n\nFound a problem? Want a new feature? First of all, see if your issue or idea has [already been reported](../../issues).\nIf not, just open a [new clear and descriptive issue](../../issues/new).\n\n### License\n\n[MIT License](https://oss.ninja/mit/developit) © [Jason Miller](https://jasonformat.com)\n\n[preact]: https://github.com/developit/preact\n\n[react]: https://github.com/facebook/react\n","readmeFilename":"README.md"}