{"_id":"mobx-preact","_rev":"255621","name":"mobx-preact","description":"Mobx bindings specifically for Preact","dist-tags":{"beta":"2.0.0-beta.3","latest":"3.0.0","next":"1.1.0-pre"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"time":{"modified":"2021-06-03T16:22:14.000Z","created":"2016-08-23T21:23:44.873Z","3.0.0":"2018-06-10T14:19:50.704Z","2.0.0":"2018-03-13T20:21:16.423Z","2.0.0-beta.3":"2018-03-07T22:55:27.996Z","2.0.0-beta.2":"2018-03-07T20:56:30.464Z","2.0.0-beta.1":"2018-03-06T21:18:04.139Z","1.1.0":"2017-12-03T10:04:53.595Z","1.0.0":"2017-12-02T19:21:32.368Z","1.1.0-pre":"2017-12-02T19:03:10.338Z","1.0.1-pre":"2017-12-02T13:38:58.693Z","1.0.0-pre":"2017-12-01T23:12:20.316Z","0.3.1":"2017-02-06T09:22:59.941Z","0.3.0":"2016-12-27T15:49:06.417Z","0.2.0":"2016-12-19T21:27:45.413Z","0.1.1":"2016-12-03T18:32:18.006Z","0.1.0":"2016-12-03T18:21:39.129Z","0.0.4":"2016-10-05T03:15:47.327Z","0.0.2":"2016-08-23T21:34:43.531Z","0.0.1":"2016-08-23T21:23:44.873Z"},"users":{"developit":true},"author":{"name":"Phil Mander"},"repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"versions":{"3.0.0":{"name":"mobx-preact","version":"3.0.0","description":"Mobx bindings specifically for Preact","main":"lib/index.js","module":"lib/index.module.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"node build-rollup","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js","release":"standard-version"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"5.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^8.2.2","babel-jest":"^23.0.1","babel-plugin-module-resolver":"^3.1.0","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-es2015-rollup":"^3.0.0","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^23.1.0","mobx":"^5.0.0","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.60.1","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^9.0.0","rollup-plugin-filesize":"^2.0.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^4.0.0","standard-version":"^4.4.0"},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"babel":{"presets":[["env"],"stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"gitHead":"970f767c68e5cec41f3fecff1f8f9861d83d6ed6","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@3.0.0","_shasum":"683f1805e4727570c8ece1561a25f34773b7b601","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"683f1805e4727570c8ece1561a25f34773b7b601","size":19429,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-3.0.0.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact_3.0.0_1528640390621_0.10338330573394616"},"_hasShrinkwrap":false,"publish_time":1528640390704,"_cnpm_publish_time":1528640390704},"2.0.0":{"name":"mobx-preact","version":"2.0.0","description":"Mobx bindings specifically for Preact","main":"lib/index.js","module":"lib/index.module.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"node build-rollup","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"4.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^8.2.2","babel-jest":"^22.4.1","babel-plugin-module-resolver":"^3.1.0","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-es2015-rollup":"^3.0.0","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^22.4.2","mobx":"^4.0.1","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.56.4","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^9.0.0","rollup-plugin-filesize":"^1.5.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"babel":{"presets":[["env"],"stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"gitHead":"34487a2ee131afc36d7ad6c73ac0d0168a41f615","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@2.0.0","_shasum":"0d2fc6c06ecb1c29c852a6f5bc6a85008916c0ec","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"0d2fc6c06ecb1c29c852a6f5bc6a85008916c0ec","size":14828,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-2.0.0.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact_2.0.0_1520972476377_0.9353242664727299"},"_hasShrinkwrap":false,"publish_time":1520972476423,"_cnpm_publish_time":1520972476423},"2.0.0-beta.3":{"name":"mobx-preact","version":"2.0.0-beta.3","description":"Mobx bindings specifically for Preact","main":"lib/index.js","module":"lib/index.module.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"node build-rollup","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"4.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^8.2.2","babel-jest":"^22.4.1","babel-plugin-module-resolver":"^3.1.0","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-es2015-rollup":"^3.0.0","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^22.4.2","mobx":"^4.0.0-beta.2","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.56.4","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^9.0.0","rollup-plugin-filesize":"^1.5.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0"},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"babel":{"presets":[["env"],"stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"readmeFilename":"README.md","gitHead":"f4f86e09bdcd5ed893c68075119fcd3eadf67712","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@2.0.0-beta.3","_shasum":"1912fccbe2c550d6ecbf29370728db271be52c35","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"1912fccbe2c550d6ecbf29370728db271be52c35","size":14818,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-2.0.0-beta.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-2.0.0-beta.3.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact_2.0.0-beta.3_1520463327943_0.3594378028168428"},"_hasShrinkwrap":false,"publish_time":1520463327996,"_cnpm_publish_time":1520463327996},"2.0.0-beta.2":{"name":"mobx-preact","version":"2.0.0-beta.2","description":"Mobx binding specifically for Preact","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"babel src --out-dir lib","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"4.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^8.2.2","babel-jest":"^22.4.1","babel-plugin-module-resolver":"^3.1.0","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^22.4.2","mobx":"^4.0.0-beta.2","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.56.4","rollup-plugin-commonjs":"^9.0.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0"},"babel":{"presets":["env","stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"readmeFilename":"README.md","gitHead":"b3488409c2dad33f8a5fe7c55c7d7070057d994a","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@2.0.0-beta.2","_shasum":"9c6e60e060e436beaca0a687d46582a97575465e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"9c6e60e060e436beaca0a687d46582a97575465e","size":134525,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-2.0.0-beta.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-2.0.0-beta.2.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact_2.0.0-beta.2_1520456190406_0.03692296219911473"},"_hasShrinkwrap":false,"publish_time":1520456190464,"_cnpm_publish_time":1520456190464},"2.0.0-beta.1":{"name":"mobx-preact","version":"2.0.0-beta.1","description":"Mobx binding specifically for Preact","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"babel src --out-dir lib","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"4.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-jest":"^21.2.0","babel-loader":"^6.4.1","babel-plugin-module-resolver":"^2.7.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^21.2.1","mobx":"^4.0.0-beta.1","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.52.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.0"},"babel":{"presets":["env","stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"readmeFilename":"README.md","gitHead":"ce2bc4bd49ab37016b921f1d8083ed3b7078b683","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@2.0.0-beta.1","_shasum":"62c7566a3f71c1ed9d5c34d3c2bb518fcaff05c2","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"62c7566a3f71c1ed9d5c34d3c2bb518fcaff05c2","size":130914,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-2.0.0-beta.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-2.0.0-beta.1.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact_2.0.0-beta.1_1520371084076_0.8310786292417698"},"_hasShrinkwrap":false,"publish_time":1520371084139,"_cnpm_publish_time":1520371084139},"1.1.0":{"name":"mobx-preact","version":"1.1.0","description":"Mobx binding specifically for Preact","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"babel src --out-dir lib","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"3.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-jest":"^21.2.0","babel-loader":"^6.4.1","babel-plugin-module-resolver":"^2.7.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^21.2.1","mobx":"^3.3.2","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.52.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.0"},"babel":{"presets":["env","stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"gitHead":"f90a1bf92770bafb2c2e73bfdb88659f653c6f07","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@1.1.0","_shasum":"b1538e5e890b65ef6d4dc2cd98b575579d51f74c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"b1538e5e890b65ef6d4dc2cd98b575579d51f74c","size":130746,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-1.1.0.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact-1.1.0.tgz_1512295493509_0.8481804435141385"},"directories":{},"publish_time":1512295493595,"_cnpm_publish_time":1512295493595,"_hasShrinkwrap":false},"1.0.0":{"name":"mobx-preact","version":"1.0.0","description":"Mobx binding specifically for Preact","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"babel src --out-dir lib","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"3.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-jest":"^21.2.0","babel-loader":"^6.4.1","babel-plugin-module-resolver":"^2.7.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^21.2.1","mobx":"^3.3.2","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.52.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.0"},"babel":{"presets":["env","stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"gitHead":"2379f9ace9caf8589d00c33f02d36c1ebc507e06","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@1.0.0","_shasum":"05299db7f8ac1659de4c4c082ade6bb6615f44a1","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"05299db7f8ac1659de4c4c082ade6bb6615f44a1","size":110193,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-1.0.0.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact-1.0.0.tgz_1512242491262_0.6845321625005454"},"directories":{},"publish_time":1512242492368,"_cnpm_publish_time":1512242492368,"_hasShrinkwrap":false},"1.1.0-pre":{"name":"mobx-preact","version":"1.1.0-pre","description":"Mobx binding specifically for Preact","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"babel src --out-dir lib","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"3.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-jest":"^21.2.0","babel-loader":"^6.4.1","babel-plugin-module-resolver":"^2.7.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^21.2.1","mobx":"^3.3.2","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.52.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.0"},"babel":{"presets":["env","stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"gitHead":"a5f58263cc188700c73e98145f9adfe676384f23","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@1.1.0-pre","_shasum":"cbaaf88ee50fc57fd81a6493a2e184cdb4afd797","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"cbaaf88ee50fc57fd81a6493a2e184cdb4afd797","size":109948,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-1.1.0-pre.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-1.1.0-pre.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact-1.1.0-pre.tgz_1512241390184_0.09286876721307635"},"directories":{},"publish_time":1512241390338,"_hasShrinkwrap":false,"_cnpm_publish_time":1512241390338},"1.0.1-pre":{"name":"mobx-preact","version":"1.0.1-pre","description":"Mobx binding specifically for Preact","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"babel src --out-dir lib","test":"jest","build:sample":"mkdirp sample/dist && babel sample/sample.js -o sample/dist/sample.es5.js && rollup -c sample/rollup.config.js"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"3.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-jest":"^21.2.0","babel-loader":"^6.4.1","babel-plugin-module-resolver":"^2.7.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^21.2.1","mobx":"^3.3.2","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0","rollup":"^0.52.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.0"},"babel":{"presets":["env","stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"gitHead":"1ab31f0ea9a7ac594155cca82d24fe9ea01e57d9","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@1.0.1-pre","_shasum":"22d366538bfd54bf734a2cf8706b4e10a8b3ca85","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"22d366538bfd54bf734a2cf8706b4e10a8b3ca85","size":107894,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-1.0.1-pre.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-1.0.1-pre.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact-1.0.1-pre.tgz_1512221937481_0.17762508266605437"},"directories":{},"publish_time":1512221938693,"_cnpm_publish_time":1512221938693,"_hasShrinkwrap":false},"1.0.0-pre":{"name":"mobx-preact","version":"1.0.0-pre","description":"Mobx binding specifically for Preact","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/philmander/mobx-preact.git"},"scripts":{"lint":"eslint src test --fix","prepublish":"npm run lint && npm test && npm run build","build":"babel src --out-dir lib","test":"jest"},"keywords":["preact","mobx-preact","mobx","observer","bindings"],"author":{"name":"Phil Mander"},"license":"MIT","peerDependencies":{"mobx":"3.x","preact":">=8"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-jest":"^21.2.0","babel-loader":"^6.4.1","babel-plugin-module-resolver":"^2.7.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-stage-1":"^6.24.1","eslint":"^4.5.0","eslint-plugin-jest":"^21.3.2","eslint-plugin-react":"^7.5.1","jest":"^21.2.1","mobx":"^3.3.2","preact":"^8.2.6","preact-compat":"^3.17.0","preact-render-to-string":"^3.7.0"},"babel":{"presets":["env","stage-1"],"plugins":[["transform-react-jsx",{"pragma":"h"}],"transform-decorators-legacy"]},"dependencies":{"hoist-non-react-statics":"^2.3.1"},"gitHead":"ab79cba2388bc5ccbc3eae500bbea8c5c723e2d0","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"homepage":"https://github.com/philmander/mobx-preact#readme","_id":"mobx-preact@1.0.0-pre","_shasum":"5b872e1f352dd80d224ee0a0317795620bb17c6e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"philmander","email":"philip.mander@gmail.com"},"dist":{"shasum":"5b872e1f352dd80d224ee0a0317795620bb17c6e","size":10987,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-1.0.0-pre.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-1.0.0-pre.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-preact-1.0.0-pre.tgz_1512169939348_0.6730003475677222"},"directories":{},"publish_time":1512169940316,"_cnpm_publish_time":1512169940316,"_hasShrinkwrap":false},"0.3.1":{"name":"mobx-preact","version":"0.3.1","description":"Preact bindings for MobX","main":"lib/index.js","scripts":{"build":"tsc","test":"_mocha --opts mocha.opts"},"repository":{"type":"git","url":"git+https://github.com/nightwolfz/mobx-preact.git"},"keywords":["preact","mobx-preact","mobx","connect","observer","bindings","reactive"],"author":{"name":"Ryan Megidov","email":"ryan@megidov.com"},"homepage":"https://github.com/nightwolfz/mobx-preact#readme","license":"MIT","bugs":{"url":"https://github.com/nightwolfz/mobx-preact/issues"},"dependencies":{"hoist-non-react-statics":"^1.2.0","invariant":"^2.2.2","preact-classless-component":"^1.0.6"},"devDependencies":{"@types/chai":"^3.4.34","@types/core-js":"^0.9.35","@types/mocha":"^2.2.39","@types/node":"^7.0.5","chai":"^3.5.0","mobx":"^3.1.0","mocha":"^3.2.0","preact":"^7.1.0","tslint":"^4.4.2","typescript":"^2.1.5"},"gitHead":"a699079f3714d71b606cc64461b6b88be48adaa2","_id":"mobx-preact@0.3.1","_shasum":"99eb9371bceb06d2c7c8f5a1b1abfb65f7da80a4","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"nightwolfz","email":"ryan@megidov.com"},"dist":{"shasum":"99eb9371bceb06d2c7c8f5a1b1abfb65f7da80a4","size":11241,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-0.3.1.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mobx-preact-0.3.1.tgz_1486372977859_0.9769451869651675"},"directories":{},"publish_time":1486372979941,"_cnpm_publish_time":1486372979941,"_hasShrinkwrap":false},"0.3.0":{"name":"mobx-preact","version":"0.3.0","description":"Preact bindings for MobX","main":"lib/index.js","scripts":{"build":"tsc","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/nightwolfz/mobx-preact.git"},"keywords":["preact","mobx-preact","mobx","connect","observer","bindings","reactive"],"author":{"name":"Ryan Megidov","email":"ryan@megidov.com"},"homepage":"https://github.com/nightwolfz/mobx-preact#readme","license":"MIT","bugs":{"url":"https://github.com/nightwolfz/mobx-preact/issues"},"dependencies":{"hoist-non-react-statics":"^1.2.0","invariant":"^2.2.2","preact-classless-component":"^1.0.5"},"devDependencies":{"@types/chai":"^3.4.34","@types/core-js":"^0.9.35","@types/mocha":"^2.2.33","@types/node":"^6.0.41","chai":"^3.5.0","mobx":"^2.6.4","preact":"^7.1.0","tslint":"^4.1.1","typescript":"^2.0.10"},"gitHead":"a59c7fbbd4026516cfc818962df78a1f44cae435","_id":"mobx-preact@0.3.0","_shasum":"a9cbacda688a1a0cb33eb12fcb8a719a162fe00f","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.1.0","_npmUser":{"name":"nightwolfz","email":"ryan@megidov.com"},"dist":{"shasum":"a9cbacda688a1a0cb33eb12fcb8a719a162fe00f","size":10637,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-0.3.0.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mobx-preact-0.3.0.tgz_1482853744522_0.6426516945939511"},"directories":{},"publish_time":1482853746417,"_cnpm_publish_time":1482853746417,"_hasShrinkwrap":false},"0.2.0":{"name":"mobx-preact","version":"0.2.0","description":"Preact bindings for MobX","main":"lib/index.js","scripts":{"build":"tsc","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/nightwolfz/mobx-preact.git"},"keywords":["preact","mobx-preact","mobx","connect","observer","bindings","reactive"],"author":{"name":"Ryan Megidov","email":"ryan@megidov.com"},"homepage":"https://github.com/nightwolfz/mobx-preact#readme","license":"MIT","bugs":{"url":"https://github.com/nightwolfz/mobx-preact/issues"},"dependencies":{"hoist-non-react-statics":"^1.2.0","invariant":"^2.2.2","preact-classless-component":"^1.0.5"},"devDependencies":{"@types/chai":"^3.4.34","@types/core-js":"^0.9.35","@types/mocha":"^2.2.33","@types/node":"^6.0.41","chai":"^3.5.0","mobx":"^2.6.4","preact":"^7.1.0","tslint":"^4.1.1","typescript":"^2.0.10"},"gitHead":"5d7b1d06281e0d40945315c6e2771cb6e09692bb","_id":"mobx-preact@0.2.0","_shasum":"cbe48221518c7a47d7604b37480e72fd9a99db08","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"nightwolfz","email":"ryan@megidov.com"},"dist":{"shasum":"cbe48221518c7a47d7604b37480e72fd9a99db08","size":11068,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-0.2.0.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mobx-preact-0.2.0.tgz_1482182863480_0.437585472362116"},"directories":{},"publish_time":1482182865413,"_cnpm_publish_time":1482182865413,"_hasShrinkwrap":false},"0.1.1":{"name":"mobx-preact","version":"0.1.1","description":"Preact bindings for MobX","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/nightwolfz/mobx-preact.git"},"keywords":["preact","mobx-preact","mobx","connect","observer","bindings","reactive"],"author":{"name":"Ryan Megidov","email":"ryan@megidov.com"},"homepage":"https://github.com/nightwolfz/mobx-preact#readme","license":"MIT","bugs":{"url":"https://github.com/nightwolfz/mobx-preact/issues"},"dependencies":{"hoist-non-react-statics":"^1.2.0","invariant":"^2.2.2","preact-classless-component":"^1.0.5"},"devDependencies":{"@types/core-js":"^0.9.35","@types/node":"^6.0.41","mobx":"^2.6.4","preact":"^7.1.0","typescript":"^2.0.10"},"gitHead":"ae4604ced6c4a28bd9a14be6a44586ba7041e320","_id":"mobx-preact@0.1.1","_shasum":"d77036510fd2977571ee7b552a1cc44db454797c","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"nightwolfz","email":"ryan@megidov.com"},"dist":{"shasum":"d77036510fd2977571ee7b552a1cc44db454797c","size":2643,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-0.1.1.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mobx-preact-0.1.1.tgz_1480789936060_0.22487600333988667"},"directories":{},"publish_time":1480789938006,"_cnpm_publish_time":1480789938006,"_hasShrinkwrap":false},"0.1.0":{"name":"mobx-preact","version":"0.1.0","description":"Preact bindings for MobX","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/nightwolfz/mobx-preact.git"},"keywords":["preact","mobx-preact","mobx","connect","observer","bindings","reactive"],"author":{"name":"Ryan Megidov","email":"ryan@megidov.com"},"homepage":"https://github.com/nightwolfz/mobx-preact#readme","license":"MIT","bugs":{"url":"https://github.com/nightwolfz/mobx-preact/issues"},"dependencies":{"hoist-non-react-statics":"^1.2.0","invariant":"^2.2.2","preact-classless-component":"^1.0.5"},"devDependencies":{"@types/core-js":"^0.9.35","@types/node":"^6.0.41","mobx":"^2.6.4","preact":"^7.1.0","typescript":"^2.0.10"},"gitHead":"8d1f6f5bfe23e3b10398d425c2060c1f539321f7","_id":"mobx-preact@0.1.0","_shasum":"12352f7c7f8c6df8d51a375c5bed908a6dead66e","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"nightwolfz","email":"ryan@megidov.com"},"dist":{"shasum":"12352f7c7f8c6df8d51a375c5bed908a6dead66e","size":2866,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-0.1.0.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mobx-preact-0.1.0.tgz_1480789298525_0.0625360959675163"},"directories":{},"publish_time":1480789299129,"_cnpm_publish_time":1480789299129,"_hasShrinkwrap":false},"0.0.4":{"name":"mobx-preact","version":"0.0.4","description":"Preact bindings for MobX","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/nightwolfz/mobx-preact.git"},"keywords":["preact","mobx-preact","mobx","connect","observer","bindings","reactive"],"author":{"name":"Ryan Megidov","email":"ryan@megidov.com"},"homepage":"https://github.com/nightwolfz/mobx-preact#readme","license":"MIT","bugs":{"url":"https://github.com/nightwolfz/mobx-preact/issues"},"dependencies":{"hoist-non-react-statics":"^1.2.0","invariant":"^2.2.1","preact-classless-component":"^1.0.4"},"devDependencies":{"@types/core-js":"^0.9.34","@types/node":"^6.0.41","mobx":"^2.5.1","preact":"^6.1.0","typescript":"^2.0.3"},"gitHead":"f57a4753abd2d559be143ca0027a01b3fd9bdd36","_id":"mobx-preact@0.0.4","_shasum":"e58b0a391e8494bfd51fe088555ba55abf2fbab3","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"nightwolfz","email":"ryan@megidov.com"},"dist":{"shasum":"e58b0a391e8494bfd51fe088555ba55abf2fbab3","size":6090,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-0.0.4.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mobx-preact-0.0.4.tgz_1475637345787_0.7598991373088211"},"directories":{},"publish_time":1475637347327,"_cnpm_publish_time":1475637347327,"_hasShrinkwrap":false},"0.0.2":{"name":"mobx-preact","version":"0.0.2","description":"Preact bindings for MobX","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/nightwolfz/mobx-preact.git"},"keywords":[],"author":{"name":"Ryan Megidov","email":"ryan@megidov.com"},"homepage":"https://github.com/nightwolfz/mobx-preact#readme","license":"MIT","bugs":{"url":"https://github.com/nightwolfz/mobx-preact/issues"},"dependencies":{"mobx":"latest","preact":"*","preact-compat":"*"},"peerDependencies":{"mobx":"*","preact":"*","preact-compat":"*"},"gitHead":"1eea977a37239d2a9ec6eb55532132685d8ba050","_id":"mobx-preact@0.0.2","_shasum":"be9acd539734dec7bec48d91678cd49ae330ccaf","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"nightwolfz","email":"ryan@megidov.com"},"dist":{"shasum":"be9acd539734dec7bec48d91678cd49ae330ccaf","size":5803,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-0.0.2.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mobx-preact-0.0.2.tgz_1471988081764_0.3194156694225967"},"directories":{},"publish_time":1471988083531,"_cnpm_publish_time":1471988083531,"_hasShrinkwrap":false},"0.0.1":{"name":"mobx-preact","version":"0.0.1","description":"Preact bindings for MobX","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/nightwolfz/mobx-preact.git"},"keywords":[],"author":{"name":"Ryan Megidov","email":"ryan@megidov.com"},"homepage":"https://github.com/nightwolfz/mobx-preact#readme","license":"MIT","bugs":{"url":"https://github.com/nightwolfz/mobx-preact/issues"},"dependencies":{"mobx":"latest","preact":"*","preact-compat":"*"},"peerDependencies":{"mobx":"*","preact":"*","preact-compat":"*"},"gitHead":"1eea977a37239d2a9ec6eb55532132685d8ba050","_id":"mobx-preact@0.0.1","_shasum":"6d973e54d08d696013d50aa49586772b14bed003","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"nightwolfz","email":"ryan@megidov.com"},"dist":{"shasum":"6d973e54d08d696013d50aa49586772b14bed003","size":5809,"noattachment":false,"key":"/mobx-preact/-/mobx-preact-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mobx-preact/download/mobx-preact-0.0.1.tgz"},"maintainers":[{"name":"nightwolfz","email":"ryan@megidov.com"},{"name":"philmander","email":"philip.mander@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mobx-preact-0.0.1.tgz_1471987422479_0.07761052716523409"},"directories":{},"publish_time":1471987424873,"_cnpm_publish_time":1471987424873,"_hasShrinkwrap":false}},"readme":"# mobx-preact\n\n[![Build Status](https://travis-ci.org/mobxjs/mobx-preact.svg?branch=master)](https://travis-ci.org/mobxjs/mobx-preact)\n[![npm](https://img.shields.io/npm/v/mobx-preact.svg)](http://npm.im/mobx-preact)\n\n[MobX](https://mobxjs.github.io/mobx) bindings specifically for [Preact](https://preactjs.com/).\n\nThis package provides the bindings for MobX and Preact. It does not require `preact-compat`. The feature set of `mobx-preact` is a slightly slimmed down adaptation of `mobx-react`. The features available are reflected by this document. The features omitted are:\n\n* [Global error handler with onError](https://github.com/mobxjs/mobx-react#global-error-handler-with-onerror)\n* [Stuff to do with PropTypes](https://github.com/mobxjs/mobx-react#proptypes)\n* [Dev Tools](https://github.com/mobxjs/mobx-react#internal-devtools-api)\n* Typescript bindings\n\nIf you would like to see any of these features included please create an issue or PR.\n\n## Installation\n\n`npm install mobx-preact --save`\n\n```javascript\nimport {observer} from 'mobx-preact';\n```\n\n### Other versions\n\nPlease note that major versions of `mobx-preact` are synced with major versions of `mobx`. Consult the following table\nto ensure you install the right version of `mobx-preact` given the `mobx` version you are using:\n\n| `mobx` version  | `mobx-preact` version |\n| --------------- | --------------------- |\n| 5.x             | 3.x (latest)          |\n| 4.x             | 2.x                   |\n| 3.x             | 1.x                   |\n\nE.g. If using `mobx` v3:\n\n`npm install mobx-preact@1 --save`\n\n## API documentation\n\n### observer(componentClass)\n\nFunction (and decorator) that converts a Preact component class or stand-alone render function into a reactive component, which tracks which observables are used by `render` and automatically re-renders the component when one of these values changes.\nSee the [MobX](https://mobxjs.github.io/mobx/refguide/observer-component.html) documentation for more details.\n\n```javascript\nimport {Component} from 'preact';\nimport {observer} from \"mobx-preact\";\n\nconst TodoView  = observer(class TodoView extends Component {\n    render() {\n        return <div>{this.props.todo.title}</div>\n    }\n})\n\n// ---- ESNext syntax with decorators ----\n\n@observer\nclass TodoView extends Component {\n    render() {\n        return <div>{this.props.todo.title}</div>\n    }\n}\n\n// ---- or just use a stateless component function: ----\n\nconst TodoView = observer(({todo}) => <div>{todo.title}</div>)\n```\n\n### `Observer`\n\n`Observer` is a Preact component, which applies `observer` to an anonymous region in your component.\nIt takes as children a single, argumentless function which should return exactly one Preact component.\nThe rendering in the function will be tracked and automatically re-rendered when needed.\nThis can come in handy when needing to pass render function to external components or if you\ndislike the `observer` decorator / function.\n\nExample:\n\n```javascript\nclass App extends Component {\n  render() {\n     return (\n         <div>\n            {this.props.person.name}\n            <Observer>\n                {() => <div>{this.props.person.name}</div>}\n            </Observer>\n        </div>\n     )\n  }\n}\n\nconst person = observable({ name: \"John\" })\n\nrender(<App person={person} />, document.body)\nperson.name = \"Mike\" // will cause the Observer region to re-render\n```\n\n### Server Side Rendering with `useStaticRendering`\n\nWhen using server side rendering, normal lifecycle hooks of Preact components are not fired, as the components are rendered only once.\nSince components are never unmounted, `observer` components would in this case leak memory when being rendered server side.\nTo avoid leaking memory, call `useStaticRendering(true)` when using server side rendering. This makes sure the component won't try to Preact to any future data changes.\n\n### Which components should be marked with `observer`?\n\nThe simple rule of thumb is: _all components that render observable data_.\nIf you don't want to mark a component as observer, for example to reduce the dependencies of a generic component package, make sure you only pass it plain data.\n\n### Enabling decorators (optional)\n\nDecorators are currently a stage-2 ESNext feature. How to enable them is documented [here](https://github.com/mobxjs/mobx#enabling-decorators-optional).\n\n### Should I still use smart and dumb components?\n\nSee this [thread](https://www.reddit.com/r/reactjs/comments/4vnxg5/free_eggheadio_course_learn_mobx_react_in_30/d61oh0l).\nTL;DR: the conceptual distinction makes a lot of sense when using MobX as well, but use `observer` on all components.\n\n### About `shouldComponentUpdate`\n\nIt is possible to set a custom `shouldComponentUpdate`, but in general this should be avoided as MobX will by default provide a highly optimized `shouldComponentUpdate` implementation, based on `PureRenderMixin`.\nIf a custom `shouldComponentUpdate` is provided, it is consulted when the props changes (because the parent passes new props) or the state changes (as a result of calling `setState`),\nbut if an observable used by the rendering is changed, the component will be re-rendered and `shouldComponentUpdate` is not consulted.\n\n### `componentWillReact` (lifecycle hook)\n\nWhen using `mobx-preact` you can define a new life cycle hook, `componentWillReact` (pun intended) that will be triggered when a component is scheduled to be re-rendered because data it observes has changed. This makes it easy to trace renders back to the action that caused the rendering.\n\n```javascript\nimport {observer} from \"mobx-preact\";\n\n@observer class TodoView extends Component {\n    componentWillReact() {\n        console.log(\"I will re-render, since the todo has changed!\");\n    }\n\n    render() {\n        return <div>{this.props.todo.title}</div>\n    }\n}\n```\n\n* `componentWillReact` doesn't take arguments\n* `componentWillReact` won't fire before the initial render (use `componentWillMount` instead)\n\n### `Provider` and `inject`\n\n`Provider` is a component that can pass stores (or other stuff) using Preact's context mechanism to child components.\nThis is useful if you have things that you don't want to pass through multiple layers of components explicitly. If\n`Provider` has multiple immediate children, they will be wrapped with a `div` element.\n\n`inject` can be used to pick up those stores. It is a higher order component that takes a list of strings and makes those stores available to the wrapped component.\n\n```javascript\n@inject(\"color\") @observer\nclass Button extends Component {\n  render({ color }) {\n    return (\n      <button style={{background: color}}>\n        {this.props.children}\n      </button>\n    );\n  }\n}\n\nclass Message extends Component {\n  render({ text }) {\n    return (\n      <div>\n        {text} <Button>Delete</Button>\n      </div>\n    );\n  }\n}\n\nclass MessageList extends Component {\n  render() {\n    const children = this.props.messages.map((message) =>\n      <Message text={message.text} />\n    );\n    return <Provider color=\"red\">\n      {children}\n    </Provider>;\n  }\n}\n```\n\n#### connect\n\nIn `mobx-react` (v4) you can inject and observe simultaneously with `observe`, but this is now deprecated for [these reasons](https://github.com/mobxjs/mobx-react/blob/master/CHANGELOG.md#using-observer-to-inject-stores-is-deprecated).\n\nIn version 0.x of `mobx-preact` this could be achieved using `connect` and *is* still supported for backwards compatibility:\n\n```javascript\n// MyComponent.js\nimport { h, Component } from 'preact';\nimport { connect } from 'mobx-preact';\n\n@connect(['englishStore', 'frenchStore'])\nclass MyComponent extends Component {\n    render({ englishStore, frenchStore }) {\n        return <div>\n            <p>{ englishStore.title }</p>\n            <p>{ frenchStore.title }</p>\n        </div>\n    }\n}\n\nexport default MyComponent\n```\n\nI'm not currently sure if it's worth deprecating `connect` in `mobx-preact` for the same reasons.\n\nIn `mobx-preact`, using `observe` to simultaneously inject and observe is not supported. You must use `connect` if you want to do this.\n\nNotes:\n* If a component asks for a store and receives a store via a property with the same name, the property takes precedence. Use this to your advantage when testing!\n* Values provided through `Provider` should be final, to avoid issues like mentioned in [React #2517](https://github.com/facebook/Preact/issues/2517) and [React #3973](https://github.com/facebook/Preact/pull/3973), where optimizations might stop the propagation of new context. Instead, make sure that if you put things in `context` that might change over time, that they are `@observable` or provide some other means to listen to changes, like callbacks. However, if your stores will change over time, like an observable value of another store, MobX will warn you. To suppress that warning explicitly, you can use `suppressChangedStoreWarning={true}` as a prop at your own risk.\n* When using both `@inject` and `@observer`, make sure to apply them in the correct order: `observer` should be the inner decorator, `inject` the outer. There might be additional decorators in between.\n* The original component wrapped by `inject` is available as the `wrappedComponent` property of the created higher order component.\n* For mounted component instances, the wrapped component instance is available through the `wrappedInstance` property (except for stateless components). *Currently not working*\n\n#### Inject as function\n\nA functional stateless component would look like:\n\n```javascript\nvar Button = inject(\"color\")(observer(({ color }) => {\n    /* ... etc ... */\n}))\n```\n\n#### Customizing inject\n\nInstead of passing a list of store names, it is also possible to create a custom mapper function and pass it to inject.\nThe mapper function receives all stores as argument, the properties with which the components are invoked and the context, and should produce a new set of properties,\nthat are mapped into the original:\n\n`mapperFunction: (allStores, props, context) => additionalProps`\n\nThe `mapperFunction` itself is tracked as well, so it is possible to do things like:\n\n```javascript\nconst NameDisplayer = ({ name }) => <h1>{name}</h1>\n\nconst UserNameDisplayer = inject(\n    stores => ({\n        name: stores.userStore.name\n    })\n)(NameDisplayer)\n\nconst user = observable({\n    name: \"Noa\"\n})\n\nconst App = () => (\n    <Provider userStore={user}>\n        <UserNameDisplayer />\n    </Provider>\n)\n\nrender(<App />, document.body)\n```\n\n_N.B. note that in this *specific* case neither `NameDisplayer` nor `UserNameDisplayer` needs to be decorated with `observer`, since the observable dereferencing is done in the mapper function_\n\n#### Testing store injection\n\nIt is allowed to pass any declared store in directly as a property as well. This makes it easy to set up individual component tests without a provider.\n\nSo if you have in your app something like:\n```javascript\n<Provider profile={profile}>\n    <Person age={'30'} />\n</Provider>\n```\n\nIn your test you can easily test the `Person` component by passing the necessary store as prop directly:\n```\nconst profile = new Profile()\nconst mountedComponent = mount(\n   <Person age={'30'} profile={profile} />\n)\n```\n\nBear in mind that using shallow rendering won't provide any useful results when testing injected components; only the injector will be rendered. To test with shallow rendering, instantiate the `wrappedComponent` instead: `shallow(<Person.wrappedComponent />)`\n\n## FAQ\n\n**Should I use `observer` for each component?**\n\nYou should use `observer` on every component that displays observable data.\nEven the small ones. `observer` allows components to render independently from their parent and in general this means that the more you use `observer`, the better the performance become. The overhead of `observer` itself is negligible.\nSee also [Do child components need `@observer`?](https://github.com/mobxjs/mobx/issues/101)\n","_attachments":{},"homepage":"https://github.com/philmander/mobx-preact#readme","bugs":{"url":"https://github.com/philmander/mobx-preact/issues"},"license":"MIT"}