{"_id":"mehdux","_rev":"43-82eac55247a43316dd38d086757a4818","name":"mehdux","description":"A straight forward state container","dist-tags":{"latest":"0.5.5","beta":"0.3.2-beta.4"},"versions":{"0.1.0":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.1.0","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o dist/preact/index.js","bundle:react":"microbundle src/react.js -o dist/react/index.js","bundle":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","build":"npm run bundle","test":"echo 'should add some tests.. :)'"},"files":["dist"],"gitHead":"bbd6fb407ce85a8d827dd6d5fc257be48dc79681","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-RlhgQ1gDdLT3eZjyOp9jlK//fU6faUl+Qz75rnFLvmorCMhHK57Ld2y+gk3ZAYc3sjF8m366wVqEx7/5OUs1Og==","shasum":"40691276e8a970e9109fbc30e0ea7e9f86b1c380","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtsKt7zXLZL03d3lrjf8pSCljH7Fu8hDvGl+pUvMl/vAiBIrD5t+GtKAtm5vE9g9fZWwyi3CQzt9x5HldQLEpYiFw=="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.1.0.tgz_1517262570108_0.27518155751749873"},"directories":{}},"0.2.0":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.0","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o dist/preact.js","bundle:react":"microbundle src/react.js -o dist/react.js","bundle":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","build":"npm run bundle","test":"echo 'should add some tests.. :)'"},"files":["dist"],"gitHead":"bbd6fb407ce85a8d827dd6d5fc257be48dc79681","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-z+6mrYw44TMSnniRxVYQExlYOBpCZWQ06TZmYT9eqtVuCWT80V67Lks/OIKF9EKgdC7Ct+qEy+5khyLq+A7BKw==","shasum":"44ad1ca1a9fc8c29a13ef64d31d72389c9ea6b21","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0HcYeXlAfXPBPYpucbzXgNs7XibodfAIQ9a4v3oqssAIgebNGF2GHs58BNlwpp2GRTk5sC4iJjTXWMuzrWymLZ18="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.0.tgz_1517264158496_0.8346356158144772"},"directories":{}},"0.2.1":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.1","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o dist/preact.js","bundle:react":"microbundle src/react.js -o dist/react.js","bundle":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","build":"npm run bundle","test":"echo 'should add some tests.. :)'"},"files":["dist"],"gitHead":"a92ff58f6528ce98c231927df02423f9a59a929f","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.1","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-xc9grhfJ1GJgEm1H6pND2bhijn5xUCU00219Oj3l8snmfv0dNyEzxtdzKGhYrCUEKrdiPAXqGGrOKTBumgkFbw==","shasum":"38f0e91cfbe1d1529d45332e0235a47780e62db4","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZj5B6t5ilfXsh8uF726MrtBrzghs6nItwvHwrbZC4OAiEAo5RCVUckXI9zMsm4ZsmxAPNt/CZ0RMGlygIOXiXL6XI="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.1.tgz_1517264207736_0.19339791894890368"},"directories":{}},"0.2.2":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.2","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","prepublish":"npm run build","test":"echo 'should add some tests.. :)'"},"files":["dist"],"gitHead":"da1e77ea4155c49f815910077ac1f1928875ff70","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.2","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-v4hGNLV7QzigbalBLjq8erMzipcB+F7cp/iZeoANoe0PMYaxCOmP3wHTGtgU1PlTo7+I7E6/U/uJfMlPda2bSA==","shasum":"8945dfd365dcc07fa7f7a4e930203223c7c07de9","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF22pnrgj9cXNNFt9HUu5+P7ALXC6RQBVFEvEY76u5/ZAiEAzWUKpbICw7j9+H+EANfTRxOXlXYy+2hcit7t0ZreV4I="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.2.tgz_1517265099378_0.963995800120756"},"directories":{}},"0.2.4":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.4","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["dist"],"gitHead":"1d09a8c2c824bfc1097b871f0c93a7df205978db","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.4","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-pT3Cgs4I1n2Sq3OD0sJjPNXslKxDOT6YCqvVUtWFPxSOZyLH8ZwQQY2YsMprtO5gQbM0Y031eemERM/M/aVfUw==","shasum":"d3125a925a938f691fb6e3872c3942778ff689dc","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/zmQZR5iNGHW3PI6gtgL+87l0Zxqs/RzhdhMVzrLiCAiEAtA8XMFDOj9Xd8pbOF/DWCWR+U6vXCVCcUdFMb88WvmA="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.4.tgz_1517265633847_0.235316100763157"},"directories":{}},"0.2.5":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.5","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"6250bd5d2356d41017fe22329491be595c9e2899","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.5","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-Q3Jtt9tDancZsn6Fow5eY0cN8bbu7fIJVyKzwYlE3RUTmoVDIUiwV3thslGU4+5DnFd4I9zoy70wVc5QxKxXrg==","shasum":"6050fa290bc98fd0729f54e835f1144168964428","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAoKEXxotCKBr+7MmAm11is/FXvgDtejV8GfmUJCsUFuAiEAzpZfvp+2MI5xeKBI1qBCkzx1548PKzITBnXmD06gtLU="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.5.tgz_1517266552521_0.7684222725220025"},"directories":{}},"0.2.6":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.6","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"54ba4a1c337ed0c3b83b03006aceb8042db5f11f","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.6","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-YLtmt58ehDU4PQ8Q7au8fHDZRKdPYJwl5OxK5Pdnh2xliWhTEnLax/6n4LwqLRzIRDaCZ7SR7eYcCzLMi9vhUQ==","shasum":"e4ef0ef3dc869ed62cd12871d8edaf3da37815db","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtZOyrCB+IWk98d9bF6MUV+0zGtBvU4HXHWrxd1SPNOAIhALG+tN66WmHoQTAgtaFni0TdAbnrs4AZGZOCBucVrVQK"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.6.tgz_1517269111574_0.9080184777267277"},"directories":{}},"0.2.7":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.7","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"58d48a370812eaed5a0f70088aeed866cd912c85","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.7","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-Z9J6rWzNIkqEXuk3iXa15IY3BRpcRMNB7pfTl1optvO5pbUcqksPqthqgETXGrC/syMIQ/JR7VqRsJggrWPucQ==","shasum":"1d11210cb8581bfc115d47242536cfec5fdaf3c7","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfCHVCBXm6KRA8f8OFmoMEh3y1/qIP5C6/ulb7espLEAIgXWSrhUQ5z8o5aFSSyIB6SdIu8eA8wHXz2pyUGWJ5v1w="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.7.tgz_1517270012513_0.9154695358593017"},"directories":{}},"0.2.8":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.8","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"35076db3d6a38e4ab1c24684c0ce3153e58d5704","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.8","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-/ztk7K/iFnlGPFdgz1KUqwHEfc9zl3ayJQj+PGlymX6bXsCfrdOPHZQqA9TbzTwfPjfd9Tfm8sH6fSyQAGUt1w==","shasum":"76127acc5f1d03daff1bdbaac91839786efce794","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEcc48ZKek50b++cOvUeAQsYtye0g22ei9y44VcjOuE6AiEA5Pva0pYrjYsrGVAWBlIay6ib7fk+mu2VGFPjy26x91M="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.8.tgz_1517270158224_0.5825771735981107"},"directories":{}},"0.2.9":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.9","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"027df38008273742ed3774fa3544e463c38eceb2","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.9","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-z+7Eixbfnx/BK8I90F/pGCvddBv6CGlF0XvS5jntZYjY3eSQNrGwBelhRr44HTFoyYPDgbYmEwml7frn4aSSSw==","shasum":"7ebb9166e75df465c41829aea8a018b42d99aba8","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.9.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZAC0RuzFKLoEP++zKOXeFbUEqnCixqI3+0CCZxgmbjAiEAwfSsrRr9QkMj7XYtTya1GwrzwubKW5Bkj0HMlDGAG4c="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.9.tgz_1517270334935_0.17817215737886727"},"directories":{}},"0.2.10":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.10","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","postinstall":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"ef04c1ee01af7131c1366948503c32451536343f","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.10","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-KDR3MRteT+alhAnUmEn5zBu5r4j+D5Ebwp+WbEmi3duEqzzVVNeo1IXWt/xUbN8q6zPDFiSR22OC3NM2JtHDsg==","shasum":"20480e0e6aa6ae19e864759e51ef70550f2174f1","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.10.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwFtvxYT/utX8+sqMB1oYpwGWYRHAALiZCTu9JIeHEPwIhAKMZtUkVtLqT28p++cWfxmxpa1E2r0yU7cmtuyljEkFE"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.10.tgz_1517270577375_0.1576314945705235"},"directories":{}},"0.2.11":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.11","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"f6ff0eda9ee4daa2bf764ce68799fb708f379057","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.11","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-fpJ+HjN0XM/Kur5irjiR2ynV3EPskSEnB3oBSZeEERi1eDoyc/sQlciZpil0QqYqoH3EL46lukJtw7lm1sERKg==","shasum":"b58326a51de0e874825b1e064d3949f31178e9f0","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.11.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDediE6AOfKfmEhkLuXEKYFM8S96VxK1U6mXU1cTk2IzAIgEZ69xTUXl3s+CF25QErSU5IQletQ5ioca7FNbDob7V0="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.11.tgz_1517270979626_0.4586480516009033"},"directories":{}},"0.2.12":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.12","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"643733eba04dd55c39728808ad139982d8756fa3","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.12","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-Vj3C1kH+59f6Y/oLrvWyDX8I3sg5PiZnMF5IzSiJyhqnJCcAQ/wjuy6IrkMegs4bsl68k+JzHiklnCevBgks8g==","shasum":"6546bb1f33ddd090579ba5a9d1a4eee235be2a97","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.12.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiY8D5joVwjhvC5bZsTV6P9ASvMov13Xsf0xihDwkHBQIgEY2hhBuFEQESyQOzH0XkOy0os6lDdokQIlW1f1FuT5U="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.12.tgz_1517347766124_0.5416285656392574"},"directories":{}},"0.2.13":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.13","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"f4f34e719be628323b50aad78515a35ace5f787d","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.13","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-aPlSle3UHGqEv4y+lczKmN5Pq0QPqWSbX6LXqrMgOpp5E80r2lofKt4K+GvJZZn1oavAFVCWOvtzF4Y+HbRD+A==","shasum":"4f8df71d45e8f26fd7909ca411854911737d0d6f","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.13.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESO/bJR2rZ/F0B7jMyNnEx06XYq4cBoe7xve7yER8IKAiEAmR5gsFTMtkpt76OI/owM19MyVUQmfqVnWLucYL6VfB8="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.13.tgz_1517443453462_0.08077722205780447"},"directories":{}},"0.2.14":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.14","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"8eceb4a254e60b990021901ce5ea87d5fb741956","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.14","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-7S3aZYuuYbcMoUJj/Jg0WH1W2q4k7canyRUnc/kSu99KV2uc59orOF50D1bBkYxBdFCtsiPwWlMRtzgG45LTeA==","shasum":"6838064572233b54a0d0bcc83ea9262613ca41cb","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.14.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfo/5N+Nts1L5IlL8PlxM/Z6RmrXvs/97lp833GZkORAiA4fa1HJN1KQ0tPrLFCJaF2gh4zp6YRiuDc82s2iiBiSg=="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.14.tgz_1517443623554_0.6850606731604785"},"directories":{}},"0.2.15":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.15","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"4723812fc49230d987aabe86a9a83f390ef86d60","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.15","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-81LDizgP+EVCaNnDVWkwdZRIBn4sdzBOXAnzvH0X/W2xaWw6jbK+WwQ23udGG2EXm8m04ga6E+J+YMT6D7Yqww==","shasum":"75cd2a4a824bb7fd9b73fa6bc2c6d688605de594","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.15.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHCxOdaC4DAfXyAo8rTR22jUSvgIqiqzFtT78vHXItMeAiEA7/g96oiXUTmK8ZPI/J0vGR4qgf41JLfdgCp5niyYTN0="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.15.tgz_1517943146896_0.6831656927242875"},"directories":{}},"0.2.16":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.16","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"4723812fc49230d987aabe86a9a83f390ef86d60","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.16","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-585WsoaxEkPp6Dq9zrhniAxZZHMIe+bz3hd8T9xlQ2UW1Ua4Q+OJMrUSmCwbxYBdhdF/GXj1Hk8nEaVEfifRIA==","shasum":"d2afa62bfd6a92faa60602fa08e187187f950cff","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.16.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJzil/WW+QEWwE4/p61kjo6XIXAifv2XhYgiDbExhzTAiA+AAx7r+JZxc20IhmWc3SDFqhrCpqqCNhsOHVelxmgKw=="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.16.tgz_1517943439295_0.8235762254334986"},"directories":{}},"0.2.17":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.17","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"734b4c0c1c54b047d6c4b98095d999bddbbadfa2","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.17","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-TmObIYkNZx3xazec457gm8GRqOtORz4Vx57nit1Cl1O8M2Ly/wQTObokO8Hd0Ncjz6ZUQ+uLf+xwCKSo0nS+IA==","shasum":"bf091d59f6c15f2eb7beabc84eb2852082899284","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.17.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPttM33DLt9AiOMxN1Wod+R7qppo+5bV83V0OiCrS65AIhAO8IqzZNZYpI+i68vwfUH2ULkV6mtjWATpgoJmeJCzMK"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.17.tgz_1517943760688_0.18128792732022703"},"directories":{}},"0.2.18":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.18","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"a4edb4053c2d3cc588f80a5498cb14e2bc00c7ef","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.18","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-PZpT7fHrU82L3O0+gQspjB9FwQtCaKFUbukX4FOA2pdhTdEWXxWLHQsgd2kWXa5dhFiqW6j52M0nrIzghgheNw==","shasum":"aa4155cfb0dc7db2fd83fd75324a736b042a97e3","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.18.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjeaLYW1gzZHJi/nY9/pdU5UAWjbP3SGIstK55nN2Q5AIhAIUiZqsM+HOLT15kAUGChDmigTkxXeK9USIVPMNblaVN"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.18.tgz_1517943932391_0.1107998511288315"},"directories":{}},"0.2.19":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.19","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"602b9756246c3bda538a5d6ecd2f510ebe297015","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.19","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-ieuH7cQlz/lKqv2A4MMmTTuXGdvk9cIALoacbQodcr+CmmBYsJibbsUM26qpcLjpLu+zUr6SKUDV23tRyRMi8Q==","shasum":"0d98015fc440d9051b8c90274a2c1f9672fd68a5","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.19.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDorhHATt6N6fwC3PJqNgr0KGVJKEtxk+einVbTpe39aAiEAiVXZOwPrIHPP/adUxq1Sv3IRNDDxgxK9R/sDYJN1Q5k="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.19.tgz_1517944191125_0.0015557415317744017"},"directories":{}},"0.2.20":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.2.20","source":"src/main.js","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","bundle:preact":"microbundle src/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map"],"gitHead":"bf42e3228ab876e7b8a51921aac10a27d9b70776","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.2.20","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-ZBIuPQy18aJ+s44hKEgO3vcJP6SpMX1nCKYLDdX2j8mpO9x+PAVyBV2oNu6V958E6+4bT9VZu3ZbNhttPioAgw==","shasum":"5275b5a293b614606f6ebf1f935b0832c6fd9177","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.2.20.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDxIqglNvVUO2v+kc9PObWTILagV+8E2+JS2yfV8ZWOQIhAJ6frF8mpeE29zZt23UZDfvZLyTcSu4SPmVq6P5Ee4QW"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux-0.2.20.tgz_1517944291139_0.46125669311732054"},"directories":{}},"0.3.0":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.3.0","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0","tslint":"^5.9.1"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch","bundle:combine":"microbundle src/combine.ts -o ./combine.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:combine && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","combine.js","combine.js.map"],"gitHead":"b59fdf635bafae1f197b8c1b972ce59aa30824bd","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-d6mdbJCadXw0nwQx+WbB/53I5+uGSM7JIYakzr0Q7EXnA3c7/XwsqPxDz/br1WKmqJ+eM9eFUQ5cb6EDn9XR0g==","shasum":"7066d6fef840be6480c46faba4997e7d9ae584c7","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.3.0.tgz","fileCount":23,"unpackedSize":70546,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjSgOji6+G72qphSZ3cGANtkKPOHl/DW2ziVEbrsyeQwIgaaRl9IX/5ke4VRK9I6wYkT5rMUnxFwy6GsZ+I/GLd8g="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.3.0_1518384669124_0.2992906007084726"},"_hasShrinkwrap":false},"0.3.1":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.3.1","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0","tslint":"^5.9.1"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch","bundle:combine":"microbundle src/combine.ts -o ./combine.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:combine && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","combine.js","combine.js.map"],"gitHead":"0e72283c00c67e7227ee9d15e2678b011ab69ba6","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.3.1","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-2jk1yEaHdA3YefppzejsPTrMIi+VgXXmyjqKeVHoLU0gGM6KHZn2j5q50WnCgq659jXOXIL4Pe4hjO+wswo3Jw==","shasum":"68fcd398702a957a4aae0e92f4657af7ed3bd515","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.3.1.tgz","fileCount":23,"unpackedSize":70596,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClgdRTRj+OOCMuXKOCAbsUgpBf8gLdA9QN8AwPLq7qHwIhANqs0d4P99pg6MP6Cq7eBS9wWsedH5perKy0ZpnZ1Qla"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.3.1_1518394356751_0.8621433127046385"},"_hasShrinkwrap":false},"0.3.2-beta.1":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.3.2-beta.1","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0","tslint":"^5.9.1"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"readme":"<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/rognstadragnar/aoudad/master/mehdux.png\" alt=\"mehdux\">\n</div>\n\n# mehdux\n\n> Just another tiny, simple state machine\n\n* Easy to grasp API\n* 686 bytes: Tiny, small, slim, light, slender, fit\n* Small React (538 bytes), Preact (457 bytes) and Picodom (210 bytes) integrations\n* WordArt logo\n* Emojis in README.md (Todo !important)\n\n## Motivation\n\nNobody thinks the JS community needs another state management library, so I made one to spite you all.\n\n## Usage\n\n```\nnpm install mehdux\n```\n\n### Initializing mehdux\n\n```Javascript\nimport { Store } from 'mehdux'\n\nconst initialState = {\n  value: 0\n}\n\nconst actions = {\n  // ...\n}\n\nconst store = new Store(initialState, actions)\n```\n\n#### Creating and using actions\n\nThe actions you create should be a function that takes the state and returns a function returning the new state.\n\n```Javascript\nconst actions = {\n  inc: state => value => ({\n    ...state,\n    value: state.value + value\n  }),\n  dec: state => value => ({\n    ...state,\n    value: state.value - value\n  })\n}\n```\n\n`Mehdux` transforms the actions you pass the store.\nUsing the actions simply looks like this:\n\n```Javascript\nstore.actions.inc(1)\n```\n\n### Subscribe to state changes\n\nTo subscribe to state changes you use the `connect`-function on the `store` instance you have already created.\n\nOn a state change the subscriber gets invoked with the state tree as the first argument and the actions as the second argument.\n\n```Javascript\nstore.connect()(console.log)\n\nstore.actions.inc(10)\n// logs { value: 10 }, { inc: f(), dec: f() }\n```\n\nTo subscribe to changes in certain parts of the state tree you can pass a function as the first argument to the `connect`-function. This is similiar to how you map state to props in `react-redux`.\n\n```Javascript\nconst mapStateToProps = ({ something, somethingElse }) => ({\n  something,\n  somethingElse\n})\n\nstore.connect(mapStateToProps)(console.log)\n```\n\nSimiliarly you can pass in a `mapActionsToProps`-function as the second argument to the `connect`-function.\n\n```Javascript\nconst mapActionsToProps = actions => ({\n  inc: actions.inc,\n  increaseByTen: () => actions.inc(10),\n})\n\nstore.connect(null, mapActionsToProps)(console.log)\n```\n\nPassing `null` as either the first or second argument passes the state or the actions object in its entirety.\n\n## Usage with other frameworks\n\n`Mehdux` has built-in integrations with `react`, `preact` and `picodom`.\n\n### React and Preact\n\nTo connect a component to the store you need to wrap the component in the `connect`-function from `mehdux`.\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\n```\n\nThere are two ways to pass the store to the `connect`-function in `mehdux`:\n\n1. By wrapping your app in a higher order `provider`-function like, similiar to how `react-redux` does it.\n2. Passing the store as the first argument to the `connect`-function.\n\n#### 1. By using a Provider\n\n```Javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { Provider, connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nReactDOM.render(\n  <Provider store={store}>\n    <ConnectedButton />\n  </Provider>,\n  document.getElementById('root')\n)\n```\n\n#### 2. By passing in the store instance\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect(store)(Button)\n```\n\n**Note:** _When doing this, `mapStateToProps` and `mapActionsToProps` are passed as the second and third arguments, not the first and the second like usual_\n\n### Picodom\n\n`Mehdux` exports a tiny, small, slender, light, fit `connect`-function for easy stateful components in Picodom.\n\n#### Regular usagage\n\nA typical Picodom and Mehdux app might look like this:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\nconst render = viewFn => (state, actions) => {\n  patch(node, (node = viewFn(state, actions)), root);\n};\n\nconst view = (state, actions) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nstore.connect()(render(view))\n```\n\nOut of the box stateful components connected to a store is not straight-forward with `Picodom`.\nTo make connected components in `Picodom` a breeze `Mehdux` comes with a small `connect`-function.\n\nHere is how to do it:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { connect } from 'mehdux/picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\n// Note the storeInstance that gets passed to 'render' from 'store.connect'\nconst render = viewFn => (state, actions, storeInstance) => {\n  patch(node, (node = viewFn(state, actions, storeInstance)), root);\n};\n\nconst Button = ({ actions, state }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nconst view = (state, actions, storeInstance) => {\n  return (\n    <div>\n      <ConnectedButton store={storeInstance} />\n    </div>\n  )\n}\n\n// Note the third argument to connect, which forces the store to emit even on equal states.\n// This is to enable the stateful components inside `view` to get rerun,\n// eventhough the parent state does not change.\n\nstore.connect(null, null, true)(render(view))\n```\n\n**Note:** _This implementation will likely be rewritten to be more similiar to the `React`/`Preact`-implementations_\n\n## Advanced usage\n\n### Dispatching multiple or async actions\n\n`Mehdux` has support for dispatching actions within actions.\nAll actions you create also gets passed a `dispatch`-function.\n\nTo dispatch simply pass the name of the action (the object property) as the first argument. Subsequent arguments gets passed to the action.\n\n```Javascript\nconst actions = {\n  addUser: state => user => ({\n    ...state,\n    user: [...state.users, user]\n  }),\n  addManyUsers: state => () => {\n    dispatch('addUser', 'Kari')\n    dispatch('addUser', 'Ola')\n  },\n  addUserIn2s: (state, disaptch) => user => {\n    setTimeout(() => dispatch('addUser', user), 2000)\n  },\n  fetchAndSetName: async (state, dispatch) => {\n    const res = await fetch('https://myapi.com/v0')\n    const user = await res.json()\n    dispatch('addUser', user)\n  }\n}\n```\n\n### Combining multiple store instances (WIP)\n\nBigger apps often have complex state trees. In `redux` you would handle this by combining reducers. With `Mehdux` you can combine stores with the `combineStores`-function like so:\n\n```Javascript\nimport { combineStores } from 'mehdux/combine'\n\nconst store = combineStores({ users: userStore, posts: postStore })\n```\n\n### Middleware/Enhancers\n\n`Store` takes a third argument along side `initialState` and `actions`. This is an array of middleware-functions. Each middleware gets called on actions being called on the store.\n\nThey recieve the action `name`, `arguments`, `currentState` and `nextState`.\n\nLogging and analytics are examples of middleware usages.\n\n```Javascript\nimport { Store } from 'mehdux'\nimport { Logger, Analytics } from './middlewares' // or wherever you keep your middlewares\n\nconst store = new Store({}, {}, [Logger, Analytics])\n\nexport { store }\n```\n\n## Todos\n\n* Emojis in README.md (Todo !important)\n* Sort out type-definitions when using `microbundle`\n\n## License\n\n[MIT](LICENSE).\n","readmeFilename":"README.md","gitHead":"9d5c16e6f8bbb1c4252457ae7a2ff48204502dfd","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.3.2-beta.1","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-7PKZYAK27pAGXglpdUg+2HyY0KeEv347BeB9J8o5B+DWI3kVsT/Unld0JpvOx9QgTvtt1CGaLpfaU3zsbdKSAw==","shasum":"8185b39969fd81449284e592a7eb3f3c90a80226","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.3.2-beta.1.tgz","fileCount":28,"unpackedSize":77521,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIExmo8MBWckVxDjy57HOuKokNK3mAfJ0o+AUdVZPPZlcAiEA1/tOSP+czdTQNivU4wUU73TZoCbRpg/iS99WS/AUS08="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.3.2-beta.1_1518733293014_0.5269174993952457"},"_hasShrinkwrap":false},"0.3.2-beta.2":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.3.2-beta.2","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0","tslint":"^5.9.1"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"readme":"<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/rognstadragnar/aoudad/master/mehdux.png\" alt=\"mehdux\">\n</div>\n\n# mehdux\n\n> Just another tiny, simple state machine\n\n* Easy to grasp API\n* 686 bytes: Tiny, small, slim, light, slender, fit\n* Small React (538 bytes), Preact (457 bytes) and Picodom (210 bytes) integrations\n* WordArt logo\n* Emojis in README.md (Todo !important)\n\n## Motivation\n\nNobody thinks the JS community needs another state management library, so I made one to spite you all.\n\n## Usage\n\n```\nnpm install mehdux\n```\n\n### Initializing mehdux\n\n```Javascript\nimport { Store } from 'mehdux'\n\nconst initialState = {\n  value: 0\n}\n\nconst actions = {\n  // ...\n}\n\nconst store = new Store(initialState, actions)\n```\n\n#### Creating and using actions\n\nThe actions you create should be a function that takes the state and returns a function returning the new state.\n\n```Javascript\nconst actions = {\n  inc: state => value => ({\n    ...state,\n    value: state.value + value\n  }),\n  dec: state => value => ({\n    ...state,\n    value: state.value - value\n  })\n}\n```\n\n`Mehdux` transforms the actions you pass the store.\nUsing the actions simply looks like this:\n\n```Javascript\nstore.actions.inc(1)\n```\n\n### Subscribe to state changes\n\nTo subscribe to state changes you use the `connect`-function on the `store` instance you have already created.\n\nOn a state change the subscriber gets invoked with the state tree as the first argument and the actions as the second argument.\n\n```Javascript\nstore.connect()(console.log)\n\nstore.actions.inc(10)\n// logs { value: 10 }, { inc: f(), dec: f() }\n```\n\nTo subscribe to changes in certain parts of the state tree you can pass a function as the first argument to the `connect`-function. This is similiar to how you map state to props in `react-redux`.\n\n```Javascript\nconst mapStateToProps = ({ something, somethingElse }) => ({\n  something,\n  somethingElse\n})\n\nstore.connect(mapStateToProps)(console.log)\n```\n\nSimiliarly you can pass in a `mapActionsToProps`-function as the second argument to the `connect`-function.\n\n```Javascript\nconst mapActionsToProps = actions => ({\n  inc: actions.inc,\n  increaseByTen: () => actions.inc(10),\n})\n\nstore.connect(null, mapActionsToProps)(console.log)\n```\n\nPassing `null` as either the first or second argument passes the state or the actions object in its entirety.\n\n## Usage with other frameworks\n\n`Mehdux` has built-in integrations with `react`, `preact` and `picodom`.\n\n### React and Preact\n\nTo connect a component to the store you need to wrap the component in the `connect`-function from `mehdux`.\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\n```\n\nThere are two ways to pass the store to the `connect`-function in `mehdux`:\n\n1. By wrapping your app in a higher order `provider`-function like, similiar to how `react-redux` does it.\n2. Passing the store as the first argument to the `connect`-function.\n\n#### 1. By using a Provider\n\n```Javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { Provider, connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nReactDOM.render(\n  <Provider store={store}>\n    <ConnectedButton />\n  </Provider>,\n  document.getElementById('root')\n)\n```\n\n#### 2. By passing in the store instance\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect(store)(Button)\n```\n\n**Note:** _When doing this, `mapStateToProps` and `mapActionsToProps` are passed as the second and third arguments, not the first and the second like usual_\n\n### Picodom\n\n`Mehdux` exports a tiny, small, slender, light, fit `connect`-function for easy stateful components in Picodom.\n\n#### Regular usagage\n\nA typical Picodom and Mehdux app might look like this:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\nconst render = viewFn => (state, actions) => {\n  patch(node, (node = viewFn(state, actions)), root);\n};\n\nconst view = (state, actions) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nstore.connect()(render(view))\n```\n\nOut of the box stateful components connected to a store is not straight-forward with `Picodom`.\nTo make connected components in `Picodom` a breeze `Mehdux` comes with a small `connect`-function.\n\nHere is how to do it:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { connect } from 'mehdux/picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\n// Note the storeInstance that gets passed to 'render' from 'store.connect'\nconst render = viewFn => (state, actions, storeInstance) => {\n  patch(node, (node = viewFn(state, actions, storeInstance)), root);\n};\n\nconst Button = ({ actions, state }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nconst view = (state, actions, storeInstance) => {\n  return (\n    <div>\n      <ConnectedButton store={storeInstance} />\n    </div>\n  )\n}\n\n// Note the third argument to connect, which forces the store to emit even on equal states.\n// This is to enable the stateful components inside `view` to get rerun,\n// eventhough the parent state does not change.\n\nstore.connect(null, null, true)(render(view))\n```\n\n**Note:** _This implementation will likely be rewritten to be more similiar to the `React`/`Preact`-implementations_\n\n## Advanced usage\n\n### Dispatching multiple or async actions\n\n`Mehdux` has support for dispatching actions within actions.\nAll actions you create also gets passed a `dispatch`-function.\n\nTo dispatch simply pass the name of the action (the object property) as the first argument. Subsequent arguments gets passed to the action.\n\n```Javascript\nconst actions = {\n  addUser: state => user => ({\n    ...state,\n    user: [...state.users, user]\n  }),\n  addManyUsers: state => () => {\n    dispatch('addUser', 'Kari')\n    dispatch('addUser', 'Ola')\n  },\n  addUserIn2s: (state, disaptch) => user => {\n    setTimeout(() => dispatch('addUser', user), 2000)\n  },\n  fetchAndSetName: async (state, dispatch) => {\n    const res = await fetch('https://myapi.com/v0')\n    const user = await res.json()\n    dispatch('addUser', user)\n  }\n}\n```\n\n### Combining multiple store instances (WIP)\n\nBigger apps often have complex state trees. In `redux` you would handle this by combining reducers. With `Mehdux` you can combine stores with the `combineStores`-function like so:\n\n```Javascript\nimport { combineStores } from 'mehdux/combine'\n\nconst store = combineStores({ users: userStore, posts: postStore })\n```\n\n### Middleware/Enhancers\n\n`Store` takes a third argument along side `initialState` and `actions`. This is an array of middleware-functions. Each middleware gets called on actions being called on the store.\n\nThey recieve the action `name`, `arguments`, `currentState` and `nextState`.\n\nLogging and analytics are examples of middleware usages.\n\n```Javascript\nimport { Store } from 'mehdux'\nimport { Logger, Analytics } from './middlewares' // or wherever you keep your middlewares\n\nconst store = new Store({}, {}, [Logger, Analytics])\n\nexport { store }\n```\n\n## Todos\n\n* Emojis in README.md (Todo !important)\n* Sort out type-definitions when using `microbundle`\n\n## License\n\n[MIT](LICENSE).\n","readmeFilename":"README.md","gitHead":"76f4e20bd754733ed9b33d042129a887fd843b64","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.3.2-beta.2","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-WRwN2YbaY9fmAoKIQeBgHi3Pb/3r7zt7lGWktVHsJLzrlOxUUUd1XwJSFpKQntWm2BK3Spv6AVJm5cA86x7kBw==","shasum":"7ad567e9d1346a1a84596c9461ac1cdb77870793","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.3.2-beta.2.tgz","fileCount":28,"unpackedSize":77605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZ+LnSTLhYAw93xZtm3QhxjTwXJes8gupMlEj2rNgKRAIhAOd9n+Ftei7zjzcVV3yEPeDQ/1KibkqA/1K94z74/+e/"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.3.2-beta.2_1518734164608_0.2523636131867044"},"_hasShrinkwrap":false},"0.3.2-beta.3":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.3.2-beta.3","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0","tslint":"^5.9.1"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"readme":"<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/rognstadragnar/aoudad/master/mehdux.png\" alt=\"mehdux\">\n</div>\n\n# mehdux\n\n> Just another tiny, simple state machine\n\n* Easy to grasp API\n* 686 bytes: Tiny, small, slim, light, slender, fit\n* Small React (538 bytes), Preact (457 bytes) and Picodom (210 bytes) integrations\n* WordArt logo\n* Emojis in README.md (Todo !important)\n\n## Motivation\n\nNobody thinks the JS community needs another state management library, so I made one to spite you all.\n\n## Usage\n\n```\nnpm install mehdux\n```\n\n### Initializing mehdux\n\n```Javascript\nimport { Store } from 'mehdux'\n\nconst initialState = {\n  value: 0\n}\n\nconst actions = {\n  // ...\n}\n\nconst store = new Store(initialState, actions)\n```\n\n#### Creating and using actions\n\nThe actions you create should be a function that takes the state and returns a function returning the new state.\n\n```Javascript\nconst actions = {\n  inc: state => value => ({\n    ...state,\n    value: state.value + value\n  }),\n  dec: state => value => ({\n    ...state,\n    value: state.value - value\n  })\n}\n```\n\n`Mehdux` transforms the actions you pass the store.\nUsing the actions simply looks like this:\n\n```Javascript\nstore.actions.inc(1)\n```\n\n### Subscribe to state changes\n\nTo subscribe to state changes you use the `connect`-function on the `store` instance you have already created.\n\nOn a state change the subscriber gets invoked with the state tree as the first argument and the actions as the second argument.\n\n```Javascript\nstore.connect()(console.log)\n\nstore.actions.inc(10)\n// logs { value: 10 }, { inc: f(), dec: f() }\n```\n\nTo subscribe to changes in certain parts of the state tree you can pass a function as the first argument to the `connect`-function. This is similiar to how you map state to props in `react-redux`.\n\n```Javascript\nconst mapStateToProps = ({ something, somethingElse }) => ({\n  something,\n  somethingElse\n})\n\nstore.connect(mapStateToProps)(console.log)\n```\n\nSimiliarly you can pass in a `mapActionsToProps`-function as the second argument to the `connect`-function.\n\n```Javascript\nconst mapActionsToProps = actions => ({\n  inc: actions.inc,\n  increaseByTen: () => actions.inc(10),\n})\n\nstore.connect(null, mapActionsToProps)(console.log)\n```\n\nPassing `null` as either the first or second argument passes the state or the actions object in its entirety.\n\n## Usage with other frameworks\n\n`Mehdux` has built-in integrations with `react`, `preact` and `picodom`.\n\n### React and Preact\n\nTo connect a component to the store you need to wrap the component in the `connect`-function from `mehdux`.\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\n```\n\nThere are two ways to pass the store to the `connect`-function in `mehdux`:\n\n1. By wrapping your app in a higher order `provider`-function like, similiar to how `react-redux` does it.\n2. Passing the store as the first argument to the `connect`-function.\n\n#### 1. By using a Provider\n\n```Javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { Provider, connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nReactDOM.render(\n  <Provider store={store}>\n    <ConnectedButton />\n  </Provider>,\n  document.getElementById('root')\n)\n```\n\n#### 2. By passing in the store instance\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect(store)(Button)\n```\n\n**Note:** _When doing this, `mapStateToProps` and `mapActionsToProps` are passed as the second and third arguments, not the first and the second like usual_\n\n### Picodom\n\n`Mehdux` exports a tiny, small, slender, light, fit `connect`-function for easy stateful components in Picodom.\n\n#### Regular usagage\n\nA typical Picodom and Mehdux app might look like this:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\nconst render = viewFn => (state, actions) => {\n  patch(node, (node = viewFn(state, actions)), root);\n};\n\nconst view = (state, actions) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nstore.connect()(render(view))\n```\n\nOut of the box stateful components connected to a store is not straight-forward with `Picodom`.\nTo make connected components in `Picodom` a breeze `Mehdux` comes with a small `connect`-function.\n\nHere is how to do it:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { connect } from 'mehdux/picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\n// Note the storeInstance that gets passed to 'render' from 'store.connect'\nconst render = viewFn => (state, actions, storeInstance) => {\n  patch(node, (node = viewFn(state, actions, storeInstance)), root);\n};\n\nconst Button = ({ actions, state }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nconst view = (state, actions, storeInstance) => {\n  return (\n    <div>\n      <ConnectedButton store={storeInstance} />\n    </div>\n  )\n}\n\n// Note the third argument to connect, which forces the store to emit even on equal states.\n// This is to enable the stateful components inside `view` to get rerun,\n// eventhough the parent state does not change.\n\nstore.connect(null, null, true)(render(view))\n```\n\n**Note:** _This implementation will likely be rewritten to be more similiar to the `React`/`Preact`-implementations_\n\n## Advanced usage\n\n### Dispatching multiple or async actions\n\n`Mehdux` has support for dispatching actions within actions.\nAll actions you create also gets passed a `dispatch`-function.\n\nTo dispatch simply pass the name of the action (the object property) as the first argument. Subsequent arguments gets passed to the action.\n\n```Javascript\nconst actions = {\n  addUser: state => user => ({\n    ...state,\n    user: [...state.users, user]\n  }),\n  addManyUsers: state => () => {\n    dispatch('addUser', 'Kari')\n    dispatch('addUser', 'Ola')\n  },\n  addUserIn2s: (state, disaptch) => user => {\n    setTimeout(() => dispatch('addUser', user), 2000)\n  },\n  fetchAndSetName: async (state, dispatch) => {\n    const res = await fetch('https://myapi.com/v0')\n    const user = await res.json()\n    dispatch('addUser', user)\n  }\n}\n```\n\n### Combining multiple store instances (WIP)\n\nBigger apps often have complex state trees. In `redux` you would handle this by combining reducers. With `Mehdux` you can combine stores with the `combineStores`-function like so:\n\n```Javascript\nimport { combineStores } from 'mehdux/combine'\n\nconst store = combineStores({ users: userStore, posts: postStore })\n```\n\n### Middleware/Enhancers\n\n`Store` takes a third argument along side `initialState` and `actions`. This is an array of middleware-functions. Each middleware gets called on actions being called on the store.\n\nThey recieve the action `name`, `arguments`, `currentState` and `nextState`.\n\nLogging and analytics are examples of middleware usages.\n\n```Javascript\nimport { Store } from 'mehdux'\nimport { Logger, Analytics } from './middlewares' // or wherever you keep your middlewares\n\nconst store = new Store({}, {}, [Logger, Analytics])\n\nexport { store }\n```\n\n## Todos\n\n* Emojis in README.md (Todo !important)\n* Sort out type-definitions when using `microbundle`\n\n## License\n\n[MIT](LICENSE).\n","readmeFilename":"README.md","gitHead":"39db2979a81c440e7be5014ff4b5f1bf94bfd1e5","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.3.2-beta.3","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-B1mn+xEoiBkWkX2NrDJcI6H4HtvYP0CNlUDwEKtwaH7ckpBQA/NPggUHheaVfOC6dpqzfndxftYV1thJd41Znw==","shasum":"1d2b1b12528d116cfe5fc04e2bb74b9049bf8bb2","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.3.2-beta.3.tgz","fileCount":28,"unpackedSize":77802,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2OPTpkHNnbCCEmLEqR5Cp3vvVYvh72HOQwmcgUCnu7wIhAML0q05tPMbmB0tXEpOcGPrZKDCYEr+/o85KBuwIhP+a"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.3.2-beta.3_1518734263951_0.08659846584961017"},"_hasShrinkwrap":false},"0.3.2-beta.4":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.3.2-beta.4","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","react":"^16.2.0","tslint":"^5.9.1"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"readme":"<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/rognstadragnar/aoudad/master/mehdux.png\" alt=\"mehdux\">\n</div>\n\n# mehdux\n\n> Just another tiny, simple state machine\n\n* Easy to grasp API\n* 686 bytes: Tiny, small, slim, light, slender, fit\n* Small React (538 bytes), Preact (457 bytes) and Picodom (210 bytes) integrations\n* WordArt logo\n* Emojis in README.md (Todo !important)\n\n## Motivation\n\nNobody thinks the JS community needs another state management library, so I made one to spite you all.\n\n## Usage\n\n```\nnpm install mehdux\n```\n\n### Initializing mehdux\n\n```Javascript\nimport { Store } from 'mehdux'\n\nconst initialState = {\n  value: 0\n}\n\nconst actions = {\n  // ...\n}\n\nconst store = new Store(initialState, actions)\n```\n\n#### Creating and using actions\n\nThe actions you create should be a function that takes the state and returns a function returning the new state.\n\n```Javascript\nconst actions = {\n  inc: state => value => ({\n    ...state,\n    value: state.value + value\n  }),\n  dec: state => value => ({\n    ...state,\n    value: state.value - value\n  })\n}\n```\n\n`Mehdux` transforms the actions you pass the store.\nUsing the actions simply looks like this:\n\n```Javascript\nstore.actions.inc(1)\n```\n\n### Subscribe to state changes\n\nTo subscribe to state changes you use the `connect`-function on the `store` instance you have already created.\n\nOn a state change the subscriber gets invoked with the state tree as the first argument and the actions as the second argument.\n\n```Javascript\nstore.connect()(console.log)\n\nstore.actions.inc(10)\n// logs { value: 10 }, { inc: f(), dec: f() }\n```\n\nTo subscribe to changes in certain parts of the state tree you can pass a function as the first argument to the `connect`-function. This is similiar to how you map state to props in `react-redux`.\n\n```Javascript\nconst mapStateToProps = ({ something, somethingElse }) => ({\n  something,\n  somethingElse\n})\n\nstore.connect(mapStateToProps)(console.log)\n```\n\nSimiliarly you can pass in a `mapActionsToProps`-function as the second argument to the `connect`-function.\n\n```Javascript\nconst mapActionsToProps = actions => ({\n  inc: actions.inc,\n  increaseByTen: () => actions.inc(10),\n})\n\nstore.connect(null, mapActionsToProps)(console.log)\n```\n\nPassing `null` as either the first or second argument passes the state or the actions object in its entirety.\n\n## Usage with other frameworks\n\n`Mehdux` has built-in integrations with `react`, `preact` and `picodom`.\n\n### React and Preact\n\nTo connect a component to the store you need to wrap the component in the `connect`-function from `mehdux`.\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\n```\n\nThere are two ways to pass the store to the `connect`-function in `mehdux`:\n\n1. By wrapping your app in a higher order `provider`-function like, similiar to how `react-redux` does it.\n2. Passing the store as the first argument to the `connect`-function.\n\n#### 1. By using a Provider\n\n```Javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { Provider, connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nReactDOM.render(\n  <Provider store={store}>\n    <ConnectedButton />\n  </Provider>,\n  document.getElementById('root')\n)\n```\n\n#### 2. By passing in the store instance\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect(store)(Button)\n```\n\n**Note:** _When doing this, `mapStateToProps` and `mapActionsToProps` are passed as the second and third arguments, not the first and the second like usual_\n\n### Picodom\n\n`Mehdux` exports a tiny, small, slender, light, fit `connect`-function for easy stateful components in Picodom.\n\n#### Regular usagage\n\nA typical Picodom and Mehdux app might look like this:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\nconst render = viewFn => (state, actions) => {\n  patch(node, (node = viewFn(state, actions)), root);\n};\n\nconst view = (state, actions) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nstore.connect()(render(view))\n```\n\nOut of the box stateful components connected to a store is not straight-forward with `Picodom`.\nTo make connected components in `Picodom` a breeze `Mehdux` comes with a small `connect`-function.\n\nHere is how to do it:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { connect } from 'mehdux/picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\n// Note the storeInstance that gets passed to 'render' from 'store.connect'\nconst render = viewFn => (state, actions, storeInstance) => {\n  patch(node, (node = viewFn(state, actions, storeInstance)), root);\n};\n\nconst Button = ({ actions, state }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nconst view = (state, actions, storeInstance) => {\n  return (\n    <div>\n      <ConnectedButton store={storeInstance} />\n    </div>\n  )\n}\n\n// Note the third argument to connect, which forces the store to emit even on equal states.\n// This is to enable the stateful components inside `view` to get rerun,\n// eventhough the parent state does not change.\n\nstore.connect(null, null, true)(render(view))\n```\n\n**Note:** _This implementation will likely be rewritten to be more similiar to the `React`/`Preact`-implementations_\n\n## Advanced usage\n\n### Dispatching multiple or async actions\n\n`Mehdux` has support for dispatching actions within actions.\nAll actions you create also gets passed a `dispatch`-function.\n\nTo dispatch simply pass the name of the action (the object property) as the first argument. Subsequent arguments gets passed to the action.\n\n```Javascript\nconst actions = {\n  addUser: state => user => ({\n    ...state,\n    user: [...state.users, user]\n  }),\n  addManyUsers: state => () => {\n    dispatch('addUser', 'Kari')\n    dispatch('addUser', 'Ola')\n  },\n  addUserIn2s: (state, disaptch) => user => {\n    setTimeout(() => dispatch('addUser', user), 2000)\n  },\n  fetchAndSetName: async (state, dispatch) => {\n    const res = await fetch('https://myapi.com/v0')\n    const user = await res.json()\n    dispatch('addUser', user)\n  }\n}\n```\n\n### Combining multiple store instances (WIP)\n\nBigger apps often have complex state trees. In `redux` you would handle this by combining reducers. With `Mehdux` you can combine stores with the `combineStores`-function like so:\n\n```Javascript\nimport { combineStores } from 'mehdux/combine'\n\nconst store = combineStores({ users: userStore, posts: postStore })\n```\n\n### Middleware/Enhancers\n\n`Store` takes a third argument along side `initialState` and `actions`. This is an array of middleware-functions. Each middleware gets called on actions being called on the store.\n\nThey recieve the action `name`, `arguments`, `currentState` and `nextState`.\n\nLogging and analytics are examples of middleware usages.\n\n```Javascript\nimport { Store } from 'mehdux'\nimport { Logger, Analytics } from './middlewares' // or wherever you keep your middlewares\n\nconst store = new Store({}, {}, [Logger, Analytics])\n\nexport { store }\n```\n\n## Todos\n\n* Emojis in README.md (Todo !important)\n* Sort out type-definitions when using `microbundle`\n\n## License\n\n[MIT](LICENSE).\n","readmeFilename":"README.md","gitHead":"7f630cc962964f24001a7005c7415a2d57b4b7fe","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.3.2-beta.4","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-jmBO3mumFRTIZMnvKQJhV+DWcaD2VQ7/J2H3eTTOR4uXhGmJUw4xVGXHuDgFoGJY2vu5IybJMlWH/ovFgJvLgQ==","shasum":"b4e5b607d492117b1ea04202d6165950bec1a8e0","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.3.2-beta.4.tgz","fileCount":28,"unpackedSize":77726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClxncWgbkHplwg+vHeREyiGDeg0RMjCKx+0KAaT0e8SAiEAsOh7zMnKIIBp81s2HnzNXsJ5V2doo+VF+Tjs+iaWORI="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.3.2-beta.4_1518740367013_0.6598847241551626"},"_hasShrinkwrap":false},"0.4.0":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.4.0","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"81922d2d1cee50ae1d9ec466bb648e4417c4ad38","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.4.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-FfVDVItSjSkKUrFarxgyzLfFi3fASUtnrgKGKtqWAvJQpy+JN8P/q321SPTa/sRa7Hfd5e2S38qEzRFQDAZrvg==","shasum":"b4169582f826cea636e9cdb4344110afe845905d","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.4.0.tgz","fileCount":29,"unpackedSize":85623,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2tRQrLfgHZrjYjUJgJNU0Tm4hUFaAeEvFH4HKvXBrnAiBmUBZuSit6QYTbobYFqckWxT1CuPHIyRaYBDPJSwuQjA=="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.4.0_1518879193444_0.8215416814880214"},"_hasShrinkwrap":false},"0.4.1":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.4.1","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"microbundle":"^0.4.3","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact.js -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react.js -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"0a84387fc190369c9f758029e46c2710b5570fb7","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.4.1","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-aqnGXxDr5bybJoIHfhcSERkr9njTwWgrdPbbqJZaq9bcKe3jkvkqY/9k/dkJnCRewpKMzK12Q3F+QiggbMmBsg==","shasum":"5cd027dd5e2cfa54cf219bca68747631b3f9f155","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.4.1.tgz","fileCount":29,"unpackedSize":85898,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7xjQJQeuUSprMQuy3f7xUxysffM2mFFBt0It4FPfaUAiBT1dDU6SsZLfIMkAmXuZTNyI/0d5Dq6I9vK+w18OCEpA=="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.4.1_1518882412796_0.9235168529591606"},"_hasShrinkwrap":false},"0.4.2":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.4.2","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.3","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"9406ebd75d1d0f6b4b30e2e20c98e2664877950e","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.4.2","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-aPfSzWDeEtU30kVZfz7wRPWNXKygDDP79ozsWc/pz2/kaBHFOop0L1e6Dfffh3BWpGi/bWzceTBXAS68i8wiKA==","shasum":"2757a55e015403b83ea9f14ba5aa8b5e58eb447a","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.4.2.tgz","fileCount":34,"unpackedSize":90094,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzOUdR8VYjxBaXa2eeNTHGrDr3gFsQ8OZYZYYtxvDIkAIhAJJGQPokF/n95X2MCVf8WoQvqaTZSPssr4OlHJ0oJpy7"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.4.2_1518965108668_0.6768343991921373"},"_hasShrinkwrap":false},"0.4.3-beta.0":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.4.3-beta.0","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.3","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs --compress false","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"57a143666e521e8adfd4a28d991bd6600766c0e4","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.4.3-beta.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-6MI/tDSzn6fTiHKyRp+B4qf9hb2zEQTj9GzvJg4ox/MYDTOw3yOxcuRDnwI61ajdORIA8WDI57QP3lHN6KftYA==","shasum":"ff60262f557ad8cff1552dcd9456dbc6f8973f96","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.4.3-beta.0.tgz","fileCount":34,"unpackedSize":94827,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEW1LlUXc+uPb6Oz6Eiozg0k2AqPvmxqTPogDS4RY0oQIgEe49VfVzvI3RtAN0A7uSdA01fR44MBFJOhaVpX9YDK8="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.4.3-beta.0_1518965999613_0.852473413282252"},"_hasShrinkwrap":false},"0.4.3":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.4.3","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.3","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs --compress false","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"39da470c7e06383632b7acd8f6dcd4e3d81acb49","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.4.3","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-7nlsYhHIzgSl/ysoV7GDxgqEUWmQA9nrcvWihHQBZ8xaGp+DQz3cRo0MNva8eRjd4DPo8tIp0j9oIQ0fb01Ueg==","shasum":"7430d26cb9d0e551508b11c5228e0706d752ec71","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.4.3.tgz","fileCount":34,"unpackedSize":94778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe58/Ce/0evXB+Wcz0Q24LQ0t2QIGyV4ylBeN/XqQbggIhAPf9PwPAR57Mh1vLkKV6mrGeg5iDpDiWZsyGE33gcwyz"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.4.3_1519068409377_0.7684230033322499"},"_hasShrinkwrap":false},"0.4.4":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.4.4","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.3","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs --compress false","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"b7168a63899315cb997f6d974f335d0c2c89427f","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.4.4","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-v6uS5FG9XHcZy9cwex1dfsCtCzgEpe89WTz74zgezDqjdQGhExan5LXnXn52yIsaDovMghR5igS/xNaOSgwkkg==","shasum":"75093c07f3cc76c3e9fd9259c6bf70f664b31fa7","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.4.4.tgz","fileCount":34,"unpackedSize":100157,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5PNYNgKgEJtABGb+JXS1dWS36FkvaQ/r6iwWGCM6MDQIhAM/uwWMTuJD66Ihfha5QB2SYyLB4ulB5txx3TbzjVL9a"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.4.4_1519068775034_0.002883730166205911"},"_hasShrinkwrap":false},"0.4.5":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.4.5","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.3","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o ./utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o ./picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"080069d3f10d1c9f33b2321b538586ab5b3dfd51","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.4.5","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-K1WqskTdY0PusZtrVkyrPfAj02MZur5ImwOvEL/VjTUmQ8iBqiawut/XmEFUkHb7y16K7LAcSBC1T9q+WCNDZQ==","shasum":"5b97aaacac22f8cd687fd88124950f3f8fe0ad0b","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.4.5.tgz","fileCount":34,"unpackedSize":93683,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAN6YLG+4tYUQIdmxpQs/DGoMpm6uzyLNSc9yuQ0twDFAiEA7jaZDRw1h/QDtdv3WA8BMpgmP/VIT0ONgoHvz43BxmI="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.4.5_1520210446112_0.939829671450825"},"_hasShrinkwrap":false},"0.4.8":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.4.8","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","types":"./dist/types.d.ts","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.4","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"07aa346b60125b5562cfc0ae76fb1b1a045e54b4","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.4.8","_npmVersion":"5.8.0","_nodeVersion":"8.2.1","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-OVt0AZNDbAPN2MmnyotOeBtOXZLxRYm467p6/62tD4uhbLoyT2GmK+/rvw+NxpRZ88QtC03/holHtgSqdIGb5A==","shasum":"460f16d25b3834580724c1de66aed1da95475f07","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.4.8.tgz","fileCount":34,"unpackedSize":43687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDehjCJJMIGTK7qD1LWpcIeXva/wLRXrHcV+QGIqj8hjwIgBliaZBJhZi+I2uWgD0wEmre9YuFkkyOq5JReQiRJHwo="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.4.8_1522581603784_0.21835071223245284"},"_hasShrinkwrap":false},"0.5.0":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.5.0","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","types":"./dist/types.d.ts","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.4","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"1d758e9ba41377a384e51563850e16cb0cd5c11d","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.5.0","_npmVersion":"5.8.0","_nodeVersion":"8.2.1","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-edOPUOGFLKdia9huu3AoHtGsMgUaurCOWPlmkqXFLjuvyhRJlzPl2TVgUhUs7+SAzkP5pZXOQYWlHVk0HT5yJA==","shasum":"5191e9615a950884d1971c0c8db91e94a7f3da32","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.5.0.tgz","fileCount":34,"unpackedSize":43743,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJDqHBjR8pZY0FI6Kpvm1o2BrlJp6ruIRlJHpu6uOzaQIhAOvg/eS68577BVIFScsn54lZbON9Dxm0Eh/SSCMz/CML"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.5.0_1522582389975_0.10405430492643863"},"_hasShrinkwrap":false},"0.5.1":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.5.1","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","types":"./dist/types.d.ts","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.4","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"3165a1f0a7226a312407c26fb290ef4b288e59aa","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.5.1","_npmVersion":"5.8.0","_nodeVersion":"8.2.1","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-//AxKZTKQWRt4aKTUvgG/xelzbmqjbqraWZatO7gARp22feSScFGRmGros79P5M+FCJQyLFaAjxeyZAOZKxQOg==","shasum":"cbf6a2bc0e8ece8199430e5dfab6e8e57a299a05","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.5.1.tgz","fileCount":34,"unpackedSize":43733,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC27jf5vmmS4gUyPwReOohKUkjhJt6mDOWRtIKz163KRwIgSfxgPJ3rE9MiTOHNAR+0afm+h6v76VGGDUX4inn/giI="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.5.1_1522582621186_0.111725735066456"},"_hasShrinkwrap":false},"0.5.2":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.5.2","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","types":"./dist/types.d.ts","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.4","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.js","utils.js.map"],"gitHead":"d17ed8397b56915874c2a661037db428d37caacf","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.5.2","_npmVersion":"5.6.0","_nodeVersion":"8.7.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-5gupU6cFxsPx6BVc+1Avq+gk/RiwocxN8aFnBXvCLzrzP9xPxqKFKvJC8S+CKmrcQioSRfxF11pzotDKzvxepg==","shasum":"4eddc74f77aacd2bfaa495b889146cc205a32af2","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.5.2.tgz","fileCount":34,"unpackedSize":43733,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWUnhmNFpyPWeOoCmN7DVwkki1hbBjtQNUkdSi3I5/UQIgAcpptCW8qE8EM4XfGpaMKWjLvZ5pvHrfUN73GUcMRzw="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.5.2_1523182047597_0.829430940068075"},"_hasShrinkwrap":false},"0.5.3":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.5.3","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","types":"src/index.d.ts","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.4","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.d.ts","utils.js","utils.js.map"],"dependencies":{"@rognstadragnar/deep-enough-equals":"^0.2.1"},"gitHead":"faa83cb27259b706ab8ffa39a2df194c1f1f40ce","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.5.3","_npmVersion":"5.6.0","_nodeVersion":"8.7.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-TTKdKsFSogLt+m5v3tv8YiUZa0OL7hUk9OJ2sDcZbJS/D5qv5QmpdCcoq3i/9Wgy92uHbkdoKYqZiJYHfFF32A==","shasum":"40d789f13b9e1a214b031aaf087834ca1ce14a80","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.5.3.tgz","fileCount":34,"unpackedSize":53813,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbAuMECRA9TVsSAnZWagAAF7kQAIMnFBIi9iUNpLtg6BKw\n/GNOTfyjF5yRVlWKabbQjeb3ZyGMxJXlZhPEFsn74y7Kd5zXH6A5TyJd2Bqg\ng5lC6H31Eo1kM+wjPEpp4FMLog2NCi4m51FhdA9bF7GcEqLJvI4idaF9nUC+\nCV1EA5SsGrW+Z2WA4XB3a2Ok21ISDD1PExb2HpGlQMH9uMMEiwAfUWO0yo97\ndzGrR2tb3c3W+umfBvR1ZkAi6rIFBklKVU08tQs+PgdSm0e9ODGmTGV7ES7k\nXS/ssrBd3PdufY05vMe6kQo4DYywIN3wxNwigDvHlSt6cLuDWscZ9npXsKsc\nT1OoQIU0Od6uKwfliAWa8Qn6xTbhP66X5zX3D8SAGhp2jJ0EHpoJCNJ/BkhB\ngOTSF+FxzJm/fzBT/O5fPlyEkH0/99GUyijmyAbLHCvsvCBmAI+lNYZHnJ/b\nDTqXNG8MEcIRgtZ9gHwNBijJqFtZWFer8e0NAHzUOvovSBmsVTiSh2RIqIN/\njmLiLBihvU+Gyu0U8kd8/KiD3BmlB2nb9gbbhGpJLDQ8yJnS6Z0jBvkmuQxw\nqhf9J4KqoOgHUhHOJ5dwgSOcISo7mSXF4YoTuujpvj8oyo8SvgpMKylnnSD9\nPGn7dCewhdoRh/fsjL1czKBHAxzbkPTZY/DyLxfM2w21u53Nj/Zd8wPFSiB+\noFcX\r\n=r8rD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRwKt5baefmbmPx5tUlohJwMAwGv9sQ7jpnUvhsrPDVAIhAI6qF4Pf2sSev1dNJW3PE6oQ/Lk4YpUL48l3sUt6Q0HH"}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.5.3_1526915843491_0.9608694909555533"},"_hasShrinkwrap":false},"0.5.4":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.5.4","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","types":"src/index.d.ts","devDependencies":{"@types/react":"^16.0.38","microbundle":"^0.4.4","preact":"^8.2.7","prettier":"^1.10.2","react":"^16.2.0","rimraf":"^2.6.2","tslint":"^5.9.1","tslint-config-prettier":"^1.8.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"files":["src","dist","react.js","react.js.map","preact.js","preact.js.map","utils.d.ts","utils.js","utils.js.map"],"dependencies":{"@rognstadragnar/deep-enough-equals":"^0.2.1"},"gitHead":"46d2a9fb14bd0683429d3004edd2f2998c08ebd5","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.5.4","_npmVersion":"5.6.0","_nodeVersion":"8.7.0","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-z/Btixlnnlexdz2KOudRnqURANDVyePyYWlTOopkYBtKtLdW8tYy/KGk/5w/Qi9Axj5o/C9S6IzcCB2vCaIH4Q==","shasum":"14514deb996b3ccb85e46d4de91dc96a19a67c0d","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.5.4.tgz","fileCount":34,"unpackedSize":53627,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDBeACRA9TVsSAnZWagAArp0P/3TVYqdpYe/T1blUCAHp\n6N9UePbyFh7GvlmGKm56mXsZVdXItWvICuWY4ZlBqNYk6rbsErG4GNgTyTWM\nr2JDnX8L5nCTR5aoVGai9bxWnwqlaqFj4JE+nJBktiP9n1NSIStR9h7ZL5a8\nln50t+lSQ74T0hEQkOgoh56SYXGROvjQY2plnmmCGV/OOEPKt+PT/Nxk8stM\nE5G6wJkAvzpnQ6Omd6KjpKeHOznlZ+0Zhglfz7QmYWIkmgERRdkxZox5RzgA\nl8hc+gBZwjmPbJgr1gWPejAxmEQznhxR4JgSJh+Az9yz23IeNs+0Wiy2B1ce\n/uyM97NDmhPJTjXnIZziM0Z6t/HdT5Q6gvBY5gZC1XM+h8yTTfK+XIInu8b7\nVUCDZ1NYjsI3N5lpv5/FmYM/nfdL+Ct14D1aLyMTKu8nRaLlmIYQnZ5R9hXs\nU/DBfBFVhGwLCl0n+UzdrQXjT0kJPSVNxxjEKBF0h3N6RHqnLkmnIBd0taHp\noC1bpzrol72P/9JosOu5XtiSahz/sV8JvvftCMHUMe5ci8l3bcvTWxSWkKqC\nn4cENFutTsb+fqX5nmU2hT+pwo92Xuxf6HE3dNfIDwj5PfDlp8QJ2JeuJvmQ\nHXCMwR2ZeyEtjaTxUPpJMNxKkYRkmSHL0JmzzDtdl0KkRCupJ2/3zJ4+L1gY\nFnil\r\n=K+o5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCERfP942C9FLXbBraVGuuLYuI/LjIoSAtQADNuPZncWAIgeKYijmZ+xAGG0yfjc50oXSEBRLHO+hVD5NT0wauJJCA="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.5.4_1527519103402_0.4866703314396281"},"_hasShrinkwrap":false},"0.5.5":{"name":"mehdux","description":"A straight forward state container","author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"license":"MIT","version":"0.5.5","source":"src/main.ts","main":"dist/mehdux.js","module":"dist/mehdux.esm.js","browser":"dist/mehdux.umd.js","types":"src/index.d.ts","devDependencies":{"@types/react":"^16.7.13","microbundle":"^0.8.3","preact":"^8.4.2","prettier":"^1.15.3","react":"^16.6.3","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.17.0"},"peerDependencies":{"preact":"*","react":"*"},"scripts":{"release":"npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","bundle:main":"microbundle","dev:main":"microbundle watch --compress false","dev:utils":"microbundle watch src/utils.ts -o utils.js -f cjs --compress false","bundle:utils":"microbundle src/utils.ts -o ./utils.js -f cjs","bundle:picodom":"microbundle src/bindings/picodom.ts -o picodom.js -f cjs","bundle:preact":"microbundle src/bindings/preact/index.ts -o ./preact.js -f cjs","bundle:react":"microbundle src/bindings/react/index.ts -o ./react.js -f cjs","prepare":"npm run build","build":"npm run clean && npm run bundle:main && npm run bundle:utils && npm run bundle:picodom && npm run bundle:preact && npm run bundle:react","clean":"rimraf dist preact.js preact.js.map react.js react.js.map picodom.js picodom.js.map utils.js utils.js.map","test":"echo 'should add some tests.. :)'"},"dependencies":{"@rognstadragnar/deep-enough-equals":"^0.2.1"},"gitHead":"8744b148d99ad6b99a3d768b3bf668d2fd59f3cc","bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","_id":"mehdux@0.5.5","_npmVersion":"5.6.0","_nodeVersion":"9.10.1","_npmUser":{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"},"dist":{"integrity":"sha512-DhtZ6B/z8LWbjvdAkD3ZrtuMA9IOf6lHKRhr/OQDxpje7UloMDMxQ0096CtdlL1xXa/zvzaSgasV+0M9HBcblQ==","shasum":"aa58b9b8eb417c5c4686fc9893acec2da3d73802","tarball":"https://registry.npmjs.org/mehdux/-/mehdux-0.5.5.tgz","fileCount":36,"unpackedSize":89537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcC4xxCRA9TVsSAnZWagAA3+cQAJSSXgByW0CbJITy8XcK\nFdoaeTPxw8ofNjdJjnzebI3HYuvL/MRgBKa/A9vi0W54VMxgC39yyKNapXek\nwt04teTnVU6ncYjNFxbykeZWYipq3uRuFNKEl2CpWAoUHbzVNFJc9Bzd7KNH\nvn2/qig2lIRJEwDHSMNKrIHnsPqC9oT5ZTmV0Pxx1OI9pcsda1Xkm1QRcAKA\nCRP1BFtav/F+F4DEVolm6WOz/aAK30hOO6IIbOoFaQU3t7AvozNI3SE/0QgH\nbcMq7qbWYyzMYjRb0b3mbdpYMrCQyNFXRCGKdg8gd8TGQRmmm0naT1RoDFC0\neGd3DDFuN9nX15XRqrf+yffz8ngLq4UpKl/rmQfrcjFm/iSB+BzYwLVqSut4\nYz4ZQP1QVofCuJJo7kcgSBG+xKgXL57Gps0173tXYC99LFBS/DcuJf/nwITF\nee7Vb92bVfZafLXkcww+5gSVQhiTbc4YnrT1dHN2OaZ0X/NvpJNyouIJAo5B\nhDHU9xEiohpSz1rb9KS8dKx5JrGBXrOt+/YDgdMBAzqZeYyI2mCOiGO3CX5z\n5HVZpGsJwlUK/ufYgOwLPZbEDHrDAilJpF3NtDOJQ9Vz/91AxRDBI2b4u/W6\np2p9u2g/n6AfsX8JT3xRJQve9++UygP6OOduI/OBHthUxk0P5acXvQzuhdnX\nAh29\r\n=BqBk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRgH1Je/xeAn2lsL0lxQ/fUrOWgLQxHNHmFceK82pCGQIgf1OTbSUzu3zySw13k/Omcpv2aIUTR3/jlBZDqf9kerg="}]},"maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mehdux_0.5.5_1544260720749_0.7055944295903334"},"_hasShrinkwrap":false}},"readme":"<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/rognstadragnar/aoudad/master/mehdux.png\" alt=\"mehdux\">\n  <br>\n  <a href=\"https://www.npmjs.org/package/mehdux\">\n    <img src=\"https://img.shields.io/npm/v/mehdux.svg\" alt=\"npm version\">\n  </a>\n  <a href=\"https://www.npmjs.org/package/mehdux\">\n    <img src=https://img.shields.io/npm/dt/mehdux.svg alt=\"npm download counter\">\n  </a>\n  \n</div>\n\n# mehdux 🐧\n\n> Just another tiny, simple state machine\n\n* 💆 Easy to grasp API\n* 🐎 ~1kb: Tiny, small, slim, light, slender, fit\n* ⚛️ Small React (~850 bytes), Preact (~800 bytes) and Picodom (~200 bytes) integrations\n* 😌 Support for `thunk actions`, `middlewares`, `combining stores`\n* 🛂 Written in `TypeScript`\n* 🎉 WordArt logo\n* 🌞 Emojis in README.md\n\n## Motivation\n\nNobody thinks the JS community needs another state management library, so I made one to spite you all.\n\n## Examples\n\n* [TodoMVC](examples/todomvc)\n\n## Usage\n\n```\nnpm install mehdux\n```\n\n### Initializing mehdux\n\n```Javascript\nimport { Store } from 'mehdux'\n\nconst initialState = {\n  value: 0\n}\n\nconst actions = {\n  // ...\n}\n\nconst store = new Store(initialState, actions)\n```\n\n#### Creating and using actions\n\nThe actions you create should be a function that takes the state and returns a function returning the new state.\n\n```Javascript\nconst actions = {\n  inc: state => value => ({\n    ...state,\n    value: state.value + value\n  }),\n  dec: state => value => ({\n    ...state,\n    value: state.value - value\n  })\n}\n```\n\n`Mehdux` transforms the actions you pass the store.\nUsing the actions simply looks like this:\n\n```Javascript\nstore.actions.inc(1)\n```\n\n### Subscribe to state changes\n\nTo subscribe to state changes you use the `connect`-function on the `store` instance you have already created.\n\nOn a state change the subscriber gets invoked with the state tree as the first argument and the actions as the second argument.\n\n```Javascript\nstore.connect()(console.log)\n\nstore.actions.inc(10)\n// logs { value: 10 }, { inc: f(), dec: f() }\n```\n\nThe `connect` function can take an object containing the following options:\n`mapStateToProps`, `mapActionsToProps`, `leading` and `force`. All of these properties are optional.\n\n#### MapStateToProps\n\nEnables you to only subscribe to certain parts of the state tree. This should be a function that takes state as an argument and returns an object.\n\nOn every state update this function will be called. If the result is different from the last state update, the connected function will be called.\n\n```Javascript\nconst mapStateToProps = ({ something, somethingElse }) => ({\n  something,\n  somethingElse\n})\n\nstore.connect({ mapStateToProps })(console.log)\n```\n\nThis is very similiar to how you mapping state to props in `react-redux` works.\nIf `null` is passed, the conneciton will not get any state updates.\n\n#### MapActionsToProps\n\nWorks in the same way `mapStateToProps` works, enabling you to only pass certain actions to you connected function.\n\n```Javascript\nconst mapActionsToProps = actions => ({\n  inc: actions.inc,\n  increaseByTen: () => actions.inc(10),\n})\n\nstore.connect({ mapActionsToProps })(console.log)\n```\n\nNotice how this enables you to preset an action like the `increaseByTen` demonstrates above.\nIf `null` is passed, the conneciton will not get any actions passed.\n\n#### Leading\n\nThe `leading` option is an optional `boolean` that tells the store whether or not to execute the connected function on the time of connection.\n`Default: false`\n\n#### Force\n\nThe `force` option is also an optional `boolean` that tells the store to execute the connected function on every action, eventhough the state did not change.\n`Default: false`\n\n## Usage with other frameworks\n\n`Mehdux` has built-in integrations with `react`, `preact` and `picodom`.\n\n### React and Preact\n\nTo connect a component to the store you need to wrap the component in the `connect`-function from `mehdux`.\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\n```\n\nThere are two ways to pass the store to the `connect`-function in `mehdux`:\n\n1.  By wrapping your app in a higher order `provider`-function like, similiar to how `react-redux` does it.\n2.  Passing the store in the options object to the `connect` function.\n\n#### 1. By using a Provider\n\n```Javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { Provider, connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nReactDOM.render(\n  <Provider store={store}>\n    <ConnectedButton />\n  </Provider>,\n  document.getElementById('root')\n)\n```\n\n#### 2. By passing in the store instance\n\n```Javascript\nimport { connect } from 'mehdux/react' // or 'mehdux/preact'\nimport { store } from './store' // or wherever you keep your store instance\n\n\nconst Button = ({ state, actions }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect({ store })(Button)\n```\n\n### Picodom\n\n`Mehdux` exports a tiny, small, slender, light, fit `connect`-function for easy stateful components in Picodom.\n\n#### Regular usagage\n\nA typical Picodom and Mehdux app might look like this:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\nconst render = viewFn => (state, actions) => {\n  patch(node, (node = viewFn(state, actions)), root);\n};\n\nconst view = (state, actions) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nstore.connect()(render(view))\n```\n\nOut of the box stateful components connected to a store is not straight-forward with `Picodom`.\nTo make connected components in `Picodom` a breeze `Mehdux` comes with a small `connect`-function.\n\nHere is how to do it:\n\n```Javascript\n// @jsx h\nimport { h, patch } from 'picodom'\nimport { connect } from 'mehdux/picodom'\nimport { store } from './store' // or wherever you keep your store instance\n\nlet node = null\n\n// Note the storeInstance that gets passed to 'render' from 'store.connect'\nconst render = viewFn => (state, actions, storeInstance) => {\n  patch(node, (node = viewFn(state, actions, storeInstance)), root);\n};\n\nconst Button = ({ actions, state }) => {\n  return <button onClick={actions.inc}>{state.value}</button>\n}\n\nconst ConnectedButton = connect()(Button)\n\nconst view = (state, actions, storeInstance) => {\n  return (\n    <div>\n      <ConnectedButton store={storeInstance} />\n    </div>\n  )\n}\n\n// Note the third argument to connect, which forces the store to emit even on equal states.\n// This is to enable the stateful components inside `view` to get rerun,\n// eventhough the parent state does not change.\n\nstore.connect({ leading: true, force: true })(render(view))\n```\n\n**Note:** _This implementation will likely be rewritten to be more similiar to the `React`/`Preact`-implementations_\n\n## Advanced usage\n\n### Dispatching multiple or async actions\n\n`Mehdux` has support for dispatching actions within actions.\nYou have access to other actions within an action.\n\nTo dispatch simply execute the action you want.\n\n```Javascript\nconst actions = {\n  addUser: state => user => ({\n    ...state,\n    user: [...state.users, user]\n  }),\n  addManyUsers: state => () => {\n    actions.addUser('Kari')\n    actions.addUser('Ola')\n  },\n  addUserIn2s: (state, actions) => user => {\n    setTimeout(() => actions.addUser(user), 2000)\n  },\n  fetchAndSetName: (state, actions) => async () => {\n    const res = await fetch('https://myapi.com/v0')\n    const user = await res.json()\n    actions.addUser(user)\n  }\n}\n```\n\n### Middleware/Enhancers\n\n`Store` takes a third argument along side `initialState` and `actions`. This is an array of middleware-functions. Each middleware gets called on actions being called on the store.\n\nThey recieve the action `name`, `arguments`, `currentState` and `nextState`.\n\nLogging and analytics are examples of middleware usages.\n\n`mehdux/utils` includes a helper function for applying middlewares, but you are free to just pass an `array` as well.\n\n```Javascript\nimport { Store } from 'mehdux'\nimport { applyMiddleware } from 'mehdux/utils'\nimport { Logger, Analytics } from './middlewares' // or wherever you keep your middlewares\n\nconst store = new Store({}, {}, applyMiddleware(Logger, Analytics)\n\nexport { store }\n```\n\n### Combining multiple store instances\n\nBigger apps often have complex state trees. In `redux` you would handle this by combining reducers. With `Mehdux` you can combine stores with the `combineStores`-function from `mehdux/utils` like so:\n\n```Javascript\nimport { combineStores } from 'mehdux/utils'\n\nconst store = combineStores({\n  users: userStore,\n  posts: postStore\n}, /* myMiddleware */)\n```\n\nBy default combineStores does not copy the middlewares for each sub-store. And you need to apply the middlewares as the second argument.\nHowever, if you want to copy the original middlewares past to the store you can by passing `true` as the second argument to `combineStores`.\n\n## Todos\n\n* Tests\n* Sort out type-definitions when using `microbundle`\n\n## License\n\n[MIT](LICENSE).\n","maintainers":[{"name":"rognstadragnar","email":"rognstad.ragnar@gmail.com"}],"time":{"modified":"2022-05-09T02:57:57.359Z","created":"2018-01-29T21:49:31.032Z","0.1.0":"2018-01-29T21:49:31.032Z","0.2.0":"2018-01-29T22:15:59.369Z","0.2.1":"2018-01-29T22:16:48.697Z","0.2.2":"2018-01-29T22:31:40.280Z","0.2.4":"2018-01-29T22:40:34.792Z","0.2.5":"2018-01-29T22:55:53.413Z","0.2.6":"2018-01-29T23:38:32.737Z","0.2.7":"2018-01-29T23:53:32.594Z","0.2.8":"2018-01-29T23:55:58.419Z","0.2.9":"2018-01-29T23:58:55.897Z","0.2.10":"2018-01-30T00:02:58.318Z","0.2.11":"2018-01-30T00:09:40.481Z","0.2.12":"2018-01-30T21:29:27.096Z","0.2.13":"2018-02-01T00:04:14.401Z","0.2.14":"2018-02-01T00:07:04.460Z","0.2.15":"2018-02-06T18:52:27.830Z","0.2.16":"2018-02-06T18:57:20.246Z","0.2.17":"2018-02-06T19:02:41.675Z","0.2.18":"2018-02-06T19:05:33.292Z","0.2.19":"2018-02-06T19:09:53.265Z","0.2.20":"2018-02-06T19:11:32.931Z","0.3.0":"2018-02-11T21:31:09.992Z","0.3.1":"2018-02-12T00:12:37.590Z","0.3.2-beta.1":"2018-02-15T22:21:33.075Z","0.3.2-beta.2":"2018-02-15T22:36:04.664Z","0.3.2-beta.3":"2018-02-15T22:37:44.005Z","0.3.2-beta.4":"2018-02-16T00:19:27.168Z","0.4.0":"2018-02-17T14:53:13.508Z","0.4.1":"2018-02-17T15:46:52.853Z","0.4.2":"2018-02-18T14:45:08.760Z","0.4.3-beta.0":"2018-02-18T14:59:59.672Z","0.4.3":"2018-02-19T19:26:49.472Z","0.4.4":"2018-02-19T19:32:55.125Z","0.4.5":"2018-03-05T00:40:46.309Z","0.4.8":"2018-04-01T11:20:03.861Z","0.5.0":"2018-04-01T11:33:10.099Z","0.5.1":"2018-04-01T11:37:01.481Z","0.5.2":"2018-04-08T10:07:27.687Z","0.5.3":"2018-05-21T15:17:23.733Z","0.5.4":"2018-05-28T14:51:43.527Z","0.5.5":"2018-12-08T09:18:40.981Z"},"homepage":"https://github.com/rognstadragnar/mehdux#readme","repository":{"type":"git","url":"git+https://github.com/rognstadragnar/mehdux.git"},"author":{"name":"Ragnar Rognstad","url":"http://rognstad.me"},"bugs":{"url":"https://github.com/rognstadragnar/mehdux/issues"},"license":"MIT","readmeFilename":"README.md","users":{"rognstadragnar":true}}