{"_id":"redux-bundler-preact","_rev":"5-4d17c70cfa63ebceefb9a7f6be09c3e9","name":"redux-bundler-preact","description":"Bindings for redux-bundler to Preact","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"redux-bundler-preact","description":"Bindings for redux-bundler to Preact","version":"1.0.0","author":{"name":"Henrik Joreteg","email":"henrik@joreteg.com","url":"joreteg.com"},"devDependencies":{"microbundle":"0.4.0","preact":"8.2.7","preact-render-to-string":"3.7.0","redux-bundler":"16.0.0","tap-spec":"4.1.1","tape":"4.8.0"},"keywords":["preact","redux"],"license":"MIT","main":"index.js","module":"index.m.js","peerDependencies":{"preact":"*","redux-bundler":"*"},"prettier":{"semi":false,"singleQuote":true},"scripts":{"build":"microbundle","dev":"microbundle watch","test":"tape test/*.js | tap-spec"},"source":"src/index.js","gitHead":"810c62047b86dfba20e184e40b2b4477d5da8bfe","_id":"redux-bundler-preact@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"henrikjoreteg","email":"henrik@joreteg.com"},"dist":{"integrity":"sha512-JfjJN85tSq97LhVZ+2bxaoHWsO2VNTDu2xb9bUuMxWroCLZ7OyKgUjvGkUZj6avmhnp8suk1fHrI2M0qeNiRTw==","shasum":"d19dfeb175f2b3d56a3deeb286c88c1cf8c4cc65","tarball":"https://registry.npmjs.org/redux-bundler-preact/-/redux-bundler-preact-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGYocNShQG8Xex8OsIl/mGWpjRkzMDLX4Fn43JY1t6SuAiAJx3okfpc0X/8V3SQT0TP7fjVQqnmWp1dOR0Jm6em5og=="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@joreteg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-bundler-preact-1.0.0.tgz_1516749358935_0.5482197599485517"},"directories":{}},"1.1.0":{"name":"redux-bundler-preact","description":"Bindings for redux-bundler to Preact","version":"1.1.0","author":{"name":"Henrik Joreteg","email":"henrik@joreteg.com","url":"joreteg.com"},"devDependencies":{"microbundle":"0.4.0","preact":"8.2.7","preact-render-to-string":"3.7.0","redux-bundler":"16.1.0","tap-spec":"4.1.1","tape":"4.8.0"},"keywords":["preact","redux"],"license":"MIT","main":"index.js","module":"index.m.js","peerDependencies":{"preact":"*","redux-bundler":"*"},"prettier":{"semi":false,"singleQuote":true},"scripts":{"build":"microbundle","dev":"microbundle watch","test":"tape test/*.js | tap-spec"},"source":"src/index.js","gitHead":"7a4c2f08eb08c20d0a3e0fc0c9547869bcc43ef4","_id":"redux-bundler-preact@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"henrikjoreteg","email":"henrik@joreteg.com"},"dist":{"integrity":"sha512-d0Q3En4o97HAatO2QCWmoo/pAFGm/DSfb3rBfVF4lYgraS3nZauBPI4QDCBSwIXGTHf0VedN7/BeKr+Br695zA==","shasum":"8215d3c0fbce5273f9d57a2e7bd999c9da8335a8","tarball":"https://registry.npmjs.org/redux-bundler-preact/-/redux-bundler-preact-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK5s3C8zaPyE88vQ6ICVTZy7a29L7ZWUuz7+T9U4mhBAIgI6CV8L0xh/ja/9cyldU+lvGSAblTqXhGRk+W9qpYXBQ="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@joreteg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-bundler-preact-1.1.0.tgz_1517034700966_0.7120452667586505"},"directories":{}},"2.0.0":{"name":"redux-bundler-preact","description":"Bindings for redux-bundler to Preact","version":"2.0.0","author":{"name":"Henrik Joreteg","email":"henrik@joreteg.com","url":"joreteg.com"},"devDependencies":{"microbundle":"0.4.0","preact":"^10.0.0-rc.1","preact-render-to-string":"^5.0.6","redux-bundler":"16.1.0","tap-spec":"4.1.1","tape":"4.8.0"},"homepage":"https://github.com/HenrikJoreteg/redux-bundler-preact","keywords":["preact","redux"],"license":"MIT","main":"index.js","module":"index.m.js","peerDependencies":{"preact":">=10.0.0"},"prettier":{"semi":false,"singleQuote":true},"repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/redux-bundler-preact.git"},"scripts":{"build":"microbundle","dev":"microbundle watch","test":"tape test/*.js | tap-spec"},"source":"src/index.js","gitHead":"b3e83c4b092aa775f0e0f6a4d25a4bfa9df7fee0","bugs":{"url":"https://github.com/HenrikJoreteg/redux-bundler-preact/issues"},"_id":"redux-bundler-preact@2.0.0","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-WlXpoo/8yuI7y+EcqP1J65JS37t08AEeOSqbGRSRfR6CMeFUW8Fs14Z65DsPKwGk/tNr1f+UhXC4rLK4gxRlWQ==","shasum":"65f38ab40c8a925b7b88a2d7a2dd25d631223ea1","tarball":"https://registry.npmjs.org/redux-bundler-preact/-/redux-bundler-preact-2.0.0.tgz","fileCount":10,"unpackedSize":10008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdcERUCRA9TVsSAnZWagAA/HwP/3oBbhEmaqwZu0mzfgK7\n3glAgy7iPEaXk4oCNbPS8P1B9wUX1lPn4p8aqX2yY5sqn5adYyVdHsjFOL9k\nt7h7SROjnsgUVdItRc3E9SjIbmdUZjzibz9qrel4CzNuXcCBAuGZcQm+a7ny\nbZBIRBWN1iRmqVo90T0Tudlq0sScXJc3Ux3zADqCRQ1pL6YBIdF6kjjAqc1P\neA8lsf+/CBisQz/e22C+JM+qjxl3amwKhwY1z4rj2hx7FWpbYuvdk2+k+sJz\n1fs39xOculNgQBytXNckyR8Hjs47YH7yDTn7qbe/y5bGssPIgWPJ1+r4R4Bk\nHNNDl/t1c58E7Cs/Tzx8L1C7sTZLrNw9HAwSiBWzDddKWQQm49Hs5A4QA19a\no6xCqQJYXSad0eKv/en86JTPPa0N1NmooUcmeqd7vHZa9Nze4FYVbQzA4iCf\nwxaDCs/VbwBcuvTHJHGlHHJnJEFZk0GrrGJM9KILATAc9TSm/Fknj3Lc7j8f\nXKHUkM21A8cV0Lvd6XMb8ho8/ekZVFpHBzezGOormJsYUz6TuoQ4Bz9wLdwy\ncFRXmK6XhS/9Wl7liehkvmWasLxHoi/z8oiSba0Xs1eRC6oZuY8LxT+Pil74\nhrujTAXV8cnbzyXaGpwg2W1Yd01vUfsHb+WBJc9r7ykKDDJQ07LMwNn2c+l7\nvYza\r\n=KD/G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGP/aYeYk1HiF1PjwjU69a0UN8pt68gtKl0D83W5E+t1AiA+YFcn7P/rKkBZZBlJrmw2QU7IsvlHMyC0Qz8TfxYAmg=="}]},"maintainers":[{"email":"henrik@joreteg.com","name":"henrikjoreteg"},{"email":"swashcap@gmail.com","name":"swashcap"}],"_npmUser":{"name":"swashcap","email":"swashcap@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-bundler-preact_2.0.0_1567638611300_0.09206803531105745"},"_hasShrinkwrap":false},"2.0.1":{"name":"redux-bundler-preact","description":"Bindings for redux-bundler to Preact","version":"2.0.1","author":{"name":"Henrik Joreteg","email":"henrik@joreteg.com","url":"joreteg.com"},"devDependencies":{"microbundle":"0.4.0","preact":"^10.0.0-rc.1","preact-render-to-string":"^5.0.6","redux-bundler":"16.1.0","tap-spec":"4.1.1","tape":"4.8.0"},"homepage":"https://github.com/HenrikJoreteg/redux-bundler-preact","keywords":["preact","redux"],"license":"MIT","main":"index.js","module":"index.m.js","peerDependencies":{"preact":">=10.0.0"},"prettier":{"semi":false,"singleQuote":true},"repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/redux-bundler-preact.git"},"scripts":{"build":"microbundle","dev":"microbundle watch","test":"tape test/*.js | tap-spec"},"source":"src/index.js","gitHead":"ba970c8c4fa0cf3f193daf025ca53532bfb0d240","bugs":{"url":"https://github.com/HenrikJoreteg/redux-bundler-preact/issues"},"_id":"redux-bundler-preact@2.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-x6Oklhv7aV1o7K9NU97TFnZa72cm3KRbtIZsHAJ35Vrx8b1gh5cXgDCCf+ajmpO7il834z5XIaHJstK2/dnyqw==","shasum":"6eb63054a6d888ff31123678937f0c246c162a43","tarball":"https://registry.npmjs.org/redux-bundler-preact/-/redux-bundler-preact-2.0.1.tgz","fileCount":10,"unpackedSize":10315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2bAmCRA9TVsSAnZWagAAEKEP/1E4F7lGcJaSikRlWlox\nGK6k/TtJGXT73TqEltKmFS+YPZFs9TO4FsvOuWFEPvVTINM9GUeYzBZ03YSk\nIyXKE+nw/7ASQ60c1ql/hL3weKS+1gpMjmzpIjrK3JBh4Z78z8aaS0DBJTwL\nJs+udxhtYkjOeN6ocv6Ocl7P1QBUbvGqgOa88zTqK23b33t95AtzlGt0C1in\nAmobREKkg0AqqBEceDu9Jz2SISYDbd9jMND5Q0rG5nyr1He1hS0V+JTZ5NRM\nMBo6AE55BEOnr9ei80pJXf2oPK2MHQ7IixoUfQzDCl0p7WmqKUS5ws39kGfJ\n3aZ6k1FwUE0OgdK47eqoonEp83iV0/6TZOpb9e3L1fgrvRnulkOIkXPg9AzS\nmktAcd+DUUQPxAaE89GAdQV6zhYf2YcBmfVOw/1WHEgae2MfUZ5ByH/r3HDf\nIAZRwLOf5/GJdonFKRY4Se7VFU/vlgzjWSMIhNfmUpLXiwv8TA2DNKsMV/uj\nzPVAeCHRdtsxd2n9HTC5hrtUguxZoqnzq0pqdiPEpoyyX2AUuNO8P1ZKSnBW\nIjrnhvrka9jlZoNB/46vRWqZJKQP0rENpHEEo9yNDJMYXFX42rfOsJWB+sry\nSDls/DUywb/QMj7/zY9nxVMbw8OuGHKbpMTYWrvSB2MqQJRJZ27FeZ777JXv\nToXW\r\n=JO5l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmCIrUoTcpxMp1Q2k5wtKcq7Qg9q9wBSTJ/qKyLSsifAiBBu0/fnMoSnqhHkX+MbsYp/113TLggPVO/gN+mooQDtQ=="}]},"maintainers":[{"email":"henrik@joreteg.com","name":"henrikjoreteg"},{"email":"swashcap@gmail.com","name":"swashcap"}],"_npmUser":{"name":"henrikjoreteg","email":"henrik@joreteg.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-bundler-preact_2.0.1_1574547494325_0.6468665565459353"},"_hasShrinkwrap":false}},"readme":"# redux-bundler-preact\n\n![](https://img.shields.io/npm/dm/redux-bundler-preact.svg)![](https://img.shields.io/npm/v/redux-bundler-preact.svg)![](https://img.shields.io/npm/l/redux-bundler-preact.svg)\n\nBindings for redux-bundler to Preact\n\n## install\n\nInstall v2 for Preact >=10.0.0:\n\n```\nnpm install redux-bundler-preact\n```\n\nInstall v1 for Preact v3-8:\n\n```\nnpm install redux-bundler-preact@^1\n```\n\n## example / docs\n\nSimilar to [react-redux](https://github.com/reactjs/react-redux), or [preact-redux](https://github.com/developit/preact-redux) this has two exports, `Provider` and `connect`.\n\n`Provider` puts the store into the `context` so that connected components can get access to it:\n\n```js\nimport { connect, Provider } from 'redux-bundler-preact'\nimport getStore from './bundles'\nimport AppRoot from './app-root'\n\nexport default () => (\n  <Provider store={getStore()}>\n    <AppRoot />\n  </Provider>\n)\n```\n\n`connect` works a bit differently for redux-bundler than you may be used to. You pass it the string names of the selectors and action creators you want to grab from the store. The last argument should always be the component itself.\n\n```js\nimport { connect } from 'redux-bundler-preact'\n\nconst MyComponent = ({ myValue, myOtherValue, doInitiateSignIn }) => (\n  <div onClick={doInitiateSignIn}>\n    {myValue} {myOtherValue}\n  </div>\n)\n\n// Here we use `connect()` to specify which selector values and action creators\n// that we want to use.\n// Note that it is quite inexpensive to connect many components since the diffing\n// happens outside of the component entirely.\n// If you try to connect something that doesn't exist, it will error at runtime\n// for easier debugging\nexport default connect(\n  'selectMyValue',\n  'selectMyOtherValue',\n  'doInitiateSignIn',\n  MyComponent\n)\n```\n\n## credits\n\nIf you like this follow [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on twitter.\n\nBig thanks to [@swashcap](https://github.com/swashcap) for his contributions.\n\n## changelog\n\n- `2.0.1` - update deps for security patches\n- `2.0.0` - upgrade to preact X\n- `1.x` - preact 8 and lower\n\n## license\n\n[MIT](http://mit.joreteg.com/)\n","maintainers":[{"email":"henrik@joreteg.com","name":"henrikjoreteg"},{"email":"swashcap@gmail.com","name":"swashcap"}],"time":{"modified":"2022-05-15T14:56:14.990Z","created":"2018-01-23T23:15:59.019Z","1.0.0":"2018-01-23T23:15:59.019Z","1.1.0":"2018-01-27T06:31:41.112Z","2.0.0":"2019-09-04T23:10:11.501Z","2.0.1":"2019-11-23T22:18:14.411Z"},"keywords":["preact","redux"],"author":{"name":"Henrik Joreteg","email":"henrik@joreteg.com","url":"joreteg.com"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/HenrikJoreteg/redux-bundler-preact","repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/redux-bundler-preact.git"},"bugs":{"url":"https://github.com/HenrikJoreteg/redux-bundler-preact/issues"}}