From 238ce94c6b4c0a64165cfaca7fb9d8369d956fce Mon Sep 17 00:00:00 2001 From: Charly POLY Date: Wed, 2 Nov 2022 11:05:25 +0100 Subject: [PATCH] refactor: replace `graphql-helix` by `graphql-yoga` --- .../graphql-codegen-testing/package.json | 2 +- .../src/mock-graphql-server.ts | 29 +- yarn.lock | 311 +++++++++++++----- 3 files changed, 242 insertions(+), 100 deletions(-) diff --git a/packages/utils/graphql-codegen-testing/package.json b/packages/utils/graphql-codegen-testing/package.json index ab7e41b91e5..99806517247 100644 --- a/packages/utils/graphql-codegen-testing/package.json +++ b/packages/utils/graphql-codegen-testing/package.json @@ -43,7 +43,7 @@ "@graphql-codegen/plugin-helpers": "^2.7.2", "common-tags": "^1.8.0", "lz-string": "^1.4.4", - "graphql-helix": "1.13.0", + "graphql-yoga": "three", "nock": "13.2.9", "tslib": "~2.4.0" }, diff --git a/packages/utils/graphql-codegen-testing/src/mock-graphql-server.ts b/packages/utils/graphql-codegen-testing/src/mock-graphql-server.ts index 54feed02414..0b49afd8d0e 100644 --- a/packages/utils/graphql-codegen-testing/src/mock-graphql-server.ts +++ b/packages/utils/graphql-codegen-testing/src/mock-graphql-server.ts @@ -1,6 +1,6 @@ import { GraphQLSchema } from 'graphql'; import nock from 'nock'; -import { getGraphQLParameters, processRequest as processGraphQLHelixRequest } from 'graphql-helix'; +import { createYoga } from 'graphql-yoga'; export function mockGraphQLServer({ schema, @@ -15,6 +15,8 @@ export function mockGraphQLServer({ intercept?: (obj: nock.ReplyFnContext) => void; method?: string; }) { + const yoga = createYoga({ schema }); + const handler = async function (this: nock.ReplyFnContext, uri: string, body: any) { if (intercept) { intercept(this); @@ -22,33 +24,20 @@ export function mockGraphQLServer({ const uriObj = new URL(host + uri); const queryObj: any = {}; uriObj.searchParams.forEach((val, key) => (queryObj[key] = val)); - // Create a generic Request object that can be consumed by Graphql Helix's API const request = { - body, + body: JSON.stringify(body), headers: this.req.headers, method, query: queryObj, }; - // Extract the GraphQL parameters from the request - const { operationName, query, variables } = getGraphQLParameters(request); - // Validate and execute the query - const result = await processGraphQLHelixRequest({ - operationName, - query, - variables, - request, - schema, - }); - // processRequest returns one of three types of results depending on how the server should respond - // 1) RESPONSE: a regular JSON payload - // 2) MULTIPART RESPONSE: a multipart response (when @stream or @defer directives are used) - // 3) PUSH: a stream of events to push back down the client for a subscription - if (result.type === 'RESPONSE') { + const response = await yoga.fetch('http://localhost:4000/graphql', request); + + if (response) { const headers = {}; // We set the provided status and headers and just the send the payload back to the client - result.headers.forEach(({ name, value }) => (headers[name] = value)); - return [result.status, result.payload, headers]; + response.headers.forEach(([value, name]) => (headers[name] = value)); + return [response.status, await response.json(), headers]; } return [500, 'Not implemented']; }; diff --git a/yarn.lock b/yarn.lock index 573abcf2649..e68be7da5b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1300,16 +1300,16 @@ resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-6.0.0.tgz#fe364f025ba74f6de6c837a84ef44bdb1d61e68f" integrity sha512-mgmE7XBYY/21erpzhexk4Cj1cyTQ9LzvnTxtzM17BJ7ERMNE6W72mQRo0I1Ud8eFJ+RVVIcBNhLFZ3GX4XFz5w== -"@changesets/apply-release-plan@^6.1.0": - version "6.1.0" - resolved "https://registry.yarnpkg.com/@changesets/apply-release-plan/-/apply-release-plan-6.1.0.tgz#97d755a7725bdcc1152aa54d8c7fbc85a5bf1e40" - integrity sha512-fMNBUAEc013qaA4KUVjdwgYMmKrf5Mlgf6o+f97MJVNzVnikwpWY47Lc3YR1jhC874Fonn5MkjkWK9DAZsdQ5g== +"@changesets/apply-release-plan@^6.1.0", "@changesets/apply-release-plan@^6.1.2": + version "6.1.2" + resolved "https://registry.yarnpkg.com/@changesets/apply-release-plan/-/apply-release-plan-6.1.2.tgz#cfb7da323f34e9e9173ffd9bf9f03c0b8cecc8fe" + integrity sha512-H8TV9E/WtJsDfoDVbrDGPXmkZFSv7W2KLqp4xX4MKZXshb0hsQZUNowUa8pnus9qb/5OZrFFRVsUsDCVHNW/AQ== dependencies: "@babel/runtime" "^7.10.4" - "@changesets/config" "^2.1.1" + "@changesets/config" "^2.2.0" "@changesets/get-version-range-type" "^0.3.2" - "@changesets/git" "^1.4.1" - "@changesets/types" "^5.1.0" + "@changesets/git" "^1.5.0" + "@changesets/types" "^5.2.0" "@manypkg/get-packages" "^1.1.3" detect-indent "^6.0.0" fs-extra "^7.0.1" @@ -1319,24 +1319,24 @@ resolve-from "^5.0.0" semver "^5.4.1" -"@changesets/assemble-release-plan@^5.2.1": - version "5.2.1" - resolved "https://registry.yarnpkg.com/@changesets/assemble-release-plan/-/assemble-release-plan-5.2.1.tgz#b66df8d4a5615d4d904b75f7b60faeb64eb1d506" - integrity sha512-d6ckasOWlKF9Mzs82jhl6TKSCgVvfLoUK1ERySrTg2TQJdrVUteZue6uEIYUTA7SgMu67UOSwol6R9yj1nTdjw== +"@changesets/assemble-release-plan@^5.2.1", "@changesets/assemble-release-plan@^5.2.2": + version "5.2.2" + resolved "https://registry.yarnpkg.com/@changesets/assemble-release-plan/-/assemble-release-plan-5.2.2.tgz#9824f14a7a6e411c7153f1ccc2a42bbe35688129" + integrity sha512-B1qxErQd85AeZgZFZw2bDKyOfdXHhG+X5S+W3Da2yCem8l/pRy4G/S7iOpEcMwg6lH8q2ZhgbZZwZ817D+aLuQ== dependencies: "@babel/runtime" "^7.10.4" "@changesets/errors" "^0.1.4" - "@changesets/get-dependents-graph" "^1.3.3" - "@changesets/types" "^5.1.0" + "@changesets/get-dependents-graph" "^1.3.4" + "@changesets/types" "^5.2.0" "@manypkg/get-packages" "^1.1.3" semver "^5.4.1" -"@changesets/changelog-git@^0.1.12": - version "0.1.12" - resolved "https://registry.yarnpkg.com/@changesets/changelog-git/-/changelog-git-0.1.12.tgz#5393f74ce9591c25d6a632c20184e92ae343db0d" - integrity sha512-Xv2CPjTBmwjl8l4ZyQ3xrsXZMq8WafPUpEonDpTmcb24XY8keVzt7ZSCJuDz035EiqrjmDKDhODoQ6XiHudlig== +"@changesets/changelog-git@^0.1.12", "@changesets/changelog-git@^0.1.13": + version "0.1.13" + resolved "https://registry.yarnpkg.com/@changesets/changelog-git/-/changelog-git-0.1.13.tgz#182e130add456255d8ee2b4c8eaf88048944aaaf" + integrity sha512-zvJ50Q+EUALzeawAxax6nF2WIcSsC5PwbuLeWkckS8ulWnuPYx8Fn/Sjd3rF46OzeKA8t30loYYV6TIzp4DIdg== dependencies: - "@changesets/types" "^5.1.0" + "@changesets/types" "^5.2.0" "@changesets/changelog-github@0.4.6": version "0.4.6" @@ -1386,15 +1386,54 @@ term-size "^2.1.0" tty-table "^4.1.5" -"@changesets/config@^2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@changesets/config/-/config-2.1.1.tgz#96c1fec5dcccb4f6d37b56bba64e5c4f3285cca6" - integrity sha512-nSRINMqHpdtBpNVT9Eh9HtmLhOwOTAeSbaqKM5pRmGfsvyaROTBXV84ujF9UsWNlV71YxFbxTbeZnwXSGQlyTw== +"@changesets/cli@^2.16.0": + version "2.25.2" + resolved "https://registry.yarnpkg.com/@changesets/cli/-/cli-2.25.2.tgz#fc5e894aa6f85c60749a035352dec3dcbd275c71" + integrity sha512-ACScBJXI3kRyMd2R8n8SzfttDHi4tmKSwVwXBazJOylQItSRSF4cGmej2E4FVf/eNfGy6THkL9GzAahU9ErZrA== dependencies: + "@babel/runtime" "^7.10.4" + "@changesets/apply-release-plan" "^6.1.2" + "@changesets/assemble-release-plan" "^5.2.2" + "@changesets/changelog-git" "^0.1.13" + "@changesets/config" "^2.2.0" "@changesets/errors" "^0.1.4" - "@changesets/get-dependents-graph" "^1.3.3" + "@changesets/get-dependents-graph" "^1.3.4" + "@changesets/get-release-plan" "^3.0.15" + "@changesets/git" "^1.5.0" "@changesets/logger" "^0.0.5" - "@changesets/types" "^5.1.0" + "@changesets/pre" "^1.0.13" + "@changesets/read" "^0.5.8" + "@changesets/types" "^5.2.0" + "@changesets/write" "^0.2.2" + "@manypkg/get-packages" "^1.1.3" + "@types/is-ci" "^3.0.0" + "@types/semver" "^6.0.0" + ansi-colors "^4.1.3" + chalk "^2.1.0" + enquirer "^2.3.0" + external-editor "^3.1.0" + fs-extra "^7.0.1" + human-id "^1.0.2" + is-ci "^3.0.1" + meow "^6.0.0" + outdent "^0.5.0" + p-limit "^2.2.0" + preferred-pm "^3.0.0" + resolve-from "^5.0.0" + semver "^5.4.1" + spawndamnit "^2.0.0" + term-size "^2.1.0" + tty-table "^4.1.5" + +"@changesets/config@^2.1.1", "@changesets/config@^2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@changesets/config/-/config-2.2.0.tgz#382f6cd801fa56273942659114c8060378dfe066" + integrity sha512-GGaokp3nm5FEDk/Fv2PCRcQCOxGKKPRZ7prcMqxEr7VSsG75MnChQE8plaW1k6V8L2bJE+jZWiRm19LbnproOw== + dependencies: + "@changesets/errors" "^0.1.4" + "@changesets/get-dependents-graph" "^1.3.4" + "@changesets/logger" "^0.0.5" + "@changesets/types" "^5.2.0" "@manypkg/get-packages" "^1.1.3" fs-extra "^7.0.1" micromatch "^4.0.2" @@ -1406,12 +1445,12 @@ dependencies: extendable-error "^0.1.5" -"@changesets/get-dependents-graph@^1.3.3": - version "1.3.3" - resolved "https://registry.yarnpkg.com/@changesets/get-dependents-graph/-/get-dependents-graph-1.3.3.tgz#9b8011d9993979a1f039ee6ce70793c81f780fea" - integrity sha512-h4fHEIt6X+zbxdcznt1e8QD7xgsXRAXd2qzLlyxoRDFSa6SxJrDAUyh7ZUNdhjBU4Byvp4+6acVWVgzmTy4UNQ== +"@changesets/get-dependents-graph@^1.3.3", "@changesets/get-dependents-graph@^1.3.4": + version "1.3.4" + resolved "https://registry.yarnpkg.com/@changesets/get-dependents-graph/-/get-dependents-graph-1.3.4.tgz#d8bf537f45a7ff773da99143675f49e250996838" + integrity sha512-+C4AOrrFY146ydrgKOo5vTZfj7vetNu1tWshOID+UjPUU9afYGDXI8yLnAeib1ffeBXV3TuGVcyphKpJ3cKe+A== dependencies: - "@changesets/types" "^5.1.0" + "@changesets/types" "^5.2.0" "@manypkg/get-packages" "^1.1.3" chalk "^2.1.0" fs-extra "^7.0.1" @@ -1425,17 +1464,17 @@ dataloader "^1.4.0" node-fetch "^2.5.0" -"@changesets/get-release-plan@^3.0.14": - version "3.0.14" - resolved "https://registry.yarnpkg.com/@changesets/get-release-plan/-/get-release-plan-3.0.14.tgz#b4423028a90c63feec12e22c48078f106f8d01f4" - integrity sha512-xzSfeyIOvUnbqMuQXVKTYUizreWQfICwoQpvEHoePVbERLocc1tPo5lzR7dmVCFcaA/DcnbP6mxyioeq+JuzSg== +"@changesets/get-release-plan@^3.0.14", "@changesets/get-release-plan@^3.0.15": + version "3.0.15" + resolved "https://registry.yarnpkg.com/@changesets/get-release-plan/-/get-release-plan-3.0.15.tgz#55577b235b785125a462d5d2a2dffe4dbf94e590" + integrity sha512-W1tFwxE178/en+zSj/Nqbc3mvz88mcdqUMJhRzN1jDYqN3QI4ifVaRF9mcWUU+KI0gyYEtYR65tour690PqTcA== dependencies: "@babel/runtime" "^7.10.4" - "@changesets/assemble-release-plan" "^5.2.1" - "@changesets/config" "^2.1.1" - "@changesets/pre" "^1.0.12" - "@changesets/read" "^0.5.7" - "@changesets/types" "^5.1.0" + "@changesets/assemble-release-plan" "^5.2.2" + "@changesets/config" "^2.2.0" + "@changesets/pre" "^1.0.13" + "@changesets/read" "^0.5.8" + "@changesets/types" "^5.2.0" "@manypkg/get-packages" "^1.1.3" "@changesets/get-version-range-type@^0.3.2": @@ -1443,14 +1482,14 @@ resolved "https://registry.yarnpkg.com/@changesets/get-version-range-type/-/get-version-range-type-0.3.2.tgz#8131a99035edd11aa7a44c341cbb05e668618c67" integrity sha512-SVqwYs5pULYjYT4op21F2pVbcrca4qA/bAA3FmFXKMN7Y+HcO8sbZUTx3TAy2VXulP2FACd1aC7f2nTuqSPbqg== -"@changesets/git@^1.4.1": - version "1.4.1" - resolved "https://registry.yarnpkg.com/@changesets/git/-/git-1.4.1.tgz#3f30330d94e8bcb45c4a221f34897a29cc72cd05" - integrity sha512-GWwRXEqBsQ3nEYcyvY/u2xUK86EKAevSoKV/IhELoZ13caZ1A1TSak/71vyKILtzuLnFPk5mepP5HjBxr7lZ9Q== +"@changesets/git@^1.4.1", "@changesets/git@^1.5.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@changesets/git/-/git-1.5.0.tgz#71bbcf11f3b346d56eeaf3d3201e6dc3e270ea5a" + integrity sha512-Xo8AT2G7rQJSwV87c8PwMm6BAc98BnufRMsML7m7Iw8Or18WFvFmxqG5aOL5PBvhgq9KrKvaeIBNIymracSuHg== dependencies: "@babel/runtime" "^7.10.4" "@changesets/errors" "^0.1.4" - "@changesets/types" "^5.1.0" + "@changesets/types" "^5.2.0" "@manypkg/get-packages" "^1.1.3" is-subdir "^1.1.1" spawndamnit "^2.0.0" @@ -1462,35 +1501,35 @@ dependencies: chalk "^2.1.0" -"@changesets/parse@^0.3.14": - version "0.3.14" - resolved "https://registry.yarnpkg.com/@changesets/parse/-/parse-0.3.14.tgz#97321604206db2572c17a12ed37671d9ee6d5e14" - integrity sha512-SWnNVyC9vz61ueTbuxvA6b4HXcSx2iaWr2VEa37lPg1Vw+cEyQp7lOB219P7uow1xFfdtIEEsxbzXnqLAAaY8w== +"@changesets/parse@^0.3.14", "@changesets/parse@^0.3.15": + version "0.3.15" + resolved "https://registry.yarnpkg.com/@changesets/parse/-/parse-0.3.15.tgz#1bc74f8c43b0861d71f4fccf78950411004ba308" + integrity sha512-3eDVqVuBtp63i+BxEWHPFj2P1s3syk0PTrk2d94W9JD30iG+OER0Y6n65TeLlY8T2yB9Fvj6Ev5Gg0+cKe/ZUA== dependencies: - "@changesets/types" "^5.1.0" + "@changesets/types" "^5.2.0" js-yaml "^3.13.1" -"@changesets/pre@^1.0.12": - version "1.0.12" - resolved "https://registry.yarnpkg.com/@changesets/pre/-/pre-1.0.12.tgz#1eaeef1a264b32c24d85dc15cf5445c1aa8b87c6" - integrity sha512-RFzWYBZx56MtgMesXjxx7ymyI829/rcIw/41hvz3VJPnY8mDscN7RJyYu7Xm7vts2Fcd+SRcO0T/Ws3I1/6J7g== +"@changesets/pre@^1.0.12", "@changesets/pre@^1.0.13": + version "1.0.13" + resolved "https://registry.yarnpkg.com/@changesets/pre/-/pre-1.0.13.tgz#49c3ae8bb444a1ce3e0fe4cb21f238318b6763e9" + integrity sha512-jrZc766+kGZHDukjKhpBXhBJjVQMied4Fu076y9guY1D3H622NOw8AQaLV3oQsDtKBTrT2AUFjt9Z2Y9Qx+GfA== dependencies: "@babel/runtime" "^7.10.4" "@changesets/errors" "^0.1.4" - "@changesets/types" "^5.1.0" + "@changesets/types" "^5.2.0" "@manypkg/get-packages" "^1.1.3" fs-extra "^7.0.1" -"@changesets/read@^0.5.7": - version "0.5.7" - resolved "https://registry.yarnpkg.com/@changesets/read/-/read-0.5.7.tgz#ad2454ba8e2dfceb1230102aacffcbbe4d3d4291" - integrity sha512-Iteg0ccTPpkJ+qFzY97k7qqdVE5Kz30TqPo9GibpBk2g8tcLFUqf+Qd0iXPLcyhUZpPL1U6Hia1gINHNKIKx4g== +"@changesets/read@^0.5.7", "@changesets/read@^0.5.8": + version "0.5.8" + resolved "https://registry.yarnpkg.com/@changesets/read/-/read-0.5.8.tgz#84e24fd12e6759cef090088261c08b1dfe0f350e" + integrity sha512-eYaNfxemgX7f7ELC58e7yqQICW5FB7V+bd1lKt7g57mxUrTveYME+JPaBPpYx02nP53XI6CQp6YxnR9NfmFPKw== dependencies: "@babel/runtime" "^7.10.4" - "@changesets/git" "^1.4.1" + "@changesets/git" "^1.5.0" "@changesets/logger" "^0.0.5" - "@changesets/parse" "^0.3.14" - "@changesets/types" "^5.1.0" + "@changesets/parse" "^0.3.15" + "@changesets/types" "^5.2.0" chalk "^2.1.0" fs-extra "^7.0.1" p-filter "^2.1.0" @@ -1500,18 +1539,18 @@ resolved "https://registry.yarnpkg.com/@changesets/types/-/types-4.1.0.tgz#fb8f7ca2324fd54954824e864f9a61a82cb78fe0" integrity sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw== -"@changesets/types@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@changesets/types/-/types-5.1.0.tgz#e0733b69ddc3efb68524d374d3c44f53a543c8d5" - integrity sha512-uUByGATZCdaPkaO9JkBsgGDjEvHyY2Sb0e/J23+cwxBi5h0fxpLF/HObggO/Fw8T2nxK6zDfJbPsdQt5RwYFJA== +"@changesets/types@^5.1.0", "@changesets/types@^5.2.0": + version "5.2.0" + resolved "https://registry.yarnpkg.com/@changesets/types/-/types-5.2.0.tgz#c4927f5bf9668f778c12b4226cfd07a1f5b79c9b" + integrity sha512-km/66KOqJC+eicZXsm2oq8A8bVTSpkZJ60iPV/Nl5Z5c7p9kk8xxh6XGRTlnludHldxOOfudhnDN2qPxtHmXzA== -"@changesets/write@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@changesets/write/-/write-0.2.0.tgz#59821dc811d04c0c1908ae6ee6ce346dfa312420" - integrity sha512-iKHqGYXZvneRzRfvEBpPqKfpGELOEOEP63MKdM/SdSRon40rsUijkTmsGCHT1ueLi3iJPZPmYuZJvjjKrMzumA== +"@changesets/write@^0.2.0", "@changesets/write@^0.2.2": + version "0.2.2" + resolved "https://registry.yarnpkg.com/@changesets/write/-/write-0.2.2.tgz#f3ffb1be06f7c31265eb4ec3d7166b91f9c25c9b" + integrity sha512-kCYNHyF3xaId1Q/QE+DF3UTrHTyg3Cj/f++T8S8/EkC+jh1uK2LFnM9h+EzV+fsmnZDrs7r0J4LLpeI/VWC5Hg== dependencies: "@babel/runtime" "^7.10.4" - "@changesets/types" "^5.1.0" + "@changesets/types" "^5.2.0" fs-extra "^7.0.1" human-id "^1.0.2" prettier "^2.7.1" @@ -1611,6 +1650,14 @@ resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.3.0.tgz#ea89004119dc42db2e1dba0f97d553f7372f6fcb" integrity sha512-AHPmaAx+RYfZz0eYu6Gviiagpmiyw98ySSlQvCUhVGDRtDFe4DBS0x1bSjdF3gqUDYOczB+yYvBTtEylYSdRhg== +"@envelop/core@3.0.3": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@envelop/core/-/core-3.0.3.tgz#bf07e690e905dfdfe59da636264fdfd6db081680" + integrity sha512-GXIb7HhsSYerMJR/AhJ6nN9F+w17bYRdUfu7ZXTixJEjS/3SXXK29qvr42iLLEqrnum57nk6cDyA3DBZLnuJ9w== + dependencies: + "@envelop/types" "3.0.0" + tslib "2.4.0" + "@envelop/core@^2.5.0": version "2.5.0" resolved "https://registry.yarnpkg.com/@envelop/core/-/core-2.5.0.tgz#f37ba50ff2e997bcb310b366eacf40b2a2107ee0" @@ -1618,6 +1665,14 @@ dependencies: "@envelop/types" "2.3.1" +"@envelop/parser-cache@5.0.3": + version "5.0.3" + resolved "https://registry.yarnpkg.com/@envelop/parser-cache/-/parser-cache-5.0.3.tgz#14f28a85d5986dee3911473961c91df7e5188ccc" + integrity sha512-3H3PZI//1ConuD0MmkKl3Sm9j7vRQvI/fIgvzXbE0n/OuuVV7D9rmtnSEqTkXufAgxKv674T2DJF4QPQHOy9Ag== + dependencies: + lru-cache "^6.0.0" + tslib "^2.4.0" + "@envelop/parser-cache@^4.6.0": version "4.6.0" resolved "https://registry.yarnpkg.com/@envelop/parser-cache/-/parser-cache-4.6.0.tgz#3ff71acdfbc51097d0dd8051cb961f856cddc400" @@ -1630,6 +1685,21 @@ resolved "https://registry.yarnpkg.com/@envelop/types/-/types-2.3.1.tgz#b857b3fa5d4df7fadd53ef0ee17cf70b54e827b9" integrity sha512-c5VLCVVRJ2R9LpDHg/N2BO2l4veaJhklquW+FX8GfzXU79DPWe8WmX4MbM6ABUZmSLOJkYInifHrnlqAoucxpQ== +"@envelop/types@3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@envelop/types/-/types-3.0.0.tgz#33795a7826a541eff00c0d6fb4eab9c35fef784b" + integrity sha512-ohcZE+XNvgNqURdCA5RLN0yW3nbvi4Pkq8TA6RpG16PKakl3yDgzXBLit1SR6+9By0/XCBfto/9r48ZH25kmvw== + dependencies: + tslib "^2.4.0" + +"@envelop/validation-cache@5.0.3": + version "5.0.3" + resolved "https://registry.yarnpkg.com/@envelop/validation-cache/-/validation-cache-5.0.3.tgz#0151a42e80fb9667c418a8c94a7b888b7f6a0b4b" + integrity sha512-zJcP8CFCdeUTkIymbBnuRgp3+G/YCubl7Pi+WoM0W2LAsJl7yxvqoaHS5aPbpNJunqUomsnRwBtkcK966EzjsQ== + dependencies: + lru-cache "^6.0.0" + tslib "^2.4.0" + "@envelop/validation-cache@^4.6.0": version "4.6.0" resolved "https://registry.yarnpkg.com/@envelop/validation-cache/-/validation-cache-4.6.0.tgz#c4ad678cffbbce05a6fbdd039e8cad20e01a2bbc" @@ -1715,6 +1785,16 @@ tslib "~2.4.0" value-or-promise "1.0.11" +"@graphql-tools/executor@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor/-/executor-0.0.4.tgz#384aad9260a6dfb644f3f08b114d3f7196afa547" + integrity sha512-EBV3wBslLfYOJERjFHrV2iy2U0XCIsXkDKC383lw2b0mpBHZP8y7s8dDLGLxEvuPgou2qer511O/gqI2NEVUNw== + dependencies: + "@graphql-tools/utils" "9.0.0" + "@graphql-typed-document-node/core" "3.1.1" + "@repeaterjs/repeater" "3.0.4" + value-or-promise "1.0.1" + "@graphql-tools/git-loader@^7.2.1": version "7.2.1" resolved "https://registry.yarnpkg.com/@graphql-tools/git-loader/-/git-loader-7.2.1.tgz#e0eaa77f1696199a780f32035646489e57a017dd" @@ -2017,6 +2097,13 @@ dependencies: tslib "^2.4.0" +"@graphql-tools/utils@9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-9.0.0.tgz#4e75680d29e866b3de293b4bc9fa4a40aeae0085" + integrity sha512-kaCwyWnURxMsYbxzkfylLqFFelu83jKk3BJOOy0GIuxEtgXVS9v7Y/tojljo69Q+jaZ2YxAi3+d8IpM+hx768A== + dependencies: + tslib "^2.4.0" + "@graphql-tools/utils@^6.2.4": version "6.2.4" resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-6.2.4.tgz#38a2314d2e5e229ad4f78cca44e1199e18d55856" @@ -2079,6 +2166,16 @@ "@repeaterjs/repeater" "^3.0.4" tslib "^2.3.1" +"@graphql-yoga/subscription@^3.0.0-next.0": + version "3.0.0-next.0" + resolved "https://registry.yarnpkg.com/@graphql-yoga/subscription/-/subscription-3.0.0-next.0.tgz#fce94b540ec8837c7667e24b556b70553ccb558b" + integrity sha512-ne+0p7CUHK8XOZRymKzYCLtllKNLqHnL+DiAOMCsvTm7NwgRXBBWiVwN/Bkp/JUTS8+PTssuTSLG8cUTR55p7g== + dependencies: + "@graphql-yoga/typed-event-target" "^1.0.0-next.0" + "@repeaterjs/repeater" "^3.0.4" + "@whatwg-node/events" "0.0.2" + tslib "^2.3.1" + "@graphql-yoga/typed-event-target@^0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@graphql-yoga/typed-event-target/-/typed-event-target-0.1.1.tgz#248d56a76046d805af8c0da3ef590cdb95d2c192" @@ -2087,6 +2184,14 @@ "@repeaterjs/repeater" "^3.0.4" tslib "^2.3.1" +"@graphql-yoga/typed-event-target@^1.0.0-next.0": + version "1.0.0-next.0" + resolved "https://registry.yarnpkg.com/@graphql-yoga/typed-event-target/-/typed-event-target-1.0.0-next.0.tgz#d0c8ad24eef46edff1a0e3618a745361d01a58f1" + integrity sha512-OP+6WpeP2eJBdQ4aVdP6m+dhVXPQX1xJ0T2GVmBMiRD3NQeaIMbAP0FPrB3gvh2VGVH0UaAPspQSKsxwEe8YtQ== + dependencies: + "@repeaterjs/repeater" "^3.0.4" + tslib "^2.3.1" + "@headlessui/react@^1.6.6": version "1.7.2" resolved "https://registry.yarnpkg.com/@headlessui/react/-/react-1.7.2.tgz#e6a6a8d38342064a53182f1eb2bf6d9c1e53ba6a" @@ -2981,7 +3086,7 @@ redux-thunk "^2.4.1" reselect "^4.1.5" -"@repeaterjs/repeater@^3.0.4": +"@repeaterjs/repeater@3.0.4", "@repeaterjs/repeater@^3.0.4": version "3.0.4" resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.4.tgz#a04d63f4d1bf5540a41b01a921c9a7fddc3bd1ca" integrity sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA== @@ -3834,6 +3939,25 @@ resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.39.tgz#302df167559a1a5156da162d8cc6760cef67f8e3" integrity sha512-D3dl2ZB9qE6mTuWPk9RlhDeP1dgNRUKC3NJxji74A4yL8M2MwlhLKUC/49WHjrNzSPug58fWx/yFbaTzGAQSBw== +"@whatwg-node/events@0.0.2": + version "0.0.2" + resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.0.2.tgz#7b7107268d2982fc7b7aff5ee6803c64018f84dd" + integrity sha512-WKj/lI4QjnLuPrim0cfO7i+HsDSXHxNv1y0CrJhdntuO3hxWZmnXCwNDnwOvry11OjRin6cgWNF+j/9Pn8TN4w== + +"@whatwg-node/fetch@0.5.1": + version "0.5.1" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.5.1.tgz#62c7e902ddfb7d16b0b31599d81628bbd22350a9" + integrity sha512-RBZS60EU6CbRJ370BVVKW4F9csZuGh0OQNrUDhJ0IaIFLsXsJorFCM2iwaDWZTAPMqxW1TmuVcVKJ3d/H1dV1g== + dependencies: + "@peculiar/webcrypto" "^1.4.0" + abort-controller "^3.0.0" + busboy "^1.6.0" + form-data-encoder "^1.7.1" + formdata-node "^4.3.1" + node-fetch "^2.6.7" + undici "^5.12.0" + web-streams-polyfill "^3.2.0" + "@whatwg-node/fetch@^0.2.4": version "0.2.9" resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.2.9.tgz#0f0e72f79957a0544d2a9455082802d87be93ffe" @@ -3879,6 +4003,14 @@ undici "^5.8.0" web-streams-polyfill "^3.2.0" +"@whatwg-node/server@0.4.14": + version "0.4.14" + resolved "https://registry.yarnpkg.com/@whatwg-node/server/-/server-0.4.14.tgz#c164819fae173279eaadcb3a7faccdf4ad9c5b9b" + integrity sha512-wRPkrqpHHqEFV+AVnAS2c5NlQ6zdiduT4k9f0tTh+Qy6l5ZY2p0a3PxUcBL8V1hzT6dXlP7PRNFdd//L/UyN7g== + dependencies: + "@whatwg-node/fetch" "0.5.1" + tslib "^2.3.1" + "@wry/context@^0.6.0": version "0.6.1" resolved "https://registry.yarnpkg.com/@wry/context/-/context-0.6.1.tgz#c3c29c0ad622adb00f6a53303c4f965ee06ebeb2" @@ -7585,11 +7717,6 @@ graphql-config@4.3.6, graphql-config@^4.1.0: ts-node "^10.8.1" tslib "^2.4.0" -graphql-helix@1.13.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/graphql-helix/-/graphql-helix-1.13.0.tgz#e64dad5ef5f622ef38c97fa033f56f3d953c0104" - integrity sha512-cqDKMoRywKjnL0ZWCTB0GOiBgsH6d3nU4JGDF6RuzAyd35tmalzKpSxkx3NNp4H5RvnKWnrukWzR51wUq277ng== - graphql-jit@0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/graphql-jit/-/graphql-jit-0.7.4.tgz#bc8ccf79596d13dff3835902a466f9a5ecc3a8c1" @@ -7676,6 +7803,23 @@ graphql-ws@^5.4.1: resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.9.1.tgz#9c0fa48ceb695d61d574ed3ab21b426729e87f2d" integrity sha512-mL/SWGBwIT9Meq0NlfS55yXXTOeWPMbK7bZBEZhFu46bcGk1coTx2Sdtzxdk+9yHWngD+Fk1PZDWaAutQa9tpw== +graphql-yoga@three: + version "3.0.0-next.9" + resolved "https://registry.yarnpkg.com/graphql-yoga/-/graphql-yoga-3.0.0-next.9.tgz#d7b32da7a928d9b439ce1756c78b279e3cee5901" + integrity sha512-/ocrNvnl9SZLYmJ9WJLlcE9HcJKhEKhGAv7fkTXu9/ZlhbWg005NCEKTnx7fxMIGdFy4ufnt7sRT+73BgZNE1Q== + dependencies: + "@envelop/core" "3.0.3" + "@envelop/parser-cache" "5.0.3" + "@envelop/validation-cache" "5.0.3" + "@graphql-tools/executor" "^0.0.4" + "@graphql-tools/schema" "^9.0.0" + "@graphql-typed-document-node/core" "^3.1.1" + "@graphql-yoga/subscription" "^3.0.0-next.0" + "@whatwg-node/fetch" "0.5.1" + "@whatwg-node/server" "0.4.14" + dset "^3.1.1" + tslib "^2.3.1" + graphql@16.6.0, graphql@^16.0.0: version "16.6.0" resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.6.0.tgz#c2dcffa4649db149f6282af726c8c83f1c7c5fdb" @@ -12878,10 +13022,12 @@ underscore@1.12.1: resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.12.1.tgz#7bb8cc9b3d397e201cf8553336d262544ead829e" integrity sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw== -undici@^5.8.0: - version "5.10.0" - resolved "https://registry.yarnpkg.com/undici/-/undici-5.10.0.tgz#dd9391087a90ccfbd007568db458674232ebf014" - integrity sha512-c8HsD3IbwmjjbLvoZuRI26TZic+TSEe8FPMLLOkN1AfYRhdjnKBU6yL+IwcSCbdZiX4e5t0lfMDLDCqj4Sq70g== +undici@^5.12.0, undici@^5.8.0: + version "5.12.0" + resolved "https://registry.yarnpkg.com/undici/-/undici-5.12.0.tgz#c758ffa704fbcd40d506e4948860ccaf4099f531" + integrity sha512-zMLamCG62PGjd9HHMpo05bSLvvwWOZgGeiWlN/vlqu3+lRo3elxktVGEyLMX+IO7c2eflLjcW74AlkhEZm15mg== + dependencies: + busboy "^1.6.0" unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" @@ -13142,6 +13288,13 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" +value-or-promise@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/value-or-promise/-/value-or-promise-1.0.1.tgz#7021919262c7a13605da701bcbd3c9ae8219bf68" + integrity sha512-luIWMQACiZgNXrrCVX0B1Lm5bTT+osgLG/uiBMVvxYa52oqHGoF9YGpW+azBThx84N6bAm5MyaodRvsWaYmVbQ== + dependencies: + "@changesets/cli" "^2.16.0" + value-or-promise@1.0.11, value-or-promise@^1.0.11: version "1.0.11" resolved "https://registry.yarnpkg.com/value-or-promise/-/value-or-promise-1.0.11.tgz#3e90299af31dd014fe843fe309cefa7c1d94b140"