From 959915ffa3d01411a0e8b02a15529fafdd47f6b2 Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Mon, 6 Jul 2026 21:13:33 +1000 Subject: [PATCH] CODEGEN905 - Add GraphQL 17 support (#10866) * Add v17.0.0-rc.0 to support * Set peerDeps to 17 * Fix match-graphql hard-coded value * Tighten pnpm-workspace * chore(dependencies): updated changesets for modified dependencies * Update vitest config to resolve one graphql version in esm * Add optional directives handling to work in vitest.config.mts * Avoid using external when testing * Set up vitest for graphql version 16 and 15 as well * Fix mostly falsy guard when matching graphql * Fix issues related to v17 directives * Update match-graphql.js to fully be pnpm * Use RC * chore(dependencies): updated changesets for modified dependencies * Use stable @graphql-tools/utils, exclude to install * chore(dependencies): updated changesets for modified dependencies --------- Co-authored-by: github-actions[bot] --- ...@graphql-codegen_add-10866-dependencies.md | 5 + ...@graphql-codegen_cli-10866-dependencies.md | 6 + ...odegen_client-preset-10866-dependencies.md | 6 + ...graphql-codegen_core-10866-dependencies.md | 6 + ...gen_fragment-matcher-10866-dependencies.md | 5 + ...n_gql-tag-operations-10866-dependencies.md | 6 + ...aphql-modules-preset-10866-dependencies.md | 6 + ...odegen_introspection-10866-dependencies.md | 5 + ...degen_plugin-helpers-10866-dependencies.md | 6 + ...l-codegen_schema-ast-10866-dependencies.md | 6 + ...graphql-codegen_time-10866-dependencies.md | 5 + ..._typed-document-node-10866-dependencies.md | 5 + ...l-codegen_typescript-10866-dependencies.md | 5 + ...cript-document-nodes-10866-dependencies.md | 5 + ...ypescript-operations-10866-dependencies.md | 5 + ...typescript-resolvers-10866-dependencies.md | 6 + ...isitor-plugin-common-10866-dependencies.md | 6 + .github/workflows/main.yml | 2 +- eslint.config.mjs | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- packages/graphql-codegen-cli/package.json | 4 +- .../tests/generate-and-save.spec.ts | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- packages/graphql-codegen-core/package.json | 4 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- packages/plugins/other/add/package.json | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../other/fragment-matcher/package.json | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../plugins/other/introspection/package.json | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../plugins/other/schema-ast/package.json | 4 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- packages/plugins/other/time/package.json | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../other/visitor-plugin-common/package.json | 4 +- .../src/client-side-base-visitor.ts | 2 +- .../src/selection-set-to-object.ts | 4 +- .../other/visitor-plugin-common/src/utils.ts | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../typescript/document-nodes/package.json | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../gql-tag-operations/package.json | 4 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../typescript/operations/package.json | 2 +- ...-documents.skip-include-directives.spec.ts | 55 ++++--- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../plugins/typescript/resolvers/package.json | 4 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../typed-document-node/package.json | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../typescript/typescript/package.json | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- packages/presets/client/package.json | 4 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- packages/presets/graphql-modules/package.json | 4 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- .../{vitest.config.ts => vitest.config.mts} | 2 +- packages/utils/plugins-helpers/package.json | 4 +- .../utils/plugins-helpers/src/federation.ts | 4 + .../{vitest.config.ts => vitest.config.mts} | 2 +- pnpm-lock.yaml | 144 +++++++++--------- pnpm-workspace.yaml | 23 ++- scripts/match-graphql.js | 14 +- tsconfig.json | 1 + tsconfig.spec.json | 2 +- vitest.config.mts | 34 +++++ vitest.config.ts | 20 --- 71 files changed, 307 insertions(+), 194 deletions(-) create mode 100644 .changeset/@graphql-codegen_add-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_cli-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_client-preset-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_core-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_fragment-matcher-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_gql-tag-operations-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_graphql-modules-preset-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_introspection-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_plugin-helpers-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_schema-ast-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_time-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_typed-document-node-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_typescript-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_typescript-document-nodes-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_typescript-operations-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_typescript-resolvers-10866-dependencies.md create mode 100644 .changeset/@graphql-codegen_visitor-plugin-common-10866-dependencies.md rename examples/persisted-documents-string-mode/{vitest.config.ts => vitest.config.mts} (81%) rename examples/persisted-documents/{vitest.config.ts => vitest.config.mts} (80%) rename examples/typescript-graphql-request/{vitest.config.ts => vitest.config.mts} (82%) rename examples/yoga-tests/{vitest.config.ts => vitest.config.mts} (79%) rename packages/graphql-codegen-cli/{vitest.config.ts => vitest.config.mts} (92%) rename packages/graphql-codegen-core/{vitest.config.ts => vitest.config.mts} (78%) rename packages/plugins/other/add/{vitest.config.ts => vitest.config.mts} (76%) rename packages/plugins/other/fragment-matcher/{vitest.config.ts => vitest.config.mts} (77%) rename packages/plugins/other/introspection/{vitest.config.ts => vitest.config.mts} (77%) rename packages/plugins/other/schema-ast/{vitest.config.ts => vitest.config.mts} (77%) rename packages/plugins/other/time/{vitest.config.ts => vitest.config.mts} (76%) rename packages/plugins/other/visitor-plugin-common/{vitest.config.ts => vitest.config.mts} (78%) rename packages/plugins/typescript/document-nodes/{vitest.config.ts => vitest.config.mts} (78%) rename packages/plugins/typescript/gql-tag-operations/{vitest.config.ts => vitest.config.mts} (77%) rename packages/plugins/typescript/operations/{vitest.config.ts => vitest.config.mts} (78%) rename packages/plugins/typescript/resolvers/{vitest.config.ts => vitest.config.mts} (78%) rename packages/plugins/typescript/typed-document-node/{vitest.config.ts => vitest.config.mts} (77%) rename packages/plugins/typescript/typescript/{vitest.config.ts => vitest.config.mts} (77%) rename packages/presets/client/{vitest.config.ts => vitest.config.mts} (78%) rename packages/presets/graphql-modules/{vitest.config.ts => vitest.config.mts} (81%) rename packages/utils/graphql-codegen-testing/{vitest.config.ts => vitest.config.mts} (79%) rename packages/utils/plugins-helpers/{vitest.config.ts => vitest.config.mts} (78%) create mode 100644 vitest.config.mts delete mode 100644 vitest.config.ts diff --git a/.changeset/@graphql-codegen_add-10866-dependencies.md b/.changeset/@graphql-codegen_add-10866-dependencies.md new file mode 100644 index 00000000000..8347a2a3853 --- /dev/null +++ b/.changeset/@graphql-codegen_add-10866-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/add": patch +--- +dependencies updates: + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_cli-10866-dependencies.md b/.changeset/@graphql-codegen_cli-10866-dependencies.md new file mode 100644 index 00000000000..e788cfe69e2 --- /dev/null +++ b/.changeset/@graphql-codegen_cli-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/cli": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_client-preset-10866-dependencies.md b/.changeset/@graphql-codegen_client-preset-10866-dependencies.md new file mode 100644 index 00000000000..e4a44bab6c6 --- /dev/null +++ b/.changeset/@graphql-codegen_client-preset-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/client-preset": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_core-10866-dependencies.md b/.changeset/@graphql-codegen_core-10866-dependencies.md new file mode 100644 index 00000000000..fbee1ab24d1 --- /dev/null +++ b/.changeset/@graphql-codegen_core-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/core": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_fragment-matcher-10866-dependencies.md b/.changeset/@graphql-codegen_fragment-matcher-10866-dependencies.md new file mode 100644 index 00000000000..495e8cca5bf --- /dev/null +++ b/.changeset/@graphql-codegen_fragment-matcher-10866-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/fragment-matcher": patch +--- +dependencies updates: + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_gql-tag-operations-10866-dependencies.md b/.changeset/@graphql-codegen_gql-tag-operations-10866-dependencies.md new file mode 100644 index 00000000000..04d9c4423bc --- /dev/null +++ b/.changeset/@graphql-codegen_gql-tag-operations-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/gql-tag-operations": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_graphql-modules-preset-10866-dependencies.md b/.changeset/@graphql-codegen_graphql-modules-preset-10866-dependencies.md new file mode 100644 index 00000000000..338a812339a --- /dev/null +++ b/.changeset/@graphql-codegen_graphql-modules-preset-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/graphql-modules-preset": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_introspection-10866-dependencies.md b/.changeset/@graphql-codegen_introspection-10866-dependencies.md new file mode 100644 index 00000000000..fd98ef769e6 --- /dev/null +++ b/.changeset/@graphql-codegen_introspection-10866-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/introspection": patch +--- +dependencies updates: + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_plugin-helpers-10866-dependencies.md b/.changeset/@graphql-codegen_plugin-helpers-10866-dependencies.md new file mode 100644 index 00000000000..cc8a061fb05 --- /dev/null +++ b/.changeset/@graphql-codegen_plugin-helpers-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/plugin-helpers": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_schema-ast-10866-dependencies.md b/.changeset/@graphql-codegen_schema-ast-10866-dependencies.md new file mode 100644 index 00000000000..a2c3ccaf5a7 --- /dev/null +++ b/.changeset/@graphql-codegen_schema-ast-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/schema-ast": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_time-10866-dependencies.md b/.changeset/@graphql-codegen_time-10866-dependencies.md new file mode 100644 index 00000000000..1bae80b056b --- /dev/null +++ b/.changeset/@graphql-codegen_time-10866-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/time": patch +--- +dependencies updates: + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_typed-document-node-10866-dependencies.md b/.changeset/@graphql-codegen_typed-document-node-10866-dependencies.md new file mode 100644 index 00000000000..23f005dc2e9 --- /dev/null +++ b/.changeset/@graphql-codegen_typed-document-node-10866-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/typed-document-node": patch +--- +dependencies updates: + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_typescript-10866-dependencies.md b/.changeset/@graphql-codegen_typescript-10866-dependencies.md new file mode 100644 index 00000000000..9e8eb19d1e8 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-10866-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/typescript": patch +--- +dependencies updates: + - Updated dependency [`graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.12.0) (from `^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_typescript-document-nodes-10866-dependencies.md b/.changeset/@graphql-codegen_typescript-document-nodes-10866-dependencies.md new file mode 100644 index 00000000000..335d9b6cd00 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-document-nodes-10866-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/typescript-document-nodes": patch +--- +dependencies updates: + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_typescript-operations-10866-dependencies.md b/.changeset/@graphql-codegen_typescript-operations-10866-dependencies.md new file mode 100644 index 00000000000..d575205da08 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-operations-10866-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/typescript-operations": patch +--- +dependencies updates: + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_typescript-resolvers-10866-dependencies.md b/.changeset/@graphql-codegen_typescript-resolvers-10866-dependencies.md new file mode 100644 index 00000000000..825abeb68c7 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-resolvers-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-resolvers": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_visitor-plugin-common-10866-dependencies.md b/.changeset/@graphql-codegen_visitor-plugin-common-10866-dependencies.md new file mode 100644 index 00000000000..995ff3a0c99 --- /dev/null +++ b/.changeset/@graphql-codegen_visitor-plugin-common-10866-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/visitor-plugin-common": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0) (from `^11.0.0`, in `dependencies`) + - Updated dependency [`graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0` ↗︎](https://www.npmjs.com/package/graphql/v/0.8.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8cf96480f46..ad9d8795768 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -187,7 +187,7 @@ jobs: matrix: os: [ubuntu-latest] # remove windows to speed up the tests node_version: [22, 24] - graphql_version: [15, 16] + graphql_version: [15, 16, 17] include: - node-version: 22 os: windows-latest diff --git a/eslint.config.mjs b/eslint.config.mjs index 8d3550c6d88..153c4344f53 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -154,7 +154,7 @@ export default [ '**/*.spec.ts', '**/tests/**/*.{js,ts,tsx,cjs}', '**/graphql-codegen-testing/**/*.ts', - '**/vitest.config.ts', + '**/vitest.config.mts', '**/vitest.setup.ts', '**/__mocks__/*', ], diff --git a/examples/persisted-documents-string-mode/vitest.config.ts b/examples/persisted-documents-string-mode/vitest.config.mts similarity index 81% rename from examples/persisted-documents-string-mode/vitest.config.ts rename to examples/persisted-documents-string-mode/vitest.config.mts index b6936f71827..4f80fa90fb5 100644 --- a/examples/persisted-documents-string-mode/vitest.config.ts +++ b/examples/persisted-documents-string-mode/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../vitest.config.js'; +import { sharedConfig } from '../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/examples/persisted-documents/vitest.config.ts b/examples/persisted-documents/vitest.config.mts similarity index 80% rename from examples/persisted-documents/vitest.config.ts rename to examples/persisted-documents/vitest.config.mts index 1e9432199fc..1f4170776e1 100644 --- a/examples/persisted-documents/vitest.config.ts +++ b/examples/persisted-documents/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../vitest.config.js'; +import { sharedConfig } from '../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/examples/typescript-graphql-request/vitest.config.ts b/examples/typescript-graphql-request/vitest.config.mts similarity index 82% rename from examples/typescript-graphql-request/vitest.config.ts rename to examples/typescript-graphql-request/vitest.config.mts index e02b5a3b2ec..bb90cc61776 100644 --- a/examples/typescript-graphql-request/vitest.config.ts +++ b/examples/typescript-graphql-request/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../vitest.config.js'; +import { sharedConfig } from '../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/examples/yoga-tests/vitest.config.ts b/examples/yoga-tests/vitest.config.mts similarity index 79% rename from examples/yoga-tests/vitest.config.ts rename to examples/yoga-tests/vitest.config.mts index eae99645342..cb144802d34 100644 --- a/examples/yoga-tests/vitest.config.ts +++ b/examples/yoga-tests/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../vitest.config.js'; +import { sharedConfig } from '../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/graphql-codegen-cli/package.json b/packages/graphql-codegen-cli/package.json index 1698e6b2a4e..29c43330328 100644 --- a/packages/graphql-codegen-cli/package.json +++ b/packages/graphql-codegen-cli/package.json @@ -66,7 +66,7 @@ }, "peerDependencies": { "@parcel/watcher": "^2.1.0", - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "peerDependenciesMeta": { "@parcel/watcher": { @@ -89,7 +89,7 @@ "@graphql-tools/load": "^8.1.8", "@graphql-tools/merge": "^9.0.6", "@graphql-tools/url-loader": "^9.0.6", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "@inquirer/prompts": "^8.3.2", "@whatwg-node/fetch": "^0.10.0", "chalk": "^5.6.0", diff --git a/packages/graphql-codegen-cli/tests/generate-and-save.spec.ts b/packages/graphql-codegen-cli/tests/generate-and-save.spec.ts index c7bfb68fe7d..dc5b7074d71 100644 --- a/packages/graphql-codegen-cli/tests/generate-and-save.spec.ts +++ b/packages/graphql-codegen-cli/tests/generate-and-save.spec.ts @@ -188,7 +188,7 @@ describe('generate-and-save', () => { documents: inputFile, generates: { [outputFile]: { - plugins: ['typescript', 'typescript-operations', 'typescript-react-apollo'], + plugins: ['typescript', 'typescript-operations'], }, }, }, diff --git a/packages/graphql-codegen-cli/vitest.config.ts b/packages/graphql-codegen-cli/vitest.config.mts similarity index 92% rename from packages/graphql-codegen-cli/vitest.config.ts rename to packages/graphql-codegen-cli/vitest.config.mts index 24d0eaee225..5a6871127f6 100644 --- a/packages/graphql-codegen-cli/vitest.config.ts +++ b/packages/graphql-codegen-cli/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../vitest.config.js'; +import { sharedConfig } from '../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/graphql-codegen-core/package.json b/packages/graphql-codegen-core/package.json index 33075258295..6ec3bbb3bca 100644 --- a/packages/graphql-codegen-core/package.json +++ b/packages/graphql-codegen-core/package.json @@ -58,12 +58,12 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", "@graphql-tools/schema": "^10.0.0", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "tslib": "^2.8.0" }, "publishConfig": { diff --git a/packages/graphql-codegen-core/vitest.config.ts b/packages/graphql-codegen-core/vitest.config.mts similarity index 78% rename from packages/graphql-codegen-core/vitest.config.ts rename to packages/graphql-codegen-core/vitest.config.mts index 6c1839ad529..e8e24484314 100644 --- a/packages/graphql-codegen-core/vitest.config.ts +++ b/packages/graphql-codegen-core/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../vitest.config.js'; +import { sharedConfig } from '../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/other/add/package.json b/packages/plugins/other/add/package.json index 81aa646d68f..71f0943d360 100644 --- a/packages/plugins/other/add/package.json +++ b/packages/plugins/other/add/package.json @@ -36,7 +36,7 @@ "lint": "eslint **/*.ts" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", diff --git a/packages/plugins/other/add/vitest.config.ts b/packages/plugins/other/add/vitest.config.mts similarity index 76% rename from packages/plugins/other/add/vitest.config.ts rename to packages/plugins/other/add/vitest.config.mts index 5d952949045..d650c0ffa41 100644 --- a/packages/plugins/other/add/vitest.config.ts +++ b/packages/plugins/other/add/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/other/fragment-matcher/package.json b/packages/plugins/other/fragment-matcher/package.json index 50ecf77ea02..0c9e4a2b38f 100644 --- a/packages/plugins/other/fragment-matcher/package.json +++ b/packages/plugins/other/fragment-matcher/package.json @@ -37,7 +37,7 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", diff --git a/packages/plugins/other/fragment-matcher/vitest.config.ts b/packages/plugins/other/fragment-matcher/vitest.config.mts similarity index 77% rename from packages/plugins/other/fragment-matcher/vitest.config.ts rename to packages/plugins/other/fragment-matcher/vitest.config.mts index b756b720341..c50140825bd 100644 --- a/packages/plugins/other/fragment-matcher/vitest.config.ts +++ b/packages/plugins/other/fragment-matcher/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/other/introspection/package.json b/packages/plugins/other/introspection/package.json index af15a5929f4..d4e9fea3468 100644 --- a/packages/plugins/other/introspection/package.json +++ b/packages/plugins/other/introspection/package.json @@ -37,7 +37,7 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", diff --git a/packages/plugins/other/introspection/vitest.config.ts b/packages/plugins/other/introspection/vitest.config.mts similarity index 77% rename from packages/plugins/other/introspection/vitest.config.ts rename to packages/plugins/other/introspection/vitest.config.mts index 79b31ba94ef..a8fb9c01845 100644 --- a/packages/plugins/other/introspection/vitest.config.ts +++ b/packages/plugins/other/introspection/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/other/schema-ast/package.json b/packages/plugins/other/schema-ast/package.json index fcd0cec25e3..f6f0390de2c 100644 --- a/packages/plugins/other/schema-ast/package.json +++ b/packages/plugins/other/schema-ast/package.json @@ -37,11 +37,11 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "tslib": "^2.8.0" }, "publishConfig": { diff --git a/packages/plugins/other/schema-ast/vitest.config.ts b/packages/plugins/other/schema-ast/vitest.config.mts similarity index 77% rename from packages/plugins/other/schema-ast/vitest.config.ts rename to packages/plugins/other/schema-ast/vitest.config.mts index a825c600be3..a31be9d9bee 100644 --- a/packages/plugins/other/schema-ast/vitest.config.ts +++ b/packages/plugins/other/schema-ast/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/other/time/package.json b/packages/plugins/other/time/package.json index fb89a0a6b99..f9847029a47 100644 --- a/packages/plugins/other/time/package.json +++ b/packages/plugins/other/time/package.json @@ -36,7 +36,7 @@ "lint": "eslint **/*.ts" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", diff --git a/packages/plugins/other/time/vitest.config.ts b/packages/plugins/other/time/vitest.config.mts similarity index 76% rename from packages/plugins/other/time/vitest.config.ts rename to packages/plugins/other/time/vitest.config.mts index 8254cdb21d1..ddf8524cc1b 100644 --- a/packages/plugins/other/time/vitest.config.ts +++ b/packages/plugins/other/time/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/other/visitor-plugin-common/package.json b/packages/plugins/other/visitor-plugin-common/package.json index 46c9ddff43c..c45c6bcf341 100644 --- a/packages/plugins/other/visitor-plugin-common/package.json +++ b/packages/plugins/other/visitor-plugin-common/package.json @@ -36,13 +36,13 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", "@graphql-tools/optimize": "^2.0.0", "@graphql-tools/relay-operation-optimizer": "^7.1.1", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "auto-bind": "^5.0.0", "change-case-all": "^2.1.0", "dependency-graph": "^1.0.0", diff --git a/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts b/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts index 6c6e18759d2..df17a0e05ab 100644 --- a/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts +++ b/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts @@ -491,7 +491,7 @@ export class ClientSideBaseVisitor< const selection = queue.shift(); if ( selection.kind === Kind.FRAGMENT_SPREAD && - selection.directives.some((d: DirectiveNode) => d.name.value === 'defer') + selection.directives?.some((d: DirectiveNode) => d.name.value === 'defer') ) { const fragmentName = selection.name.value; const fragment = this.fragmentsGraph.getNodeData(fragmentName); diff --git a/packages/plugins/other/visitor-plugin-common/src/selection-set-to-object.ts b/packages/plugins/other/visitor-plugin-common/src/selection-set-to-object.ts index 6ab411bb62b..ff6e62ccf44 100644 --- a/packages/plugins/other/visitor-plugin-common/src/selection-set-to-object.ts +++ b/packages/plugins/other/visitor-plugin-common/src/selection-set-to-object.ts @@ -308,7 +308,7 @@ export class SelectionSetToObject< if (originalNode.kind === Kind.FIELD) { return { ...originalNode, - fragmentDirectives: [...spread.directives], + fragmentDirectives: [...(spread.directives || [])], } satisfies EnrichedFieldNode; } return originalNode; @@ -319,7 +319,7 @@ export class SelectionSetToObject< typeName: usage, onType: fragmentSpreadObject.onType, selectionNodes: fragmentSelectionNodes, - fragmentDirectives: [...spread.directives], + fragmentDirectives: [...(spread.directives || [])], }); } } diff --git a/packages/plugins/other/visitor-plugin-common/src/utils.ts b/packages/plugins/other/visitor-plugin-common/src/utils.ts index a3e4f6c2303..bdfb7340423 100644 --- a/packages/plugins/other/visitor-plugin-common/src/utils.ts +++ b/packages/plugins/other/visitor-plugin-common/src/utils.ts @@ -709,7 +709,7 @@ export const getNodeComment = ( node: FieldDefinitionNode | EnumValueDefinitionNode | InputValueDefinitionNode, ): string => { let commentText = node.description?.value; - const deprecationDirective = node.directives.find(v => v.name.value === 'deprecated'); + const deprecationDirective = node.directives?.find(v => v.name.value === 'deprecated'); if (deprecationDirective) { const deprecationReason = getDeprecationReason(deprecationDirective); commentText = `${commentText ? `${commentText}\n` : ''}@deprecated ${deprecationReason}`; diff --git a/packages/plugins/other/visitor-plugin-common/vitest.config.ts b/packages/plugins/other/visitor-plugin-common/vitest.config.mts similarity index 78% rename from packages/plugins/other/visitor-plugin-common/vitest.config.ts rename to packages/plugins/other/visitor-plugin-common/vitest.config.mts index f00bf12e0ec..764c82e5090 100644 --- a/packages/plugins/other/visitor-plugin-common/vitest.config.ts +++ b/packages/plugins/other/visitor-plugin-common/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/typescript/document-nodes/package.json b/packages/plugins/typescript/document-nodes/package.json index dfa2795d195..85415d9810a 100644 --- a/packages/plugins/typescript/document-nodes/package.json +++ b/packages/plugins/typescript/document-nodes/package.json @@ -37,7 +37,7 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", diff --git a/packages/plugins/typescript/document-nodes/vitest.config.ts b/packages/plugins/typescript/document-nodes/vitest.config.mts similarity index 78% rename from packages/plugins/typescript/document-nodes/vitest.config.ts rename to packages/plugins/typescript/document-nodes/vitest.config.mts index 4db4af33bd9..8aab6e4602e 100644 --- a/packages/plugins/typescript/document-nodes/vitest.config.ts +++ b/packages/plugins/typescript/document-nodes/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/typescript/gql-tag-operations/package.json b/packages/plugins/typescript/gql-tag-operations/package.json index de718aa1d49..21999614177 100644 --- a/packages/plugins/typescript/gql-tag-operations/package.json +++ b/packages/plugins/typescript/gql-tag-operations/package.json @@ -37,12 +37,12 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", "@graphql-codegen/visitor-plugin-common": "workspace:^", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "auto-bind": "^5.0.0", "tslib": "^2.8.0" }, diff --git a/packages/plugins/typescript/gql-tag-operations/vitest.config.ts b/packages/plugins/typescript/gql-tag-operations/vitest.config.mts similarity index 77% rename from packages/plugins/typescript/gql-tag-operations/vitest.config.ts rename to packages/plugins/typescript/gql-tag-operations/vitest.config.mts index ed121b96675..647a023e5c8 100644 --- a/packages/plugins/typescript/gql-tag-operations/vitest.config.ts +++ b/packages/plugins/typescript/gql-tag-operations/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/typescript/operations/package.json b/packages/plugins/typescript/operations/package.json index 01787bb2f24..b65a2c0098b 100644 --- a/packages/plugins/typescript/operations/package.json +++ b/packages/plugins/typescript/operations/package.json @@ -37,7 +37,7 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0", "graphql-sock": "^1.0.0" }, "peerDependenciesMeta": { diff --git a/packages/plugins/typescript/operations/tests/ts-documents.skip-include-directives.spec.ts b/packages/plugins/typescript/operations/tests/ts-documents.skip-include-directives.spec.ts index 99fdaf6fa14..baaf7c5d8c1 100644 --- a/packages/plugins/typescript/operations/tests/ts-documents.skip-include-directives.spec.ts +++ b/packages/plugins/typescript/operations/tests/ts-documents.skip-include-directives.spec.ts @@ -1,4 +1,4 @@ -import { buildSchema, parse } from 'graphql'; +import { buildSchema, parse, versionInfo } from 'graphql'; import { plugin } from '../src/index.js'; import { schema } from './shared/schema.js'; @@ -822,26 +822,36 @@ describe('TypeScript Operations Plugin - @skip directive', () => { `); }); - it('should include fragment variable definitions when experimentalFragmentVariables is set', async () => { - const ast = parse( - /* GraphQL */ ` - fragment TextNotificationFragment($skip: Boolean!) on TextNotification { - text @skip(if: $skip) - } - `, - // < v15 compatibility - { experimentalFragmentVariables: true, allowLegacyFragmentVariables: true } as any, - ); - const config = { experimentalFragmentVariables: true }; - const { content } = await plugin( - schema, - [{ location: 'test-file.ts', document: ast }], - config, - { - outputFile: '', - }, - ); - expect(content).toMatchInlineSnapshot(` + /** + * `experimentalFragmentVariables` and `allowLegacyFragmentVariables` have been removed in graphql v17: + * This test is not a valid test in graphql v17 so we just skip it + * + * https://graphql.org/blog/2026-06-15-introducing-graphql-js-v17/#experimental-specification-work + * + */ + if (versionInfo.major < 17) { + it('should include fragment variable definitions when experimentalFragmentVariables is set (graphql { + const ast = parse( + /* GraphQL */ ` + fragment TextNotificationFragment($skip: Boolean!) on TextNotification { + text @skip(if: $skip) + } + `, + { + experimentalFragmentVariables: true, // < v15 compatibility + allowLegacyFragmentVariables: true, // v16 compatibility + } as any, + ); + const config = { experimentalFragmentVariables: true }; + const { content } = await plugin( + schema, + [{ location: 'test-file.ts', document: ast }], + config, + { + outputFile: '', + }, + ); + expect(content).toMatchInlineSnapshot(` "export type TextNotificationFragmentFragment = { text?: string }; @@ -850,7 +860,8 @@ describe('TypeScript Operations Plugin - @skip directive', () => { }>; " `); - }); + }); + } it('generates optional field when @skip is used on an aliased field', async () => { const schema = buildSchema(/* GraphQL */ ` diff --git a/packages/plugins/typescript/operations/vitest.config.ts b/packages/plugins/typescript/operations/vitest.config.mts similarity index 78% rename from packages/plugins/typescript/operations/vitest.config.ts rename to packages/plugins/typescript/operations/vitest.config.mts index 1148535b308..d9aeb9a27c7 100644 --- a/packages/plugins/typescript/operations/vitest.config.ts +++ b/packages/plugins/typescript/operations/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/typescript/resolvers/package.json b/packages/plugins/typescript/resolvers/package.json index c0528b2e719..8aadc73b67a 100644 --- a/packages/plugins/typescript/resolvers/package.json +++ b/packages/plugins/typescript/resolvers/package.json @@ -37,7 +37,7 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0", "graphql-sock": "^1.0.0" }, "peerDependenciesMeta": { @@ -49,7 +49,7 @@ "@graphql-codegen/plugin-helpers": "workspace:^", "@graphql-codegen/typescript": "workspace:^", "@graphql-codegen/visitor-plugin-common": "workspace:^", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "auto-bind": "^5.0.0", "tslib": "^2.8.0" }, diff --git a/packages/plugins/typescript/resolvers/vitest.config.ts b/packages/plugins/typescript/resolvers/vitest.config.mts similarity index 78% rename from packages/plugins/typescript/resolvers/vitest.config.ts rename to packages/plugins/typescript/resolvers/vitest.config.mts index 9ff44488b30..4eacb253755 100644 --- a/packages/plugins/typescript/resolvers/vitest.config.ts +++ b/packages/plugins/typescript/resolvers/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/typescript/typed-document-node/package.json b/packages/plugins/typescript/typed-document-node/package.json index 831313c1fd2..8a76fca040b 100644 --- a/packages/plugins/typescript/typed-document-node/package.json +++ b/packages/plugins/typescript/typed-document-node/package.json @@ -37,7 +37,7 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", diff --git a/packages/plugins/typescript/typed-document-node/vitest.config.ts b/packages/plugins/typescript/typed-document-node/vitest.config.mts similarity index 77% rename from packages/plugins/typescript/typed-document-node/vitest.config.ts rename to packages/plugins/typescript/typed-document-node/vitest.config.mts index 4b1e3033b61..86365c2eed8 100644 --- a/packages/plugins/typescript/typed-document-node/vitest.config.ts +++ b/packages/plugins/typescript/typed-document-node/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/plugins/typescript/typescript/package.json b/packages/plugins/typescript/typescript/package.json index ee8937c1b34..e65bcb168c1 100644 --- a/packages/plugins/typescript/typescript/package.json +++ b/packages/plugins/typescript/typescript/package.json @@ -37,7 +37,7 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", diff --git a/packages/plugins/typescript/typescript/vitest.config.ts b/packages/plugins/typescript/typescript/vitest.config.mts similarity index 77% rename from packages/plugins/typescript/typescript/vitest.config.ts rename to packages/plugins/typescript/typescript/vitest.config.mts index d097c891ebc..2940297b4e3 100644 --- a/packages/plugins/typescript/typescript/vitest.config.ts +++ b/packages/plugins/typescript/typescript/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../../vitest.config.js'; +import { sharedConfig } from '../../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/presets/client/package.json b/packages/presets/client/package.json index 2cf5203357d..b85661298bc 100644 --- a/packages/presets/client/package.json +++ b/packages/presets/client/package.json @@ -37,7 +37,7 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0", "graphql-sock": "^1.0.0" }, "peerDependenciesMeta": { @@ -56,7 +56,7 @@ "@graphql-codegen/typescript-operations": "workspace:^", "@graphql-codegen/visitor-plugin-common": "workspace:^", "@graphql-tools/documents": "^1.0.0", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "@graphql-typed-document-node/core": "3.2.0", "tslib": "^2.8.0" }, diff --git a/packages/presets/client/vitest.config.ts b/packages/presets/client/vitest.config.mts similarity index 78% rename from packages/presets/client/vitest.config.ts rename to packages/presets/client/vitest.config.mts index 10a00906cdc..82dc3803a7a 100644 --- a/packages/presets/client/vitest.config.ts +++ b/packages/presets/client/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../vitest.config.js'; +import { sharedConfig } from '../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/presets/graphql-modules/package.json b/packages/presets/graphql-modules/package.json index a1b751a5ca4..562225eee2a 100644 --- a/packages/presets/graphql-modules/package.json +++ b/packages/presets/graphql-modules/package.json @@ -36,12 +36,12 @@ "prepack": "bob prepack" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "workspace:^", "@graphql-codegen/visitor-plugin-common": "workspace:^", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "change-case-all": "^2.1.0", "parse-filepath": "^1.0.2", "tslib": "^2.8.0" diff --git a/packages/presets/graphql-modules/vitest.config.ts b/packages/presets/graphql-modules/vitest.config.mts similarity index 81% rename from packages/presets/graphql-modules/vitest.config.ts rename to packages/presets/graphql-modules/vitest.config.mts index 71afbbf4ce9..852f92bfeeb 100644 --- a/packages/presets/graphql-modules/vitest.config.ts +++ b/packages/presets/graphql-modules/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../vitest.config.js'; +import { sharedConfig } from '../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/utils/graphql-codegen-testing/vitest.config.ts b/packages/utils/graphql-codegen-testing/vitest.config.mts similarity index 79% rename from packages/utils/graphql-codegen-testing/vitest.config.ts rename to packages/utils/graphql-codegen-testing/vitest.config.mts index 96f0fc445fa..5c14df5760c 100644 --- a/packages/utils/graphql-codegen-testing/vitest.config.ts +++ b/packages/utils/graphql-codegen-testing/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../vitest.config.js'; +import { sharedConfig } from '../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/packages/utils/plugins-helpers/package.json b/packages/utils/plugins-helpers/package.json index 0e409d6a641..3cfb6ee5182 100644 --- a/packages/utils/plugins-helpers/package.json +++ b/packages/utils/plugins-helpers/package.json @@ -37,10 +37,10 @@ "test": "vitest --no-watch" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, "dependencies": { - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "^11.2.0", "change-case-all": "^2.1.0", "common-tags": "1.8.2", "import-from": "4.0.0", diff --git a/packages/utils/plugins-helpers/src/federation.ts b/packages/utils/plugins-helpers/src/federation.ts index 276fed269b7..c788946a1ae 100644 --- a/packages/utils/plugins-helpers/src/federation.ts +++ b/packages/utils/plugins-helpers/src/federation.ts @@ -269,6 +269,8 @@ export function addFederationReferencesToSchema( typeConfig.fields = { [resolveReferenceFieldName]: { type, + args: {}, + extensions: {}, }, ...typeConfig.fields, }; @@ -314,6 +316,8 @@ export function addFederationReferencesToSchema( typeConfig.fields = { [resolveReferenceFieldName]: { type, + args: {}, + extensions: {}, }, ...typeConfig.fields, }; diff --git a/packages/utils/plugins-helpers/vitest.config.ts b/packages/utils/plugins-helpers/vitest.config.mts similarity index 78% rename from packages/utils/plugins-helpers/vitest.config.ts rename to packages/utils/plugins-helpers/vitest.config.mts index f7fc5d582db..f99ba2f4079 100644 --- a/packages/utils/plugins-helpers/vitest.config.ts +++ b/packages/utils/plugins-helpers/vitest.config.mts @@ -1,5 +1,5 @@ import { defineProject, mergeConfig } from 'vitest/config'; -import { sharedConfig } from '../../../vitest.config.js'; +import { sharedConfig } from '../../../vitest.config.mjs'; export default mergeConfig( sharedConfig, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a484b874f14..afd5831f992 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,7 +63,7 @@ importers: version: 10.4.0(jiti@2.7.0) eslint-plugin-import: specifier: 2.32.0 - version: 2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@10.4.0(jiti@2.7.0)) + version: 2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)) eslint-plugin-tailwindcss: specifier: npm:@hasparus/eslint-plugin-tailwindcss@3.17.5 version: '@hasparus/eslint-plugin-tailwindcss@3.17.5(tailwindcss@3.4.19(tsx@4.22.0)(yaml@2.9.0))' @@ -1019,8 +1019,8 @@ importers: specifier: ^9.0.6 version: 9.1.2(@types/node@24.12.4)(graphql@16.14.0) '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) '@inquirer/prompts': specifier: ^8.3.2 version: 8.4.3(@types/node@24.12.4) @@ -1040,7 +1040,7 @@ importers: specifier: ^7.0.0 version: 7.0.2 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 graphql-config: specifier: ^5.1.6 @@ -1153,10 +1153,10 @@ importers: specifier: ^10.0.0 version: 10.0.33(graphql@16.14.0) '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1169,7 +1169,7 @@ importers: specifier: workspace:^ version: link:../../../utils/plugins-helpers/dist graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1182,7 +1182,7 @@ importers: specifier: workspace:^ version: link:../../../utils/plugins-helpers/dist graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1202,7 +1202,7 @@ importers: specifier: workspace:^ version: link:../visitor-plugin-common/dist graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1215,10 +1215,10 @@ importers: specifier: workspace:^ version: link:../../../utils/plugins-helpers/dist '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1231,7 +1231,7 @@ importers: specifier: workspace:^ version: link:../../../utils/plugins-helpers/dist graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 moment: specifier: ~2.30.0 @@ -1250,8 +1250,8 @@ importers: specifier: ^7.1.1 version: 7.1.4(graphql@16.14.0) '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) auto-bind: specifier: ^5.0.0 version: 5.0.1 @@ -1262,7 +1262,7 @@ importers: specifier: ^1.0.0 version: 1.0.0 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 graphql-tag: specifier: ^2.11.0 @@ -1291,7 +1291,7 @@ importers: specifier: ^5.0.0 version: 5.0.1 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1307,13 +1307,13 @@ importers: specifier: workspace:^ version: link:../../other/visitor-plugin-common/dist '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) auto-bind: specifier: ^5.0.0 version: 5.0.1 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1335,7 +1335,7 @@ importers: specifier: ^5.0.0 version: 5.0.1 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1358,13 +1358,13 @@ importers: specifier: workspace:^ version: link:../../other/visitor-plugin-common/dist '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) auto-bind: specifier: ^5.0.0 version: 5.0.1 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1393,7 +1393,7 @@ importers: specifier: ^2.1.0 version: 2.1.0 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1415,7 +1415,7 @@ importers: specifier: ^5.0.0 version: 5.0.1 graphql: - specifier: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ~2.8.0 @@ -1455,13 +1455,13 @@ importers: specifier: ^1.0.0 version: 1.0.1(graphql@16.14.0) '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) '@graphql-typed-document-node/core': specifier: 3.2.0 version: 3.2.0(graphql@16.14.0) graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 tslib: specifier: ^2.8.0 @@ -1499,13 +1499,13 @@ importers: specifier: workspace:^ version: link:../../plugins/other/visitor-plugin-common/dist '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) change-case-all: specifier: ^2.1.0 version: 2.1.0 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 parse-filepath: specifier: ^1.0.2 @@ -1556,8 +1556,8 @@ importers: packages/utils/plugins-helpers: dependencies: '@graphql-tools/utils': - specifier: ^11.0.0 - version: 11.1.0(graphql@16.14.0) + specifier: ^11.2.0 + version: 11.2.0(graphql@16.14.0) change-case-all: specifier: ^2.1.0 version: 2.1.0 @@ -1565,7 +1565,7 @@ importers: specifier: 1.8.2 version: 1.8.2 graphql: - specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + specifier: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 version: 16.14.0 import-from: specifier: 4.0.0 @@ -3654,8 +3654,8 @@ packages: peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 - '@graphql-tools/utils@11.1.0': - resolution: {integrity: sha512-PtFVG4r8Z2LEBSaPYQMusBiB3o6kjLVJyjCLbnWem/SpSuM21v6LTmgpkXfYU1qpBV2UGsFyuEnSJInl8fR1Ag==} + '@graphql-tools/utils@11.2.0': + resolution: {integrity: sha512-eu9h1R3j/wWc4rvmYJF5AKtlwniDzstrZ/c6KSz+HdI+n7I7iog9xyKmBfpUwSbG1TqPNZBzWjFMkzdYOKq6Bg==} engines: {node: '>=16.0.0'} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 @@ -13958,7 +13958,7 @@ snapshots: '@graphql-codegen/flow': 3.0.1(graphql@16.14.0) '@graphql-codegen/plugin-helpers': 3.1.2(graphql@16.14.0) '@graphql-codegen/visitor-plugin-common': 2.13.8(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) auto-bind: 4.0.0 graphql: 16.14.0 tslib: 2.8.1 @@ -14067,7 +14067,7 @@ snapshots: '@graphql-codegen/add': 7.0.0(graphql@16.14.0) '@graphql-codegen/plugin-helpers': 7.0.1(graphql@16.14.0) '@graphql-codegen/visitor-plugin-common': 7.0.2(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 parse-filepath: 1.0.2 tslib: 2.8.1 @@ -14104,7 +14104,7 @@ snapshots: '@graphql-codegen/plugin-helpers@6.3.0(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) change-case-all: 1.0.15 common-tags: 1.8.2 graphql: 16.14.0 @@ -14113,7 +14113,7 @@ snapshots: '@graphql-codegen/plugin-helpers@7.0.1(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) change-case-all: 2.1.0 common-tags: 1.8.2 graphql: 16.14.0 @@ -14130,7 +14130,7 @@ snapshots: '@graphql-codegen/schema-ast@5.0.2(graphql@16.14.0)': dependencies: '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 tslib: 2.8.1 @@ -14182,7 +14182,7 @@ snapshots: '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.14.0) '@graphql-codegen/typescript': 5.0.10(graphql@16.14.0) '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) auto-bind: 4.0.0 graphql: 16.14.0 graphql-tag: 2.12.6(graphql@16.14.0) @@ -14385,7 +14385,7 @@ snapshots: '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.14.0) '@graphql-tools/optimize': 2.0.0(graphql@16.14.0) '@graphql-tools/relay-operation-optimizer': 7.1.4(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) auto-bind: 4.0.0 change-case-all: 1.0.15 dependency-graph: 1.0.0 @@ -14399,7 +14399,7 @@ snapshots: '@graphql-codegen/plugin-helpers': 7.0.1(graphql@16.14.0) '@graphql-tools/optimize': 2.0.0(graphql@16.14.0) '@graphql-tools/relay-operation-optimizer': 7.1.4(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) auto-bind: 5.0.1 change-case-all: 2.1.0 dependency-graph: 1.0.0 @@ -14412,7 +14412,7 @@ snapshots: '@graphql-tools/apollo-engine-loader@8.0.30(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@whatwg-node/fetch': 0.10.13 graphql: 16.14.0 sync-fetch: 0.6.0 @@ -14420,7 +14420,7 @@ snapshots: '@graphql-tools/batch-execute@10.0.8(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@whatwg-node/promise-helpers': 1.3.2 dataloader: 2.2.3 graphql: 16.14.0 @@ -14429,7 +14429,7 @@ snapshots: '@graphql-tools/code-file-loader@8.1.32(graphql@16.14.0)': dependencies: '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) globby: 11.1.0 graphql: 16.14.0 tslib: 2.8.1 @@ -14442,7 +14442,7 @@ snapshots: '@graphql-tools/batch-execute': 10.0.8(graphql@16.14.0) '@graphql-tools/executor': 1.5.3(graphql@16.14.0) '@graphql-tools/schema': 10.0.33(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/promise-helpers': 1.3.2 dataloader: 2.2.3 @@ -14458,13 +14458,13 @@ snapshots: '@graphql-tools/executor-common@1.0.6(graphql@16.14.0)': dependencies: '@envelop/core': 5.5.1 - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 '@graphql-tools/executor-graphql-ws@3.1.5(graphql@16.14.0)': dependencies: '@graphql-tools/executor-common': 1.0.6(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@whatwg-node/disposablestack': 0.0.6 graphql: 16.14.0 graphql-ws: 6.0.8(graphql@16.14.0)(ws@8.20.1) @@ -14481,7 +14481,7 @@ snapshots: dependencies: '@graphql-hive/signal': 2.0.0 '@graphql-tools/executor-common': 1.0.6(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/disposablestack': 0.0.6 '@whatwg-node/fetch': 0.10.13 @@ -14494,7 +14494,7 @@ snapshots: '@graphql-tools/executor-legacy-ws@1.1.28(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@types/ws': 8.18.1 graphql: 16.14.0 isomorphic-ws: 5.0.0(ws@8.20.1) @@ -14506,7 +14506,7 @@ snapshots: '@graphql-tools/executor@1.5.3(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.0) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/disposablestack': 0.0.6 @@ -14517,7 +14517,7 @@ snapshots: '@graphql-tools/git-loader@8.0.36(graphql@16.14.0)': dependencies: '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 is-glob: 4.0.3 micromatch: 4.0.8 @@ -14530,7 +14530,7 @@ snapshots: dependencies: '@graphql-tools/executor-http': 3.3.0(@types/node@24.12.4)(graphql@16.14.0) '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 graphql: 16.14.0 @@ -14543,7 +14543,7 @@ snapshots: '@graphql-tools/graphql-file-loader@8.1.12(graphql@16.14.0)': dependencies: '@graphql-tools/import': 7.1.14(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) globby: 11.1.0 graphql: 16.14.0 tslib: 2.8.1 @@ -14556,7 +14556,7 @@ snapshots: '@babel/plugin-syntax-import-assertions': 7.28.6(@babel/core@7.29.0) '@babel/traverse': 7.29.0 '@babel/types': 7.29.0 - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 tslib: 2.8.1 transitivePeerDependencies: @@ -14564,14 +14564,14 @@ snapshots: '@graphql-tools/import@7.1.14(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 resolve-from: 5.0.0 tslib: 2.8.1 '@graphql-tools/json-file-loader@8.0.28(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) globby: 11.1.0 graphql: 16.14.0 tslib: 2.8.1 @@ -14580,14 +14580,14 @@ snapshots: '@graphql-tools/load@8.1.10(graphql@16.14.0)': dependencies: '@graphql-tools/schema': 10.0.33(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 p-limit: 3.1.0 tslib: 2.8.1 '@graphql-tools/merge@9.1.9(graphql@16.14.0)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 tslib: 2.8.1 @@ -14614,14 +14614,14 @@ snapshots: '@graphql-tools/relay-operation-optimizer@7.1.4(graphql@16.14.0)': dependencies: '@ardatan/relay-compiler': 13.0.1(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 tslib: 2.8.1 '@graphql-tools/schema@10.0.33(graphql@16.14.0)': dependencies: '@graphql-tools/merge': 9.1.9(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) graphql: 16.14.0 tslib: 2.8.1 @@ -14630,7 +14630,7 @@ snapshots: '@graphql-tools/executor-graphql-ws': 3.1.5(graphql@16.14.0) '@graphql-tools/executor-http': 3.3.0(@types/node@24.12.4)(graphql@16.14.0) '@graphql-tools/executor-legacy-ws': 1.1.28(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@graphql-tools/wrap': 11.1.15(graphql@16.14.0) '@types/ws': 8.18.1 '@whatwg-node/fetch': 0.10.13 @@ -14655,7 +14655,7 @@ snapshots: graphql: 16.14.0 tslib: 2.8.1 - '@graphql-tools/utils@11.1.0(graphql@16.14.0)': + '@graphql-tools/utils@11.2.0(graphql@16.14.0)': dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.0) '@whatwg-node/promise-helpers': 1.3.2 @@ -14678,7 +14678,7 @@ snapshots: dependencies: '@graphql-tools/delegate': 12.0.16(graphql@16.14.0) '@graphql-tools/schema': 10.0.33(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) '@whatwg-node/promise-helpers': 1.3.2 graphql: 16.14.0 tslib: 2.8.1 @@ -18745,7 +18745,7 @@ snapshots: eslint: 10.4.0(jiti@2.7.0) eslint-import-resolver-node: 0.3.10 eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)) - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@10.4.0(jiti@2.7.0)) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)) eslint-plugin-jsx-a11y: 6.10.2(eslint@10.4.0(jiti@2.7.0)) eslint-plugin-react: 7.37.5(eslint@10.4.0(jiti@2.7.0)) eslint-plugin-react-hooks: 5.0.0-canary-7118f5dd7-20230705(eslint@10.4.0(jiti@2.7.0)) @@ -18779,7 +18779,7 @@ snapshots: tinyglobby: 0.2.16 unrs-resolver: 1.11.1 optionalDependencies: - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@10.4.0(jiti@2.7.0)) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)) transitivePeerDependencies: - supports-color @@ -18880,7 +18880,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@10.4.0(jiti@2.7.0)): + eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0)): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.9 @@ -19747,7 +19747,7 @@ snapshots: '@graphql-tools/load': 8.1.10(graphql@16.14.0) '@graphql-tools/merge': 9.1.9(graphql@16.14.0) '@graphql-tools/url-loader': 9.1.2(@types/node@24.12.4)(graphql@16.14.0) - '@graphql-tools/utils': 11.1.0(graphql@16.14.0) + '@graphql-tools/utils': 11.2.0(graphql@16.14.0) cosmiconfig: 8.3.6(typescript@6.0.3) graphql: 16.14.0 jiti: 2.7.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 00e115f409c..6cab54ae2d8 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,6 @@ minimumReleaseAge: 1440 # in minutes. 1440 minutes === 1 day - +minimumReleaseAgeExclude: + - '@graphql-tools/utils' packages: - packages/* - packages/plugins/typescript/* @@ -10,7 +11,6 @@ packages: - examples/**/* - dev-test/* - dev-test-apollo-tooling - allowBuilds: '@parcel/watcher': false '@swc/core': false @@ -22,14 +22,13 @@ allowBuilds: unrs-resolver: false vue-demi: false workerd: false - overrides: - '@rushstack/eslint-patch': '1.16.1' - '@typescript-eslint/eslint-plugin': '8.59.3' - '@typescript-eslint/parser': '8.59.3' - '@typescript-eslint/scope-manager': '8.59.3' - '@typescript-eslint/type-utils': '8.59.3' - '@typescript-eslint/types': '8.59.3' - '@typescript-eslint/typescript-estree': '8.59.3' - '@typescript-eslint/utils': '8.59.3' - '@typescript-eslint/visitor-keys': '8.59.3' + '@rushstack/eslint-patch': 1.16.1 + '@typescript-eslint/eslint-plugin': 8.59.3 + '@typescript-eslint/parser': 8.59.3 + '@typescript-eslint/scope-manager': 8.59.3 + '@typescript-eslint/type-utils': 8.59.3 + '@typescript-eslint/types': 8.59.3 + '@typescript-eslint/typescript-estree': 8.59.3 + '@typescript-eslint/utils': 8.59.3 + '@typescript-eslint/visitor-keys': 8.59.3 diff --git a/scripts/match-graphql.js b/scripts/match-graphql.js index 5216208cdf6..601a55c47d1 100644 --- a/scripts/match-graphql.js +++ b/scripts/match-graphql.js @@ -1,25 +1,15 @@ const fs = require('fs'); -const { resolve } = require('path'); -const { argv, cwd } = require('process'); +const { argv } = require('process'); const yaml = require('js-yaml'); -const pkgPath = resolve(cwd(), './package.json'); - -const pkg = require(pkgPath); - const version = argv[2]; -if (pkg.devDependencies.graphql?.startsWith(version)) { - console.info(`GraphQL v${version} is match! Skipping.`); - return; -} - const pnpmWorkspaceFile = './pnpm-workspace.yaml'; const file = fs.readFileSync(pnpmWorkspaceFile, 'utf8'); const parsedFile = yaml.load(file); parsedFile.overrides ||= {}; -parsedFile.overrides.graphql = '15'; +parsedFile.overrides.graphql = version; fs.writeFileSync(pnpmWorkspaceFile, yaml.dump(parsedFile), 'utf8'); diff --git a/tsconfig.json b/tsconfig.json index c29d59eeeba..b4e0b96cfef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -61,6 +61,7 @@ "**/dist", "**/temp", "**/vitest.config.ts", + "**/vitest.config.mts", "**/vitest.setup.ts", "**/*.spec.ts", "**/tests/**/*.ts", diff --git a/tsconfig.spec.json b/tsconfig.spec.json index 82d75080116..e2066052a2c 100644 --- a/tsconfig.spec.json +++ b/tsconfig.spec.json @@ -9,7 +9,7 @@ }, "exclude": [], "include": [ - "**/vitest.config.ts", + "**/vitest.config.mts", "**/vitest.setup.ts", "**/*.spec.ts", "**/tests/**/*.ts", diff --git a/vitest.config.mts b/vitest.config.mts new file mode 100644 index 00000000000..4b501efe405 --- /dev/null +++ b/vitest.config.mts @@ -0,0 +1,34 @@ +import { createRequire } from 'module'; +import { dirname, resolve } from 'path'; +import { versionInfo } from 'graphql'; +import { defineConfig } from 'vitest/config'; + +export const sharedConfig = defineConfig({ + resolve: { + alias: { + graphql: (function resolveGraphQL() { + if (versionInfo.major < 17) { + return 'graphql/index.js'; + } + // Use an absolute path to graphql/index.mjs so ALL imports (Vite-processed + // and Node.js-native) resolve to the same ESM module in Node.js's module cache, + // preventing graphql@17's devInstanceOf from detecting false cross-realm usage. + const _require = createRequire(import.meta.url); + // require.resolve('graphql') returns index.mjs in Node.js v24 (via module-sync condition) + const graphqlIndexMjs = resolve(dirname(_require.resolve('graphql')), 'index.mjs'); + return graphqlIndexMjs; + })(), + }, + tsconfigPaths: true, + }, + test: { + globals: true, + }, +}); + +export default defineConfig({ + test: { + projects: ['packages/**/vitest.config.mts', 'examples/**/vitest.config.mts'], + watch: false, + }, +}); diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index 415eec04aa1..00000000000 --- a/vitest.config.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { defineConfig } from 'vitest/config'; - -export const sharedConfig = defineConfig({ - resolve: { - alias: { - graphql: 'graphql/index.js', - }, - tsconfigPaths: true, - }, - test: { - globals: true, - }, -}); - -export default defineConfig({ - test: { - projects: ['packages/**/vitest.config.ts', 'examples/**/vitest.config.ts'], - watch: false, - }, -});