From 0398acaf4eb1d0e09194cd334d82ae7592eeb0a5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 23 Jul 2022 13:55:25 -0400 Subject: [PATCH 1/6] chore(deps): update actions/checkout action to v3 (#1431) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/canary.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index bf2a1125ba..1391ab295a 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -12,7 +12,7 @@ jobs: if: github.event.pull_request.head.repo.full_name == github.repository steps: - name: Checkout Main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Use Node From cffdbc2f6dad35121a15dcea4ce35a02a5e92f4c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 23 Jul 2022 18:00:13 -0400 Subject: [PATCH 2/6] chore(deps): update dependency ioredis to v5.2.2 (#1450) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- examples/redis-pub-sub/package.json | 2 +- packages/event-target/redis-event-target/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/redis-pub-sub/package.json b/examples/redis-pub-sub/package.json index 887ee03067..a865082ef5 100644 --- a/examples/redis-pub-sub/package.json +++ b/examples/redis-pub-sub/package.json @@ -22,7 +22,7 @@ "@graphql-yoga/node": "2.13.4", "@graphql-yoga/redis-event-target": "0.1.2", "graphql": "16.5.0", - "ioredis": "5.2.1" + "ioredis": "5.2.2" }, "module": "commonjs" } diff --git a/packages/event-target/redis-event-target/package.json b/packages/event-target/redis-event-target/package.json index 6a781d8950..043ce43d8d 100644 --- a/packages/event-target/redis-event-target/package.json +++ b/packages/event-target/redis-event-target/package.json @@ -27,7 +27,7 @@ "devDependencies": { "@types/ioredis-mock": "5.6.0", "event-target-polyfill": "0.0.3", - "ioredis": "5.2.1", + "ioredis": "5.2.2", "ioredis-mock": "8.2.2" }, "type": "module", diff --git a/yarn.lock b/yarn.lock index 5d79ccb4fc..7d3419bf15 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12642,10 +12642,10 @@ ioredis-mock@8.2.2: fengari "^0.1.4" fengari-interop "^0.1.3" -ioredis@5.2.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.2.1.tgz#0e145e1f70478b5838c0b1545959948a049fbbcf" - integrity sha512-+rgPUIawiT+L3am9FbUcwjI7R7KtLDUSJNYWF82NZmlUXCZELws7iJkVDuECQoNUHqZTf/EGn3uw9IA+PlBiyg== +ioredis@5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.2.2.tgz#212467e04f6779b4e0e800cece7bb7d3d7b546d2" + integrity sha512-wryKc1ur8PcCmNwfcGkw5evouzpbDXxxkMkzPK8wl4xQfQf7lHe11Jotell5ikMVAtikXJEu/OJVaoV51BggRQ== dependencies: "@ioredis/commands" "^1.1.1" cluster-key-slot "^1.1.0" From 8d6470167be08c2b3248649232f007936992ebae Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Sun, 24 Jul 2022 16:29:08 +0300 Subject: [PATCH 3/6] Replace cross-undici-fetch with @whatwg-node/fetch --- benchmark/hello-world/check-server.js | 2 +- examples/azure-function/src/index.ts | 2 +- .../cloudflare-modules/test/index.spec.ts | 2 +- examples/error-handling/package.json | 2 +- examples/error-handling/src/index.ts | 2 +- .../service-worker/test/integration.test.ts | 2 +- package.json | 1 - packages/common/__tests__/cors.test.ts | 2 +- packages/common/package.json | 2 +- .../plugins/requestParser/POSTMultipart.ts | 2 +- packages/common/src/server.ts | 2 +- packages/common/src/types.ts | 8 +- packages/graphiql/package.json | 14 +-- packages/graphiql/src/YogaGraphiQL.tsx | 7 +- packages/node/CHANGELOG.md | 2 +- packages/node/__tests__/integration.spec.ts | 2 +- packages/node/package.json | 2 +- packages/node/src/index.ts | 4 +- packages/node/src/types.ts | 2 +- ...ngesets+assemble-release-plan+5.1.3.patch} | 2 +- ...2.0.patch => @changesets+cli+2.23.2.patch} | 12 +-- website/docs/features/error-masking.mdx | 4 +- .../integrations/z-other-environments.mdx | 2 +- yarn.lock | 93 +++++++++++++++---- 24 files changed, 115 insertions(+), 60 deletions(-) rename patches/{@changesets+assemble-release-plan+5.1.2.patch => @changesets+assemble-release-plan+5.1.3.patch} (99%) rename patches/{@changesets+cli+2.22.0.patch => @changesets+cli+2.23.2.patch} (82%) diff --git a/benchmark/hello-world/check-server.js b/benchmark/hello-world/check-server.js index b1f3592179..0419e31b32 100644 --- a/benchmark/hello-world/check-server.js +++ b/benchmark/hello-world/check-server.js @@ -1,4 +1,4 @@ -require('cross-undici-fetch') +require('@whatwg-node/fetch') .fetch( `http://localhost:4000/graphql?query=${encodeURIComponent( '{ greetings }', diff --git a/examples/azure-function/src/index.ts b/examples/azure-function/src/index.ts index 8f09a1d3f0..e5cabf933f 100644 --- a/examples/azure-function/src/index.ts +++ b/examples/azure-function/src/index.ts @@ -1,6 +1,6 @@ import { AzureFunction, Context, HttpRequest } from '@azure/functions' import { createServer } from '@graphql-yoga/common' -import { Request } from 'cross-undici-fetch' +import { Request } from '@whatwg-node/fetch' const httpTrigger: AzureFunction = async function ( context: Context, diff --git a/examples/cloudflare-modules/test/index.spec.ts b/examples/cloudflare-modules/test/index.spec.ts index 53a8e855ef..7e7894376c 100644 --- a/examples/cloudflare-modules/test/index.spec.ts +++ b/examples/cloudflare-modules/test/index.spec.ts @@ -1,5 +1,5 @@ import worker from '../src/index.js' -import { Request } from 'cross-undici-fetch' +import { Request } from '@whatwg-node/fetch' import { getIntrospectionQuery } from 'graphql' test('should render GraphiQL', async () => { diff --git a/examples/error-handling/package.json b/examples/error-handling/package.json index b2ab477b9b..c43831ae07 100644 --- a/examples/error-handling/package.json +++ b/examples/error-handling/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@graphql-yoga/node": "2.13.4", - "cross-undici-fetch": "^0.4.13", + "@whatwg-node/fetch": "^0.0.2", "graphql": "^16.1.0" }, "devDependencies": { diff --git a/examples/error-handling/src/index.ts b/examples/error-handling/src/index.ts index ddf9964445..e2344e6ef2 100644 --- a/examples/error-handling/src/index.ts +++ b/examples/error-handling/src/index.ts @@ -1,5 +1,5 @@ import { createServer, GraphQLYogaError } from '@graphql-yoga/node' -import { fetch } from 'cross-undici-fetch' +import { fetch } from '@whatwg-node/fetch' const users = [ { diff --git a/examples/service-worker/test/integration.test.ts b/examples/service-worker/test/integration.test.ts index 93dd21e888..4d54b8f335 100644 --- a/examples/service-worker/test/integration.test.ts +++ b/examples/service-worker/test/integration.test.ts @@ -1,6 +1,6 @@ import { getIntrospectionQuery } from 'graphql' import { createServer } from '@graphql-yoga/common' -import { Request } from 'cross-undici-fetch' +import { Request } from '@whatwg-node/fetch' const listenerMap = new Map>() diff --git a/package.json b/package.json index 92edd5ca25..a2bd94bbae 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,6 @@ "resolutions": { "@changesets/apply-release-plan": "6.0.0", "graphql": "16.5.0", - "cross-undici-fetch": "0.4.14", "@types/react": "17.0.39", "@types/react-dom": "17.0.17", "react": "17.0.2", diff --git a/packages/common/__tests__/cors.test.ts b/packages/common/__tests__/cors.test.ts index b81226bf7f..42a3f0b394 100644 --- a/packages/common/__tests__/cors.test.ts +++ b/packages/common/__tests__/cors.test.ts @@ -1,4 +1,4 @@ -import { Request } from 'cross-undici-fetch' +import { Request } from '@whatwg-node/fetch' import { getCORSHeadersByRequestAndOptions, CORSOptions, diff --git a/packages/common/package.json b/packages/common/package.json index 4baa88316e..15c3b2eaf4 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -71,7 +71,7 @@ "@graphql-tools/schema": "^8.5.0", "@graphql-tools/utils": "^8.8.0", "@graphql-yoga/subscription": "^2.2.2", - "cross-undici-fetch": "^0.4.13", + "@whatwg-node/fetch": "^0.0.2", "dset": "^3.1.1", "tslib": "^2.3.1" }, diff --git a/packages/common/src/plugins/requestParser/POSTMultipart.ts b/packages/common/src/plugins/requestParser/POSTMultipart.ts index 328713c7b1..86b817b7fd 100644 --- a/packages/common/src/plugins/requestParser/POSTMultipart.ts +++ b/packages/common/src/plugins/requestParser/POSTMultipart.ts @@ -17,7 +17,7 @@ export async function parsePOSTMultipartRequest( try { requestBody = await request.formData() } catch (e: unknown) { - // Trick for cross-undici-fetch errors on Node.js + // Trick for @whatwg-node/fetch errors on Node.js // TODO: This needs a better solution if ( e instanceof Error && diff --git a/packages/common/src/server.ts b/packages/common/src/server.ts index 8fe1d4f22a..f20640a6bc 100644 --- a/packages/common/src/server.ts +++ b/packages/common/src/server.ts @@ -31,7 +31,7 @@ import { RequestParser, ResultProcessor, } from './plugins/types.js' -import * as crossUndiciFetch from 'cross-undici-fetch' +import * as crossUndiciFetch from '@whatwg-node/fetch' import { processRequest as processGraphQLParams } from './processRequest.js' import { defaultYogaLogger, titleBold, YogaLogger } from './logger.js' import { CORSPluginOptions, useCORS } from './plugins/useCORS.js' diff --git a/packages/common/src/types.ts b/packages/common/src/types.ts index f571359cc9..ee6ce5414f 100644 --- a/packages/common/src/types.ts +++ b/packages/common/src/types.ts @@ -116,25 +116,25 @@ export type FetchEvent = Event & { export type FetchAPI = { /** * WHATWG compliant Request object constructor - * Default: `Request` from `cross-undici-fetch` + * Default: `Request` from `@whatwg-node/fetch` * @see https://developer.mozilla.org/en-US/docs/Web/API/Request */ Request: typeof Request /** * WHATWG compliant Response object constructor - * Default: `Response` from `cross-undici-fetch` + * Default: `Response` from `@whatwg-node/fetch` * @see https://developer.mozilla.org/en-US/docs/Web/API/Response */ Response: typeof Response /** * WHATWG compliant fetch function - * Default: `fetch` from `cross-undici-fetch` + * Default: `fetch` from `@whatwg-node/fetch` * @see https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch */ fetch: typeof fetch /** * WHATWG compliant ReadableStream object constructor - * Default: `ReadableStream` from `cross-undici-fetch` + * Default: `ReadableStream` from `@whatwg-node/fetch` * @see https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream */ ReadableStream: typeof ReadableStream diff --git a/packages/graphiql/package.json b/packages/graphiql/package.json index 23d28a0a2e..d6f591b13c 100644 --- a/packages/graphiql/package.json +++ b/packages/graphiql/package.json @@ -28,15 +28,15 @@ "vite": "2.9.14" }, "dependencies": { - "@graphql-tools/url-loader": "^7.11.0", - "copy-to-clipboard": "^3.3.1", - "graphiql": "^1.8.8", - "graphiql-explorer": "^0.9.0", - "graphql": "^16.3.0", + "@graphql-tools/url-loader": "7.13.0", + "copy-to-clipboard": "3.3.1", + "graphiql": "1.8.8", + "graphiql-explorer": "0.9.0", + "graphql": "16.3.0", "react": "17.0.2", "react-dom": "17.0.2", - "use-url-search-params": "^2.5.1", - "json-bigint-patch": "^0.0.8" + "use-url-search-params": "2.5.1", + "json-bigint-patch": "0.0.8" }, "main": "dist/yoga-graphiql.umd.js", "module": "dist/yoga-graphiql.es.js", diff --git a/packages/graphiql/src/YogaGraphiQL.tsx b/packages/graphiql/src/YogaGraphiQL.tsx index 0263446771..26ccd044e4 100644 --- a/packages/graphiql/src/YogaGraphiQL.tsx +++ b/packages/graphiql/src/YogaGraphiQL.tsx @@ -23,7 +23,7 @@ import 'json-bigint-patch' const getOperationWithFragments = ( document: DocumentNode, - operationName: string, + operationName?: string, ): DocumentNode => { const definitions = document.definitions.filter((definition) => { if ( @@ -121,12 +121,11 @@ export function YogaGraphiQL(props: YogaGraphiQLProps): React.ReactElement { return function fetcher(graphQLParams: FetcherParams, opts?: FetcherOpts) { const document = getOperationWithFragments( parse(graphQLParams.query), - graphQLParams.operationName, + graphQLParams.operationName ?? undefined, ) - return executor({ document, - operationName: graphQLParams.operationName, + operationName: graphQLParams.operationName ?? undefined, variables: graphQLParams.variables, extensions: { headers: opts?.headers, diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 72c994f826..9ad4ec85a6 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -286,7 +286,7 @@ So Yoga now uses `node-fetch` by default which doesn't affect the existing users. User can configure `cross-undici-fetch` to revert back this behavior; ```ts - import { create } from 'cross-undici-fetch' + import { create } from '@whatwg-node/fetch' createServer({ fetchAPI: create({ useNodeFetch: false }), diff --git a/packages/node/__tests__/integration.spec.ts b/packages/node/__tests__/integration.spec.ts index 1d0c0b3ce2..82a36c0217 100644 --- a/packages/node/__tests__/integration.spec.ts +++ b/packages/node/__tests__/integration.spec.ts @@ -15,7 +15,7 @@ import 'json-bigint-patch' import http from 'http' import { useLiveQuery } from '@envelop/live-query' import { InMemoryLiveQueryStore } from '@n1ru4l/in-memory-live-query-store' -import { AbortController, fetch, File, FormData } from 'cross-undici-fetch' +import { AbortController, fetch, File, FormData } from '@whatwg-node/fetch' import { Plugin } from '@graphql-yoga/common' import { ExecutionResult } from '@graphql-tools/utils' diff --git a/packages/node/package.json b/packages/node/package.json index af83152dbf..63051c175f 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -67,7 +67,7 @@ "@graphql-tools/utils": "^8.8.0", "@graphql-yoga/common": "^2.12.3", "@graphql-yoga/subscription": "^2.2.2", - "cross-undici-fetch": "^0.4.13", + "@whatwg-node/fetch": "^0.0.2", "tslib": "^2.3.1" }, "devDependencies": { diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts index 8a276a530f..ff1cbb5d5a 100644 --- a/packages/node/src/index.ts +++ b/packages/node/src/index.ts @@ -10,7 +10,7 @@ import { getNodeRequest, NodeRequest, sendNodeResponse } from './http-utils.js' import { YogaServer } from '@graphql-yoga/common' import type { YogaNodeServerOptions, AddressInfo } from './types.js' import { platform, release } from 'os' -import { create } from 'cross-undici-fetch' +import { createFetch } from '@whatwg-node/fetch' class YogaNodeServer< TServerContext extends Record, @@ -35,7 +35,7 @@ class YogaNodeServer< multipart: options?.multipart !== false, fetchAPI: options?.fetchAPI ?? - create({ + createFetch({ useNodeFetch: true, formDataLimits: typeof options?.multipart === 'object' diff --git a/packages/node/src/types.ts b/packages/node/src/types.ts index 023eec06cc..75c0dcce1a 100644 --- a/packages/node/src/types.ts +++ b/packages/node/src/types.ts @@ -1,5 +1,5 @@ import type { YogaServerOptions } from '@graphql-yoga/common' -import type { FormDataLimits } from 'cross-undici-fetch' +import type { FormDataLimits } from '@whatwg-node/fetch' import type { ServerOptions as HttpsServerOptions } from 'https' /** diff --git a/patches/@changesets+assemble-release-plan+5.1.2.patch b/patches/@changesets+assemble-release-plan+5.1.3.patch similarity index 99% rename from patches/@changesets+assemble-release-plan+5.1.2.patch rename to patches/@changesets+assemble-release-plan+5.1.3.patch index ef89f2098d..acb39f1b57 100644 --- a/patches/@changesets+assemble-release-plan+5.1.2.patch +++ b/patches/@changesets+assemble-release-plan+5.1.3.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js b/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js -index 8c8f6fd..174fd69 100644 +index f05ea74..9a0ed16 100644 --- a/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js +++ b/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js @@ -130,18 +130,9 @@ function determineDependents({ diff --git a/patches/@changesets+cli+2.22.0.patch b/patches/@changesets+cli+2.23.2.patch similarity index 82% rename from patches/@changesets+cli+2.22.0.patch rename to patches/@changesets+cli+2.23.2.patch index 28c50355cc..9b7230b49b 100644 --- a/patches/@changesets+cli+2.22.0.patch +++ b/patches/@changesets+cli+2.23.2.patch @@ -1,8 +1,8 @@ diff --git a/node_modules/@changesets/cli/dist/cli.cjs.dev.js b/node_modules/@changesets/cli/dist/cli.cjs.dev.js -index 129ae05..9b5daeb 100644 +index 4b68b5d..55e34bc 100644 --- a/node_modules/@changesets/cli/dist/cli.cjs.dev.js +++ b/node_modules/@changesets/cli/dist/cli.cjs.dev.js -@@ -639,7 +639,7 @@ const getLastJsonObjectFromString = str => { +@@ -649,7 +649,7 @@ const getLastJsonObjectFromString = str => { return null; }; @@ -12,10 +12,10 @@ index 129ae05..9b5daeb 100644 function jsonParse(input) { diff --git a/node_modules/@changesets/cli/dist/cli.cjs.prod.js b/node_modules/@changesets/cli/dist/cli.cjs.prod.js -index ee3d78e..dc2a8c7 100644 +index 5c4828d..3694ebf 100644 --- a/node_modules/@changesets/cli/dist/cli.cjs.prod.js +++ b/node_modules/@changesets/cli/dist/cli.cjs.prod.js -@@ -354,7 +354,7 @@ const getLastJsonObjectFromString = str => { +@@ -359,7 +359,7 @@ const getLastJsonObjectFromString = str => { } } return null; @@ -25,10 +25,10 @@ index ee3d78e..dc2a8c7 100644 function jsonParse(input) { try { diff --git a/node_modules/@changesets/cli/dist/cli.esm.js b/node_modules/@changesets/cli/dist/cli.esm.js -index 19806a8..72859ff 100644 +index d715066..bad525f 100644 --- a/node_modules/@changesets/cli/dist/cli.esm.js +++ b/node_modules/@changesets/cli/dist/cli.esm.js -@@ -616,7 +616,7 @@ const getLastJsonObjectFromString = str => { +@@ -626,7 +626,7 @@ const getLastJsonObjectFromString = str => { return null; }; diff --git a/website/docs/features/error-masking.mdx b/website/docs/features/error-masking.mdx index b9e543950a..15d82a911a 100644 --- a/website/docs/features/error-masking.mdx +++ b/website/docs/features/error-masking.mdx @@ -16,7 +16,7 @@ Let's setup a simple schema that calls a remote service that is unavailable. ```ts import { createServer } from '@graphql-yoga/node' -import { fetch } from 'cross-undici-fetch' +import { fetch } from '@whatwg-node/fetch' // Provide your schema const server = createServer({ @@ -99,7 +99,7 @@ node server.js ```ts import { createServer } from '@graphql-yoga/node' -import { fetch } from 'cross-undici-fetch' +import { fetch } from '@whatwg-node/fetch' // Provide your schema const server = createServer({ diff --git a/website/docs/integrations/z-other-environments.mdx b/website/docs/integrations/z-other-environments.mdx index 7a913d695c..de2e00306e 100644 --- a/website/docs/integrations/z-other-environments.mdx +++ b/website/docs/integrations/z-other-environments.mdx @@ -11,7 +11,7 @@ GraphQL Yoga understands [WHATWG `Request` object](https://developer.mozilla.org ```ts import { createServer } from '@graphql-yoga/common' -import { Request } from 'cross-undici-fetch' // or fetch-like library +import { Request } from '@whatwg-node/fetch' // or fetch-like library const yoga = createServer() diff --git a/yarn.lock b/yarn.lock index 7d3419bf15..b188225a1c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2972,9 +2972,9 @@ integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== "@graphiql/toolkit@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@graphiql/toolkit/-/toolkit-0.4.3.tgz#2653d045693d902f7faaf87b9047e8786397ec48" - integrity sha512-L0l6BezvTXmWZhtdmZxirhYwKzcZToAciQY0A13KRAWSpJ9bb/ZdkBpcz3fOXrsjuJHf0wBr6Vk9kztJ6lV7uA== + version "0.4.5" + resolved "https://registry.yarnpkg.com/@graphiql/toolkit/-/toolkit-0.4.5.tgz#9fb5020444712562eae9581724695c235f610836" + integrity sha512-QXuuMSSK/0GfBS7tltrGZdyhIvm6oe9TK4VW9pfa8dALYttpzyJ64Q4Sx9I1Ng++yOMJWziM/ksa043zkNHsjQ== dependencies: "@n1ru4l/push-pull-async-iterable-iterator" "^3.1.0" meros "^1.1.4" @@ -3343,6 +3343,27 @@ tslib "^2.4.0" value-or-promise "1.0.11" +"@graphql-tools/url-loader@7.13.0": + version "7.13.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-7.13.0.tgz#f1523ae782b846b0d06dc8488b622ba8ce9a7f33" + integrity sha512-hM3yIDij0EqrHrLKNRpFRhQD0tmzt7E5OevOL9O3CLKCcv2Ho4wXQD7gscwVJJdg2Qyr22Pqr/IdtR8QiMScRA== + dependencies: + "@graphql-tools/delegate" "8.8.0" + "@graphql-tools/utils" "8.8.0" + "@graphql-tools/wrap" "8.5.0" + "@n1ru4l/graphql-live-query" "^0.9.0" + "@types/ws" "^8.0.0" + "@whatwg-node/fetch" "^0.0.2" + dset "^3.1.2" + extract-files "^11.0.0" + graphql-ws "^5.4.1" + isomorphic-ws "^5.0.0" + meros "^1.1.4" + sync-fetch "^0.4.0" + tslib "^2.4.0" + value-or-promise "^1.0.11" + ws "^8.3.0" + "@graphql-tools/url-loader@7.9.19": version "7.9.19" resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-7.9.19.tgz#6f848b71c72d0371582aac11272a759d95c0ef8b" @@ -3364,7 +3385,7 @@ value-or-promise "^1.0.11" ws "^8.3.0" -"@graphql-tools/url-loader@^7.0.11", "@graphql-tools/url-loader@^7.11.0", "@graphql-tools/url-loader@^7.9.7": +"@graphql-tools/url-loader@^7.0.11", "@graphql-tools/url-loader@^7.9.7": version "7.11.0" resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-7.11.0.tgz#c04d4d9f18af58230b589bdd55e81a003e19e5d6" integrity sha512-c3L/NW9MRkYct4FoQQubTf/VeBhPm0lry2EsgDdcdKmV+lOh3RQ4DAYMH61cTX++MPeQiECYEwCCm68J52xlMg== @@ -6432,6 +6453,19 @@ "@webassemblyjs/ast" "1.11.1" "@xtuc/long" "4.2.2" +"@whatwg-node/fetch@^0.0.2": + version "0.0.2" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.0.2.tgz#4242c4e36714b5018ccac0ab76f4ab5a208fbc1c" + integrity sha512-qiZn8dYRg0POzUvmHBs7blLxl6DPL+b+Z0JUsGaj7/8PFe2BJG9onrUVX6OWh6Z9YhcYw8yu+wtCAme5ZMiCKQ== + dependencies: + 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.5.1" + web-streams-polyfill "^3.2.0" + "@xobotyi/scrollbar-width@^1.9.5": version "1.9.5" resolved "https://registry.yarnpkg.com/@xobotyi/scrollbar-width/-/scrollbar-width-1.9.5.tgz#80224a6919272f405b87913ca13b92929bdf3c4d" @@ -8192,11 +8226,11 @@ code-point-at@^1.0.0: integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= codemirror-graphql@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/codemirror-graphql/-/codemirror-graphql-1.3.0.tgz#6ca19eb2735dbfd5ac9db59b8fc4c8fc1e34fe43" - integrity sha512-Inqecp/PpUsNFz6+V6jpgQD1m7jjGg3yby60baw2t5yb2stBH8Z/6cHm/IYp9eN0Aq2EWqomd0GkGmiISPi4jQ== + version "1.3.2" + resolved "https://registry.yarnpkg.com/codemirror-graphql/-/codemirror-graphql-1.3.2.tgz#e9d1d18b4a160f0016a28465805284636ee42d2a" + integrity sha512-glwFsEVlH5TvxjSKGymZ1sNy37f3Mes58CB4fXOd0zy9+JzDL08Wti1b5ycy4vFZYghMDK1/Or/zRSjMAGtC2w== dependencies: - graphql-language-service "^5.0.4" + graphql-language-service "^5.0.6" codemirror@^5.65.3: version "5.65.3" @@ -8695,7 +8729,20 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -cross-undici-fetch@0.4.14, cross-undici-fetch@^0.3.5, cross-undici-fetch@^0.4.0, cross-undici-fetch@^0.4.13: +cross-undici-fetch@^0.3.5: + version "0.3.8" + resolved "https://registry.yarnpkg.com/cross-undici-fetch/-/cross-undici-fetch-0.3.8.tgz#3f134f33413d28f3adb7b96519e4e92740cd2e3c" + integrity sha512-9vhSioFL/OiO3lGIDp4x6ILBUSR+dmKkwF3ZshqY+YSwgw/aMTy5yZLWuOqJLt1qH8nlBMA7+qzVYyPoOIiF0A== + dependencies: + 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.1.0" + web-streams-polyfill "^3.2.0" + +cross-undici-fetch@^0.4.0: version "0.4.14" resolved "https://registry.yarnpkg.com/cross-undici-fetch/-/cross-undici-fetch-0.4.14.tgz#c841b4fa3cb12b3c3da13dd09f7be45a7bef5ae7" integrity sha512-CCep44A/baoO8kYJBIR1cRO/tRAk29xzb/tH3O85OtgwZGkL5I0tJZ47ccZdrnAJxrl5tlaYhAOx09fJXMcUqQ== @@ -11847,12 +11894,12 @@ grapheme-splitter@^1.0.4: resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== -graphiql-explorer@^0.9.0: +graphiql-explorer@0.9.0: version "0.9.0" resolved "https://registry.yarnpkg.com/graphiql-explorer/-/graphiql-explorer-0.9.0.tgz#25f6b990bfc3e04e88c0cf419e28d12abe2c4fbe" integrity sha512-fZC/wsuatqiQDO2otchxriFO0LaWIo/ovF/CQJ1yOudmY0P7pzDiP+l9CEHUiWbizk3e99x6DQG4XG1VxA+d6A== -graphiql@^1.8.8: +graphiql@1.8.8: version "1.8.8" resolved "https://registry.yarnpkg.com/graphiql/-/graphiql-1.8.8.tgz#eef760097b20901c0427f831ee6403fbdb2711b8" integrity sha512-0AwnT7YnLU0Y+rQSZgdL7HxFJtAC2emyQAzsaqTglur/gSqw+4115LYi9tNRLGnFpxGE8giTslYLh9P0RdhiWg== @@ -11909,10 +11956,10 @@ graphql-jit@^0.7.0: lodash.merge "4.6.2" lodash.mergewith "4.6.2" -graphql-language-service@^5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/graphql-language-service/-/graphql-language-service-5.0.4.tgz#068dd4ff5dc6fcc6c8560ccc8f05311d5fd63fcd" - integrity sha512-lX+ahYBwvTHJe1N7JqA08moNwbr0RWaFILxVnbciaaeb469TTIhQi87ZgVJ/y9Szre4d0r3vjIt2EstwafzcDA== +graphql-language-service@^5.0.4, graphql-language-service@^5.0.6: + version "5.0.6" + resolved "https://registry.yarnpkg.com/graphql-language-service/-/graphql-language-service-5.0.6.tgz#7fd1e6479e5c3074b070c760fa961d9ad1ed7c72" + integrity sha512-FjE23aTy45Lr5metxCv3ZgSKEZOzN7ERR+OFC1isV5mHxI0Ob8XxayLTYjQKrs8b3kOpvgTYmSmu6AyXOzYslg== dependencies: nullthrows "^1.0.0" vscode-languageserver-types "^3.15.1" @@ -11955,7 +12002,7 @@ graphql-ws@^5.4.1: resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.8.1.tgz#daf72534b8a169a272e730fa4f3ce0e6d04e2883" integrity sha512-UVf/fxlHultC1+12tX9ShTIipqQFNZ96g7N51RFQlk7MFPsDUUMCR3QXVEzHEd5xlTp16rs5vCyfBljvcPN3fA== -graphql@16.0.0, graphql@16.0.0-experimental-stream-defer.5, graphql@16.5.0, graphql@^16.0.1, graphql@^16.1.0, graphql@^16.2.0, graphql@^16.3.0, graphql@^16.5.0: +graphql@16.0.0, graphql@16.0.0-experimental-stream-defer.5, graphql@16.3.0, graphql@16.5.0, graphql@^16.0.1, graphql@^16.1.0, graphql@^16.2.0, graphql@^16.3.0, graphql@^16.5.0: version "16.5.0" resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.5.0.tgz#41b5c1182eaac7f3d47164fb247f61e4dfb69c85" integrity sha512-qbHgh8Ix+j/qY+a/ZcJnFQ+j8ezakqPiHwPiZhV/3PgGlgf96QMBB5/f2rkiC9sgLoy/xvT6TSiaf2nTHJh5iA== @@ -13266,6 +13313,11 @@ isomorphic-ws@^4.0.1: resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc" integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w== +isomorphic-ws@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf" + integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== + istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" @@ -13832,7 +13884,7 @@ jsesc@~0.5.0: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= -json-bigint-patch@^0.0.8: +json-bigint-patch@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/json-bigint-patch/-/json-bigint-patch-0.0.8.tgz#45d954da1f21c6d4f3ae9ef64c9ac227cd0ab0fe" integrity sha512-xa0LTQsyaq8awYyZyuUsporWisZFiyqzxGW8CKM3t7oouf0GFAKYJnqAm6e9NLNBQOCtOLvy614DEiRX/rPbnA== @@ -20580,6 +20632,11 @@ undici@5.5.1: resolved "https://registry.yarnpkg.com/undici/-/undici-5.5.1.tgz#baaf25844a99eaa0b22e1ef8d205bffe587c8f43" integrity sha512-MEvryPLf18HvlCbLSzCW0U00IMftKGI5udnjrQbC5D4P0Hodwffhv+iGfWuJwg16Y/TK11ZFK8i+BPVW2z/eAw== +undici@^5.1.0: + version "5.8.0" + resolved "https://registry.yarnpkg.com/undici/-/undici-5.8.0.tgz#dec9a8ccd90e5a1d81d43c0eab6503146d649a4f" + integrity sha512-1F7Vtcez5w/LwH2G2tGnFIihuWUlc58YidwLiCv+jR2Z50x0tNXpRRw7eOIJ+GvqCqIkg9SB7NWAJ/T9TLfv8Q== + unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" @@ -20895,7 +20952,7 @@ use-sync-external-store@1.2.0: resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== -use-url-search-params@^2.5.1: +use-url-search-params@2.5.1: version "2.5.1" resolved "https://registry.yarnpkg.com/use-url-search-params/-/use-url-search-params-2.5.1.tgz#cb3d435827f70a7433f6045e1aa51b6356ae7096" integrity sha512-tzFTatO7b1VJx9rcP1utVU152PAPt5J4uVLCMteOUZFGBe+u8CzFVs3T74yrpZ/bOJLGjRbv46GBrjHq94XlTg== From f9f90b9b73b999c2926fbd3325e678727d3b2a6e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 22 Jul 2022 23:29:20 +0000 Subject: [PATCH 4/6] chore(deps): update dependency vite to v3 --- examples/sveltekit/package.json | 2 +- packages/graphiql/package.json | 2 +- yarn.lock | 24 ++++++++++++------------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/sveltekit/package.json b/examples/sveltekit/package.json index 96321ff62f..31c11a7f01 100644 --- a/examples/sveltekit/package.json +++ b/examples/sveltekit/package.json @@ -32,7 +32,7 @@ "svelte-preprocess": "4.10.7", "tslib": "2.4.0", "typescript": "4.7.4", - "vite": "2.9.14" + "vite": "3.0.2" }, "dependencies": { "@envelop/graphql-jit": "4.4.0", diff --git a/packages/graphiql/package.json b/packages/graphiql/package.json index d6f591b13c..172247eac3 100644 --- a/packages/graphiql/package.json +++ b/packages/graphiql/package.json @@ -25,7 +25,7 @@ "devDependencies": { "@types/react": "17.0.39", "@vitejs/plugin-react": "1.3.2", - "vite": "2.9.14" + "vite": "3.0.2" }, "dependencies": { "@graphql-tools/url-loader": "7.13.0", diff --git a/yarn.lock b/yarn.lock index b188225a1c..9b6e7f97c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10191,7 +10191,7 @@ esbuild@0.14.47: esbuild-windows-64 "0.14.47" esbuild-windows-arm64 "0.14.47" -esbuild@0.14.49, esbuild@^0.14.21, esbuild@^0.14.25, esbuild@^0.14.27, esbuild@^0.14.48: +esbuild@0.14.49, esbuild@^0.14.21, esbuild@^0.14.25, esbuild@^0.14.47, esbuild@^0.14.48: version "0.14.49" resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.49.tgz#b82834760eba2ddc17b44f05cfcc0aaca2bae492" integrity sha512-/TlVHhOaq7Yz8N1OJrjqM3Auzo5wjvHFLk+T8pIue+fhnhIMpfAzsG6PLVMbFveVxqD2WOp3QHei+52IMUNmCw== @@ -17319,7 +17319,7 @@ postcss-values-parser@^2.0.1: indexes-of "^1.0.1" uniq "^1.0.1" -postcss@8.4.14, postcss@^8.1.6, postcss@^8.1.7, postcss@^8.1.8, postcss@^8.3.5, postcss@^8.4.13: +postcss@8.4.14, postcss@^8.1.6, postcss@^8.1.7, postcss@^8.1.8, postcss@^8.3.5, postcss@^8.4.14: version "8.4.14" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf" integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig== @@ -18402,7 +18402,7 @@ resolve.exports@^1.1.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9" integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== -resolve@^1.0.0, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.7.1: +resolve@^1.0.0, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.7.1: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -18553,7 +18553,7 @@ rollup-pluginutils@^2.8.1, rollup-pluginutils@^2.8.2: dependencies: estree-walker "^0.6.1" -rollup@^2.59.0, rollup@^2.74.1, rollup@^2.75.6: +rollup@^2.74.1, rollup@^2.75.6: version "2.75.7" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.75.7.tgz#221ff11887ae271e37dcc649ba32ce1590aaa0b9" integrity sha512-VSE1iy0eaAYNCxEXaleThdFXqZJ42qDBatAwrfnPlENEZ8erQ+0LYX4JXOLPceWfZpV1VtZwZ3dFCuOZiSyFtQ== @@ -21083,15 +21083,15 @@ vfile@5.3.2, vfile@^5.0.0: unist-util-stringify-position "^3.0.0" vfile-message "^3.0.0" -vite@2.9.14: - version "2.9.14" - resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.14.tgz#c438324c6594afd1050df3777da981dee988bb1b" - integrity sha512-P/UCjSpSMcE54r4mPak55hWAZPlyfS369svib/gpmz8/01L822lMPOJ/RYW6tLCe1RPvMvOsJ17erf55bKp4Hw== +vite@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.2.tgz#2a7b4642c53ae066cf724e7e581d6c1fd24e2c32" + integrity sha512-TAqydxW/w0U5AoL5AsD9DApTvGb2iNbGs3sN4u2VdT1GFkQVUfgUldt+t08TZgi23uIauh1TUOQJALduo9GXqw== dependencies: - esbuild "^0.14.27" - postcss "^8.4.13" - resolve "^1.22.0" - rollup "^2.59.0" + esbuild "^0.14.47" + postcss "^8.4.14" + resolve "^1.22.1" + rollup "^2.75.6" optionalDependencies: fsevents "~2.3.2" From 9d87748173eacd0b367ef92c2ab9e53837fd38f4 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Sun, 24 Jul 2022 15:44:54 +0300 Subject: [PATCH 5/6] Fix GraphiQL build --- packages/graphiql/vite.config.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/graphiql/vite.config.ts b/packages/graphiql/vite.config.ts index a029a276d2..fe13339244 100644 --- a/packages/graphiql/vite.config.ts +++ b/packages/graphiql/vite.config.ts @@ -19,8 +19,7 @@ export default defineConfig({ }, rollupOptions: { output: { - /** prevent code-splitting */ - manualChunks: () => '_.js', + inlineDynamicImports: true, }, }, }, From 41d250a532ad4eaabe91ecdd076cf5134b7e125d Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Sun, 24 Jul 2022 16:07:43 +0300 Subject: [PATCH 6/6] Go --- examples/sveltekit/__tests__/test.ts | 4 ++-- packages/graphiql/index.html | 4 +++- packages/graphiql/vite.config.ts | 7 ++++++- packages/render-graphiql/scripts/yoga-bundle-string.mjs | 2 +- packages/render-graphiql/src/index.ts | 4 ++-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/examples/sveltekit/__tests__/test.ts b/examples/sveltekit/__tests__/test.ts index 3304a421b1..c33e7bf293 100644 --- a/examples/sveltekit/__tests__/test.ts +++ b/examples/sveltekit/__tests__/test.ts @@ -17,7 +17,7 @@ let toSkip = false; describe('SvelteKit integration', () => { beforeAll(async () => { - console.time('Setup SvelteKit tests'); + // console.time('Setup SvelteKit tests'); const nodeVersion = execSync('node -v').toString(); if (nodeVersion.includes('v12')) { @@ -49,7 +49,7 @@ describe('SvelteKit integration', () => { } // How long it took? - console.timeEnd('Setup SvelteKit tests'); + // console.timeEnd('Setup SvelteKit tests'); }, timings.setup.total); beforeEach(async () => { diff --git a/packages/graphiql/index.html b/packages/graphiql/index.html index 1a8691044b..fbb697ec93 100644 --- a/packages/graphiql/index.html +++ b/packages/graphiql/index.html @@ -21,7 +21,9 @@ diff --git a/packages/graphiql/vite.config.ts b/packages/graphiql/vite.config.ts index fe13339244..5e5fb964db 100644 --- a/packages/graphiql/vite.config.ts +++ b/packages/graphiql/vite.config.ts @@ -11,6 +11,9 @@ export default defineConfig({ '/graphql': 'http://localhost:4000', }, }, + define: { + 'process.env.NODE_ENV': '"production"', + }, build: { lib: { entry: path.resolve(__dirname, 'src', 'bundle.tsx'), @@ -19,7 +22,9 @@ export default defineConfig({ }, rollupOptions: { output: { - inlineDynamicImports: true, + /** prevent code-splitting */ + inlineDynamicImports: false, + manualChunks: () => '_.js', }, }, }, diff --git a/packages/render-graphiql/scripts/yoga-bundle-string.mjs b/packages/render-graphiql/scripts/yoga-bundle-string.mjs index 95289412b7..194b2ac272 100644 --- a/packages/render-graphiql/scripts/yoga-bundle-string.mjs +++ b/packages/render-graphiql/scripts/yoga-bundle-string.mjs @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url' const directoryName = path.dirname(fileURLToPath(import.meta.url)) const inputPath = path.resolve(directoryName, '..', '..', 'graphiql', 'dist') -const jsFile = path.resolve(inputPath, 'yoga-graphiql.es.js') +const jsFile = path.resolve(inputPath, 'yoga-graphiql.umd.js') const cssFile = path.resolve(inputPath, 'style.css') const outFile = path.resolve(directoryName, '..', 'src', 'graphiql.ts') diff --git a/packages/render-graphiql/src/index.ts b/packages/render-graphiql/src/index.ts index fa2aca3a9d..9db0daa4bc 100644 --- a/packages/render-graphiql/src/index.ts +++ b/packages/render-graphiql/src/index.ts @@ -16,9 +16,9 @@ export const renderGraphiQL = (opts?: GraphiQLOptions) => /* HTML */ `
-