{"_id":"linkstate","_rev":"20-a5d6c06c4384988151b96385dc2a6504","name":"linkstate","dist-tags":{"latest":"2.0.1"},"versions":{"0.1.0":{"name":"linkstate","version":"0.1.0","keywords":["preact","react"],"author":{"url":"http://jasonformat.com","name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","_id":"linkstate@0.1.0","maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"137ab9a1925500f3075980deb295ee762008b233","tarball":"https://registry.npmjs.org/linkstate/-/linkstate-0.1.0.tgz","integrity":"sha512-oefbfw4wBPvZdG6LC2f2iA+n064FjjsfXlZc2Z8IPR+tUTf9snNYHb/E3k7+1UvWEdPP/w66oKuWBm8VS1BO6Q==","signatures":[{"sig":"MEUCIEWFeOe2x6hm5X/ko4SmMtlWD+7O2+pyKisfrwkAL7r/AiEA5WofHsf8FQR+VNPlTxcakwPkZq10mFSAPNX2fGEO2Rg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"137ab9a1925500f3075980deb295ee762008b233","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"developit","email":"jason@developit.ca"},"_npmVersion":"3.10.3","description":"Linked State for Preact and React","directories":{},"_nodeVersion":"6.3.1","_npmOperationalInternal":{"tmp":"tmp/linkstate-0.1.0.tgz_1479585787442_0.19894190202467144","host":"packages-18-east.internal.npmjs.com"}},"1.0.0":{"name":"linkstate","version":"1.0.0","keywords":["preact","react","state","linkstate","linked state"],"license":"MIT","_id":"linkstate@1.0.0","maintainers":[{"name":"developit","email":"jason@developit.ca"}],"homepage":"https://github.com/developit/linkstate","bugs":{"url":"https://github.com/developit/linkstate/issues"},"dist":{"shasum":"ea0e6920c54711f12a75c76d0e0a76a8cf3bf27c","tarball":"https://registry.npmjs.org/linkstate/-/linkstate-1.0.0.tgz","integrity":"sha512-mFdgAgOdW9encUu9Jlyarn2RsHin+8zkxh1OKqr+THD61bRam7cLNnTh/J4IayZZYswCEMvhuY/Nscw/JzXqBA==","signatures":[{"sig":"MEUCIQDd6Jta63dC9q8vI3PdvLfc1Go+f8OUbUeMvjyOJs9AnQIgEiYgDUP/akrO5d6E3g2VMYh8Y4PkckIUgRL++qo/6w4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/linkstate.js","_from":".","babel":{"presets":["es2015","stage-0"]},"files":["src","dist","polyfill.js"],"module":"dist/linkstate.es.js","_shasum":"ea0e6920c54711f12a75c76d0e0a76a8cf3bf27c","amdName":"linkState","authors":["Jason Miller <jason@developit.ca>"],"gitHead":"e81034a8264b7d1e4581fcfddd02f71d25a271a6","scripts":{"size":"echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size)\"","test":"eslint src test && mocha -r jsdom-global/register --compilers js:babel-register test/**/*.js","build":"npm-run-all --silent clean -p transpile:* -s size","clean":"rimraf dist && mkdirp dist","release":"npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","minify:cjs":"uglifyjs $npm_package_main -cm toplevel -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map","minify:umd":"uglifyjs $npm_package_umd_main -cm -o $npm_package_umd_main -p relative --in-source-map ${npm_package_umd_main}.map --source-map ${npm_package_umd_main}.map","prepublish":"npm run -s build","transpile:es":"rollup -c --environment FORMAT:es","transpile:cjs":"rollup -c --environment FORMAT:cjs","transpile:umd":"rollup -c --environment FORMAT:umd","transpile:polyfill":"rollup -c --environment FORMAT:cjs src/polyfill.js -o polyfill.js","transpile:polyfill-umd":"rollup -c --environment FORMAT:umd src/polyfill.js -o dist/polyfill.umd.js"},"_npmUser":{"name":"developit","email":"jason@developit.ca"},"umd:main":"dist/linkstate.umd.js","repository":{"url":"git+https://github.com/developit/linkstate.git","type":"git"},"_npmVersion":"3.10.10","description":"Bind events to state. Works with Preact and React.","directories":{},"jsnext:main":"dist/linkstate.es.js","_nodeVersion":"6.9.4","eslintConfig":{"env":{"es6":true,"node":true,"mocha":true,"browser":true},"parser":"babel-eslint","extends":"eslint:recommended","globals":{"expect":true}},"devDependencies":{"dlv":"^1.1.0","chai":"^3.5.0","jsdom":"^9.12.0","mocha":"^3.2.0","sinon":"^1.17.4","eslint":"^3.13.1","mkdirp":"^0.5.1","rimraf":"^2.5.2","rollup":"^0.41.4","cross-env":"^3.1.4","uglify-js":"^2.6.2","babel-core":"^6.9.1","sinon-chai":"^2.8.0","npm-run-all":"^2.1.1","babel-eslint":"^7.1.1","jsdom-global":"^2.1.1","gzip-size-cli":"^1.0.0","babel-register":"^6.9.0","babel-preset-es2015":"^6.9.0","rollup-plugin-alias":"^1.2.1","rollup-plugin-buble":"^0.15.0","babel-preset-stage-0":"^6.5.0","rollup-plugin-uglify":"^1.0.1","strip-json-comments-cli":"^1.0.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-post-replace":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkstate-1.0.0.tgz_1491767378342_0.10775479977019131","host":"packages-12-west.internal.npmjs.com"}},"1.0.1":{"name":"linkstate","version":"1.0.1","keywords":["preact","react","state","linkstate","linked state"],"license":"MIT","_id":"linkstate@1.0.1","maintainers":[{"name":"developit","email":"jason@developit.ca"}],"homepage":"https://github.com/developit/linkstate","bugs":{"url":"https://github.com/developit/linkstate/issues"},"dist":{"shasum":"540251e313dc477a3c9fa90b99f51edf7da02776","tarball":"https://registry.npmjs.org/linkstate/-/linkstate-1.0.1.tgz","integrity":"sha512-gK2WmxRu/r5/M0et1VcbRzCCXypQT5PWHqDPMFb4t0pDCcZnhu0xIxY1OAflh7OQlhNg6yFPyacG3m2J//JnNg==","signatures":[{"sig":"MEYCIQChwoUu6j2HOhOevuI6D9D/jIHxcL4ezyIvBPv/O5qYNQIhAJ7IKFU8Gu0PUz8VPQI9VmhAJF2PUE6aS5h6uUaMIcNq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/linkstate.js","_from":".","babel":{"presets":["es2015","stage-0"]},"files":["src","dist","polyfill.js","polyfill.js.map"],"module":"dist/linkstate.es.js","_shasum":"540251e313dc477a3c9fa90b99f51edf7da02776","amdName":"linkState","authors":["Jason Miller <jason@developit.ca>"],"gitHead":"e505af7d2646758fe97d55927189ee9740328abe","scripts":{"size":"echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size)\"","test":"eslint src test && mocha -r jsdom-global/register --compilers js:babel-register test/**/*.js","build":"npm-run-all --silent clean -p transpile:* -s size","clean":"rimraf dist && mkdirp dist","release":"npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push --follow-tags && npm publish","minify:cjs":"uglifyjs $npm_package_main -cm toplevel -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map","minify:umd":"uglifyjs $npm_package_umd_main -cm -o $npm_package_umd_main -p relative --in-source-map ${npm_package_umd_main}.map --source-map ${npm_package_umd_main}.map","prepublish":"npm run -s build","transpile:es":"rollup -c --environment FORMAT:es","transpile:cjs":"rollup -c --environment FORMAT:cjs","transpile:umd":"rollup -c --environment FORMAT:umd","transpile:polyfill":"rollup -c --environment FORMAT:cjs src/polyfill.js -o polyfill.js","transpile:polyfill-umd":"rollup -c --environment FORMAT:umd src/polyfill.js -o dist/polyfill.umd.js"},"_npmUser":{"name":"developit","email":"jason@developit.ca"},"umd:main":"dist/linkstate.umd.js","repository":{"url":"git+https://github.com/developit/linkstate.git","type":"git"},"_npmVersion":"3.10.10","description":"Bind events to state. Works with Preact and React.","directories":{},"jsnext:main":"dist/linkstate.es.js","_nodeVersion":"6.9.4","eslintConfig":{"env":{"es6":true,"node":true,"mocha":true,"browser":true},"parser":"babel-eslint","extends":"eslint:recommended","globals":{"expect":true}},"devDependencies":{"dlv":"^1.1.0","chai":"^3.5.0","jsdom":"^9.12.0","mocha":"^3.2.0","sinon":"^1.17.4","eslint":"^3.13.1","mkdirp":"^0.5.1","rimraf":"^2.5.2","rollup":"^0.41.4","cross-env":"^3.1.4","uglify-js":"^2.6.2","babel-core":"^6.9.1","sinon-chai":"^2.8.0","npm-run-all":"^2.1.1","babel-eslint":"^7.1.1","jsdom-global":"^2.1.1","gzip-size-cli":"^1.0.0","babel-register":"^6.9.0","babel-preset-es2015":"^6.9.0","rollup-plugin-alias":"^1.2.1","rollup-plugin-buble":"^0.15.0","babel-preset-stage-0":"^6.5.0","rollup-plugin-uglify":"^1.0.1","strip-json-comments-cli":"^1.0.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-post-replace":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkstate-1.0.1.tgz_1492615772187_0.6691687612328678","host":"packages-12-west.internal.npmjs.com"}},"1.1.0":{"name":"linkstate","version":"1.1.0","keywords":["preact","react","state","linkstate","linked state"],"license":"MIT","_id":"linkstate@1.1.0","maintainers":[{"name":"developit","email":"jason@developit.ca"}],"homepage":"https://github.com/developit/linkstate","bugs":{"url":"https://github.com/developit/linkstate/issues"},"dist":{"shasum":"c84643731c7fcbf2efdee70d23c04e145f84a5a3","tarball":"https://registry.npmjs.org/linkstate/-/linkstate-1.1.0.tgz","integrity":"sha512-SdBdgeEMuD+aoF+31+6mtIyt9/SVfiY8G2mHQiVg5RwmIkL5VDAy0pmAdpi/R8wJmcbS+C8P4niXwKu5iNhTng==","signatures":[{"sig":"MEQCIDV+eX9ysZKVIEj+mt/7NvDQ4sHxuu9SIZI7YOvdNb7GAiAVWljrOX3MTAZepaURd1Oc+Lcp0q35vSvIqpOypfhAVA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/linkstate.js","babel":{"presets":["es2015","stage-0"]},"files":["src","dist","polyfill.js","polyfill.js.map"],"module":"dist/linkstate.es.js","amdName":"linkState","authors":["Jason Miller <jason@developit.ca>"],"gitHead":"cd945afcf8cf171949216bce5cac4390a574c882","scripts":{"size":"echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size)\"","test":"eslint src test && mocha -r jsdom-global/register --compilers js:babel-register test/**/*.js","build":"npm-run-all --silent clean -p transpile:* -s size","clean":"rimraf dist && mkdirp dist","release":"npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push --follow-tags && npm publish","minify:cjs":"uglifyjs $npm_package_main -cm toplevel -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map","minify:umd":"uglifyjs $npm_package_umd_main -cm -o $npm_package_umd_main -p relative --in-source-map ${npm_package_umd_main}.map --source-map ${npm_package_umd_main}.map","prepublish":"npm run -s build","transpile:es":"rollup -c --environment FORMAT:es","transpile:cjs":"rollup -c --environment FORMAT:cjs","transpile:umd":"rollup -c --environment FORMAT:umd","transpile:polyfill":"rollup -c --environment FORMAT:cjs src/polyfill.js -o polyfill.js","transpile:polyfill-umd":"rollup -c --environment FORMAT:umd src/polyfill.js -o dist/polyfill.umd.js"},"typings":"src/index.d.ts","_npmUser":{"name":"developit","email":"jason@developit.ca"},"umd:main":"dist/linkstate.umd.js","repository":{"url":"git+https://github.com/developit/linkstate.git","type":"git"},"_npmVersion":"5.3.0","description":"Bind events to state. Works with Preact and React.","directories":{},"jsnext:main":"dist/linkstate.es.js","_nodeVersion":"8.4.0","eslintConfig":{"env":{"es6":true,"node":true,"mocha":true,"browser":true},"parser":"babel-eslint","extends":"eslint:recommended","globals":{"expect":true}},"devDependencies":{"dlv":"^1.1.0","chai":"^3.5.0","jsdom":"^9.12.0","mocha":"^3.2.0","sinon":"^1.17.4","eslint":"^3.13.1","mkdirp":"^0.5.1","rimraf":"^2.5.2","rollup":"^0.41.4","cross-env":"^3.1.4","uglify-js":"^2.6.2","babel-core":"^6.9.1","sinon-chai":"^2.8.0","npm-run-all":"^2.1.1","babel-eslint":"^7.1.1","jsdom-global":"^2.1.1","gzip-size-cli":"^1.0.0","babel-register":"^6.9.0","babel-preset-es2015":"^6.9.0","rollup-plugin-alias":"^1.2.1","rollup-plugin-buble":"^0.15.0","babel-preset-stage-0":"^6.5.0","rollup-plugin-uglify":"^1.0.1","strip-json-comments-cli":"^1.0.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-post-replace":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkstate-1.1.0.tgz_1504390569829_0.805050648516044","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"linkstate","version":"1.1.1","keywords":["preact","react","state","linkstate","linked state"],"license":"MIT","_id":"linkstate@1.1.1","maintainers":[{"name":"developit","email":"jason@developit.ca"}],"homepage":"https://github.com/developit/linkstate","bugs":{"url":"https://github.com/developit/linkstate/issues"},"dist":{"shasum":"cb9c29189baa7552295898f78f82b4055d6be108","tarball":"https://registry.npmjs.org/linkstate/-/linkstate-1.1.1.tgz","integrity":"sha512-5SICdxQG9FpWk44wSEoM2WOCUNuYfClp10t51XAIV5E7vUILF/dTYxf0vJw6bW2dUd2wcQon+LkNtRijpNLrig==","signatures":[{"sig":"MEYCIQDWNd7a+CP0oyj4g5Fe18sufZDFJlokMIUO97X7KTDKCgIhAK267oZmslUsx0Id8MaEmEnLYtgWs7snvWdk7V2WyUYB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/linkstate.js","babel":{"presets":["es2015","stage-0"]},"files":["src","dist","polyfill.js","polyfill.js.map"],"module":"dist/linkstate.es.js","amdName":"linkState","authors":["Jason Miller <jason@developit.ca>"],"gitHead":"3fbc80f26f9da96833ffb9a75f905912413a991b","scripts":{"size":"echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size)\"","test":"eslint src test && mocha -r jsdom-global/register --compilers js:babel-register test/**/*.js","build":"npm-run-all --silent clean -p transpile:* -s size","clean":"rimraf dist && mkdirp dist","release":"npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push --follow-tags && npm publish","minify:cjs":"uglifyjs $npm_package_main -cm toplevel -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map","minify:umd":"uglifyjs $npm_package_umd_main -cm -o $npm_package_umd_main -p relative --in-source-map ${npm_package_umd_main}.map --source-map ${npm_package_umd_main}.map","prepublish":"npm run -s build","transpile:es":"rollup -c --environment FORMAT:es","transpile:cjs":"rollup -c --environment FORMAT:cjs","transpile:umd":"rollup -c --environment FORMAT:umd","transpile:polyfill":"rollup -c --environment FORMAT:cjs src/polyfill.js -o polyfill.js","transpile:polyfill-umd":"rollup -c --environment FORMAT:umd src/polyfill.js -o dist/polyfill.umd.js"},"typings":"src/index.d.ts","_npmUser":{"name":"developit","email":"jason@developit.ca"},"umd:main":"dist/linkstate.umd.js","repository":{"url":"git+https://github.com/developit/linkstate.git","type":"git"},"_npmVersion":"5.6.0","description":"Bind events to state. Works with Preact and React.","directories":{},"jsnext:main":"dist/linkstate.es.js","_nodeVersion":"8.9.2","eslintConfig":{"env":{"es6":true,"node":true,"mocha":true,"browser":true},"parser":"babel-eslint","extends":"eslint:recommended","globals":{"expect":true}},"devDependencies":{"dlv":"^1.1.0","chai":"^3.5.0","jsdom":"^9.12.0","mocha":"^3.2.0","sinon":"^1.17.4","eslint":"^3.13.1","mkdirp":"^0.5.1","rimraf":"^2.5.2","rollup":"^0.41.4","cross-env":"^3.1.4","uglify-js":"^2.6.2","babel-core":"^6.9.1","sinon-chai":"^2.8.0","npm-run-all":"^2.1.1","babel-eslint":"^7.1.1","jsdom-global":"^2.1.1","gzip-size-cli":"^1.0.0","babel-register":"^6.9.0","babel-preset-es2015":"^6.9.0","rollup-plugin-alias":"^1.2.1","rollup-plugin-buble":"^0.15.0","babel-preset-stage-0":"^6.5.0","rollup-plugin-uglify":"^1.0.1","strip-json-comments-cli":"^1.0.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-post-replace":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linkstate-1.1.1.tgz_1517267695932_0.40468255640007555","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"linkstate","version":"2.0.0","keywords":["preact","react","state","linkstate","linked state"],"license":"MIT","_id":"linkstate@2.0.0","maintainers":[{"name":"jdecroock","email":"decroockjovi@gmail.com"},{"name":"solarliner","email":"solarliner@gmail.com"},{"name":"marvinhagemeister","email":"marvin@marvinhagemeister.de"},{"name":"harmony","email":"npm.leah@hrmny.sh"},{"name":"prateekbh","email":"prateek89born@gmail.com"},{"name":"reznord","email":"allamsetty.anup@gmail.com"},{"name":"preactjs","email":"hello@preactjs.com"},{"name":"developit","email":"jason@developit.ca"},{"name":"lukeed","email":"luke@lukeed.com"}],"homepage":"https://github.com/developit/linkstate","bugs":{"url":"https://github.com/developit/linkstate/issues"},"dist":{"shasum":"7f4d1e4c0d529f691845186eff2745daee9f36a2","tarball":"https://registry.npmjs.org/linkstate/-/linkstate-2.0.0.tgz","fileCount":33,"integrity":"sha512-ti9WqRjpLqUd8wv4vUDjeqMeAObSieeEJA7QHpUKTDr75gkuWTsgm4+Tngg/3uTogSz68hJ/c+676rLfSgqHUg==","signatures":[{"sig":"MEUCIFJP98hCw9rb2FwR24OODY2qayxZ3PiCjqCryHVwlh4YAiEA5fFEHEwo80gqDrIHcFT0eaPY+h6OG+8QQ1c08cP6QxM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrBP4CRA9TVsSAnZWagAAXLYP/15nZx+A7xaAxxAwMVbN\nqxhKov2EKXwbE10CT5TVhoz5RIjLXq0+F9eCrgVR3qUMXqSRuCVai+/fiO+n\nqZbizD/louprJGbSjcTeUJKuLuODR4+hHEsu26GtEEHW8tsNO5WScUTsRyI5\n8h3SoHxMnW8TBR7+/+GPyeqnWNCqn2jnulxpJFvvLG1TX4+S0HUXlO7YN0dK\no49+7cLO1uV8AUuVQtdIyydNC9agW8AyfUubZM2DqRRLWbsMnQlJPwh6tFRi\nmSbropFNaxxlpCratbcvV3z8jY2XPpLJgKoWhiUwis7K94QoxxqdFHo4vwIV\nB8hga+1e3W4crcKx9zyMM6i/+jjDxhTmD4I7cODRV27pFsFOWh4yK352SApB\n1cNPkthj7E+/hkFqcnWxazyjpUPNPPLhNeEHyAZnTYM+Yy4WAjiwiWI1DPfx\ntuwFhLKfh6PKP5TyRpGTLSyE4C4xZlkZ0Qs8dEAR9eIj+8Dpa3/xS8HCX/lb\nzGJ5z/15yZl2K201yGTHox/gMQtIHAJq+/hhPNNuuaJFuewZOaHuzQS+KRK6\nOJpipO3xMqKlEMgEo8FI0UB6+7VzXc3ySp4WGt2WhXBFQaMvMTAG2vry16VF\neoR7HO1+xkb3lkWqE7+pPRzqBz+W1xNvtae3ur+YJ4cIg77uJ0slzl4D/Asw\nyX55\r\n=GVqo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/linkstate.js","unpkg":"./dist/linkstate.umd.js","module":"./dist/linkstate.module.js","amdName":"linkState","authors":["Jason Miller <jason@developit.ca>"],"exports":{".":"./dist/linkstate.module.js","./":"./","./hook":"./dist/hook.module.js","./polyfill":"./dist/polyfill.module.js"},"gitHead":"ee93de7dda33b50a5bd5c38d37d3c3de66155464","scripts":{"test":"eslint src test && mocha -r jsdom-global/register -r esm test/**/*.js","build":"microbundle -f es,cjs,umd && (cd hook && microbundle -f es,cjs,umd) && (cd polyfill && microbundle -f es,cjs,umd)","release":"npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","prepublish":"npm run -s build"},"typings":"src/index.d.ts","_npmUser":{"name":"developit","email":"jason@developit.ca"},"umd:main":"./dist/linkstate.umd.js","repository":{"url":"git+https://github.com/developit/linkstate.git","type":"git"},"_npmVersion":"6.14.8","description":"Bind events to state. Works with Preact and React.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"esm":"^3.2.25"},"eslintConfig":{"rules":{"jest/valid-expect":0},"extends":"developit"},"_hasShrinkwrap":false,"devDependencies":{"dlv":"^1.1.0","chai":"^4.2.0","jsdom":"^16.4.0","mocha":"^8.2.1","sinon":"^9.2.1","eslint":"^7.13.0","sinon-chai":"^3.5.0","microbundle":"^0.12.4","jsdom-global":"^3.0.2","eslint-config-developit":"^1.2.0"},"peerDependencies":{"preact":"*"},"_npmOperationalInternal":{"tmp":"tmp/linkstate_2.0.0_1605112823917_0.5047980822488958","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"linkstate","version":"2.0.1","keywords":["preact","react","state","linkstate","linked state"],"license":"MIT","_id":"linkstate@2.0.1","maintainers":[{"name":"reznord","email":"allamsetty.anup@gmail.com"},{"name":"preactjs","email":"hello@preactjs.com"},{"name":"developit","email":"jason@developit.ca"},{"name":"lukeed","email":"luke@lukeed.com"},{"name":"prateekbh","email":"prateek89born@gmail.com"},{"name":"harmony","email":"npm.leah@hrmny.sh"},{"name":"marvinhagemeister","email":"marvin@marvinhagemeister.de"},{"name":"solarliner","email":"solarliner@gmail.com"},{"name":"jdecroock","email":"decroockjovi@gmail.com"}],"homepage":"https://github.com/developit/linkstate","bugs":{"url":"https://github.com/developit/linkstate/issues"},"dist":{"shasum":"3b754c370944a0dcd5d5aa6f8a9048c937d5405b","tarball":"https://registry.npmjs.org/linkstate/-/linkstate-2.0.1.tgz","fileCount":33,"integrity":"sha512-UN/xxOgThPGjTPLBSizZ17We3+4BFM2uD1xgTlyF5AzcvKxwn8OoDZbKa6FJ/ydSpOwON4UeSQKTZi+88ortFg==","signatures":[{"sig":"MEUCIDwhid8CvdH/7HIggg23eyucqQ0B1lstmrTbLbA6DD9YAiEA9Tgql2K0qBgZYyCRo37TDNX7RtlCtMaOK7svMircm9g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf94M8CRA9TVsSAnZWagAALiEP/jVyIUb8ZEyisv1H60yb\n1zSz3GEgqSCCzsbEVJFi+e0GDH1yNsiq1gOZzuXb/gMVQ9eeSvGxZUGiAkRC\nXzS8zecih62RQyA20e2Bgam7OvwUYazTs2++0p9BdRsBRgzr1hb5ArXLL5mO\ntII9E7Ee3mGbgpUZgBJyDb/bnxxn2nDYBbA2n3YMvBG9PyFSl94GfsZLZMcr\ncy/StCUeevuj7H40XNaOF2yno70ZywIj1Uj5pdfvrE5Ff8xWMRVz85iknO9c\nxdrBcKjyGsJgoI1FyvGs4I6YK2cKfLWccmAMVjtAGkRLFVuuis48vMTwK4Av\nwwAIbPL5ZdOy4+Jxs4+TH0aknqnFnRrpqBbmVEXfSjDIZNkgZR3olAlXSgyX\ndSuvxZM0FM3KXrx8xMR1eRzv20oMcWwyK15JZxbyTTwae6l15HoMKnc912fZ\nkdt3/BbFOjo06TCB61PbziNnwOre/nytQ7wlS/OUabupTFYf1GvUryDqknT6\nhBsqKc06P9jsLbJuy2+IgTqVvlsMT5Dilm3UxgJM3Q80QZYvURzCzFufOAAQ\nppQI+MKxfaV8HcuY0vK+9DOcETcbxBKEr51D7jDlfOL17xPGKbHhfjcDCuaC\nBm+Hk9aTPQBeM+HVoFtlm7V0FhrHsZAmyU2kc6nbMUXJhF9/TQr7ExL2Mp1x\njV2f\r\n=LxVE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/linkstate.js","unpkg":"./dist/linkstate.umd.js","module":"./dist/linkstate.module.js","amdName":"linkState","authors":["Jason Miller <jason@developit.ca>"],"exports":{".":"./dist/linkstate.module.js","./":"./","./hook":"./hook/dist/hook.module.js","./polyfill":"./dist/polyfill.module.js"},"gitHead":"f744563a7f7eaf5e9c3126403492474cbdb68027","scripts":{"test":"eslint src test && mocha -r jsdom-global/register -r esm test/**/*.js","build":"microbundle -f es,cjs,umd && (cd hook && microbundle -f es,cjs,umd) && (cd polyfill && microbundle -f es,cjs,umd)","release":"npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","prepublish":"npm run -s build"},"typings":"src/index.d.ts","_npmUser":{"name":"developit","email":"jason@developit.ca"},"umd:main":"./dist/linkstate.umd.js","repository":{"url":"git+https://github.com/developit/linkstate.git","type":"git"},"_npmVersion":"6.14.8","description":"Bind events to state. Works with Preact and React.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"esm":"^3.2.25"},"eslintConfig":{"rules":{"jest/valid-expect":0},"extends":"developit"},"_hasShrinkwrap":false,"devDependencies":{"dlv":"^1.1.0","chai":"^4.2.0","jsdom":"^16.4.0","mocha":"^8.2.1","sinon":"^9.2.1","eslint":"^7.13.0","sinon-chai":"^3.5.0","microbundle":"^0.12.4","jsdom-global":"^3.0.2","eslint-config-developit":"^1.2.0"},"peerDependencies":{"preact":"*"},"_npmOperationalInternal":{"tmp":"tmp/linkstate_2.0.1_1610056507661_0.268340906567041","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-11-19T20:03:07.993Z","modified":"2024-12-18T13:09:22.610Z","0.1.0":"2016-11-19T20:03:07.993Z","1.0.0":"2017-04-09T19:49:38.591Z","1.0.1":"2017-04-19T15:29:32.467Z","1.1.0":"2017-09-02T22:16:09.920Z","1.1.1":"2018-01-29T23:14:56.007Z","2.0.0":"2020-11-11T16:40:24.059Z","2.0.1":"2021-01-07T21:55:07.764Z"},"bugs":{"url":"https://github.com/developit/linkstate/issues"},"license":"MIT","homepage":"https://github.com/developit/linkstate","keywords":["preact","react","state","linkstate","linked state"],"repository":{"url":"git+https://github.com/developit/linkstate.git","type":"git"},"description":"Bind events to state. Works with Preact and React.","maintainers":[{"email":"hello@preactjs.com","name":"preactjs"},{"email":"jason@developit.ca","name":"developit"},{"email":"hello@marvinh.dev","name":"marvinhagemeister"},{"email":"drewigg@gmail.com","name":"drewigg"},{"email":"decroockjovi@gmail.com","name":"jdecroock"},{"email":"rchristian@ryanchristian.dev","name":"rschristian"}],"readme":"# linkState\n\n> Create an Event handler function that sets a given state property. Works with [preact] and [react].\n\n-   **Tiny:** ~**300 bytes** of [ES3](https://unpkg.com/linkstate) gzipped\n-   **Familiar:** it's just a function that does what you would have done manually\n-   **Standalone:** one function, no dependencies, works everywhere\n\n> 🤔 **Why?**\n>\n> linkState() is memoized: it only creates a handler once for each `(key, eventPath)` combination.\n>\n> This is important for performance, because it prevents handler thrashing and avoids allocations during render.\n\n* * *\n\n## Table of Contents\n\n-   [Installation](#installation)\n-   [How It Works](#how-it-works)\n-   [Usage](#usage)\n-   [Contribute](#contribute)\n-   [License](#license)\n\n* * *\n\n## Installation\n\n```sh\nnpm install --save linkstate\n```\n\nThe [UMD](https://github.com/umdjs/umd) build is also available on [unpkg](https://unpkg.com/linkstate/dist/linkstate.umd.js):\n\n```html\n<script src=\"//unpkg.com/linkstate/dist/linkstate.umd.js\"></script>\n```\n\nThis exposes the `linkState()` function as a global.\n\n* * *\n\n## How It Works\n\nIt's important to understand what linkState does in order to use it comfortably.\n\n**`linkState(component, statePath, [valuePath])`**\n\n- `component`: the Component instance to call `setState()` on\n- `statePath`: a key/path to update in state - can be dot-notated for deep keys\n- `valuePath`: _optional_ key/path into the event object at which to retrieve the new state value\n\nIt's easiest to understand these arguments by looking at a simplified implementation of linkState itself:\n\n```js\nfunction linkState(component, statePath, valuePath) {\n  return event => {\n    let update = {};\n    update[statePath] = event[valuePath];\n    component.setState(update);\n  };\n}\n```\n\nIn reality, accounting for dot-notated paths makes this trickier, but the result is the same.\n\nHere's two equivalent event handlers, one created manually and one created with linkState:\n\n```js\nhandleInput = e => {\n  this.setState({ foo: e.target.value })\n}\n\nhandleInput = linkState(this, 'foo')\n```\n\nNotice how we didn't specify the event path - if omitted, `linkState()` will use the `checked` or `value` property of the event target, based on its type.\n\n## Usage\n\nStandard usage is a function that returns an event handler to update state:\n\n```js\nimport linkState from 'linkstate';\n\nclass Foo extends Component {\n  state = {\n    text: ''\n  };\n  render(props, state) {\n    return (\n      <input\n        value={state.text}\n        onInput={linkState(this, 'text')}\n      />\n    );\n  }\n}\n```\n\nYou can also use it as a [**polyfill**](https://ponyfill.com/#polyfill). This emulates the behavior of Preact 7.x, which provided `linkState()` as a method on its `Component` class. Since you're then calling `linkState()` as a method of the component instance, you won't have to pass in `component` as an argument:\n\n```js\nimport 'linkstate/polyfill';\n\n// Component.prototype.linkState is now installed!\n\nclass Foo extends Component {\n  state = {\n    text: ''\n  };\n  render(props, state) {\n    return (\n      <input\n        value={state.text}\n        onInput={this.linkState('text')}\n      />\n    );\n  }\n}\n```\n\n\n* * *\n\n## Contribute\n\nFirst off, thanks for taking the time to contribute!\nNow, take a moment to be sure your contributions make sense to everyone else.\n\n### Reporting Issues\n\nFound a problem? Want a new feature? First of all see if your issue or idea has [already been reported](../../issues).\nIf it hasn't, just open a [new clear and descriptive issue](../../issues/new).\n\n### Submitting pull requests\n\nPull requests are the greatest contributions, so be sure they are focused in scope, and do avoid unrelated commits.\n\n> 💁 **Remember: size is the #1 priority.**\n>\n> Every byte counts! PR's can't be merged if they increase the output size much.\n\n-   Fork it!\n-   Clone your fork: `git clone https://github.com/<your-username>/linkstate`\n-   Navigate to the newly cloned directory: `cd linkstate`\n-   Create a new branch for the new feature: `git checkout -b my-new-feature`\n-   Install the tools necessary for development: `npm install`\n-   Make your changes.\n-   `npm run build` to verify your change doesn't increase output size.\n-   `npm test` to make sure your change doesn't break anything.\n-   Commit your changes: `git commit -am 'Add some feature'`\n-   Push to the branch: `git push origin my-new-feature`\n-   Submit a pull request with full remarks documenting your changes.\n\n## License\n\n[MIT License](LICENSE.md) © [Jason Miller](https://jasonformat.com/)\n\n\n[preact]: https://github.com/developit/preact\n[react]: https://github.com/facebook/react\n","readmeFilename":"README.md"}