{"_id":"relay-connection-handler-plus","_rev":"3-240c5baecbd5cf10278605a9618df76d","name":"relay-connection-handler-plus","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"relay-connection-handler-plus","version":"0.1.0","description":"Relay connection handler with additional functionality","keywords":["relay","connection","handler"],"homepage":"https://github.com/relay-tools/relay-connection-handler-plus#readme","bugs":{"url":"https://github.com/relay-tools/relay-connection-handler-plus/issues"},"license":"MIT","author":{"name":"4Catalyzer"},"main":"lib/index.js","module":"es/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"https://github.com/relay-tools/relay-connection-handler-plus.git"},"scripts":{"build":"4c build src","format":"yarn lint --fix","lint":"4c lint --prettier-ignore .eslintignore .","prepublish":"yarn build","test":"yarn lint && yarn typecheck","typecheck":"tsc --noEmit"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*":"yarn 4c format"},"prettier":"@4c/prettier-config","dependencies":{"@types/relay-runtime":"^8.0.8"},"devDependencies":{"@4c/babel-preset":"^7.3.4","@4c/cli":"^2.1.7","@4c/prettier-config":"^1.1.0","@4c/tsconfig":"^0.3.1","@babel/core":"^7.9.0","@babel/preset-typescript":"^7.9.0","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","babel-plugin-add-module-exports":"^1.0.2","eslint":"^6.8.0","eslint-config-4catalyzer":"^1.1.1","eslint-config-4catalyzer-typescript":"^1.1.8","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.20.2","eslint-plugin-prettier":"^3.1.3","husky":"^4.2.5","jest":"^25.4.0","lint-staged":"^10.1.7","prettier":"^2.0.5","typescript":"^3.8.3"},"peerDependencies":{"relay-runtime":"^9.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2020 4Catalyzer\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":"relay-connection-handler-plus@0.1.0","dist":{"shasum":"2e485a0df62f251e187796954eb68ec5546c3153","integrity":"sha512-B6jxlebLWinTOukMAuFKVw3/3fuUVy5kmI/gfQaZJJBxvnpDyrO7dYoaEZ3jmsPZPNkZY5D3UVTpKZluNS/ftw==","tarball":"https://registry.npmjs.org/relay-connection-handler-plus/-/relay-connection-handler-plus-0.1.0.tgz","fileCount":10,"unpackedSize":12215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoTK/CRA9TVsSAnZWagAA6QEQAIApcWJjysAnyjPX8E7i\nxkz2fxAtqq3BP5vXKwSedwmUT8UDdwfTO4tA8BfFXzfYNwZ1C4e0+O+sW2VC\np0evUzCcJTArVXS5BHEjCAfPSDFLiWV/lVleyKPLh9nS0gKT1Qpx2h2QWaMC\nxFIJrwR8NjIZAjgAASmgCuCzJE7JJLuaUvFJpX2WEL8Ae1Q8oFeRfUnI33Et\nyEWZieQSsgSFbao2wPfyyEBDCnR00pEqxjbJoJ5Y4ogCK/ufj28v2XYzVegb\n9Dpckw45h5OIRxeElZV17u8PbhyPeAYg5b3jk2fODNvfMYV19DFJzpYvmcHh\ntoG1KRGwKMVAmu3vSRGKuqxeoSRCFo74TNPWipBArjI7HgSECayX0UZETvyW\nDjfTFVvL1SxTcY9BKw/OeM+3IObjxKzbwN4z06mtWR3Tqz0/ocwv04+/dkL8\nT8Si7ZfeJYuUg6v3KUIkzqjNSirUzvRTPrKTp4vkGMuEZ3V2/rzL7i/uNE7H\nrmgm0HnXQf8DKUx0c+jYGbYYDTSd/maUtgkFXM9SmDGlYRa0nVn/XTPZJGcj\nvfOVeBZOcaVFT/OAu4ESvaJHO5QIiCAnVxrqaytLYlO3dk6We7/KeXc0fdGD\nGScTHPLI+ocPvPvzHOnkuT2ISASNxrSYIV3U2hlmSPGLqTRYzEIviVr1Nn0R\n/RJJ\r\n=RT7K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEQzXHhnFmOr+7C6ym/wGRERjIxxJ5kyX1oqHWC6OfFwAiA0tLVXkw25I0om0l5+J1+V+3HN23D+CreEQFKdKLTMEQ=="}]},"maintainers":[{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"taion","email":"tesrin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/relay-connection-handler-plus_0.1.0_1587622590839_0.5553128738692741"},"_hasShrinkwrap":false},"0.1.1":{"name":"relay-connection-handler-plus","version":"0.1.1","description":"Relay connection handler with additional functionality","keywords":["relay","connection","handler"],"homepage":"https://github.com/relay-tools/relay-connection-handler-plus#readme","bugs":{"url":"https://github.com/relay-tools/relay-connection-handler-plus/issues"},"license":"MIT","author":{"name":"4Catalyzer"},"main":"lib/index.js","module":"es/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"https://github.com/relay-tools/relay-connection-handler-plus.git"},"scripts":{"build":"4c build src","format":"4c format --prettier-ignore .eslintignore .","lint":"4c lint --prettier-ignore .eslintignore .","prepublish":"yarn build","test":"yarn lint && yarn typecheck","typecheck":"tsc --noEmit"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*":"yarn 4c format"},"prettier":"@4c/prettier-config","dependencies":{"@types/relay-runtime":"^9.1.0"},"devDependencies":{"@4c/babel-preset":"^7.3.6","@4c/cli":"^2.1.10","@4c/prettier-config":"^1.1.0","@4c/tsconfig":"^0.3.1","@babel/preset-typescript":"^7.10.1","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","babel-plugin-add-module-exports":"^1.0.2","eslint-config-4catalyzer":"^1.1.2","eslint-config-4catalyzer-typescript":"^2.0.2","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.21.2","eslint-plugin-prettier":"^3.1.4","husky":"^4.2.5","jest":"^26.0.1","lint-staged":"^10.2.11","prettier":"^2.0.5","relay-runtime":"^9.1.0","typescript":"^3.9.5"},"peerDependencies":{"relay-runtime":"^9.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2020 4Catalyzer\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":"relay-connection-handler-plus@0.1.1","dist":{"shasum":"4149904918d1a715c3b93231a36c24c2164e7ec5","integrity":"sha512-b59+ZyHN+8ix5AnP3VFAqfNxS/YpKmNw0npcUKbzk6y/Rq70u5Gr4AMlcySvivuqEtbjUWWvWpPau0RYIrvATw==","tarball":"https://registry.npmjs.org/relay-connection-handler-plus/-/relay-connection-handler-plus-0.1.1.tgz","fileCount":10,"unpackedSize":12222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8NyECRA9TVsSAnZWagAAOh0QAKDRV8KerE6hkh3IsFNw\nRdyXWc59kF5iGWuZWljWpb4wjKaqLXhW51lHXgq+xvOTGGDmLX+ncTIyzPT/\nLXFfHCMPz+VD/YPAbc6nwQVksRlKgVstA8lUdoMT3XBp8bmPpEM0wavkTok8\nFKYLg0nFiG2i8q/b5dpHtqep9T5Mgu+y/r8+jFTM833EITjK8cjchXa6v5Pa\nX1aIBr6oL7McyJ/kLYBB6cOPcXfsXOD2q7LNJxfSOvPm0mcJilDAKS0nUzXp\njikRfBo2JZS6r5LwGM1nTDFKXQbSJ9uvkzBIB0LGeyQJQTzmYrJRt/CbQnG9\nIiYviALTh6VIahF9Bnx6q8y/MMlQLyxX+OTNrrUAdA0PneRVbj4PV/UbUXp8\nPOAos89lGn4kC+T6k7bCYo0uydtKHdIHUKYscr59kTOmvn3fPk3KVUReugfP\nA3PxI9H5n7r0HGiAXvhROEcmHXE1DH8RCt0zzVvs9sSPLG9o/5nn1PepFoaX\nMnSgc467qLHy+lTY8gIBPmKlgWpfo8ApRnVxj+iSqAx1SmtHGntRtaWL4XIn\n2fC0XroqIbZYxvnDIPNCtRdBFxiKd4XjT1v4qpvEK8gjkHoMRDKiVcDvn6Qq\nwZrkSM+m2SeioWiTz6u6RnLuiBlSg8eueadSmWmd9lvlpyQxaSDubM1IYGIU\nxIEv\r\n=mDtK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAp02V70xUPJmW34yFuIQg2Lk3acCxthdKYRBlz45f/bAiBG51v2jYkiEFjUBo4/5GUb8iWgoUxY450hKRxCW8YWFw=="}]},"maintainers":[{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"taion","email":"tesrin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/relay-connection-handler-plus_0.1.1_1592843395514_0.5344447724412775"},"_hasShrinkwrap":false},"0.1.2":{"name":"relay-connection-handler-plus","version":"0.1.2","description":"Relay connection handler with additional functionality","keywords":["relay","connection","handler"],"homepage":"https://github.com/relay-tools/relay-connection-handler-plus#readme","bugs":{"url":"https://github.com/relay-tools/relay-connection-handler-plus/issues"},"license":"MIT","author":{"name":"4Catalyzer"},"main":"lib/index.js","module":"es/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"https://github.com/relay-tools/relay-connection-handler-plus.git"},"scripts":{"build":"4c build src","format":"4c format --prettier-ignore .eslintignore .","lint":"4c lint --prettier-ignore .eslintignore .","prepublish":"yarn build","test":"yarn lint && yarn typecheck","typecheck":"tsc --noEmit"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*":"yarn 4c format"},"prettier":"@4c/prettier-config","dependencies":{"@types/relay-runtime":">=9.1.0"},"devDependencies":{"@4c/babel-preset":"^7.3.6","@4c/cli":"^2.1.11","@4c/prettier-config":"^1.1.0","@4c/tsconfig":"^0.3.1","@babel/preset-typescript":"^7.10.4","@typescript-eslint/eslint-plugin":"^3.6.0","@typescript-eslint/parser":"^3.6.0","babel-plugin-add-module-exports":"^1.0.2","eslint-config-4catalyzer":"^1.1.2","eslint-config-4catalyzer-typescript":"^2.0.2","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.22.0","eslint-plugin-prettier":"^3.1.4","husky":"^4.2.5","jest":"^26.1.0","lint-staged":"^10.2.11","prettier":"^2.0.5","relay-runtime":"^10.0.0","typescript":"^3.9.6"},"peerDependencies":{"relay-runtime":">=9.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2020 4Catalyzer\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":"relay-connection-handler-plus@0.1.2","dist":{"shasum":"7d4753900f1bc181b7b2ab0ae3c79e621aaccbaa","integrity":"sha512-uM0wyjZbh/fwGFI7+0MFrdw2fsSNWQkduH35G3EN4zw9ALZMQ7GeZrr90+vQJ+lKvP9jqzHqLO18i7SKrgowTA==","tarball":"https://registry.npmjs.org/relay-connection-handler-plus/-/relay-connection-handler-plus-0.1.2.tgz","fileCount":10,"unpackedSize":12225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDol4CRA9TVsSAnZWagAA7eUP/2khlxCssZtQG/7HdYYP\nSuOPAqjRU++1FCbCX1ePC7lc2cWt603PQSy+VLzk2ZClj1M8zkRTiNxRwF8Q\nkmGqy8Cssix4nhO61vxm+DymY3PR/W3qY8Q8W9uSyM7zLivyV7kkrGKLz7Hk\nLFCHnRmZYfaE99QIC39+NKjS+kCEeO4DtucGiVKZhSHZq5g6ygzk2/xgFXZp\niY9gW+PRcC5Ae3NilTI6ZVv16GIAsqi0wbrm0u7ti47axpuh6oDzwg6rKtPQ\nQ60wxTP8jiU8PtRuLt9ie1SYqPo9rdebL7Hf8kjX2hElrZB2N4dEPIA2nT84\nGihAGyR9ZrWoVkshDZFltCr42XLXrE8CZL2kmzEmodPhL6BUEA5ar7VtxZmk\nHf5oo+TxDXV48YB+k3faItAZ3rThPHzvDFGaKCss4cKZAcyyT03Y3WpRgMat\nDbwbyOMpwNvZw9xNTYculJsnQp/j+SoaR23vAnAxI4wx/78XLOCXzvQ3C7uw\n4UfXi1w6lfQBz0Dd+jIFqq1029W1eqPtFw/m0QlNvlxd2Bh2s1u/OpZ8nYPp\nA5bbiVLotg2ROo9lXvw7Wx2g71t1YAL6PANJIez5VWl4rrfgRQry5ru/UyCy\nrrrr7F7XGqDPSVELf1ZIx3+bEAXDU4YoU2IXXbSjJG4I+XsjCoREp8TeJW8q\n0pUy\r\n=gr8F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMtlzZuNQVd6LImyxNuS+8WKKV0x7DbUxVPhs4RedzwwIhANxjFGlRuZcPrUjrVLOgAVuWpqW7ri897F6T6y5deZ9k"}]},"maintainers":[{"name":"taion","email":"tesrin@gmail.com"}],"_npmUser":{"name":"taion","email":"tesrin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/relay-connection-handler-plus_0.1.2_1594788215835_0.45825523518440003"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-23T06:16:30.838Z","0.1.0":"2020-04-23T06:16:30.949Z","modified":"2022-05-15T17:40:15.453Z","0.1.1":"2020-06-22T16:29:55.691Z","0.1.2":"2020-07-15T04:43:35.969Z"},"maintainers":[{"name":"taion","email":"tesrin@gmail.com"}],"description":"Relay connection handler with additional functionality","homepage":"https://github.com/relay-tools/relay-connection-handler-plus#readme","keywords":["relay","connection","handler"],"repository":{"type":"git","url":"https://github.com/relay-tools/relay-connection-handler-plus.git"},"author":{"name":"4Catalyzer"},"bugs":{"url":"https://github.com/relay-tools/relay-connection-handler-plus/issues"},"license":"MIT","readme":"# Relay Connection Handler Plus! [![npm][npm-badge]][npm]\n\n[Relay](https://relay.dev/) connection handler with additional functionality.\n\n# Usage\n\n```js\nimport ConnectionHandler from 'relay-connection-handler-plus';\nimport { Environment } from 'relay-runtime';\n\nfunction handlerProvider(handle) {\n  switch (handle) {\n    case 'connection':\n      return ConnectionHandler;\n    default:\n      throw new Error(`no handler configured for ${handle}`);\n  }\n}\n\nconst environment = new Environment({\n  handlerProvider,\n  /* ... */\n});\n```\n\nRelay Connection Handler Plus! provides an enhanced connection handler that can be used in place of the default connection handler.\n\nThis connection handler exposes an additional `getConnections` method. This method allows getting all connections for a connection key, per [facebook/relay#1861](https://github.com/facebook/relay/issues/1861):\n\n```js\nconst connections = ConnectionHandler.getConnections(record, connectionKey);\n```\n\nThe `getConnections` method also allows getting a subset of connections for a given connection key that were fetched with args matching a filter function. For example, it can be used to get all connections loaded with `color: \"red\"`, regardless of the other arguments on the connection:\n\n```js\nconst connections = ConnectionHandler.getConnections(\n  record,\n  connectionKey,\n  ({ color }) => color === 'red',\n);\n```\n\n[npm-badge]: https://img.shields.io/npm/v/relay-connection-handler-plus.svg\n[npm]: https://www.npmjs.org/package/relay-connection-handler-plus\n","readmeFilename":"README.md"}