diff --git a/bun.lock b/bun.lock index 397aa7c..e93cfe2 100644 --- a/bun.lock +++ b/bun.lock @@ -13,7 +13,7 @@ "@sentry/bun": "^11.4.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "graphql": "^16.14.0", + "graphql": "^17.0.2", "lucide-react": "^1.52.0", "neverthrow": "^8.2.0", "open": "^11.0.4", @@ -1138,7 +1138,7 @@ "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], - "graphql": ["graphql@16.14.0", "", {}, "sha512-BBvQ/406p+4CZbTpCbVPSxfzrZrbnuWSP1ELYgyS6B+hNeKzgrdB4JczCa5VZUBQrDa9hUngm0KnexY6pJRN5Q=="], + "graphql": ["graphql@17.0.2", "", {}, "sha512-FRWbddMxfkjiB7z+aQDWIR+E34xo9I8c9mtK2RPv8PmMzKRvrdsreHL/Ui/TmwHJfhHChEtsFPyMHKI+xuarQQ=="], "graphql-config": ["graphql-config@5.1.6", "", { "dependencies": { "@graphql-tools/graphql-file-loader": "^8.0.0", "@graphql-tools/json-file-loader": "^8.0.0", "@graphql-tools/load": "^8.1.0", "@graphql-tools/merge": "^9.0.0", "@graphql-tools/url-loader": "^9.0.0", "@graphql-tools/utils": "^11.0.0", "cosmiconfig": "^8.1.0", "jiti": "^2.0.0", "minimatch": "^10.0.0", "string-env-interpolation": "^1.0.1", "tslib": "^2.4.0" }, "peerDependencies": { "cosmiconfig-toml-loader": "^1.0.0", "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "optionalPeers": ["cosmiconfig-toml-loader"] }, "sha512-fCkYnm4Kdq3un0YIM4BCZHVR5xl0UeLP6syxxO7KAstdY7QVyVvTHP0kRPDYEP1v08uwtJVgis5sj3IOTLOniQ=="], @@ -1760,6 +1760,8 @@ "@octokit/graphql/@octokit/types": ["@octokit/types@16.0.0", "", { "dependencies": { "@octokit/openapi-types": "^27.0.0" } }, "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg=="], + "@octokit/graphql-schema/graphql": ["graphql@16.14.0", "", {}, "sha512-BBvQ/406p+4CZbTpCbVPSxfzrZrbnuWSP1ELYgyS6B+hNeKzgrdB4JczCa5VZUBQrDa9hUngm0KnexY6pJRN5Q=="], + "@octokit/plugin-rest-endpoint-methods/@octokit/types": ["@octokit/types@16.0.0", "", { "dependencies": { "@octokit/openapi-types": "^27.0.0" } }, "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg=="], "@octokit/plugin-retry/@octokit/types": ["@octokit/types@17.0.0", "", { "dependencies": { "@octokit/openapi-types": "^28.0.0" } }, "sha512-ByP1v7YL5SMveFPP7+sj0/ZuWCOOg/Chs4NafOMpq6WNIM/hdGY0S7C0TCGDBWu1aGmOxmUIhMx3cO+IdwYZ1Q=="], diff --git a/codegen.ts b/codegen.ts index 9e48cef..480b399 100644 --- a/codegen.ts +++ b/codegen.ts @@ -4,6 +4,11 @@ import type { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { schema: 'node_modules/@octokit/graphql-schema/schema.graphql', documents: 'src/**/*.graphql', + // GitHub's published schema deprecates implementation fields whose interface + // fields aren't deprecated, which GraphQL 17 rejects. Skip validating the + // schema itself; documents are still validated against it. + // https://github.com/orgs/community/discussions/210385 + config: { assumeValid: true }, generates: { 'src/github/graphql/generated.ts': { plugins: ['typescript-operations', 'typed-document-node'], diff --git a/package.json b/package.json index 56d07f0..693a321 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "@sentry/bun": "^11.4.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "graphql": "^16.14.0", + "graphql": "^17.0.2", "lucide-react": "^1.52.0", "neverthrow": "^8.2.0", "open": "^11.0.4",