From 602df92a94a9632ff3d5f74bb8523e417d00ae62 Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Thu, 30 Apr 2026 23:45:51 +1000 Subject: [PATCH 1/2] Run changeset version (#10765) --- ...@graphql-codegen_cli-10496-dependencies.md | 12 - ...@graphql-codegen_cli-10650-dependencies.md | 11 - ...@graphql-codegen_cli-10651-dependencies.md | 5 - ...odegen_client-preset-10608-dependencies.md | 5 - ...n_gql-tag-operations-10496-dependencies.md | 5 - ...n_gql-tag-operations-10650-dependencies.md | 5 - ...aphql-modules-preset-10496-dependencies.md | 5 - ...aphql-modules-preset-10650-dependencies.md | 5 - ...degen_plugin-helpers-10496-dependencies.md | 5 - ...degen_plugin-helpers-10650-dependencies.md | 5 - ..._typed-document-node-10496-dependencies.md | 6 - ..._typed-document-node-10650-dependencies.md | 6 - ...l-codegen_typescript-10496-dependencies.md | 6 - ...l-codegen_typescript-10650-dependencies.md | 5 - ...cript-document-nodes-10496-dependencies.md | 5 - ...cript-document-nodes-10650-dependencies.md | 5 - ...ypescript-operations-10496-dependencies.md | 7 - ...ypescript-operations-10563-dependencies.md | 5 - ...ypescript-operations-10572-dependencies.md | 5 - ...ypescript-operations-10650-dependencies.md | 5 - ...typescript-resolvers-10496-dependencies.md | 5 - ...typescript-resolvers-10650-dependencies.md | 5 - ...isitor-plugin-common-10496-dependencies.md | 6 - ...isitor-plugin-common-10650-dependencies.md | 6 - .changeset/beige-pets-talk.md | 11 - .changeset/big-taxes-hunt.md | 6 - .changeset/breezy-games-enter.md | 11 - .changeset/brown-things-jump.md | 27 -- .changeset/clever-loops-crash.md | 6 - .changeset/curly-trees-lead.md | 5 - .changeset/every-queens-sin.md | 6 - .changeset/every-rooms-camp.md | 9 - .changeset/five-cases-sniff.md | 5 - .changeset/flat-paths-boil.md | 5 - .changeset/free-fans-dance.md | 6 - .changeset/fuzzy-poets-doubt.md | 5 - .changeset/hot-toys-leave.md | 21 -- .changeset/huge-hounds-arrive.md | 22 -- .changeset/khaki-clubs-say.md | 9 - .changeset/khaki-spies-admire.md | 9 - .changeset/khaki-turtles-juggle.md | 6 - .changeset/lovely-sloths-kiss.md | 7 - .changeset/new-foxes-bake.md | 9 - .changeset/proud-cougars-hear.md | 5 - .changeset/proud-dingos-trade.md | 5 - .changeset/proud-jobs-decide.md | 6 - .changeset/real-numbers-fall.md | 14 - .changeset/sad-rules-sell.md | 5 - .changeset/salty-guests-retire.md | 6 - .changeset/seven-wombats-tie.md | 5 - .changeset/silly-kiwis-sip.md | 5 - .changeset/slow-sheep-rush.md | 9 - .changeset/stale-regions-bow.md | 6 - .changeset/tasty-waves-trade.md | 7 - .changeset/tender-snakes-hang.md | 5 - .changeset/tidy-jobs-unite.md | 9 - .changeset/tiny-baboons-fry.md | 5 - .changeset/twelve-trams-pump.md | 13 - .changeset/twenty-buckets-brush.md | 5 - .changeset/upset-bars-call.md | 6 - .changeset/wacky-books-post.md | 14 - .changeset/whole-eagles-switch.md | 7 - .changeset/wise-poets-float.md | 6 - .changeset/yellow-cups-crash.md | 5 - .../package.json | 2 +- examples/persisted-documents/package.json | 2 +- examples/programmatic-typescript/package.json | 12 +- .../react/apollo-client-defer/package.json | 2 +- .../apollo-client-swc-plugin/package.json | 2 +- examples/react/apollo-client/package.json | 2 +- examples/react/http-executor/package.json | 2 +- examples/react/nextjs-swr/package.json | 4 +- .../react/tanstack-react-query/package.json | 2 +- examples/react/urql/package.json | 2 +- examples/typescript-esm/package.json | 2 +- .../typescript-graphql-request/package.json | 2 +- examples/typescript-resolvers/package.json | 6 +- examples/vite/vite-react-cts/package.json | 2 +- examples/vite/vite-react-mts/package.json | 2 +- examples/vite/vite-react-ts/package.json | 2 +- examples/vue/apollo-composable/package.json | 2 +- examples/vue/urql/package.json | 2 +- examples/vue/villus/package.json | 2 +- examples/yoga-tests/package.json | 2 +- packages/graphql-codegen-cli/CHANGELOG.md | 118 ++++++++ packages/graphql-codegen-cli/package.json | 8 +- packages/graphql-codegen-core/CHANGELOG.md | 17 ++ packages/graphql-codegen-core/package.json | 4 +- packages/plugins/other/add/CHANGELOG.md | 17 ++ packages/plugins/other/add/package.json | 4 +- .../other/fragment-matcher/CHANGELOG.md | 17 ++ .../other/fragment-matcher/package.json | 4 +- .../plugins/other/introspection/CHANGELOG.md | 38 +++ .../plugins/other/introspection/package.json | 6 +- .../plugins/other/schema-ast/CHANGELOG.md | 17 ++ .../plugins/other/schema-ast/package.json | 4 +- packages/plugins/other/time/CHANGELOG.md | 89 ++++-- packages/plugins/other/time/package.json | 4 +- .../other/visitor-plugin-common/CHANGELOG.md | 203 ++++++++++++- .../other/visitor-plugin-common/package.json | 4 +- .../typescript/document-nodes/CHANGELOG.md | 61 ++++ .../typescript/document-nodes/package.json | 6 +- .../gql-tag-operations/CHANGELOG.md | 61 ++++ .../gql-tag-operations/package.json | 6 +- .../typescript/operations/CHANGELOG.md | 286 ++++++++++++++++++ .../typescript/operations/package.json | 8 +- .../plugins/typescript/resolvers/CHANGELOG.md | 116 ++++++- .../plugins/typescript/resolvers/package.json | 8 +- .../typed-document-node/CHANGELOG.md | 67 ++++ .../typed-document-node/package.json | 6 +- .../typescript/typescript/CHANGELOG.md | 145 +++++++++ .../typescript/typescript/package.json | 8 +- packages/presets/client/CHANGELOG.md | 157 ++++++++++ packages/presets/client/package.json | 16 +- packages/presets/graphql-modules/CHANGELOG.md | 63 ++++ packages/presets/graphql-modules/package.json | 6 +- .../graphql-codegen-testing/CHANGELOG.md | 17 ++ .../graphql-codegen-testing/package.json | 4 +- packages/utils/plugins-helpers/CHANGELOG.md | 36 +++ packages/utils/plugins-helpers/package.json | 2 +- website/package.json | 24 +- 121 files changed, 1598 insertions(+), 588 deletions(-) delete mode 100644 .changeset/@graphql-codegen_cli-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_cli-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_cli-10651-dependencies.md delete mode 100644 .changeset/@graphql-codegen_client-preset-10608-dependencies.md delete mode 100644 .changeset/@graphql-codegen_gql-tag-operations-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_gql-tag-operations-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_graphql-modules-preset-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_graphql-modules-preset-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_plugin-helpers-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_plugin-helpers-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typed-document-node-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typed-document-node-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-document-nodes-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-document-nodes-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-operations-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-operations-10563-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-operations-10572-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-operations-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-resolvers-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_typescript-resolvers-10650-dependencies.md delete mode 100644 .changeset/@graphql-codegen_visitor-plugin-common-10496-dependencies.md delete mode 100644 .changeset/@graphql-codegen_visitor-plugin-common-10650-dependencies.md delete mode 100644 .changeset/beige-pets-talk.md delete mode 100644 .changeset/big-taxes-hunt.md delete mode 100644 .changeset/breezy-games-enter.md delete mode 100644 .changeset/brown-things-jump.md delete mode 100644 .changeset/clever-loops-crash.md delete mode 100644 .changeset/curly-trees-lead.md delete mode 100644 .changeset/every-queens-sin.md delete mode 100644 .changeset/every-rooms-camp.md delete mode 100644 .changeset/five-cases-sniff.md delete mode 100644 .changeset/flat-paths-boil.md delete mode 100644 .changeset/free-fans-dance.md delete mode 100644 .changeset/fuzzy-poets-doubt.md delete mode 100644 .changeset/hot-toys-leave.md delete mode 100644 .changeset/huge-hounds-arrive.md delete mode 100644 .changeset/khaki-clubs-say.md delete mode 100644 .changeset/khaki-spies-admire.md delete mode 100644 .changeset/khaki-turtles-juggle.md delete mode 100644 .changeset/lovely-sloths-kiss.md delete mode 100644 .changeset/new-foxes-bake.md delete mode 100644 .changeset/proud-cougars-hear.md delete mode 100644 .changeset/proud-dingos-trade.md delete mode 100644 .changeset/proud-jobs-decide.md delete mode 100644 .changeset/real-numbers-fall.md delete mode 100644 .changeset/sad-rules-sell.md delete mode 100644 .changeset/salty-guests-retire.md delete mode 100644 .changeset/seven-wombats-tie.md delete mode 100644 .changeset/silly-kiwis-sip.md delete mode 100644 .changeset/slow-sheep-rush.md delete mode 100644 .changeset/stale-regions-bow.md delete mode 100644 .changeset/tasty-waves-trade.md delete mode 100644 .changeset/tender-snakes-hang.md delete mode 100644 .changeset/tidy-jobs-unite.md delete mode 100644 .changeset/tiny-baboons-fry.md delete mode 100644 .changeset/twelve-trams-pump.md delete mode 100644 .changeset/twenty-buckets-brush.md delete mode 100644 .changeset/upset-bars-call.md delete mode 100644 .changeset/wacky-books-post.md delete mode 100644 .changeset/whole-eagles-switch.md delete mode 100644 .changeset/wise-poets-float.md delete mode 100644 .changeset/yellow-cups-crash.md diff --git a/.changeset/@graphql-codegen_cli-10496-dependencies.md b/.changeset/@graphql-codegen_cli-10496-dependencies.md deleted file mode 100644 index 886bea55e86..00000000000 --- a/.changeset/@graphql-codegen_cli-10496-dependencies.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@graphql-codegen/cli": patch ---- -dependencies updates: - - Updated dependency [`@inquirer/prompts@^8.3.2` ↗︎](https://www.npmjs.com/package/@inquirer/prompts/v/8.3.2) (from `^7.8.2`, in `dependencies`) - - Updated dependency [`chalk@^5.6.0` ↗︎](https://www.npmjs.com/package/chalk/v/5.6.0) (from `^4.1.0`, in `dependencies`) - - Updated dependency [`debounce@^3.0.0` ↗︎](https://www.npmjs.com/package/debounce/v/3.0.0) (from `^2.0.0`, in `dependencies`) - - Updated dependency [`detect-indent@^7.0.0` ↗︎](https://www.npmjs.com/package/detect-indent/v/7.0.0) (from `^6.0.0`, in `dependencies`) - - Updated dependency [`listr2@^10.2.1` ↗︎](https://www.npmjs.com/package/listr2/v/10.2.1) (from `^9.0.0`, in `dependencies`) - - Updated dependency [`log-symbols@^7.0.0` ↗︎](https://www.npmjs.com/package/log-symbols/v/7.0.0) (from `^4.0.0`, in `dependencies`) - - Updated dependency [`ts-log@^3.0.0` ↗︎](https://www.npmjs.com/package/ts-log/v/3.0.0) (from `^2.2.3`, in `dependencies`) - - Updated dependency [`yargs@^18.0.0` ↗︎](https://www.npmjs.com/package/yargs/v/18.0.0) (from `^17.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_cli-10650-dependencies.md b/.changeset/@graphql-codegen_cli-10650-dependencies.md deleted file mode 100644 index 0b9986b071b..00000000000 --- a/.changeset/@graphql-codegen_cli-10650-dependencies.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@graphql-codegen/cli": patch ---- -dependencies updates: - - Updated dependency [`chalk@^5.6.0` ↗︎](https://www.npmjs.com/package/chalk/v/5.6.0) (from `^4.1.0`, in `dependencies`) - - Updated dependency [`debounce@^3.0.0` ↗︎](https://www.npmjs.com/package/debounce/v/3.0.0) (from `^2.0.0`, in `dependencies`) - - Updated dependency [`detect-indent@^7.0.0` ↗︎](https://www.npmjs.com/package/detect-indent/v/7.0.0) (from `^6.0.0`, in `dependencies`) - - Updated dependency [`listr2@^10.2.1` ↗︎](https://www.npmjs.com/package/listr2/v/10.2.1) (from `^9.0.0`, in `dependencies`) - - Updated dependency [`log-symbols@^7.0.0` ↗︎](https://www.npmjs.com/package/log-symbols/v/7.0.0) (from `^4.0.0`, in `dependencies`) - - Updated dependency [`ts-log@^3.0.0` ↗︎](https://www.npmjs.com/package/ts-log/v/3.0.0) (from `^2.2.3`, in `dependencies`) - - Updated dependency [`yargs@^18.0.0` ↗︎](https://www.npmjs.com/package/yargs/v/18.0.0) (from `^17.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_cli-10651-dependencies.md b/.changeset/@graphql-codegen_cli-10651-dependencies.md deleted file mode 100644 index 635d380e7bc..00000000000 --- a/.changeset/@graphql-codegen_cli-10651-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/cli": patch ---- -dependencies updates: - - Updated dependency [`@inquirer/prompts@^8.3.2` ↗︎](https://www.npmjs.com/package/@inquirer/prompts/v/8.3.2) (from `^7.8.2`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_client-preset-10608-dependencies.md b/.changeset/@graphql-codegen_client-preset-10608-dependencies.md deleted file mode 100644 index d3a31ec2973..00000000000 --- a/.changeset/@graphql-codegen_client-preset-10608-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/client-preset": patch ---- -dependencies updates: - - Removed dependency [`@graphql-codegen/typescript@^5.0.8` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.8) (from `dependencies`) diff --git a/.changeset/@graphql-codegen_gql-tag-operations-10496-dependencies.md b/.changeset/@graphql-codegen_gql-tag-operations-10496-dependencies.md deleted file mode 100644 index e3e963598c8..00000000000 --- a/.changeset/@graphql-codegen_gql-tag-operations-10496-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/gql-tag-operations": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_gql-tag-operations-10650-dependencies.md b/.changeset/@graphql-codegen_gql-tag-operations-10650-dependencies.md deleted file mode 100644 index e3e963598c8..00000000000 --- a/.changeset/@graphql-codegen_gql-tag-operations-10650-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/gql-tag-operations": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_graphql-modules-preset-10496-dependencies.md b/.changeset/@graphql-codegen_graphql-modules-preset-10496-dependencies.md deleted file mode 100644 index 25df99c250f..00000000000 --- a/.changeset/@graphql-codegen_graphql-modules-preset-10496-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/graphql-modules-preset": patch ---- -dependencies updates: - - Updated dependency [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from `1.0.15`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_graphql-modules-preset-10650-dependencies.md b/.changeset/@graphql-codegen_graphql-modules-preset-10650-dependencies.md deleted file mode 100644 index 25df99c250f..00000000000 --- a/.changeset/@graphql-codegen_graphql-modules-preset-10650-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/graphql-modules-preset": patch ---- -dependencies updates: - - Updated dependency [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from `1.0.15`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_plugin-helpers-10496-dependencies.md b/.changeset/@graphql-codegen_plugin-helpers-10496-dependencies.md deleted file mode 100644 index 692a0ed9378..00000000000 --- a/.changeset/@graphql-codegen_plugin-helpers-10496-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/plugin-helpers": patch ---- -dependencies updates: - - Updated dependency [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from `1.0.15`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_plugin-helpers-10650-dependencies.md b/.changeset/@graphql-codegen_plugin-helpers-10650-dependencies.md deleted file mode 100644 index 692a0ed9378..00000000000 --- a/.changeset/@graphql-codegen_plugin-helpers-10650-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/plugin-helpers": patch ---- -dependencies updates: - - Updated dependency [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from `1.0.15`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typed-document-node-10496-dependencies.md b/.changeset/@graphql-codegen_typed-document-node-10496-dependencies.md deleted file mode 100644 index 03198289844..00000000000 --- a/.changeset/@graphql-codegen_typed-document-node-10496-dependencies.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@graphql-codegen/typed-document-node": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) - - Updated dependency [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from `1.0.15`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typed-document-node-10650-dependencies.md b/.changeset/@graphql-codegen_typed-document-node-10650-dependencies.md deleted file mode 100644 index 52788e4aeeb..00000000000 --- a/.changeset/@graphql-codegen_typed-document-node-10650-dependencies.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@graphql-codegen/typed-document-node": patch ---- -dependencies updates: - - Updated dependency [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from `1.0.15`, in `dependencies`) - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-10496-dependencies.md b/.changeset/@graphql-codegen_typescript-10496-dependencies.md deleted file mode 100644 index f0a25772c39..00000000000 --- a/.changeset/@graphql-codegen_typescript-10496-dependencies.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@graphql-codegen/typescript": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `^2.8.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-10650-dependencies.md b/.changeset/@graphql-codegen_typescript-10650-dependencies.md deleted file mode 100644 index e7efcd336f4..00000000000 --- a/.changeset/@graphql-codegen_typescript-10650-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-document-nodes-10496-dependencies.md b/.changeset/@graphql-codegen_typescript-document-nodes-10496-dependencies.md deleted file mode 100644 index 72924f13846..00000000000 --- a/.changeset/@graphql-codegen_typescript-document-nodes-10496-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-document-nodes": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-document-nodes-10650-dependencies.md b/.changeset/@graphql-codegen_typescript-document-nodes-10650-dependencies.md deleted file mode 100644 index 72924f13846..00000000000 --- a/.changeset/@graphql-codegen_typescript-document-nodes-10650-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-document-nodes": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-operations-10496-dependencies.md b/.changeset/@graphql-codegen_typescript-operations-10496-dependencies.md deleted file mode 100644 index fd8fb574d9b..00000000000 --- a/.changeset/@graphql-codegen_typescript-operations-10496-dependencies.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@graphql-codegen/typescript-operations": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) - - Added dependency [`@graphql-codegen/schema-ast@^5.0.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/schema-ast/v/5.0.1) (to `dependencies`) - - Removed dependency [`@graphql-codegen/typescript@^5.0.10` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.10) (from `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-operations-10563-dependencies.md b/.changeset/@graphql-codegen_typescript-operations-10563-dependencies.md deleted file mode 100644 index e66f900bbf7..00000000000 --- a/.changeset/@graphql-codegen_typescript-operations-10563-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-operations": patch ---- -dependencies updates: - - Added dependency [`@graphql-codegen/schema-ast@^5.0.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/schema-ast/v/5.0.0) (to `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-operations-10572-dependencies.md b/.changeset/@graphql-codegen_typescript-operations-10572-dependencies.md deleted file mode 100644 index 81018bf6546..00000000000 --- a/.changeset/@graphql-codegen_typescript-operations-10572-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-operations": patch ---- -dependencies updates: - - Removed dependency [`@graphql-codegen/typescript@^5.0.7` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.7) (from `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-operations-10650-dependencies.md b/.changeset/@graphql-codegen_typescript-operations-10650-dependencies.md deleted file mode 100644 index b710cf54928..00000000000 --- a/.changeset/@graphql-codegen_typescript-operations-10650-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-operations": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-resolvers-10496-dependencies.md b/.changeset/@graphql-codegen_typescript-resolvers-10496-dependencies.md deleted file mode 100644 index f779c89b2d9..00000000000 --- a/.changeset/@graphql-codegen_typescript-resolvers-10496-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-resolvers": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-resolvers-10650-dependencies.md b/.changeset/@graphql-codegen_typescript-resolvers-10650-dependencies.md deleted file mode 100644 index f779c89b2d9..00000000000 --- a/.changeset/@graphql-codegen_typescript-resolvers-10650-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-resolvers": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_visitor-plugin-common-10496-dependencies.md b/.changeset/@graphql-codegen_visitor-plugin-common-10496-dependencies.md deleted file mode 100644 index c38bdfe56b8..00000000000 --- a/.changeset/@graphql-codegen_visitor-plugin-common-10496-dependencies.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@graphql-codegen/visitor-plugin-common": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) - - Updated dependency [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from `1.0.15`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_visitor-plugin-common-10650-dependencies.md b/.changeset/@graphql-codegen_visitor-plugin-common-10650-dependencies.md deleted file mode 100644 index c38bdfe56b8..00000000000 --- a/.changeset/@graphql-codegen_visitor-plugin-common-10650-dependencies.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@graphql-codegen/visitor-plugin-common": patch ---- -dependencies updates: - - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from `~4.0.0`, in `dependencies`) - - Updated dependency [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from `1.0.15`, in `dependencies`) diff --git a/.changeset/beige-pets-talk.md b/.changeset/beige-pets-talk.md deleted file mode 100644 index 0265c6618ff..00000000000 --- a/.changeset/beige-pets-talk.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': minor -'@graphql-codegen/typescript-operations': minor ---- - -Add support for declarationKind for typescript-operations - -- Input: can only be `type` or `interface` -- Variables: no support. It must always be `type` because it's an alias e.g. `Variables = Exact<{ something: type }>` -- Result: can only be `type` or `interface` - - Note: when `extractAllFieldsToTypes:true` or `extractAllFieldsToTypesCompact:true`, Results are used as type alias, so they are forced to be `type`. There is a console warning for users. diff --git a/.changeset/big-taxes-hunt.md b/.changeset/big-taxes-hunt.md deleted file mode 100644 index d4d9998152a..00000000000 --- a/.changeset/big-taxes-hunt.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch -'@graphql-codegen/typescript-operations': patch ---- - -Improve `namespacedImportName` usability by setting a default when `importSchemaTypesFrom` is set diff --git a/.changeset/breezy-games-enter.md b/.changeset/breezy-games-enter.md deleted file mode 100644 index 9befb0d91ae..00000000000 --- a/.changeset/breezy-games-enter.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': major -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/client-preset': major ---- - -Fix nullable field optionality in operations - -Previously, a nullable Result field is generated as optional (marked by `?` TypeScript modifier) by default. This is not correct, because generally at runtime such field can only be `null`, and not `undefined` (both missing from the object OR `undefined`). The only exceptions are when fields are deferred (using `@defer` directive) or marked as conditional (using `@skip` or `@include`). - -Now, a nullable Result field cannot be optional unless the exceptions are met. This also limits `avoidOptionals` to only target Variables input, since some users may want to force explicit `null` when providing operation variables. diff --git a/.changeset/brown-things-jump.md b/.changeset/brown-things-jump.md deleted file mode 100644 index 115b47b37f1..00000000000 --- a/.changeset/brown-things-jump.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': major -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/typescript': major -'@graphql-codegen/typescript-resolvers': major ---- - -BREAKING CHANGE: visitors' config option are moved based on their use case - -- addTypename/skipTypename: is only a types-visitor concern. This is moved to types-visitor from base-visitor -- nonOptionalTypename: is a documents-visitor and types-visitor concern. Moved from base-visitor there -- extractAllFieldsToTypes: is a documents-visitor concern. Moved from base-visitor there -- enumPrefix and enumSuffix: need to be in base-visitor as all 3 types of visitors need this to correctly sync the enum type names. This is moved to base visitor -- ignoreEnumValuesFromSchema: is a documents-visitor and types-visitor concern. Moved from base-visitor there. -- globalNamespace: is a documents-visitor concern. Moved from base-visitor there - -Refactors - -- documents-visitor no longer extends types-visitor _option types_ as they have two distinct usages now. The types now extend base-visitor types. This is now consistent with documents-visitor extending base-visitor -- Classes now handle config parsing and types at the same level e.g. if typescript-operations plugin parses configOne, then the types for configOne must be in that class, rather than in base-documents-visitor - -Note: These visitors are rolled up into one type for simplicity - -- base-visitor: includes `base-visitor` -- documents-visitor: includes `base-documents-visitor` and `typescript-operations` visitor -- types-visitor: includes `base-types-visitor` and `typescript` visitor -- resolvers-visitor: includes `base-resolvers-visitor` and `typescript-resolvers` visitor diff --git a/.changeset/clever-loops-crash.md b/.changeset/clever-loops-crash.md deleted file mode 100644 index c28b7d69057..00000000000 --- a/.changeset/clever-loops-crash.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': minor -'@graphql-codegen/typescript-operations': minor ---- - -Add importSchemaTypesFrom support diff --git a/.changeset/curly-trees-lead.md b/.changeset/curly-trees-lead.md deleted file mode 100644 index e6aab78bdca..00000000000 --- a/.changeset/curly-trees-lead.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': major ---- - -BREAKING CHANGE: typescript-operations plugin now generates enum if it is used in operation. diff --git a/.changeset/every-queens-sin.md b/.changeset/every-queens-sin.md deleted file mode 100644 index cda139690b5..00000000000 --- a/.changeset/every-queens-sin.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/client-preset': major ---- - -Conditionally generate input types and output enums into target file diff --git a/.changeset/every-rooms-camp.md b/.changeset/every-rooms-camp.md deleted file mode 100644 index 89938d2d564..00000000000 --- a/.changeset/every-rooms-camp.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': major -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/typescript': major -'@graphql-codegen/typescript-resolvers': major -'@graphql-codegen/client-preset': major ---- - -BREAKING CHANGE: make `unknown` instead of `any` the default custom scalar type diff --git a/.changeset/five-cases-sniff.md b/.changeset/five-cases-sniff.md deleted file mode 100644 index 148366947bc..00000000000 --- a/.changeset/five-cases-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': minor ---- - -Adding config option extractAllFieldsToTypesCompact, which renders nested types names with field names only (without types) diff --git a/.changeset/flat-paths-boil.md b/.changeset/flat-paths-boil.md deleted file mode 100644 index 7a02df893a0..00000000000 --- a/.changeset/flat-paths-boil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': patch ---- - -Add internal utility type warning to deter usage diff --git a/.changeset/free-fans-dance.md b/.changeset/free-fans-dance.md deleted file mode 100644 index 0dbbfd76c20..00000000000 --- a/.changeset/free-fans-dance.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch -'@graphql-codegen/typescript-operations': patch ---- - -Add `printTypeScriptMaybeType` to handle printing TS types, as there are special cases like `any` and `unknown` diff --git a/.changeset/fuzzy-poets-doubt.md b/.changeset/fuzzy-poets-doubt.md deleted file mode 100644 index 8a8e0a30bc7..00000000000 --- a/.changeset/fuzzy-poets-doubt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': patch ---- - -Re-implement inputMaybeValue diff --git a/.changeset/hot-toys-leave.md b/.changeset/hot-toys-leave.md deleted file mode 100644 index 95a20947acc..00000000000 --- a/.changeset/hot-toys-leave.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@graphql-codegen/typed-document-node': major -'@graphql-codegen/gql-tag-operations': major -'@graphql-codegen/visitor-plugin-common': major -'@graphql-codegen/typescript-document-nodes': major -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/typescript': major -'@graphql-codegen/typescript-resolvers': major -'@graphql-codegen/graphql-modules-preset': major -'@graphql-codegen/plugin-helpers': major -'@graphql-codegen/cli': major -'@graphql-codegen/client-preset': major ---- - -BREAKING CHANGE: Update deps to latest, some only support ESM - -Node 20 support is dropped in this release. -Node 22 comes with `require()` support for ESM, which means it's easier to integrate ES modules into applications. Therefore, it is safe to start using ESM-only packages. - -If you are a user, please upgrade to Node 22. -If you are a lib maintainer and see ESM vs CJS issues when running Jest tests, try using Vitest. diff --git a/.changeset/huge-hounds-arrive.md b/.changeset/huge-hounds-arrive.md deleted file mode 100644 index 97f7c348bda..00000000000 --- a/.changeset/huge-hounds-arrive.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': major -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/typescript': major -'@graphql-codegen/typescript-resolvers': major -'@graphql-codegen/cli': major -'@graphql-codegen/client-preset': major -'@graphql-codegen/core': major -'@graphql-codegen/add': major -'@graphql-codegen/fragment-matcher': major -'@graphql-codegen/introspection': major -'@graphql-codegen/schema-ast': major -'@graphql-codegen/time': major -'@graphql-codegen/typescript-document-nodes': major -'@graphql-codegen/gql-tag-operations': major -'@graphql-codegen/typed-document-node': major -'@graphql-codegen/graphql-modules-preset': major -'@graphql-codegen/testing': major -'@graphql-codegen/plugin-helpers': major ---- - -BREAKING CHANGE: Drop Node 20 support diff --git a/.changeset/khaki-clubs-say.md b/.changeset/khaki-clubs-say.md deleted file mode 100644 index 0bbae4c9c99..00000000000 --- a/.changeset/khaki-clubs-say.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': patch ---- - -Only generate `Exact` utility type at the top if it is used - -`Exact` utility is only used to wrap variables types for operations (queries, mutations and subscriptions) if they exist in the document. `Exact` is never used when there are _only_ fragments. - -This is important to conditionally generate as users may use very strict tsconfig that will fail compiling if there are unused types. diff --git a/.changeset/khaki-spies-admire.md b/.changeset/khaki-spies-admire.md deleted file mode 100644 index efda9226e8a..00000000000 --- a/.changeset/khaki-spies-admire.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': major ---- - -BREAKING CHANGE: Decouple `typescript-operations` plugin from `typescript` plugin - -Previously, `TypeScriptOperationVariablesToObject` from `typescript-operations` was extending from `typescript` plugin. This made it (1) very hard to read, as we need to jump from base class <-> typescript class <-> typescript-operations class to understand the flow and (2) very hard to evolve the two independently (which is the point of this work). - -Since there's not much shared logic anyways, it's simpler to extend the `typescript-operations` class from the base class directly. diff --git a/.changeset/khaki-turtles-juggle.md b/.changeset/khaki-turtles-juggle.md deleted file mode 100644 index bb0e0614a6a..00000000000 --- a/.changeset/khaki-turtles-juggle.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/typescript': minor ---- - -The `typescript-operations` plugin no longer generates InputMaybe and Scalars types; it now uses native Typescript types instead. diff --git a/.changeset/lovely-sloths-kiss.md b/.changeset/lovely-sloths-kiss.md deleted file mode 100644 index 3005f29b02b..00000000000 --- a/.changeset/lovely-sloths-kiss.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/typescript': major -'@graphql-codegen/client-preset': major ---- - -BREAKING CHANGE: `typescript` plugin no longer generates `Exact` utility type. Instead, `typescript-operations` generates said utility type for every file it creates. This is because it is used _only_ for `Variables`, so we only need to generate it once for every generated operation file. diff --git a/.changeset/new-foxes-bake.md b/.changeset/new-foxes-bake.md deleted file mode 100644 index c3355eb01a1..00000000000 --- a/.changeset/new-foxes-bake.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch ---- - -Fix isNativeNamedType to handle types from remote schemas correctly - -Previously, we assumed that if a name type does note have `astNode`, it is a native named type because it is not declared in user's schema. - -However, this is a wrong assumption because remote schemas do not have `astNode`. This causes all user declared types are wrongly recognised as native types e.g. Input diff --git a/.changeset/proud-cougars-hear.md b/.changeset/proud-cougars-hear.md deleted file mode 100644 index f02764b32ff..00000000000 --- a/.changeset/proud-cougars-hear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': major ---- - -BREAKING CHANGE: `@graphql-codegen/visitor-plugin-common`'s `base-types-visitor` no longer has `getNodeComment` or `buildEnumValuesBlock` method. diff --git a/.changeset/proud-dingos-trade.md b/.changeset/proud-dingos-trade.md deleted file mode 100644 index 22576b3959f..00000000000 --- a/.changeset/proud-dingos-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': patch ---- - -Fix external custom scalars not getting imported diff --git a/.changeset/proud-jobs-decide.md b/.changeset/proud-jobs-decide.md deleted file mode 100644 index dd7d919643d..00000000000 --- a/.changeset/proud-jobs-decide.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': minor -'@graphql-codegen/typescript-operations': minor ---- - -Add generateOperationTypes to typescript-operations to allow omitting operation types such as Variables, Query/Mutation/Subscription selection set, and Fragment types diff --git a/.changeset/real-numbers-fall.md b/.changeset/real-numbers-fall.md deleted file mode 100644 index 12c0cedbf52..00000000000 --- a/.changeset/real-numbers-fall.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': major -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/client-preset': major ---- - -BREAKING CHANGE: Operation plugin and Client Preset no longer generates optional `__typename` for result type - -`__typenam` should not be in the request unless: - -- explicitly requested by the user -- automatically injected into the request by clients, such as Apollo Clients. - -Note: Apollo Client users can still use `nonOptionalTypename: true` and `skipTypeNameForRoot: true` to ensure generated types match the runtime behaviour. diff --git a/.changeset/sad-rules-sell.md b/.changeset/sad-rules-sell.md deleted file mode 100644 index d5725fe05bf..00000000000 --- a/.changeset/sad-rules-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/client-preset': major ---- - -BREAKING CHANGES: The default hashing algorithm is now sha256 instead of sha1. Generated sha256 format also follows the standard outlined in https://github.com/graphql/graphql-over-http/blob/52d56fb36d51c17e08a920510a23bdc2f6a720be/spec/Appendix%20A%20--%20Persisted%20Documents.md#sha256-hex-document-identifier diff --git a/.changeset/salty-guests-retire.md b/.changeset/salty-guests-retire.md deleted file mode 100644 index 78587b447ad..00000000000 --- a/.changeset/salty-guests-retire.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/client-preset': major ---- - -Integrate new typescript-operations into client-preset diff --git a/.changeset/seven-wombats-tie.md b/.changeset/seven-wombats-tie.md deleted file mode 100644 index 4291aa63ff0..00000000000 --- a/.changeset/seven-wombats-tie.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/client-preset': patch ---- - -Remove @graphql-codegen/typescript from client-preset dep as the preset no longer uses the plugin. diff --git a/.changeset/silly-kiwis-sip.md b/.changeset/silly-kiwis-sip.md deleted file mode 100644 index 31295846e7e..00000000000 --- a/.changeset/silly-kiwis-sip.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript': patch ---- - -Extract utilities from base-type-visitor to be shared with other plugins later: convertSchemaEnumToDeclarationBlockString, getNodeComment diff --git a/.changeset/slow-sheep-rush.md b/.changeset/slow-sheep-rush.md deleted file mode 100644 index 5caab3f24ed..00000000000 --- a/.changeset/slow-sheep-rush.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@graphql-codegen/cli': major ---- - -BREAKING CHANGE: Set `noSilentErrors: true` by default - -When multiple files match documents pattern, and there are syntax errors in some but not others, then the operations with errors are not included in the loaded documents list by default (`noSilentErrors: false`). This is annoying for users as there is no feedback loop during development. - -`noSilentErrors: true` is used as the default for Codegen users to make the feedback loop faster. It can still overriden in Codegen Config if desired. \ No newline at end of file diff --git a/.changeset/stale-regions-bow.md b/.changeset/stale-regions-bow.md deleted file mode 100644 index 612da8f1e04..00000000000 --- a/.changeset/stale-regions-bow.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch -'@graphql-codegen/typescript-operations': patch ---- - -Ensure Input and Variables use the same input scalars default e.g. `ID` can take `string | number` diff --git a/.changeset/tasty-waves-trade.md b/.changeset/tasty-waves-trade.md deleted file mode 100644 index 4a7facf07e3..00000000000 --- a/.changeset/tasty-waves-trade.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch -'@graphql-codegen/typescript': patch -'@graphql-codegen/typescript-resolvers': patch ---- - -Fix namingConvention not being applied consistently diff --git a/.changeset/tender-snakes-hang.md b/.changeset/tender-snakes-hang.md deleted file mode 100644 index 244560ae0ba..00000000000 --- a/.changeset/tender-snakes-hang.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': patch ---- - -Fix `@skip` and `@include` not applying conditional modifiers correctly when used on inline fragment diff --git a/.changeset/tidy-jobs-unite.md b/.changeset/tidy-jobs-unite.md deleted file mode 100644 index c4eb57e9cd1..00000000000 --- a/.changeset/tidy-jobs-unite.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch -'@graphql-codegen/typescript-operations': patch -'@graphql-codegen/typescript': patch -'@graphql-codegen/typescript-resolvers': patch -'@graphql-codegen/client-preset': patch ---- - -Abstract how enum imports are generated into visitor-plugin-common package diff --git a/.changeset/tiny-baboons-fry.md b/.changeset/tiny-baboons-fry.md deleted file mode 100644 index 7ffa62adc80..00000000000 --- a/.changeset/tiny-baboons-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': patch ---- - -Fix `@skip` and `@include` not applying conditional modifiers correctly when used on fragment sread, and `@defer` fragments diff --git a/.changeset/twelve-trams-pump.md b/.changeset/twelve-trams-pump.md deleted file mode 100644 index 6ec52b480bf..00000000000 --- a/.changeset/twelve-trams-pump.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': major -'@graphql-codegen/typescript': major ---- - -BREAKING CHANGE: Remove unused utility types from `typescript` plugin as they were previously used for `typescript-operations` plugin: - -- `MakeOptional` -- `MakeMaybe` -- `MakeEmpty` -- `Incremental` - -BREAKING CHANGE: Remove `getRootTypeNames` function because it's available in `@graphql-utils/tools` and not used anywhere diff --git a/.changeset/twenty-buckets-brush.md b/.changeset/twenty-buckets-brush.md deleted file mode 100644 index 92cda5aef3d..00000000000 --- a/.changeset/twenty-buckets-brush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': patch ---- - -Fix importing issue of Input when importSchemaTypesFrom is used diff --git a/.changeset/upset-bars-call.md b/.changeset/upset-bars-call.md deleted file mode 100644 index 1b09fb593e8..00000000000 --- a/.changeset/upset-bars-call.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': minor -'@graphql-codegen/visitor-plugin-common': minor ---- - -Fixing 2 bugs: 1) including enums from external fragments; 2) extractAllFieldsToTypesCompact does not create duplicates diff --git a/.changeset/wacky-books-post.md b/.changeset/wacky-books-post.md deleted file mode 100644 index 47fca5fee43..00000000000 --- a/.changeset/wacky-books-post.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@graphql-codegen/cli': patch ---- - -Use ESM for CLI instead of CJS; - -For backwards compatibility; `graphql-codegen-esm` is reserved, and also `graphql-codegen-cjs` is added for users who want to use CJS. - -So the commands are; -- `graphql-codegen` - ESM version, default -- `graphql-codegen-esm` - ESM version, same as above, but reserved for backwards compatibility -- `graphql-codegen-cjs` - CJS version, for users who want to use CJS, but not recommended for new users. Will be removed in the future. -- `gql-gen` - ESM version, same as `graphql-codegen` -- `graphql-code-generator` - ESM version, same as `graphql-codegen` and `gql-gen` diff --git a/.changeset/whole-eagles-switch.md b/.changeset/whole-eagles-switch.md deleted file mode 100644 index 0eb3ed44429..00000000000 --- a/.changeset/whole-eagles-switch.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch -'@graphql-codegen/typescript-operations': patch -'@graphql-codegen/typescript': patch ---- - -Fix namingConvention not being applied consistently in imports, Variables, Input and Result diff --git a/.changeset/wise-poets-float.md b/.changeset/wise-poets-float.md deleted file mode 100644 index 9fb2acb4d2a..00000000000 --- a/.changeset/wise-poets-float.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': major -'@graphql-codegen/client-preset': major ---- - -BREAKING CHANGE: config.avoidOptionals now only supports object, inputValue, defaultValue diff --git a/.changeset/yellow-cups-crash.md b/.changeset/yellow-cups-crash.md deleted file mode 100644 index 0aa8b16743f..00000000000 --- a/.changeset/yellow-cups-crash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-operations': major ---- - -BREAKING CHANGE: rename avoidOptionals.object to avoidOptionals.variableValue diff --git a/examples/persisted-documents-string-mode/package.json b/examples/persisted-documents-string-mode/package.json index e785cccd4e4..b43035937f8 100644 --- a/examples/persisted-documents-string-mode/package.json +++ b/examples/persisted-documents-string-mode/package.json @@ -16,7 +16,7 @@ "@babel/core": "7.29.0", "@babel/preset-env": "7.29.2", "@babel/preset-typescript": "7.28.5", - "@graphql-codegen/cli": "6.3.1", + "@graphql-codegen/cli": "7.0.0", "@graphql-typed-document-node/core": "3.2.0" }, "bob": false diff --git a/examples/persisted-documents/package.json b/examples/persisted-documents/package.json index 386a8c39ec8..4d04c472b39 100644 --- a/examples/persisted-documents/package.json +++ b/examples/persisted-documents/package.json @@ -16,7 +16,7 @@ "@babel/core": "7.29.0", "@babel/preset-env": "7.29.2", "@babel/preset-typescript": "7.28.5", - "@graphql-codegen/cli": "6.3.1", + "@graphql-codegen/cli": "7.0.0", "@graphql-typed-document-node/core": "3.2.0" }, "bob": false diff --git a/examples/programmatic-typescript/package.json b/examples/programmatic-typescript/package.json index 1100f08fbef..69111438f01 100644 --- a/examples/programmatic-typescript/package.json +++ b/examples/programmatic-typescript/package.json @@ -10,12 +10,12 @@ "test:end2end": "exit 0" }, "dependencies": { - "@graphql-codegen/core": "5.0.2", - "@graphql-codegen/plugin-helpers": "6.3.0", - "@graphql-codegen/typed-document-node": "6.1.8", - "@graphql-codegen/typescript": "5.0.10", - "@graphql-codegen/typescript-operations": "5.1.0", - "@graphql-codegen/typescript-resolvers": "5.1.8", + "@graphql-codegen/core": "6.0.0", + "@graphql-codegen/plugin-helpers": "7.0.0", + "@graphql-codegen/typed-document-node": "7.0.0", + "@graphql-codegen/typescript": "6.0.0", + "@graphql-codegen/typescript-operations": "6.0.0", + "@graphql-codegen/typescript-resolvers": "6.0.0", "@graphql-tools/graphql-file-loader": "^8.1.12", "@graphql-tools/load": "8.1.10", "@graphql-tools/schema": "10.0.33", diff --git a/examples/react/apollo-client-defer/package.json b/examples/react/apollo-client-defer/package.json index 7fb5179c4f8..8818c24d1ac 100644 --- a/examples/react/apollo-client-defer/package.json +++ b/examples/react/apollo-client-defer/package.json @@ -20,7 +20,7 @@ "react-dom": "^19.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/examples/react/apollo-client-swc-plugin/package.json b/examples/react/apollo-client-swc-plugin/package.json index 7caaa19594c..5cd59dc09b9 100644 --- a/examples/react/apollo-client-swc-plugin/package.json +++ b/examples/react/apollo-client-swc-plugin/package.json @@ -15,7 +15,7 @@ "react-dom": "19.2.5" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@graphql-codegen/client-preset-swc-plugin": "0.2.0", "@types/react": "19.2.14", "@types/react-dom": "19.2.3", diff --git a/examples/react/apollo-client/package.json b/examples/react/apollo-client/package.json index fef2864526d..2935eb56e65 100644 --- a/examples/react/apollo-client/package.json +++ b/examples/react/apollo-client/package.json @@ -17,7 +17,7 @@ "react-dom": "^19.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/examples/react/http-executor/package.json b/examples/react/http-executor/package.json index f3451e7a0a2..a9b04685f84 100644 --- a/examples/react/http-executor/package.json +++ b/examples/react/http-executor/package.json @@ -16,7 +16,7 @@ "react-dom": "^19.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/examples/react/nextjs-swr/package.json b/examples/react/nextjs-swr/package.json index ec100b732c4..4db9d638c32 100644 --- a/examples/react/nextjs-swr/package.json +++ b/examples/react/nextjs-swr/package.json @@ -19,9 +19,9 @@ "swr": "^2.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@graphql-codegen/client-preset-swc-plugin": "0.2.0", - "@graphql-codegen/schema-ast": "5.0.2", + "@graphql-codegen/schema-ast": "6.0.0", "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/examples/react/tanstack-react-query/package.json b/examples/react/tanstack-react-query/package.json index 169dc6c81f9..e90b0c516bc 100644 --- a/examples/react/tanstack-react-query/package.json +++ b/examples/react/tanstack-react-query/package.json @@ -16,7 +16,7 @@ "react-dom": "^19.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/examples/react/urql/package.json b/examples/react/urql/package.json index 0590d08c7a9..13fb1aaaae1 100644 --- a/examples/react/urql/package.json +++ b/examples/react/urql/package.json @@ -16,7 +16,7 @@ "urql": "^3.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^6.0.0", diff --git a/examples/typescript-esm/package.json b/examples/typescript-esm/package.json index c268728b3fb..bb26dd3f4f6 100644 --- a/examples/typescript-esm/package.json +++ b/examples/typescript-esm/package.json @@ -14,7 +14,7 @@ "graphql": "16.13.2" }, "devDependencies": { - "@graphql-codegen/cli": "6.3.1" + "@graphql-codegen/cli": "7.0.0" }, "bob": false } diff --git a/examples/typescript-graphql-request/package.json b/examples/typescript-graphql-request/package.json index a5addf4704b..98e7dc956de 100644 --- a/examples/typescript-graphql-request/package.json +++ b/examples/typescript-graphql-request/package.json @@ -15,7 +15,7 @@ "graphql-yoga": "5.21.0" }, "devDependencies": { - "@graphql-codegen/cli": "6.3.1" + "@graphql-codegen/cli": "7.0.0" }, "bob": false } diff --git a/examples/typescript-resolvers/package.json b/examples/typescript-resolvers/package.json index 8c777c41735..e5d2def2240 100644 --- a/examples/typescript-resolvers/package.json +++ b/examples/typescript-resolvers/package.json @@ -15,9 +15,9 @@ "graphql-yoga": "5.21.0" }, "devDependencies": { - "@graphql-codegen/cli": "6.3.1", - "@graphql-codegen/typescript": "5.0.10", - "@graphql-codegen/typescript-resolvers": "5.1.8" + "@graphql-codegen/cli": "7.0.0", + "@graphql-codegen/typescript": "6.0.0", + "@graphql-codegen/typescript-resolvers": "6.0.0" }, "bob": false } diff --git a/examples/vite/vite-react-cts/package.json b/examples/vite/vite-react-cts/package.json index 7c3268027b1..bc712188d97 100644 --- a/examples/vite/vite-react-cts/package.json +++ b/examples/vite/vite-react-cts/package.json @@ -21,7 +21,7 @@ "vite": "^8.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "6.3.1", + "@graphql-codegen/cli": "7.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "cypress": "15.14.2", diff --git a/examples/vite/vite-react-mts/package.json b/examples/vite/vite-react-mts/package.json index 034a03627a5..f6a14ef1699 100644 --- a/examples/vite/vite-react-mts/package.json +++ b/examples/vite/vite-react-mts/package.json @@ -21,7 +21,7 @@ "vite": "^8.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "6.3.1", + "@graphql-codegen/cli": "7.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "cypress": "15.14.2", diff --git a/examples/vite/vite-react-ts/package.json b/examples/vite/vite-react-ts/package.json index dfb246dc779..886d554a29f 100644 --- a/examples/vite/vite-react-ts/package.json +++ b/examples/vite/vite-react-ts/package.json @@ -21,7 +21,7 @@ "vite": "^8.0.0" }, "devDependencies": { - "@graphql-codegen/cli": "6.3.1", + "@graphql-codegen/cli": "7.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "cypress": "15.14.2", diff --git a/examples/vue/apollo-composable/package.json b/examples/vue/apollo-composable/package.json index df0afeb9114..f62fb4b81ed 100644 --- a/examples/vue/apollo-composable/package.json +++ b/examples/vue/apollo-composable/package.json @@ -17,7 +17,7 @@ "vue": "^3.2.37" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@vitejs/plugin-vue": "^6.0.0", "cypress": "15.14.2", "serve": "14.2.6", diff --git a/examples/vue/urql/package.json b/examples/vue/urql/package.json index 70a67cb94f3..2515bfac755 100644 --- a/examples/vue/urql/package.json +++ b/examples/vue/urql/package.json @@ -16,7 +16,7 @@ "vue": "^3.2.45" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@vitejs/plugin-vue": "^6.0.0", "cypress": "15.14.2", "serve": "14.2.6", diff --git a/examples/vue/villus/package.json b/examples/vue/villus/package.json index 842a4df9636..3fd0ff5ade0 100644 --- a/examples/vue/villus/package.json +++ b/examples/vue/villus/package.json @@ -16,7 +16,7 @@ "vue": "^3.2.37" }, "devDependencies": { - "@graphql-codegen/cli": "^6.3.1", + "@graphql-codegen/cli": "^7.0.0", "@vitejs/plugin-vue": "^6.0.0", "cypress": "15.14.2", "serve": "14.2.6", diff --git a/examples/yoga-tests/package.json b/examples/yoga-tests/package.json index 341c08a140f..b0787544ad6 100644 --- a/examples/yoga-tests/package.json +++ b/examples/yoga-tests/package.json @@ -15,7 +15,7 @@ "@babel/core": "7.29.0", "@babel/preset-env": "7.29.2", "@babel/preset-typescript": "7.28.5", - "@graphql-codegen/cli": "6.3.1", + "@graphql-codegen/cli": "7.0.0", "@graphql-typed-document-node/core": "3.2.0" }, "bob": false diff --git a/packages/graphql-codegen-cli/CHANGELOG.md b/packages/graphql-codegen-cli/CHANGELOG.md index 7014a5de5ed..6da49d0158d 100644 --- a/packages/graphql-codegen-cli/CHANGELOG.md +++ b/packages/graphql-codegen-cli/CHANGELOG.md @@ -1,5 +1,123 @@ # @graphql-codegen/cli +## 7.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Set `noSilentErrors: true` + by default + + When multiple files match documents pattern, and there are syntax errors in some but not others, + then the operations with errors are not included in the loaded documents list by default + (`noSilentErrors: false`). This is annoying for users as there is no feedback loop during + development. + + `noSilentErrors: true` is used as the default for Codegen users to make the feedback loop faster. + It can still overriden in Codegen Config if desired. + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency + [`@inquirer/prompts@^8.3.2` ↗︎](https://www.npmjs.com/package/@inquirer/prompts/v/8.3.2) (from + `^7.8.2`, in `dependencies`) + - Updated dependency [`chalk@^5.6.0` ↗︎](https://www.npmjs.com/package/chalk/v/5.6.0) (from + `^4.1.0`, in `dependencies`) + - Updated dependency [`debounce@^3.0.0` ↗︎](https://www.npmjs.com/package/debounce/v/3.0.0) (from + `^2.0.0`, in `dependencies`) + - Updated dependency + [`detect-indent@^7.0.0` ↗︎](https://www.npmjs.com/package/detect-indent/v/7.0.0) (from `^6.0.0`, + in `dependencies`) + - Updated dependency [`listr2@^10.2.1` ↗︎](https://www.npmjs.com/package/listr2/v/10.2.1) (from + `^9.0.0`, in `dependencies`) + - Updated dependency [`log-symbols@^7.0.0` ↗︎](https://www.npmjs.com/package/log-symbols/v/7.0.0) + (from `^4.0.0`, in `dependencies`) + - Updated dependency [`ts-log@^3.0.0` ↗︎](https://www.npmjs.com/package/ts-log/v/3.0.0) (from + `^2.2.3`, in `dependencies`) + - Updated dependency [`yargs@^18.0.0` ↗︎](https://www.npmjs.com/package/yargs/v/18.0.0) (from + `^17.0.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`chalk@^5.6.0` ↗︎](https://www.npmjs.com/package/chalk/v/5.6.0) (from + `^4.1.0`, in `dependencies`) + - Updated dependency [`debounce@^3.0.0` ↗︎](https://www.npmjs.com/package/debounce/v/3.0.0) (from + `^2.0.0`, in `dependencies`) + - Updated dependency + [`detect-indent@^7.0.0` ↗︎](https://www.npmjs.com/package/detect-indent/v/7.0.0) (from `^6.0.0`, + in `dependencies`) + - Updated dependency [`listr2@^10.2.1` ↗︎](https://www.npmjs.com/package/listr2/v/10.2.1) (from + `^9.0.0`, in `dependencies`) + - Updated dependency [`log-symbols@^7.0.0` ↗︎](https://www.npmjs.com/package/log-symbols/v/7.0.0) + (from `^4.0.0`, in `dependencies`) + - Updated dependency [`ts-log@^3.0.0` ↗︎](https://www.npmjs.com/package/ts-log/v/3.0.0) (from + `^2.2.3`, in `dependencies`) + - Updated dependency [`yargs@^18.0.0` ↗︎](https://www.npmjs.com/package/yargs/v/18.0.0) (from + `^17.0.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency + [`@inquirer/prompts@^8.3.2` ↗︎](https://www.npmjs.com/package/@inquirer/prompts/v/8.3.2) (from + `^7.8.2`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Use ESM for CLI instead of CJS; + + For backwards compatibility; `graphql-codegen-esm` is reserved, and also `graphql-codegen-cjs` is + added for users who want to use CJS. + + So the commands are; + - `graphql-codegen` - ESM version, default + - `graphql-codegen-esm` - ESM version, same as above, but reserved for backwards compatibility + - `graphql-codegen-cjs` - CJS version, for users who want to use CJS, but not recommended for new + users. Will be removed in the future. + - `gql-gen` - ESM version, same as `graphql-codegen` + - `graphql-code-generator` - ESM version, same as `graphql-codegen` and `gql-gen` + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/client-preset@6.0.0 + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/core@6.0.0 + ## 6.3.1 ### Patch Changes diff --git a/packages/graphql-codegen-cli/package.json b/packages/graphql-codegen-cli/package.json index c5f70a2c8fa..e7a58a3724a 100644 --- a/packages/graphql-codegen-cli/package.json +++ b/packages/graphql-codegen-cli/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/cli", - "version": "6.3.1", + "version": "7.0.0", "type": "module", "repository": { "type": "git", @@ -77,9 +77,9 @@ "@babel/generator": "^7.18.13", "@babel/template": "^7.18.10", "@babel/types": "^7.18.13", - "@graphql-codegen/client-preset": "^5.3.0", - "@graphql-codegen/core": "^5.0.2", - "@graphql-codegen/plugin-helpers": "^6.3.0", + "@graphql-codegen/client-preset": "^6.0.0", + "@graphql-codegen/core": "^6.0.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", "@graphql-tools/apollo-engine-loader": "^8.0.28", "@graphql-tools/code-file-loader": "^8.1.28", "@graphql-tools/git-loader": "^8.0.32", diff --git a/packages/graphql-codegen-core/CHANGELOG.md b/packages/graphql-codegen-core/CHANGELOG.md index eb5a5a1807f..ca854d78a68 100644 --- a/packages/graphql-codegen-core/CHANGELOG.md +++ b/packages/graphql-codegen-core/CHANGELOG.md @@ -1,5 +1,22 @@ # @graphql-codegen/core +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + ## 5.0.2 ### Patch Changes diff --git a/packages/graphql-codegen-core/package.json b/packages/graphql-codegen-core/package.json index c8953f1afd3..9e6cd40ad53 100644 --- a/packages/graphql-codegen-core/package.json +++ b/packages/graphql-codegen-core/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/core", - "version": "5.0.2", + "version": "6.0.0", "type": "module", "repository": { "type": "git", @@ -61,7 +61,7 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", "@graphql-tools/schema": "^10.0.0", "@graphql-tools/utils": "^11.0.0", "tslib": "^2.8.0" diff --git a/packages/plugins/other/add/CHANGELOG.md b/packages/plugins/other/add/CHANGELOG.md index a913c0672d4..5e6e4dd9f07 100644 --- a/packages/plugins/other/add/CHANGELOG.md +++ b/packages/plugins/other/add/CHANGELOG.md @@ -1,5 +1,22 @@ # @graphql-codegen/add +## 7.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + ## 6.0.1 ### Patch Changes diff --git a/packages/plugins/other/add/package.json b/packages/plugins/other/add/package.json index 322b3345e6c..6116f70511c 100644 --- a/packages/plugins/other/add/package.json +++ b/packages/plugins/other/add/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/add", - "version": "6.0.1", + "version": "7.0.0", "type": "module", "description": "GraphQL Code Generator plugin for adding custom content to your output file", "repository": { @@ -39,7 +39,7 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", "tslib": "^2.8.0" }, "publishConfig": { diff --git a/packages/plugins/other/fragment-matcher/CHANGELOG.md b/packages/plugins/other/fragment-matcher/CHANGELOG.md index b41e4d1cb93..08456bd4e5b 100644 --- a/packages/plugins/other/fragment-matcher/CHANGELOG.md +++ b/packages/plugins/other/fragment-matcher/CHANGELOG.md @@ -1,5 +1,22 @@ # @graphql-codegen/fragment-matcher +## 7.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + ## 6.0.1 ### Patch Changes diff --git a/packages/plugins/other/fragment-matcher/package.json b/packages/plugins/other/fragment-matcher/package.json index ffb2d0b7f74..7eb75d8a1f9 100644 --- a/packages/plugins/other/fragment-matcher/package.json +++ b/packages/plugins/other/fragment-matcher/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/fragment-matcher", - "version": "6.0.1", + "version": "7.0.0", "type": "module", "description": "graphql-code-generate plugin for generating fragments matcher introspection file", "repository": { @@ -40,7 +40,7 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", "tslib": "^2.8.0" }, "publishConfig": { diff --git a/packages/plugins/other/introspection/CHANGELOG.md b/packages/plugins/other/introspection/CHANGELOG.md index f5980c11d5c..dcfc324d711 100644 --- a/packages/plugins/other/introspection/CHANGELOG.md +++ b/packages/plugins/other/introspection/CHANGELOG.md @@ -1,5 +1,43 @@ # @graphql-codegen/introspection +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + ## 5.0.2 ### Patch Changes diff --git a/packages/plugins/other/introspection/package.json b/packages/plugins/other/introspection/package.json index fcca536509d..812b7f124ac 100644 --- a/packages/plugins/other/introspection/package.json +++ b/packages/plugins/other/introspection/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/introspection", - "version": "5.0.2", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator plugin for generating an introspection JSON file for a GraphQLSchema", "repository": { @@ -40,8 +40,8 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "tslib": "^2.8.0" }, "publishConfig": { diff --git a/packages/plugins/other/schema-ast/CHANGELOG.md b/packages/plugins/other/schema-ast/CHANGELOG.md index 3025f122d76..a0f0ff2c187 100644 --- a/packages/plugins/other/schema-ast/CHANGELOG.md +++ b/packages/plugins/other/schema-ast/CHANGELOG.md @@ -1,5 +1,22 @@ # @graphql-codegen/schema-ast +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + ## 5.0.2 ### Patch Changes diff --git a/packages/plugins/other/schema-ast/package.json b/packages/plugins/other/schema-ast/package.json index bb636892d3a..576d735fe62 100644 --- a/packages/plugins/other/schema-ast/package.json +++ b/packages/plugins/other/schema-ast/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/schema-ast", - "version": "5.0.2", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator plugin for generating a .graphql file from a given schema", "repository": { @@ -40,7 +40,7 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", "@graphql-tools/utils": "^11.0.0", "tslib": "^2.8.0" }, diff --git a/packages/plugins/other/time/CHANGELOG.md b/packages/plugins/other/time/CHANGELOG.md index f383358b09a..6a9e2a73454 100644 --- a/packages/plugins/other/time/CHANGELOG.md +++ b/packages/plugins/other/time/CHANGELOG.md @@ -1,75 +1,127 @@ # @graphql-codegen/time +## 7.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + ## 6.0.0 ### Major Changes -- [#10218](https://github.com/dotansimha/graphql-code-generator/pull/10218) [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2) Thanks [@eddeee888](https://github.com/eddeee888)! - Drop Node 18 support +- [#10218](https://github.com/dotansimha/graphql-code-generator/pull/10218) + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2) + Thanks [@eddeee888](https://github.com/eddeee888)! - Drop Node 18 support ### Patch Changes -- Updated dependencies [[`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2)]: +- Updated dependencies + [[`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2), + [`140298a`](https://github.com/dotansimha/graphql-code-generator/commit/140298a33b257a0b7958e361971b5bc97bbc01c2)]: - @graphql-codegen/plugin-helpers@6.0.0 ## 5.0.1 ### Patch Changes -- [#9881](https://github.com/dotansimha/graphql-code-generator/pull/9881) [`68ea5d4`](https://github.com/dotansimha/graphql-code-generator/commit/68ea5d4d18969840c34e42bf4f8237e849af7aab) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`moment@~2.30.0` ↗︎](https://www.npmjs.com/package/moment/v/2.30.0) (from `~2.29.1`, in `dependencies`) +- [#9881](https://github.com/dotansimha/graphql-code-generator/pull/9881) + [`68ea5d4`](https://github.com/dotansimha/graphql-code-generator/commit/68ea5d4d18969840c34e42bf4f8237e849af7aab) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`moment@~2.30.0` ↗︎](https://www.npmjs.com/package/moment/v/2.30.0) (from + `~2.29.1`, in `dependencies`) ## 5.0.0 ### Major Changes -- [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Require Node.js `>= 16`. Drop support for Node.js 14 +- [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Require Node.js `>= 16`. Drop support for Node.js + 14 ### Patch Changes -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0)]: +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0)]: - @graphql-codegen/plugin-helpers@5.0.0 ## 4.0.0 ### Major Changes -- [#8885](https://github.com/dotansimha/graphql-code-generator/pull/8885) [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d) Thanks [@n1ru4l](https://github.com/n1ru4l)! - drop Node.js 12 support +- [#8885](https://github.com/dotansimha/graphql-code-generator/pull/8885) + [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - drop Node.js 12 support ### Patch Changes -- Updated dependencies [[`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5), [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d)]: +- Updated dependencies + [[`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5), + [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d)]: - @graphql-codegen/plugin-helpers@4.0.0 ## 3.2.3 ### Patch Changes -- [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a) Thanks [@saihaj](https://github.com/saihaj)! - fix the version of `@graphql-codegen/plugin-helpers@3.1.1` +- [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a) + Thanks [@saihaj](https://github.com/saihaj)! - fix the version of + `@graphql-codegen/plugin-helpers@3.1.1` -- Updated dependencies [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81)]: - @graphql-codegen/plugin-helpers@3.1.1 ## 3.2.2 ### Patch Changes -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`f79a00e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f79a00e8ae073eab426ca08795c924e716123482), [`c802a0c0b`](https://github.com/dotansimha/graphql-code-generator/commit/c802a0c0b775cfabc5ace3e7fb6655540c6c4d84)]: +- Updated dependencies + [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), + [`f79a00e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f79a00e8ae073eab426ca08795c924e716123482), + [`c802a0c0b`](https://github.com/dotansimha/graphql-code-generator/commit/c802a0c0b775cfabc5ace3e7fb6655540c6c4d84)]: - @graphql-codegen/plugin-helpers@3.0.0 ## 3.2.1 ### Patch Changes -- [#8189](https://github.com/dotansimha/graphql-code-generator/pull/8189) [`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix CommonJS TypeScript resolution with `moduleResolution` `node16` or `nodenext` +- [#8189](https://github.com/dotansimha/graphql-code-generator/pull/8189) + [`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix CommonJS TypeScript resolution with + `moduleResolution` `node16` or `nodenext` -- Updated dependencies [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f)]: - @graphql-codegen/plugin-helpers@2.6.2 ## 3.2.0 ### Minor Changes -- d84afec09: Support TypeScript ESM modules (`"module": "node16"` and `"moduleResolution": "node16"`). +- d84afec09: Support TypeScript ESM modules (`"module": "node16"` and + `"moduleResolution": "node16"`). [More information on the TypeScript Release Notes.](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js) @@ -110,7 +162,8 @@ ‼️ ‼️ ‼️ Please note ‼️ ‼️ ‼️: - This is a breaking change since Node 10 is no longer supported in `graphql-tools`, and also no longer supported for Codegen packages. + This is a breaking change since Node 10 is no longer supported in `graphql-tools`, and also no + longer supported for Codegen packages. ### Patch Changes @@ -130,7 +183,8 @@ ### Patch Changes - 1d7c6432: Bump all packages to allow "^" in deps and fix compatibility issues -- 1d7c6432: Bump versions of @graphql-tools/ packages to fix issues with loading schemas and SDL comments +- 1d7c6432: Bump versions of @graphql-tools/ packages to fix issues with loading schemas and SDL + comments - Updated dependencies [1d7c6432] - Updated dependencies [1d7c6432] - @graphql-codegen/plugin-helpers@1.17.8 @@ -143,7 +197,8 @@ ## Migration Notes - This only effects developers who used to override the `format`. You now need to specify it with a key! + This only effects developers who used to override the `format`. You now need to specify it with a + key! #### Before diff --git a/packages/plugins/other/time/package.json b/packages/plugins/other/time/package.json index ff3490625ba..b684370091f 100644 --- a/packages/plugins/other/time/package.json +++ b/packages/plugins/other/time/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/time", - "version": "6.0.0", + "version": "7.0.0", "type": "module", "description": "GraphQL Code Generator plugin for adding the current time for an output file", "repository": { @@ -39,7 +39,7 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.0.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", "moment": "~2.30.0" }, "devDependencies": { diff --git a/packages/plugins/other/visitor-plugin-common/CHANGELOG.md b/packages/plugins/other/visitor-plugin-common/CHANGELOG.md index 2998032680d..05efd1cee28 100644 --- a/packages/plugins/other/visitor-plugin-common/CHANGELOG.md +++ b/packages/plugins/other/visitor-plugin-common/CHANGELOG.md @@ -1,5 +1,204 @@ # @graphql-codegen/visitor-plugin-common +## 7.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix nullable field optionality in operations + + Previously, a nullable Result field is generated as optional (marked by `?` TypeScript modifier) + by default. This is not correct, because generally at runtime such field can only be `null`, and + not `undefined` (both missing from the object OR `undefined`). The only exceptions are when fields + are deferred (using `@defer` directive) or marked as conditional (using `@skip` or `@include`). + + Now, a nullable Result field cannot be optional unless the exceptions are met. This also limits + `avoidOptionals` to only target Variables input, since some users may want to force explicit + `null` when providing operation variables. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: visitors' config option are + moved based on their use case + - addTypename/skipTypename: is only a types-visitor concern. This is moved to types-visitor from + base-visitor + - nonOptionalTypename: is a documents-visitor and types-visitor concern. Moved from base-visitor + there + - extractAllFieldsToTypes: is a documents-visitor concern. Moved from base-visitor there + - enumPrefix and enumSuffix: need to be in base-visitor as all 3 types of visitors need this to + correctly sync the enum type names. This is moved to base visitor + - ignoreEnumValuesFromSchema: is a documents-visitor and types-visitor concern. Moved from + base-visitor there. + - globalNamespace: is a documents-visitor concern. Moved from base-visitor there + + Refactors + - documents-visitor no longer extends types-visitor _option types_ as they have two distinct + usages now. The types now extend base-visitor types. This is now consistent with + documents-visitor extending base-visitor + - Classes now handle config parsing and types at the same level e.g. if typescript-operations + plugin parses configOne, then the types for configOne must be in that class, rather than in + base-documents-visitor + + Note: These visitors are rolled up into one type for simplicity + - base-visitor: includes `base-visitor` + - documents-visitor: includes `base-documents-visitor` and `typescript-operations` visitor + - types-visitor: includes `base-types-visitor` and `typescript` visitor + - resolvers-visitor: includes `base-resolvers-visitor` and `typescript-resolvers` visitor + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: make `unknown` instead of + `any` the default custom scalar type + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: + `@graphql-codegen/visitor-plugin-common`'s `base-types-visitor` no longer has `getNodeComment` or + `buildEnumValuesBlock` method. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Operation plugin and Client + Preset no longer generates optional `__typename` for result type + + `__typenam` should not be in the request unless: + - explicitly requested by the user + - automatically injected into the request by clients, such as Apollo Clients. + + Note: Apollo Client users can still use `nonOptionalTypename: true` and + `skipTypeNameForRoot: true` to ensure generated types match the runtime behaviour. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Remove unused utility types + from `typescript` plugin as they were previously used for `typescript-operations` plugin: + - `MakeOptional` + - `MakeMaybe` + - `MakeEmpty` + - `Incremental` + + BREAKING CHANGE: Remove `getRootTypeNames` function because it's available in + `@graphql-utils/tools` and not used anywhere + +### Minor Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add support for declarationKind for + typescript-operations + - Input: can only be `type` or `interface` + - Variables: no support. It must always be `type` because it's an alias e.g. + `Variables = Exact<{ something: type }>` + - Result: can only be `type` or `interface` + - Note: when `extractAllFieldsToTypes:true` or `extractAllFieldsToTypesCompact:true`, Results + are used as type alias, so they are forced to be `type`. There is a console warning for users. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add importSchemaTypesFrom support + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Adding config option + extractAllFieldsToTypesCompact, which renders nested types names with field names only (without + types) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add generateOperationTypes to + typescript-operations to allow omitting operation types such as Variables, + Query/Mutation/Subscription selection set, and Fragment types + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fixing 2 bugs: 1) including enums from + external fragments; 2) extractAllFieldsToTypesCompact does not create duplicates + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + - Updated dependency + [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from + `1.0.15`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + - Updated dependency + [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from + `1.0.15`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Improve `namespacedImportName` usability by + setting a default when `importSchemaTypesFrom` is set + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add `printTypeScriptMaybeType` to handle + printing TS types, as there are special cases like `any` and `unknown` + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix isNativeNamedType to handle types from + remote schemas correctly + + Previously, we assumed that if a name type does note have `astNode`, it is a native named type + because it is not declared in user's schema. + + However, this is a wrong assumption because remote schemas do not have `astNode`. This causes all + user declared types are wrongly recognised as native types e.g. Input + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Ensure Input and Variables use the same input + scalars default e.g. `ID` can take `string | number` + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix namingConvention not being applied + consistently + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Abstract how enum imports are generated into + visitor-plugin-common package + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix namingConvention not being applied + consistently in imports, Variables, Input and Result + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + ## 6.3.0 ### Minor Changes @@ -791,8 +990,8 @@ ``` The `RefType` generic is used to reference back to `ResolversTypes` and `ResolversParentTypes` in - some cases such as field returning a Union. - 2. `resolversNonOptionalTypename` also affects `ResolversInterfaceTypes` + some cases such as field returning a Union. 2. `resolversNonOptionalTypename` also affects + `ResolversInterfaceTypes` Using the schema above, if we use `resolversNonOptionalTypename` option: diff --git a/packages/plugins/other/visitor-plugin-common/package.json b/packages/plugins/other/visitor-plugin-common/package.json index 3f3928b00d7..33a9df0e37a 100644 --- a/packages/plugins/other/visitor-plugin-common/package.json +++ b/packages/plugins/other/visitor-plugin-common/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/visitor-plugin-common", - "version": "6.3.0", + "version": "7.0.0", "type": "module", "repository": { "type": "git", @@ -39,7 +39,7 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", "@graphql-tools/optimize": "^2.0.0", "@graphql-tools/relay-operation-optimizer": "^7.1.1", "@graphql-tools/utils": "^11.0.0", diff --git a/packages/plugins/typescript/document-nodes/CHANGELOG.md b/packages/plugins/typescript/document-nodes/CHANGELOG.md index 3f5898f18a2..e75cb4a86bf 100644 --- a/packages/plugins/typescript/document-nodes/CHANGELOG.md +++ b/packages/plugins/typescript/document-nodes/CHANGELOG.md @@ -1,5 +1,66 @@ # @graphql-codegen/typescript-document-nodes +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + ## 5.0.10 ### Patch Changes diff --git a/packages/plugins/typescript/document-nodes/package.json b/packages/plugins/typescript/document-nodes/package.json index 6dab78a0867..3dddebad8da 100644 --- a/packages/plugins/typescript/document-nodes/package.json +++ b/packages/plugins/typescript/document-nodes/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/typescript-document-nodes", - "version": "5.0.10", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator plugin for generating TypeScript modules with embedded GraphQL document nodes", "repository": { @@ -40,8 +40,8 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "auto-bind": "^5.0.0", "tslib": "^2.8.0" }, diff --git a/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md b/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md index dd5584aa9a6..be6bf10c5fb 100644 --- a/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md +++ b/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md @@ -1,5 +1,66 @@ # @graphql-codegen/gql-tag-operations +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + ## 5.2.0 ### Minor Changes diff --git a/packages/plugins/typescript/gql-tag-operations/package.json b/packages/plugins/typescript/gql-tag-operations/package.json index c1b549dde47..702f7a769b3 100644 --- a/packages/plugins/typescript/gql-tag-operations/package.json +++ b/packages/plugins/typescript/gql-tag-operations/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/gql-tag-operations", - "version": "5.2.0", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator plugin for generating a typed gql tag function", "repository": { @@ -40,8 +40,8 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "@graphql-tools/utils": "^11.0.0", "auto-bind": "^5.0.0", "tslib": "^2.8.0" diff --git a/packages/plugins/typescript/operations/CHANGELOG.md b/packages/plugins/typescript/operations/CHANGELOG.md index 8ae17ff9e78..d54c7ac1fb6 100644 --- a/packages/plugins/typescript/operations/CHANGELOG.md +++ b/packages/plugins/typescript/operations/CHANGELOG.md @@ -1,5 +1,291 @@ # @graphql-codegen/typescript-operations +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix nullable field optionality in operations + + Previously, a nullable Result field is generated as optional (marked by `?` TypeScript modifier) + by default. This is not correct, because generally at runtime such field can only be `null`, and + not `undefined` (both missing from the object OR `undefined`). The only exceptions are when fields + are deferred (using `@defer` directive) or marked as conditional (using `@skip` or `@include`). + + Now, a nullable Result field cannot be optional unless the exceptions are met. This also limits + `avoidOptionals` to only target Variables input, since some users may want to force explicit + `null` when providing operation variables. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: visitors' config option are + moved based on their use case + - addTypename/skipTypename: is only a types-visitor concern. This is moved to types-visitor from + base-visitor + - nonOptionalTypename: is a documents-visitor and types-visitor concern. Moved from base-visitor + there + - extractAllFieldsToTypes: is a documents-visitor concern. Moved from base-visitor there + - enumPrefix and enumSuffix: need to be in base-visitor as all 3 types of visitors need this to + correctly sync the enum type names. This is moved to base visitor + - ignoreEnumValuesFromSchema: is a documents-visitor and types-visitor concern. Moved from + base-visitor there. + - globalNamespace: is a documents-visitor concern. Moved from base-visitor there + + Refactors + - documents-visitor no longer extends types-visitor _option types_ as they have two distinct + usages now. The types now extend base-visitor types. This is now consistent with + documents-visitor extending base-visitor + - Classes now handle config parsing and types at the same level e.g. if typescript-operations + plugin parses configOne, then the types for configOne must be in that class, rather than in + base-documents-visitor + + Note: These visitors are rolled up into one type for simplicity + - base-visitor: includes `base-visitor` + - documents-visitor: includes `base-documents-visitor` and `typescript-operations` visitor + - types-visitor: includes `base-types-visitor` and `typescript` visitor + - resolvers-visitor: includes `base-resolvers-visitor` and `typescript-resolvers` visitor + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: typescript-operations plugin + now generates enum if it is used in operation. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Conditionally generate input types and output + enums into target file + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: make `unknown` instead of + `any` the default custom scalar type + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Decouple + `typescript-operations` plugin from `typescript` plugin + + Previously, `TypeScriptOperationVariablesToObject` from `typescript-operations` was extending from + `typescript` plugin. This made it (1) very hard to read, as we need to jump from base class <-> + typescript class <-> typescript-operations class to understand the flow and (2) very hard to + evolve the two independently (which is the point of this work). + + Since there's not much shared logic anyways, it's simpler to extend the `typescript-operations` + class from the base class directly. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - The `typescript-operations` plugin no longer + generates InputMaybe and Scalars types; it now uses native Typescript types instead. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: `typescript` plugin no + longer generates `Exact` utility type. Instead, `typescript-operations` generates said utility + type for every file it creates. This is because it is used _only_ for `Variables`, so we only need + to generate it once for every generated operation file. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Operation plugin and Client + Preset no longer generates optional `__typename` for result type + + `__typenam` should not be in the request unless: + - explicitly requested by the user + - automatically injected into the request by clients, such as Apollo Clients. + + Note: Apollo Client users can still use `nonOptionalTypename: true` and + `skipTypeNameForRoot: true` to ensure generated types match the runtime behaviour. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Integrate new typescript-operations into + client-preset + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: config.avoidOptionals now + only supports object, inputValue, defaultValue + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: rename avoidOptionals.object + to avoidOptionals.variableValue + +### Minor Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add support for declarationKind for + typescript-operations + - Input: can only be `type` or `interface` + - Variables: no support. It must always be `type` because it's an alias e.g. + `Variables = Exact<{ something: type }>` + - Result: can only be `type` or `interface` + - Note: when `extractAllFieldsToTypes:true` or `extractAllFieldsToTypesCompact:true`, Results + are used as type alias, so they are forced to be `type`. There is a console warning for users. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add importSchemaTypesFrom support + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add generateOperationTypes to + typescript-operations to allow omitting operation types such as Variables, + Query/Mutation/Subscription selection set, and Fragment types + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fixing 2 bugs: 1) including enums from + external fragments; 2) extractAllFieldsToTypesCompact does not create duplicates + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + - Added dependency + [`@graphql-codegen/schema-ast@^5.0.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/schema-ast/v/5.0.1) + (to `dependencies`) + - Removed dependency + [`@graphql-codegen/typescript@^5.0.10` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.10) + (from `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Added dependency + [`@graphql-codegen/schema-ast@^5.0.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/schema-ast/v/5.0.0) + (to `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Removed dependency + [`@graphql-codegen/typescript@^5.0.7` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.7) + (from `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Improve `namespacedImportName` usability by + setting a default when `importSchemaTypesFrom` is set + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add internal utility type warning to deter + usage + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add `printTypeScriptMaybeType` to handle + printing TS types, as there are special cases like `any` and `unknown` + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Re-implement inputMaybeValue + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Only generate `Exact` utility type at the top + if it is used + + `Exact` utility is only used to wrap variables types for operations (queries, mutations and + subscriptions) if they exist in the document. `Exact` is never used when there are _only_ + fragments. + + This is important to conditionally generate as users may use very strict tsconfig that will fail + compiling if there are unused types. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix external custom scalars not getting + imported + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Ensure Input and Variables use the same input + scalars default e.g. `ID` can take `string | number` + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix `@skip` and `@include` not applying + conditional modifiers correctly when used on inline fragment + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Abstract how enum imports are generated into + visitor-plugin-common package + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix `@skip` and `@include` not applying + conditional modifiers correctly when used on fragment sread, and `@defer` fragments + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix importing issue of Input when + importSchemaTypesFrom is used + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix namingConvention not being applied + consistently in imports, Variables, Input and Result + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + - @graphql-codegen/schema-ast@6.0.0 + ## 5.1.0 ### Minor Changes diff --git a/packages/plugins/typescript/operations/package.json b/packages/plugins/typescript/operations/package.json index ef2bbc1bf13..c27678f81d4 100644 --- a/packages/plugins/typescript/operations/package.json +++ b/packages/plugins/typescript/operations/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/typescript-operations", - "version": "5.1.0", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments", "repository": { @@ -46,9 +46,9 @@ } }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/schema-ast": "^5.0.1", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/schema-ast": "^6.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "auto-bind": "^5.0.0", "tslib": "^2.8.0" }, diff --git a/packages/plugins/typescript/resolvers/CHANGELOG.md b/packages/plugins/typescript/resolvers/CHANGELOG.md index 64be10ddc5a..d1a1d625e28 100644 --- a/packages/plugins/typescript/resolvers/CHANGELOG.md +++ b/packages/plugins/typescript/resolvers/CHANGELOG.md @@ -1,5 +1,117 @@ # @graphql-codegen/typescript-resolvers +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: visitors' config option are + moved based on their use case + - addTypename/skipTypename: is only a types-visitor concern. This is moved to types-visitor from + base-visitor + - nonOptionalTypename: is a documents-visitor and types-visitor concern. Moved from base-visitor + there + - extractAllFieldsToTypes: is a documents-visitor concern. Moved from base-visitor there + - enumPrefix and enumSuffix: need to be in base-visitor as all 3 types of visitors need this to + correctly sync the enum type names. This is moved to base visitor + - ignoreEnumValuesFromSchema: is a documents-visitor and types-visitor concern. Moved from + base-visitor there. + - globalNamespace: is a documents-visitor concern. Moved from base-visitor there + + Refactors + - documents-visitor no longer extends types-visitor _option types_ as they have two distinct + usages now. The types now extend base-visitor types. This is now consistent with + documents-visitor extending base-visitor + - Classes now handle config parsing and types at the same level e.g. if typescript-operations + plugin parses configOne, then the types for configOne must be in that class, rather than in + base-documents-visitor + + Note: These visitors are rolled up into one type for simplicity + - base-visitor: includes `base-visitor` + - documents-visitor: includes `base-documents-visitor` and `typescript-operations` visitor + - types-visitor: includes `base-types-visitor` and `typescript` visitor + - resolvers-visitor: includes `base-resolvers-visitor` and `typescript-resolvers` visitor + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: make `unknown` instead of + `any` the default custom scalar type + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix namingConvention not being applied + consistently + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Abstract how enum imports are generated into + visitor-plugin-common package + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/typescript@6.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + ## 5.1.8 ### Patch Changes @@ -812,8 +924,8 @@ ``` The `RefType` generic is used to reference back to `ResolversTypes` and `ResolversParentTypes` in - some cases such as field returning a Union. - 2. `resolversNonOptionalTypename` also affects `ResolversInterfaceTypes` + some cases such as field returning a Union. 2. `resolversNonOptionalTypename` also affects + `ResolversInterfaceTypes` Using the schema above, if we use `resolversNonOptionalTypename` option: diff --git a/packages/plugins/typescript/resolvers/package.json b/packages/plugins/typescript/resolvers/package.json index 3b1c91623a6..0b469cc0d72 100644 --- a/packages/plugins/typescript/resolvers/package.json +++ b/packages/plugins/typescript/resolvers/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/typescript-resolvers", - "version": "5.1.8", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator plugin for generating TypeScript types for resolvers signature", "repository": { @@ -46,9 +46,9 @@ } }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/typescript": "^5.0.10", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/typescript": "^6.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "@graphql-tools/utils": "^11.0.0", "auto-bind": "^5.0.0", "tslib": "^2.8.0" diff --git a/packages/plugins/typescript/typed-document-node/CHANGELOG.md b/packages/plugins/typescript/typed-document-node/CHANGELOG.md index 01052a1abc6..43c0f6edc0e 100644 --- a/packages/plugins/typescript/typed-document-node/CHANGELOG.md +++ b/packages/plugins/typescript/typed-document-node/CHANGELOG.md @@ -1,5 +1,72 @@ # @graphql-codegen/typed-document-node +## 7.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + - Updated dependency + [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from + `1.0.15`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency + [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from + `1.0.15`, in `dependencies`) + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + ## 6.1.8 ### Patch Changes diff --git a/packages/plugins/typescript/typed-document-node/package.json b/packages/plugins/typescript/typed-document-node/package.json index 72b15d6de47..5a477d44340 100644 --- a/packages/plugins/typescript/typed-document-node/package.json +++ b/packages/plugins/typescript/typed-document-node/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/typed-document-node", - "version": "6.1.8", + "version": "7.0.0", "type": "module", "description": "GraphQL Code Generator plugin for generating ready-to-use TypedDocumentNode based on GraphQL operations", "repository": { @@ -40,8 +40,8 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "auto-bind": "^5.0.0", "change-case-all": "^2.1.0", "tslib": "^2.8.0" diff --git a/packages/plugins/typescript/typescript/CHANGELOG.md b/packages/plugins/typescript/typescript/CHANGELOG.md index cf0eb0c4bbd..5fa42f5e2a6 100644 --- a/packages/plugins/typescript/typescript/CHANGELOG.md +++ b/packages/plugins/typescript/typescript/CHANGELOG.md @@ -1,5 +1,150 @@ # @graphql-codegen/typescript +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: visitors' config option are + moved based on their use case + - addTypename/skipTypename: is only a types-visitor concern. This is moved to types-visitor from + base-visitor + - nonOptionalTypename: is a documents-visitor and types-visitor concern. Moved from base-visitor + there + - extractAllFieldsToTypes: is a documents-visitor concern. Moved from base-visitor there + - enumPrefix and enumSuffix: need to be in base-visitor as all 3 types of visitors need this to + correctly sync the enum type names. This is moved to base visitor + - ignoreEnumValuesFromSchema: is a documents-visitor and types-visitor concern. Moved from + base-visitor there. + - globalNamespace: is a documents-visitor concern. Moved from base-visitor there + + Refactors + - documents-visitor no longer extends types-visitor _option types_ as they have two distinct + usages now. The types now extend base-visitor types. This is now consistent with + documents-visitor extending base-visitor + - Classes now handle config parsing and types at the same level e.g. if typescript-operations + plugin parses configOne, then the types for configOne must be in that class, rather than in + base-documents-visitor + + Note: These visitors are rolled up into one type for simplicity + - base-visitor: includes `base-visitor` + - documents-visitor: includes `base-documents-visitor` and `typescript-operations` visitor + - types-visitor: includes `base-types-visitor` and `typescript` visitor + - resolvers-visitor: includes `base-resolvers-visitor` and `typescript-resolvers` visitor + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: make `unknown` instead of + `any` the default custom scalar type + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: `typescript` plugin no + longer generates `Exact` utility type. Instead, `typescript-operations` generates said utility + type for every file it creates. This is because it is used _only_ for `Variables`, so we only need + to generate it once for every generated operation file. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Remove unused utility types + from `typescript` plugin as they were previously used for `typescript-operations` plugin: + - `MakeOptional` + - `MakeMaybe` + - `MakeEmpty` + - `Incremental` + + BREAKING CHANGE: Remove `getRootTypeNames` function because it's available in + `@graphql-utils/tools` and not used anywhere + +### Minor Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - The `typescript-operations` plugin no longer + generates InputMaybe and Scalars types; it now uses native Typescript types instead. + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `^2.8.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency [`auto-bind@^5.0.0` ↗︎](https://www.npmjs.com/package/auto-bind/v/5.0.0) (from + `~4.0.0`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extract utilities from base-type-visitor to + be shared with other plugins later: convertSchemaEnumToDeclarationBlockString, getNodeComment + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix namingConvention not being applied + consistently + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Abstract how enum imports are generated into + visitor-plugin-common package + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix namingConvention not being applied + consistently in imports, Variables, Input and Result + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + - @graphql-codegen/schema-ast@6.0.0 + ## 5.0.10 ### Patch Changes diff --git a/packages/plugins/typescript/typescript/package.json b/packages/plugins/typescript/typescript/package.json index 9e224ee64ff..a04fa11ea41 100644 --- a/packages/plugins/typescript/typescript/package.json +++ b/packages/plugins/typescript/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/typescript", - "version": "5.0.10", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator plugin for generating TypeScript types", "repository": { @@ -40,9 +40,9 @@ "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/schema-ast": "^5.0.2", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/schema-ast": "^6.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "auto-bind": "^5.0.0", "tslib": "~2.6.0" }, diff --git a/packages/presets/client/CHANGELOG.md b/packages/presets/client/CHANGELOG.md index 79755222b00..2cec84c2bc1 100644 --- a/packages/presets/client/CHANGELOG.md +++ b/packages/presets/client/CHANGELOG.md @@ -1,5 +1,162 @@ # @graphql-codegen/client-preset +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix nullable field optionality in operations + + Previously, a nullable Result field is generated as optional (marked by `?` TypeScript modifier) + by default. This is not correct, because generally at runtime such field can only be `null`, and + not `undefined` (both missing from the object OR `undefined`). The only exceptions are when fields + are deferred (using `@defer` directive) or marked as conditional (using `@skip` or `@include`). + + Now, a nullable Result field cannot be optional unless the exceptions are met. This also limits + `avoidOptionals` to only target Variables input, since some users may want to force explicit + `null` when providing operation variables. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Conditionally generate input types and output + enums into target file + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: make `unknown` instead of + `any` the default custom scalar type + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: `typescript` plugin no + longer generates `Exact` utility type. Instead, `typescript-operations` generates said utility + type for every file it creates. This is because it is used _only_ for `Variables`, so we only need + to generate it once for every generated operation file. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Operation plugin and Client + Preset no longer generates optional `__typename` for result type + + `__typenam` should not be in the request unless: + - explicitly requested by the user + - automatically injected into the request by clients, such as Apollo Clients. + + Note: Apollo Client users can still use `nonOptionalTypename: true` and + `skipTypeNameForRoot: true` to ensure generated types match the runtime behaviour. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGES: The default hashing + algorithm is now sha256 instead of sha1. Generated sha256 format also follows the standard + outlined in + https://github.com/graphql/graphql-over-http/blob/52d56fb36d51c17e08a920510a23bdc2f6a720be/spec/Appendix%20A%20--%20Persisted%20Documents.md#sha256-hex-document-identifier + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Integrate new typescript-operations into + client-preset + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: config.avoidOptionals now + only supports object, inputValue, defaultValue + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Removed dependency + [`@graphql-codegen/typescript@^5.0.8` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.8) + (from `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Remove @graphql-codegen/typescript from + client-preset dep as the preset no longer uses the plugin. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - Abstract how enum imports are generated into + visitor-plugin-common package + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/gql-tag-operations@6.0.0 + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/typed-document-node@7.0.0 + - @graphql-codegen/typescript@6.0.0 + - @graphql-codegen/typescript-operations@6.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + - @graphql-codegen/add@7.0.0 + ## 5.3.0 ### Minor Changes diff --git a/packages/presets/client/package.json b/packages/presets/client/package.json index 9134d54d97f..dedf7b864fc 100644 --- a/packages/presets/client/package.json +++ b/packages/presets/client/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/client-preset", - "version": "5.3.0", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator preset for client.", "repository": { @@ -48,13 +48,13 @@ "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/template": "^7.20.7", - "@graphql-codegen/add": "^6.0.1", - "@graphql-codegen/gql-tag-operations": "5.2.0", - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/typed-document-node": "^6.1.8", - "@graphql-codegen/typescript": "^5.0.10", - "@graphql-codegen/typescript-operations": "^5.1.0", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/add": "^7.0.0", + "@graphql-codegen/gql-tag-operations": "6.0.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/typed-document-node": "^7.0.0", + "@graphql-codegen/typescript": "^6.0.0", + "@graphql-codegen/typescript-operations": "^6.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "@graphql-tools/documents": "^1.0.0", "@graphql-tools/utils": "^11.0.0", "@graphql-typed-document-node/core": "3.2.0", diff --git a/packages/presets/graphql-modules/CHANGELOG.md b/packages/presets/graphql-modules/CHANGELOG.md index 4a22985fd59..dfc7fc937dc 100644 --- a/packages/presets/graphql-modules/CHANGELOG.md +++ b/packages/presets/graphql-modules/CHANGELOG.md @@ -1,5 +1,68 @@ # @graphql-codegen/graphql-modules-preset +## 6.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency + [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from + `1.0.15`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency + [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from + `1.0.15`, in `dependencies`) +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + - @graphql-codegen/visitor-plugin-common@7.0.0 + ## 5.1.5 ### Patch Changes diff --git a/packages/presets/graphql-modules/package.json b/packages/presets/graphql-modules/package.json index b5c686bdf43..928dcea694e 100644 --- a/packages/presets/graphql-modules/package.json +++ b/packages/presets/graphql-modules/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/graphql-modules-preset", - "version": "5.1.5", + "version": "6.0.0", "type": "module", "description": "GraphQL Code Generator preset for modularized schema", "repository": { @@ -39,8 +39,8 @@ "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" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", - "@graphql-codegen/visitor-plugin-common": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", + "@graphql-codegen/visitor-plugin-common": "^7.0.0", "@graphql-tools/utils": "^11.0.0", "change-case-all": "^2.1.0", "parse-filepath": "^1.0.2", diff --git a/packages/utils/graphql-codegen-testing/CHANGELOG.md b/packages/utils/graphql-codegen-testing/CHANGELOG.md index 7ce7c566e31..3180e4a6a4f 100644 --- a/packages/utils/graphql-codegen-testing/CHANGELOG.md +++ b/packages/utils/graphql-codegen-testing/CHANGELOG.md @@ -1,5 +1,22 @@ # @graphql-codegen/testing +## 5.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- Updated dependencies + [[`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29), + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29)]: + - @graphql-codegen/plugin-helpers@7.0.0 + ## 4.0.5 ### Patch Changes diff --git a/packages/utils/graphql-codegen-testing/package.json b/packages/utils/graphql-codegen-testing/package.json index abdfce009b5..ac82feebb9b 100644 --- a/packages/utils/graphql-codegen-testing/package.json +++ b/packages/utils/graphql-codegen-testing/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/testing", - "version": "4.0.5", + "version": "5.0.0", "type": "module", "description": "GraphQL Codegen Testing Utils", "repository": "git@github.com:dotansimha/graphql-code-generator.git", @@ -41,7 +41,7 @@ "typescript": ">=3.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^6.3.0", + "@graphql-codegen/plugin-helpers": "^7.0.0", "common-tags": "^1.8.0", "graphql-helix": "1.13.0", "lz-string": "^1.4.4", diff --git a/packages/utils/plugins-helpers/CHANGELOG.md b/packages/utils/plugins-helpers/CHANGELOG.md index df4dcdee0b7..62afefc98e8 100644 --- a/packages/utils/plugins-helpers/CHANGELOG.md +++ b/packages/utils/plugins-helpers/CHANGELOG.md @@ -1,5 +1,41 @@ # @graphql-codegen/plugin-helpers +## 7.0.0 + +### Major Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Update deps to latest, some + only support ESM + + Node 20 support is dropped in this release. Node 22 comes with `require()` support for ESM, which + means it's easier to integrate ES modules into applications. Therefore, it is safe to start using + ESM-only packages. + + If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS + issues when running Jest tests, try using Vitest. + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - BREAKING CHANGE: Drop Node 20 support + +### Patch Changes + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency + [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from + `1.0.15`, in `dependencies`) + +- [#10496](https://github.com/dotansimha/graphql-code-generator/pull/10496) + [`afaace6`](https://github.com/dotansimha/graphql-code-generator/commit/afaace6bb1467793ea8fcda01a6a793e844e0c29) + Thanks [@eddeee888](https://github.com/eddeee888)! - dependencies updates: + - Updated dependency + [`change-case-all@^2.1.0` ↗︎](https://www.npmjs.com/package/change-case-all/v/2.1.0) (from + `1.0.15`, in `dependencies`) + ## 6.3.0 ### Minor Changes diff --git a/packages/utils/plugins-helpers/package.json b/packages/utils/plugins-helpers/package.json index 541cd0bba11..50650df5250 100644 --- a/packages/utils/plugins-helpers/package.json +++ b/packages/utils/plugins-helpers/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/plugin-helpers", - "version": "6.3.0", + "version": "7.0.0", "type": "module", "description": "GraphQL Code Generator common utils and types", "repository": { diff --git a/website/package.json b/website/package.json index 2544e618361..1fc920d3cd6 100644 --- a/website/package.json +++ b/website/package.json @@ -11,20 +11,20 @@ "start": "next start" }, "dependencies": { - "@graphql-codegen/add": "6.0.1", + "@graphql-codegen/add": "7.0.0", "@graphql-codegen/c-sharp": "6.0.1", "@graphql-codegen/c-sharp-operations": "4.0.1", - "@graphql-codegen/cli": "6.3.1", - "@graphql-codegen/client-preset": "5.3.0", - "@graphql-codegen/core": "5.0.2", + "@graphql-codegen/cli": "7.0.0", + "@graphql-codegen/client-preset": "6.0.0", + "@graphql-codegen/core": "6.0.0", "@graphql-codegen/flow": "3.0.1", "@graphql-codegen/flow-operations": "3.0.2", "@graphql-codegen/flow-resolvers": "3.0.2", "@graphql-codegen/flutter-freezed": "^5.0.0", - "@graphql-codegen/fragment-matcher": "6.0.1", + "@graphql-codegen/fragment-matcher": "7.0.0", "@graphql-codegen/hasura-allow-list": "4.0.1", "@graphql-codegen/import-types-preset": "4.0.1", - "@graphql-codegen/introspection": "5.0.2", + "@graphql-codegen/introspection": "6.0.0", "@graphql-codegen/java": "5.0.1", "@graphql-codegen/java-apollo-android": "4.0.1", "@graphql-codegen/java-resolvers": "4.0.1", @@ -32,10 +32,10 @@ "@graphql-codegen/kotlin": "4.0.1", "@graphql-codegen/named-operations-object": "4.0.1", "@graphql-codegen/near-operation-file-preset": "5.1.0", - "@graphql-codegen/schema-ast": "5.0.2", - "@graphql-codegen/time": "6.0.0", - "@graphql-codegen/typed-document-node": "6.1.8", - "@graphql-codegen/typescript": "5.0.10", + "@graphql-codegen/schema-ast": "6.0.0", + "@graphql-codegen/time": "7.0.0", + "@graphql-codegen/typed-document-node": "7.0.0", + "@graphql-codegen/typescript": "6.0.0", "@graphql-codegen/typescript-apollo-angular": "5.0.1", "@graphql-codegen/typescript-apollo-client-helpers": "4.0.1", "@graphql-codegen/typescript-generic-sdk": "5.0.1", @@ -44,10 +44,10 @@ "@graphql-codegen/typescript-mongodb": "4.0.2", "@graphql-codegen/typescript-msw": "4.0.1", "@graphql-codegen/typescript-nhost": "1.0.1", - "@graphql-codegen/typescript-operations": "5.1.0", + "@graphql-codegen/typescript-operations": "6.0.0", "@graphql-codegen/typescript-react-apollo": "4.4.2", "@graphql-codegen/typescript-react-query": "4.1.0", - "@graphql-codegen/typescript-resolvers": "5.1.8", + "@graphql-codegen/typescript-resolvers": "6.0.0", "@graphql-codegen/typescript-rtk-query": "4.0.1", "@graphql-codegen/typescript-stencil-apollo": "4.0.1", "@graphql-codegen/typescript-type-graphql": "3.0.1", From f725015c44cae9babc389280c62c262e53ccdc0f Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Fri, 1 May 2026 00:26:58 +1000 Subject: [PATCH 2/2] Remove alpha version notes in migration posts (#10766) * Remove alpha version notes in migration posts * Add missing release notes link --- website/src/pages/docs/migration/apollo-tooling.mdx | 5 ----- .../migration/operations-and-client-preset-from-5-0.mdx | 8 ++------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/website/src/pages/docs/migration/apollo-tooling.mdx b/website/src/pages/docs/migration/apollo-tooling.mdx index 8bf23cd91cf..cfa85304eb2 100644 --- a/website/src/pages/docs/migration/apollo-tooling.mdx +++ b/website/src/pages/docs/migration/apollo-tooling.mdx @@ -16,11 +16,6 @@ This guide explains how to replace it with [GraphQL Code Generator](https://the-guild.dev/graphql/codegen), which is actively maintained, more flexible, and supports a broader range of use cases. - - This setup is available in the next major version of `graphql-code-generator` and - `graphql-code-generator-community`. - - ## Installation Remove Apollo Tooling and install GraphQL Code Generator: diff --git a/website/src/pages/docs/migration/operations-and-client-preset-from-5-0.mdx b/website/src/pages/docs/migration/operations-and-client-preset-from-5-0.mdx index bfb081dc08c..9a596336966 100644 --- a/website/src/pages/docs/migration/operations-and-client-preset-from-5-0.mdx +++ b/website/src/pages/docs/migration/operations-and-client-preset-from-5-0.mdx @@ -16,11 +16,6 @@ import { Callout } from '@theguild/components' # Migrating to `typescript-operations` and `client-preset` v6.0 - - This major version has not been released yet. You can find upcoming changes and alpha releases in - the [feature branch](https://github.com/dotansimha/graphql-code-generator/pull/10496). - - ## What's new? `typescript-operations` and `client-preset` v6.0 come with a major overhaul of type generation and @@ -32,7 +27,8 @@ config to improve developer experience. For the most important changes, read the [Breaking changes](#breaking-changes) section. -For a full list of changes, see the CHANGELOG. +For a full list of changes, see the +[release notes](https://github.com/dotansimha/graphql-code-generator/releases/tag/release-1777556900878). ## Installation