{"_id":"react-wonka","_rev":"310509","name":"react-wonka","description":"Several hooks for using Wonka streams with React","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"philpl","email":""}],"time":{"modified":"2021-06-03T19:46:22.000Z","created":"2019-10-10T02:38:33.744Z","2.0.1":"2020-01-13T18:31:09.668Z","2.0.0":"2020-01-10T13:39:53.000Z","1.0.3":"2019-11-05T18:04:34.673Z","1.0.2":"2019-10-12T19:41:58.152Z","1.0.1":"2019-10-10T03:53:39.644Z","1.0.0":"2019-10-10T02:38:33.744Z"},"users":{},"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"repository":{"type":"git","url":"https://www.github.com/kitten/react-wonka"},"versions":{"2.0.1":{"name":"react-wonka","version":"2.0.1","description":"Several hooks for using Wonka streams with React","repository":{"type":"git","url":"https://www.github.com/kitten/react-wonka"},"bugs":{"url":"https://github.com/kitten/react-wonka/issues"},"main":"dist/react-wonka.js","module":"dist/react-wonka.es.js","types":"dist/types/index.d.ts","source":"src/index.ts","sideEffects":false,"scripts":{"clean":"rimraf ./dist ./node_modules/.cache","build":"rollup -c rollup.config.js","watch":"rollup -w -c rollup.config.js","check":"tsc --noEmit","test":"jest","coverage":"jest --coverage","prepublishOnly":"run-s clean test build","codecov":"codecov"},"keywords":["wonka","observable","iterable","stream","react","hooks"],"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","peerDependencies":{"react":">= 16.8.0","scheduler":">= 0.16.0","wonka":">= 4.0.0"},"devDependencies":{"@babel/core":"^7.7.7","@babel/plugin-transform-object-assign":"^7.7.4","@testing-library/react-hooks":"^3.2.1","@types/jest":"^24.0.25","@types/react":"^16.9.17","@types/scheduler":"^0.16.1","babel-plugin-closure-elimination":"^1.3.0","codecov":"^3.6.1","husky":"^4.0.6","jest":"^24.9.0","lint-staged":"^9.5.0","npm-run-all":"^4.1.5","prettier":"^1.19.1","react":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^3.0.0","rollup":"^1.29.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-buble":"^0.19.8","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-terser":"^5.1.3","rollup-plugin-typescript2":"^0.25.3","scheduler":"^0.18.0","terser":"^4.6.2","ts-jest":"^24.3.0","typescript":"^3.7.4","wonka":"^4.0.7"},"prettier":{"singleQuote":true,"trailingComma":"es5"},"lint-staged":{"*.{json,md}":["prettier --write","git add"],"*.{ts,tsx}":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(src/.*(\\.|/)(test|spec))\\.tsx?$","moduleFileExtensions":["js","jsx","ts","tsx","json"],"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}"]},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Plückthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-wonka@2.0.1","dist":{"shasum":"75bdf03dbad8ceb8c1066216f635f05ce2b642a5","size":4609,"noattachment":false,"key":"/react-wonka/-/react-wonka-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-wonka/download/react-wonka-2.0.1.tgz"},"maintainers":[{"name":"philpl","email":""}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-wonka_2.0.1_1578940269546_0.39021080508584327"},"_hasShrinkwrap":false,"publish_time":1578940269668,"_cnpm_publish_time":1578940269668},"2.0.0":{"name":"react-wonka","version":"2.0.0","description":"Several hooks for using Wonka streams with React","repository":{"type":"git","url":"https://www.github.com/kitten/react-wonka"},"bugs":{"url":"https://github.com/kitten/react-wonka/issues"},"main":"dist/react-wonka.js","module":"dist/react-wonka.es.js","types":"dist/types/index.d.ts","source":"src/index.ts","sideEffects":false,"scripts":{"clean":"rimraf ./dist ./node_modules/.cache","build":"rollup -c rollup.config.js","watch":"rollup -w -c rollup.config.js","check":"tsc --noEmit","test":"jest","coverage":"jest --coverage","prepublishOnly":"run-s clean test build","codecov":"codecov"},"keywords":["wonka","observable","iterable","stream","react","hooks"],"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","peerDependencies":{"react":">= 16.8.0","scheduler":">= 0.16.0","wonka":">= 4.0.0"},"devDependencies":{"@babel/core":"^7.7.7","@babel/plugin-transform-object-assign":"^7.7.4","@testing-library/react-hooks":"^3.2.1","@types/jest":"^24.0.25","@types/react":"^16.9.17","@types/scheduler":"^0.16.1","babel-plugin-closure-elimination":"^1.3.0","codecov":"^3.6.1","husky":"^4.0.6","jest":"^24.9.0","lint-staged":"^9.5.0","npm-run-all":"^4.1.5","prettier":"^1.19.1","react":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^3.0.0","rollup":"^1.29.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-buble":"^0.19.8","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-terser":"^5.1.3","rollup-plugin-typescript2":"^0.25.3","scheduler":"^0.18.0","terser":"^4.6.2","ts-jest":"^24.3.0","typescript":"^3.7.4","wonka":"^4.0.3"},"prettier":{"singleQuote":true,"trailingComma":"es5"},"lint-staged":{"*.{json,md}":["prettier --write","git add"],"*.{ts,tsx}":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(src/.*(\\.|/)(test|spec))\\.tsx?$","moduleFileExtensions":["js","jsx","ts","tsx","json"],"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}"]},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Plückthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-wonka@2.0.0","dist":{"shasum":"d62d87c9c93ec3e603ecf1582df3615aadc5c2e9","size":4610,"noattachment":false,"key":"/react-wonka/-/react-wonka-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-wonka/download/react-wonka-2.0.0.tgz"},"maintainers":[{"name":"philpl","email":""}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-wonka_2.0.0_1578663592858_0.3169772497627723"},"_hasShrinkwrap":false,"publish_time":1578663593000,"_cnpm_publish_time":1578663593000},"1.0.3":{"name":"react-wonka","version":"1.0.3","description":"Several hooks for using Wonka streams with React","repository":{"type":"git","url":"https://www.github.com/kitten/react-wonka"},"bugs":{"url":"https://github.com/kitten/react-wonka/issues"},"main":"dist/react-wonka.js","module":"dist/react-wonka.es.js","types":"dist/types/index.d.ts","source":"src/index.ts","sideEffects":false,"scripts":{"clean":"rimraf ./dist ./node_modules/.cache","build":"rollup -c rollup.config.js","watch":"rollup -w -c rollup.config.js","check":"tsc --noEmit","test":"jest","coverage":"jest --coverage","prepublishOnly":"run-s clean test build","codecov":"codecov"},"keywords":["wonka","observable","iterable","stream","react","hooks"],"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","peerDependencies":{"react":">= 16.8.0","wonka":">= 3.0.0"},"devDependencies":{"@babel/core":"^7.6.2","@babel/plugin-transform-object-assign":"^7.2.0","@testing-library/react-hooks":"^2.0.1","@types/jest":"^24.0.18","@types/react":"^16.9.4","babel-plugin-closure-elimination":"^1.3.0","codecov":"^3.6.1","husky":"^3.0.7","jest":"^24.9.0","lint-staged":"^9.4.1","npm-run-all":"^4.1.5","prettier":"^1.18.2","react":"^16.10.1","react-test-renderer":"^16.10.1","rimraf":"^3.0.0","rollup":"^1.22.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-buble":"^0.19.8","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-terser":"^5.1.2","rollup-plugin-typescript2":"^0.24.3","terser":"^4.3.4","ts-jest":"^24.1.0","typescript":"^3.6.3","wonka":"^3.2.1"},"prettier":{"singleQuote":true,"trailingComma":"es5"},"lint-staged":{"*.{json,md}":["prettier --write","git add"],"*.{ts,tsx}":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(src/.*(\\.|/)(test|spec))\\.tsx?$","moduleFileExtensions":["js","jsx","ts","tsx","json"],"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}"]},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Plückthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-wonka@1.0.3","dist":{"shasum":"2d997403be347489e1161cb58d502ac683499847","size":4079,"noattachment":false,"key":"/react-wonka/-/react-wonka-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-wonka/download/react-wonka-1.0.3.tgz"},"maintainers":[{"name":"philpl","email":""}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-wonka_1.0.3_1572977074391_0.8263207139548918"},"_hasShrinkwrap":false,"publish_time":1572977074673,"_cnpm_publish_time":1572977074673},"1.0.2":{"name":"react-wonka","version":"1.0.2","description":"Several hooks for using Wonka streams with React","repository":{"type":"git","url":"https://www.github.com/kitten/react-wonka"},"bugs":{"url":"https://github.com/kitten/react-wonka/issues"},"main":"dist/react-wonka.js","module":"dist/react-wonka.es.js","types":"dist/types/index.d.ts","source":"src/index.ts","sideEffects":false,"scripts":{"clean":"rimraf ./dist ./node_modules/.cache","build":"rollup -c rollup.config.js","watch":"rollup -w -c rollup.config.js","check":"tsc --noEmit","test":"jest","coverage":"jest --coverage","prepublishOnly":"run-s clean test build","codecov":"codecov"},"keywords":["wonka","observable","iterable","stream","react","hooks"],"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","peerDependencies":{"react":">= 16.8.0","wonka":">= 3.0.0"},"devDependencies":{"@babel/core":"^7.6.2","@babel/plugin-transform-object-assign":"^7.2.0","@testing-library/react-hooks":"^2.0.1","@types/jest":"^24.0.18","@types/react":"^16.9.4","babel-plugin-closure-elimination":"^1.3.0","codecov":"^3.6.1","husky":"^3.0.7","jest":"^24.9.0","lint-staged":"^9.4.1","npm-run-all":"^4.1.5","prettier":"^1.18.2","react":"^16.10.1","react-test-renderer":"^16.10.1","rimraf":"^3.0.0","rollup":"^1.22.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-buble":"^0.19.8","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-terser":"^5.1.2","rollup-plugin-typescript2":"^0.24.3","terser":"^4.3.4","ts-jest":"^24.1.0","typescript":"^3.6.3","wonka":"^3.2.1"},"prettier":{"singleQuote":true,"trailingComma":"es5"},"lint-staged":{"*.{json,md}":["prettier --write","git add"],"*.{ts,tsx}":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(src/.*(\\.|/)(test|spec))\\.tsx?$","moduleFileExtensions":["js","jsx","ts","tsx","json"],"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}"]},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Plückthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-wonka@1.0.2","dist":{"shasum":"b8d5a095e5ce40548842036898a2665ea5202f69","size":4096,"noattachment":false,"key":"/react-wonka/-/react-wonka-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-wonka/download/react-wonka-1.0.2.tgz"},"maintainers":[{"name":"philpl","email":""}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-wonka_1.0.2_1570909317888_0.5325724840321266"},"_hasShrinkwrap":false,"publish_time":1570909318152,"_cnpm_publish_time":1570909318152},"1.0.1":{"name":"react-wonka","version":"1.0.1","description":"Several hooks for using Wonka streams with React","repository":{"type":"git","url":"https://www.github.com/kitten/react-wonka"},"bugs":{"url":"https://github.com/kitten/react-wonka/issues"},"main":"dist/react-wonka.js","module":"dist/react-wonka.es.js","types":"dist/types/index.d.ts","source":"src/index.ts","sideEffects":false,"scripts":{"clean":"rimraf ./dist ./node_modules/.cache","build":"rollup -c rollup.config.js","watch":"rollup -w -c rollup.config.js","check":"tsc --noEmit","test":"jest","coverage":"jest --coverage","prepublishOnly":"run-s clean test build","codecov":"codecov"},"keywords":["wonka","observable","iterable","stream","react","hooks"],"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","peerDependencies":{"react":">= 16.8.0","wonka":">= 3.0.0"},"devDependencies":{"@babel/core":"^7.6.2","@babel/plugin-transform-object-assign":"^7.2.0","@testing-library/react-hooks":"^2.0.1","@types/jest":"^24.0.18","@types/react":"^16.9.4","babel-plugin-closure-elimination":"^1.3.0","codecov":"^3.6.1","husky":"^3.0.7","jest":"^24.9.0","lint-staged":"^9.4.1","npm-run-all":"^4.1.5","prettier":"^1.18.2","react":"^16.10.1","react-test-renderer":"^16.10.1","rimraf":"^3.0.0","rollup":"^1.22.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-buble":"^0.19.8","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-terser":"^5.1.2","rollup-plugin-typescript2":"^0.24.3","terser":"^4.3.4","ts-jest":"^24.1.0","typescript":"^3.6.3","wonka":"^3.2.1"},"prettier":{"singleQuote":true,"trailingComma":"es5"},"lint-staged":{"*.{json,md}":["prettier --write","git add"],"*.{ts,tsx}":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(src/.*(\\.|/)(test|spec))\\.tsx?$","moduleFileExtensions":["js","jsx","ts","tsx","json"],"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}"]},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Plückthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-wonka@1.0.1","dist":{"shasum":"66b44aa1fb4e3e38cb2ef49f7d7195de1a322775","size":4144,"noattachment":false,"key":"/react-wonka/-/react-wonka-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-wonka/download/react-wonka-1.0.1.tgz"},"maintainers":[{"name":"philpl","email":""}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-wonka_1.0.1_1570679619404_0.8906490787988384"},"_hasShrinkwrap":false,"publish_time":1570679619644,"_cnpm_publish_time":1570679619644},"1.0.0":{"name":"react-wonka","version":"1.0.0","description":"Several hooks for using Wonka streams with React","repository":{"type":"git","url":"https://www.github.com/kitten/react-wonka"},"bugs":{"url":"https://github.com/kitten/react-wonka/issues"},"main":"dist/react-wonka.js","module":"dist/react-wonka.es.js","types":"dist/types/index.d.ts","source":"src/index.ts","sideEffects":false,"scripts":{"clean":"rimraf ./dist ./node_modules/.cache","build":"rollup -c rollup.config.js","watch":"rollup -w -c rollup.config.js","check":"tsc --noEmit","test":"jest","coverage":"jest --coverage","lint":"eslint . --ext .ts,.tsx","prepublishOnly":"run-s clean test build","codecov":"codecov"},"keywords":["wonka","observable","iterable","stream","react","hooks"],"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","peerDependencies":{"react":">= 16.8.0","wonka":">= 3.0.0"},"devDependencies":{"@babel/core":"^7.6.2","@babel/plugin-transform-object-assign":"^7.2.0","@testing-library/react-hooks":"^2.0.1","@types/jest":"^24.0.18","@types/react":"^16.9.4","babel-plugin-closure-elimination":"^1.3.0","codecov":"^3.6.1","eslint":"^6.5.1","eslint-config-prettier":"^6.3.0","husky":"^3.0.7","jest":"^24.9.0","lint-staged":"^9.4.1","npm-run-all":"^4.1.5","prettier":"^1.18.2","react":"^16.10.1","react-test-renderer":"^16.10.1","rimraf":"^3.0.0","rollup":"^1.22.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-buble":"^0.19.8","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-terser":"^5.1.2","rollup-plugin-typescript2":"^0.24.3","terser":"^4.3.4","ts-jest":"^24.1.0","typescript":"^3.6.3","wonka":"^3.2.1"},"prettier":{"singleQuote":true,"trailingComma":"es5"},"lint-staged":{"*.{json,md}":["prettier --write","git add"],"*.{ts,tsx}":["eslint --fix","prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(src/.*(\\.|/)(test|spec))\\.tsx?$","moduleFileExtensions":["js","jsx","ts","tsx","json"],"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}"]},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Plückthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-wonka@1.0.0","dist":{"shasum":"093d42f7e68c5b972052c0a7ea2e49adff1a2d09","size":4275,"noattachment":false,"key":"/react-wonka/-/react-wonka-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-wonka/download/react-wonka-1.0.0.tgz"},"maintainers":[{"name":"philpl","email":""}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-wonka_1.0.0_1570675113612_0.11108261627620131"},"_hasShrinkwrap":false,"publish_time":1570675113744,"_cnpm_publish_time":1570675113744}},"readme":"# `react-wonka`\n\nSeveral hooks to effectively use [Wonka](https://wonka.kitten.sh) streams with [React](https://reactjs.org/).\n\n<br>\n  <a href=\"https://npmjs.com/package/react-wonka\">\n    <img alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/react-wonka.svg\" />\n  </a>\n  <a href=\"https://github.com/kitten/react-wonka/actions\">\n    <img alt=\"Test Status\" src=\"https://github.com/kitten/react-wonka/workflows/CI/badge.svg\" />\n  </a>\n  <a href=\"https://codecov.io/gh/kitten/react-wonka\">\n    <img alt=\"Test Coverage\" src=\"https://codecov.io/gh/kitten/react-wonka/branch/master/graph/badge.svg\" />\n  </a>\n  <a href=\"https://bundlephobia.com/result?p=react-wonka\">\n    <img alt=\"Minified gzip size\" src=\"https://img.shields.io/bundlephobia/minzip/react-wonka.svg?label=gzip%20size\" />\n  </a>\n<br>\n\nWonka streams are an effective way to abstract streams (or rather \"sources\") of changing\nvalues. When integrating them with React it's likely that your code will mostly look\nthe same every time, since you'll be handling:\n\n- Some kind of changing prop or other input\n- Subscribing and unsubscribing\n- Safety around React Concurrent Mode\n- Cooperating with React's effects and scheduling system\n\nIt's very common to create a Wonka source using [`makeSubject`](https://wonka.kitten.sh/api/sources#makesubject)\nfrom a changing prop. Or you may also be subscribing (and unsubscribing) to a new source every time some\nkind of input or prop changes.\n\nWonka streams can additionally be synchronous or asynchronous, so integrating them correctly into\nReact's updates, while taking advantage of synchronous results is hard, and especially complicated with\nConcurrent Mode.\n\nThis library exposes two hooks to solve this problem, **useOperator** and **useOperatorValue**.\nThe latter is just a convenience alias for the first.\n\n## API\n\n### `useOperator`\n\n```js\nconst [result, update] = useOperator(makeStream, input, init);\n```\n\nThis hook is the same as `useOperatorValue`, but it returns the `result`\nand an `update` function.\n\nThe `update` function can be used to force an additional value to be sent\nto the internal stream that `makeStream` receives. It's like `useReducer`'s\ndispatch function or like a `forceUpdate` function.\n\nThis can be an effective replacement for `useReducer` that can integrate\nasynchronous side-effects or complex changes cleanly.\n\n### `useOperatorValue`\n\n```js\nconst result = useOperatorValue(makeStream, input, init);\n```\n\nReturns a stateful value that has been produced by a stream, which emits the\nchanging `input` values.\n\nThe hook accepts a `makeStream` function which is called once using an input\nWonka stream. This stream will synchronously receive `input` every time it\nchanges and on initial mount.\n\nYou can then use any [Wonka operator](https://wonka.kitten.sh/api/operators) to\ntransform this input stream and return a new stream. The values that your\nstream emits will be returned as `result`.\n\nThe `init` argument determines the initial value for `result`, in case your\nstream is asynchronous. It's important to provide some kind of value for it\nso that your stream may also emit values at a later point, while React is\nallowed to keep rendering immediately.\n\nYou can use both asynchronous or synchronous streams (or mixed ones) with\nthis hook. It will correctly return synchronous values immediately, while\ntriggering updates for asynchronous ones.\n\n```js\nimport { pipe, map, delay, merge } from 'wonka';\nimport { useOperatorValue } from 'react-wonka';\nuseOperatorValue(\n  x =>\n    merge([\n      pipe(\n        x,\n        map(x => x + 1)\n      ),\n      pipe(\n        x,\n        map(x => x + 2),\n        delay(10)\n      ),\n    ]),\n  input,\n  0\n);\n// For input = 0 this returns:\n// - `1` immediately\n// - then updates and returns `2` after 10ms\n```\n","_attachments":{},"bugs":{"url":"https://github.com/kitten/react-wonka/issues"},"license":"MIT"}