diff --git a/.changeset/@graphql-codegen_add-10103-dependencies.md b/.changeset/@graphql-codegen_add-10103-dependencies.md deleted file mode 100644 index 03cca7ba2fc..00000000000 --- a/.changeset/@graphql-codegen_add-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/add": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_cli-10680-dependencies.md b/.changeset/@graphql-codegen_cli-10680-dependencies.md deleted file mode 100644 index e6363976b9b..00000000000 --- a/.changeset/@graphql-codegen_cli-10680-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/cli": patch ---- -dependencies updates: - - Updated dependency [`debounce@^3.0.0` ↗︎](https://www.npmjs.com/package/debounce/v/3.0.0) (from `^2.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_cli-10682-dependencies.md b/.changeset/@graphql-codegen_cli-10682-dependencies.md deleted file mode 100644 index a4f13c8273f..00000000000 --- a/.changeset/@graphql-codegen_cli-10682-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/cli": patch ---- -dependencies updates: - - Updated dependency [`listr2@^10.0.0` ↗︎](https://www.npmjs.com/package/listr2/v/10.0.0) (from `^9.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_cli-10686-dependencies.md b/.changeset/@graphql-codegen_cli-10686-dependencies.md deleted file mode 100644 index 64131977226..00000000000 --- a/.changeset/@graphql-codegen_cli-10686-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/cli": patch ---- -dependencies updates: - - Updated dependency [`ts-log@^3.0.0` ↗︎](https://www.npmjs.com/package/ts-log/v/3.0.0) (from `^2.2.3`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_cli-10692-dependencies.md b/.changeset/@graphql-codegen_cli-10692-dependencies.md deleted file mode 100644 index e2b61b95ac6..00000000000 --- a/.changeset/@graphql-codegen_cli-10692-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/cli": patch ---- -dependencies updates: - - 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_client-preset-10103-dependencies.md b/.changeset/@graphql-codegen_client-preset-10103-dependencies.md deleted file mode 100644 index 64fb7f8e012..00000000000 --- a/.changeset/@graphql-codegen_client-preset-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/client-preset": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_core-10103-dependencies.md b/.changeset/@graphql-codegen_core-10103-dependencies.md deleted file mode 100644 index 29bd1baf2c0..00000000000 --- a/.changeset/@graphql-codegen_core-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/core": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_fragment-matcher-10103-dependencies.md b/.changeset/@graphql-codegen_fragment-matcher-10103-dependencies.md deleted file mode 100644 index 30a5124d338..00000000000 --- a/.changeset/@graphql-codegen_fragment-matcher-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/fragment-matcher": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_gql-tag-operations-10103-dependencies.md b/.changeset/@graphql-codegen_gql-tag-operations-10103-dependencies.md deleted file mode 100644 index 7f7e9eb8767..00000000000 --- a/.changeset/@graphql-codegen_gql-tag-operations-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/gql-tag-operations": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_graphql-modules-preset-10103-dependencies.md b/.changeset/@graphql-codegen_graphql-modules-preset-10103-dependencies.md deleted file mode 100644 index d2ca18a66b4..00000000000 --- a/.changeset/@graphql-codegen_graphql-modules-preset-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/graphql-modules-preset": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_introspection-10103-dependencies.md b/.changeset/@graphql-codegen_introspection-10103-dependencies.md deleted file mode 100644 index b580ddae093..00000000000 --- a/.changeset/@graphql-codegen_introspection-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/introspection": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_plugin-helpers-10103-dependencies.md b/.changeset/@graphql-codegen_plugin-helpers-10103-dependencies.md deleted file mode 100644 index eba9ebb2dbe..00000000000 --- a/.changeset/@graphql-codegen_plugin-helpers-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/plugin-helpers": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_schema-ast-10103-dependencies.md b/.changeset/@graphql-codegen_schema-ast-10103-dependencies.md deleted file mode 100644 index e84c44ab48a..00000000000 --- a/.changeset/@graphql-codegen_schema-ast-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/schema-ast": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_testing-10103-dependencies.md b/.changeset/@graphql-codegen_testing-10103-dependencies.md deleted file mode 100644 index 99a11c08bf9..00000000000 --- a/.changeset/@graphql-codegen_testing-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/testing": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typed-document-node-10103-dependencies.md b/.changeset/@graphql-codegen_typed-document-node-10103-dependencies.md deleted file mode 100644 index 2bd919c504a..00000000000 --- a/.changeset/@graphql-codegen_typed-document-node-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typed-document-node": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-10103-dependencies.md b/.changeset/@graphql-codegen_typescript-10103-dependencies.md deleted file mode 100644 index feab5c4deac..00000000000 --- a/.changeset/@graphql-codegen_typescript-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-document-nodes-10103-dependencies.md b/.changeset/@graphql-codegen_typescript-document-nodes-10103-dependencies.md deleted file mode 100644 index a55a650fa84..00000000000 --- a/.changeset/@graphql-codegen_typescript-document-nodes-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-document-nodes": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-operations-10103-dependencies.md b/.changeset/@graphql-codegen_typescript-operations-10103-dependencies.md deleted file mode 100644 index f3a2a3110c4..00000000000 --- a/.changeset/@graphql-codegen_typescript-operations-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-operations": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-resolvers-10103-dependencies.md b/.changeset/@graphql-codegen_typescript-resolvers-10103-dependencies.md deleted file mode 100644 index 9700e3ca136..00000000000 --- a/.changeset/@graphql-codegen_typescript-resolvers-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-resolvers": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_visitor-plugin-common-10103-dependencies.md b/.changeset/@graphql-codegen_visitor-plugin-common-10103-dependencies.md deleted file mode 100644 index cae2ca42dcc..00000000000 --- a/.changeset/@graphql-codegen_visitor-plugin-common-10103-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/visitor-plugin-common": patch ---- -dependencies updates: - - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from `~2.6.0`, in `dependencies`) diff --git a/examples/persisted-documents-string-mode/package.json b/examples/persisted-documents-string-mode/package.json index caee6dacb90..725c19cb083 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.2.1", + "@graphql-codegen/cli": "6.2.2", "@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 b872ffb57ec..e4f151c956b 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.2.1", + "@graphql-codegen/cli": "6.2.2", "@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 0ce01058665..b898b081d26 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.1", - "@graphql-codegen/plugin-helpers": "6.2.1", - "@graphql-codegen/typed-document-node": "6.1.7", - "@graphql-codegen/typescript": "5.0.9", - "@graphql-codegen/typescript-operations": "5.0.9", - "@graphql-codegen/typescript-resolvers": "5.1.7", + "@graphql-codegen/core": "5.0.2", + "@graphql-codegen/plugin-helpers": "6.2.2", + "@graphql-codegen/typed-document-node": "6.1.8", + "@graphql-codegen/typescript": "5.0.10", + "@graphql-codegen/typescript-operations": "5.0.10", + "@graphql-codegen/typescript-resolvers": "5.1.8", "@graphql-tools/graphql-file-loader": "^8.1.12", "@graphql-tools/load": "8.1.9", "@graphql-tools/schema": "10.0.32", diff --git a/examples/react/apollo-client-defer/package.json b/examples/react/apollo-client-defer/package.json index 70cebb089b2..151caabeda8 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@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 0be25e37b9e..a9d496b3b22 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@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 e18192fd405..da8ffecea86 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@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 edba8a1bd00..7aebbd8540d 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@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 ba0a20c04f5..4432a42fa9b 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@graphql-codegen/client-preset-swc-plugin": "0.2.0", - "@graphql-codegen/schema-ast": "5.0.1", + "@graphql-codegen/schema-ast": "5.0.2", "@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 ef3f73882ec..78e7fc4bcb6 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@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 083e234caaa..95848daa5d0 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@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 f8dbd76e3f1..cb76e2174f0 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.2.1" + "@graphql-codegen/cli": "6.2.2" }, "bob": false } diff --git a/examples/typescript-graphql-request/package.json b/examples/typescript-graphql-request/package.json index e20b7f4e1bf..0c3f04dab54 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.2.1" + "@graphql-codegen/cli": "6.2.2" }, "bob": false } diff --git a/examples/typescript-resolvers/package.json b/examples/typescript-resolvers/package.json index bd8d3770d12..e1787c7cd0c 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.2.1", - "@graphql-codegen/typescript": "5.0.9", - "@graphql-codegen/typescript-resolvers": "5.1.7" + "@graphql-codegen/cli": "6.2.2", + "@graphql-codegen/typescript": "5.0.10", + "@graphql-codegen/typescript-resolvers": "5.1.8" }, "bob": false } diff --git a/examples/vite/vite-react-cts/package.json b/examples/vite/vite-react-cts/package.json index acd400d1d9f..389ff2eb8e0 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.2.1", + "@graphql-codegen/cli": "6.2.2", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "cypress": "15.13.1", diff --git a/examples/vite/vite-react-mts/package.json b/examples/vite/vite-react-mts/package.json index f44db534d72..41f7f788a4b 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.2.1", + "@graphql-codegen/cli": "6.2.2", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "cypress": "15.13.1", diff --git a/examples/vite/vite-react-ts/package.json b/examples/vite/vite-react-ts/package.json index 1e5605a7f9b..b02cb3382e6 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.2.1", + "@graphql-codegen/cli": "6.2.2", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "cypress": "15.13.1", diff --git a/examples/vue/apollo-composable/package.json b/examples/vue/apollo-composable/package.json index 2ac29329dfc..8250a156779 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@vitejs/plugin-vue": "^6.0.0", "cypress": "15.13.1", "serve": "14.2.6", diff --git a/examples/vue/urql/package.json b/examples/vue/urql/package.json index 193667b443f..7cc8b48c43f 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@vitejs/plugin-vue": "^6.0.0", "cypress": "15.13.1", "serve": "14.2.6", diff --git a/examples/vue/villus/package.json b/examples/vue/villus/package.json index aa5a35ad17f..ba8c536681c 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.2.1", + "@graphql-codegen/cli": "^6.2.2", "@vitejs/plugin-vue": "^6.0.0", "cypress": "15.13.1", "serve": "14.2.6", diff --git a/examples/yoga-tests/package.json b/examples/yoga-tests/package.json index 9ea051c1c7b..9bb04d799f6 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.2.1", + "@graphql-codegen/cli": "6.2.2", "@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 193c63c98e5..b9a0d0009a1 100644 --- a/packages/graphql-codegen-cli/CHANGELOG.md +++ b/packages/graphql-codegen-cli/CHANGELOG.md @@ -1,38 +1,106 @@ # @graphql-codegen/cli +## 6.2.2 + +### Patch Changes + +- [#10680](https://github.com/dotansimha/graphql-code-generator/pull/10680) + [`6c9ca90`](https://github.com/dotansimha/graphql-code-generator/commit/6c9ca908ede370cf686c92793109e447c481ae97) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`debounce@^3.0.0` ↗︎](https://www.npmjs.com/package/debounce/v/3.0.0) (from + `^2.0.0`, in `dependencies`) + +- [#10682](https://github.com/dotansimha/graphql-code-generator/pull/10682) + [`f49733f`](https://github.com/dotansimha/graphql-code-generator/commit/f49733f5ff77de4e8717e1e4d6eecac541d17a15) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`listr2@^10.0.0` ↗︎](https://www.npmjs.com/package/listr2/v/10.0.0) (from + `^9.0.0`, in `dependencies`) + +- [#10686](https://github.com/dotansimha/graphql-code-generator/pull/10686) + [`ccd6182`](https://github.com/dotansimha/graphql-code-generator/commit/ccd6182bcf7b0c285b8a1957f1a4085bd59da892) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`ts-log@^3.0.0` ↗︎](https://www.npmjs.com/package/ts-log/v/3.0.0) (from + `^2.2.3`, in `dependencies`) + +- [#10692](https://github.com/dotansimha/graphql-code-generator/pull/10692) + [`3720e73`](https://github.com/dotansimha/graphql-code-generator/commit/3720e734e4d173a4c3bf92f4c5950163d91b7532) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`yargs@^18.0.0` ↗︎](https://www.npmjs.com/package/yargs/v/18.0.0) (from + `^17.0.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/client-preset@5.2.5 + - @graphql-codegen/core@5.0.2 + - @graphql-codegen/plugin-helpers@6.2.2 + ## 6.2.1 ### Patch Changes -- [#10618](https://github.com/dotansimha/graphql-code-generator/pull/10618) [`e804925`](https://github.com/dotansimha/graphql-code-generator/commit/e804925361f326fe2fc7a2ee3f6db950bcd79dab) Thanks [@PalmerTurley34](https://github.com/PalmerTurley34)! - Honor per-output preset `importExtension` and `emitLegacyCommonJSImports` config instead of always using the root config values. +- [#10618](https://github.com/dotansimha/graphql-code-generator/pull/10618) + [`e804925`](https://github.com/dotansimha/graphql-code-generator/commit/e804925361f326fe2fc7a2ee3f6db950bcd79dab) + Thanks [@PalmerTurley34](https://github.com/PalmerTurley34)! - Honor per-output preset + `importExtension` and `emitLegacyCommonJSImports` config instead of always using the root config + values. ## 6.2.0 ### Minor Changes -- [#10617](https://github.com/dotansimha/graphql-code-generator/pull/10617) [`8c4db2a`](https://github.com/dotansimha/graphql-code-generator/commit/8c4db2abd0578d7b1c9b4197dfa41dae3ef6252b) Thanks [@ikusakov2](https://github.com/ikusakov2)! - Allow GraphQLSchema to be passed directly to generate({schema: ...}) function +- [#10617](https://github.com/dotansimha/graphql-code-generator/pull/10617) + [`8c4db2a`](https://github.com/dotansimha/graphql-code-generator/commit/8c4db2abd0578d7b1c9b4197dfa41dae3ef6252b) + Thanks [@ikusakov2](https://github.com/ikusakov2)! - Allow GraphQLSchema to be passed directly to + generate({schema: ...}) function ### Patch Changes -- Updated dependencies [[`8c4db2a`](https://github.com/dotansimha/graphql-code-generator/commit/8c4db2abd0578d7b1c9b4197dfa41dae3ef6252b)]: +- Updated dependencies + [[`8c4db2a`](https://github.com/dotansimha/graphql-code-generator/commit/8c4db2abd0578d7b1c9b4197dfa41dae3ef6252b)]: - @graphql-codegen/plugin-helpers@6.2.0 ## 6.1.3 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-tools/apollo-engine-loader@^8.0.28` ↗︎](https://www.npmjs.com/package/@graphql-tools/apollo-engine-loader/v/8.0.28) (from `^8.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/code-file-loader@^8.1.28` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/8.1.28) (from `^8.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/git-loader@^8.0.32` ↗︎](https://www.npmjs.com/package/@graphql-tools/git-loader/v/8.0.32) (from `^8.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/github-loader@^9.0.6` ↗︎](https://www.npmjs.com/package/@graphql-tools/github-loader/v/9.0.6) (from `^9.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/graphql-file-loader@^8.1.11` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/8.1.11) (from `^8.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/json-file-loader@^8.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/json-file-loader/v/8.0.26) (from `^8.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/load@^8.1.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/8.1.8) (from `^8.1.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/url-loader@^9.0.6` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/9.0.6) (from `^9.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) - - Updated dependency [`graphql-config@^5.1.6` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.1.6) (from `^5.1.1`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-tools/apollo-engine-loader@^8.0.28` ↗︎](https://www.npmjs.com/package/@graphql-tools/apollo-engine-loader/v/8.0.28) + (from `^8.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/code-file-loader@^8.1.28` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/8.1.28) + (from `^8.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/git-loader@^8.0.32` ↗︎](https://www.npmjs.com/package/@graphql-tools/git-loader/v/8.0.32) + (from `^8.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/github-loader@^9.0.6` ↗︎](https://www.npmjs.com/package/@graphql-tools/github-loader/v/9.0.6) + (from `^9.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/graphql-file-loader@^8.1.11` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/8.1.11) + (from `^8.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/json-file-loader@^8.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/json-file-loader/v/8.0.26) + (from `^8.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/load@^8.1.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/8.1.8) + (from `^8.1.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/url-loader@^9.0.6` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/9.0.6) + (from `^9.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) + (from `^10.0.0`, in `dependencies`) + - Updated dependency + [`graphql-config@^5.1.6` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.1.6) (from + `^5.1.1`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/client-preset@5.2.4 - @graphql-codegen/core@5.0.1 - @graphql-codegen/plugin-helpers@6.1.1 @@ -41,14 +109,20 @@ ### Patch Changes -- [#10590](https://github.com/dotansimha/graphql-code-generator/pull/10590) [`e173e11`](https://github.com/dotansimha/graphql-code-generator/commit/e173e113331cd279fb9dec51203d8c5a34915999) Thanks [@ya2s](https://github.com/ya2s)! - Fix GraphQL Config loading to forward nested `extensions.codegen.config` options - when loading schemas/documents, matching `codegen.ts` behavior. +- [#10590](https://github.com/dotansimha/graphql-code-generator/pull/10590) + [`e173e11`](https://github.com/dotansimha/graphql-code-generator/commit/e173e113331cd279fb9dec51203d8c5a34915999) + Thanks [@ya2s](https://github.com/ya2s)! - Fix GraphQL Config loading to forward nested + `extensions.codegen.config` options when loading schemas/documents, matching `codegen.ts` + behavior. ## 6.1.1 ### Patch Changes -- [#10569](https://github.com/dotansimha/graphql-code-generator/pull/10569) [`8cb7d43`](https://github.com/dotansimha/graphql-code-generator/commit/8cb7d4369d35bc6b71750d53385949ffddd072a7) Thanks [@etr2460](https://github.com/etr2460)! - fix(graphql-codegen-cli): Don't hang when 0 CPUs are found +- [#10569](https://github.com/dotansimha/graphql-code-generator/pull/10569) + [`8cb7d43`](https://github.com/dotansimha/graphql-code-generator/commit/8cb7d4369d35bc6b71750d53385949ffddd072a7) + Thanks [@etr2460](https://github.com/etr2460)! - fix(graphql-codegen-cli): Don't hang when 0 CPUs + are found Fixes generation when 0 CPUs are returned by os.cpus(), which occurs in sandbox environments. @@ -56,11 +130,14 @@ ### Minor Changes -- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option +- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) + Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option ### Patch Changes -- Updated dependencies [[`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/plugin-helpers@6.1.0 - @graphql-codegen/client-preset@5.2.0 @@ -68,9 +145,15 @@ ### Patch Changes -- [#10430](https://github.com/dotansimha/graphql-code-generator/pull/10430) [`aad7f03`](https://github.com/dotansimha/graphql-code-generator/commit/aad7f03bf812d671d3c60ff21be0b3b8da55d79f) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@graphql-tools/github-loader@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/github-loader/v/9.0.0) (from `^8.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/url-loader@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/9.0.0) (from `^8.0.0`, in `dependencies`) +- [#10430](https://github.com/dotansimha/graphql-code-generator/pull/10430) + [`aad7f03`](https://github.com/dotansimha/graphql-code-generator/commit/aad7f03bf812d671d3c60ff21be0b3b8da55d79f) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-tools/github-loader@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/github-loader/v/9.0.0) + (from `^8.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/url-loader@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/9.0.0) + (from `^8.0.0`, in `dependencies`) - Updated dependencies []: - @graphql-codegen/client-preset@5.1.2 @@ -78,11 +161,16 @@ ### Patch Changes -- [#10468](https://github.com/dotansimha/graphql-code-generator/pull/10468) [`cb1b9d9`](https://github.com/dotansimha/graphql-code-generator/commit/cb1b9d99c413a96fde6c9af0b2315b3ad721ee4e) Thanks [@eddeee888](https://github.com/eddeee888)! - In watch mode, do not write output on failure +- [#10468](https://github.com/dotansimha/graphql-code-generator/pull/10468) + [`cb1b9d9`](https://github.com/dotansimha/graphql-code-generator/commit/cb1b9d99c413a96fde6c9af0b2315b3ad721ee4e) + Thanks [@eddeee888](https://github.com/eddeee888)! - In watch mode, do not write output on failure - Previously, on partial or full failure, watch mode still write to output. However, since the output'd be an empty array, it will then call `removeStaleFiles` internally to remove all previously generated files. + Previously, on partial or full failure, watch mode still write to output. However, since the + output'd be an empty array, it will then call `removeStaleFiles` internally to remove all + previously generated files. - This patch puts a temporary fix to avoid writing output on any failure to fix the described behaviour. + This patch puts a temporary fix to avoid writing output on any failure to fix the described + behaviour. This also means the `config.allowPartialOutputs` does not work in watch mode for now. @@ -90,25 +178,48 @@ ### 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 @graphql-tools/prisma-loader - -- [#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)! - Add `allowPartialOutputs` flag to partially write successful generation to files +- [#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 @graphql-tools/prisma-loader -- [#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)! - Migrate inquirer to @inquirer/prompts +- [#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)! - Add `allowPartialOutputs` flag to partially + write successful generation to files -- [#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)! - Bump dependencies major versions: +- [#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)! - Migrate inquirer to @inquirer/prompts +- [#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)! - Bump dependencies major versions: - cosmiconfig v9 - debounce v2 - jiti v2.3 -- [#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)! - Bump listr2 to v9 +- [#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)! - Bump listr2 to v9 -- [#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), [`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), + [`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 - @graphql-codegen/client-preset@5.0.0 - @graphql-codegen/core@5.0.0 @@ -117,11 +228,20 @@ ### Patch Changes -- [#10150](https://github.com/dotansimha/graphql-code-generator/pull/10150) [`e324382`](https://github.com/dotansimha/graphql-code-generator/commit/e3243824cfe0d7ab463cf0d5a6455715510959be) Thanks [@ArminWiebigke](https://github.com/ArminWiebigke)! - Allow functions to be passed as valid values for `UrlSchemaOptions.customFetch`. This was already possible, but the type definitions did not reflect that correctly. +- [#10150](https://github.com/dotansimha/graphql-code-generator/pull/10150) + [`e324382`](https://github.com/dotansimha/graphql-code-generator/commit/e3243824cfe0d7ab463cf0d5a6455715510959be) + Thanks [@ArminWiebigke](https://github.com/ArminWiebigke)! - Allow functions to be passed as valid + values for `UrlSchemaOptions.customFetch`. This was already possible, but the type definitions did + not reflect that correctly. -- [#10358](https://github.com/dotansimha/graphql-code-generator/pull/10358) [`157c823`](https://github.com/dotansimha/graphql-code-generator/commit/157c8236320f00b06c470e2289315179119d4504) Thanks [@eddeee888](https://github.com/eddeee888)! - Remove extraneous error stacktrace if fails to load `@parcel/watcher` +- [#10358](https://github.com/dotansimha/graphql-code-generator/pull/10358) + [`157c823`](https://github.com/dotansimha/graphql-code-generator/commit/157c8236320f00b06c470e2289315179119d4504) + Thanks [@eddeee888](https://github.com/eddeee888)! - Remove extraneous error stacktrace if fails + to load `@parcel/watcher` -- Updated dependencies [[`e324382`](https://github.com/dotansimha/graphql-code-generator/commit/e3243824cfe0d7ab463cf0d5a6455715510959be), [`98392fc`](https://github.com/dotansimha/graphql-code-generator/commit/98392fc5d91035b5b5b0ffdefd78d0398762a523)]: +- Updated dependencies + [[`e324382`](https://github.com/dotansimha/graphql-code-generator/commit/e3243824cfe0d7ab463cf0d5a6455715510959be), + [`98392fc`](https://github.com/dotansimha/graphql-code-generator/commit/98392fc5d91035b5b5b0ffdefd78d0398762a523)]: - @graphql-codegen/plugin-helpers@5.1.1 - @graphql-codegen/client-preset@4.8.2 @@ -129,53 +249,82 @@ ### Patch Changes -- [#10338](https://github.com/dotansimha/graphql-code-generator/pull/10338) [`5d1c4e1`](https://github.com/dotansimha/graphql-code-generator/commit/5d1c4e127d860ff89590fd3a1d01493b3289ad00) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix ignoreNoDocuments=true swallowing all errors +- [#10338](https://github.com/dotansimha/graphql-code-generator/pull/10338) + [`5d1c4e1`](https://github.com/dotansimha/graphql-code-generator/commit/5d1c4e127d860ff89590fd3a1d01493b3289ad00) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix ignoreNoDocuments=true swallowing all + errors -- [#10333](https://github.com/dotansimha/graphql-code-generator/pull/10333) [`10ab58d`](https://github.com/dotansimha/graphql-code-generator/commit/10ab58dbc183dff460c410ffc7cc759186f91d4c) Thanks [@eddeee888](https://github.com/eddeee888)! - Improve syntax error messages whilst loading schema/document +- [#10333](https://github.com/dotansimha/graphql-code-generator/pull/10333) + [`10ab58d`](https://github.com/dotansimha/graphql-code-generator/commit/10ab58dbc183dff460c410ffc7cc759186f91d4c) + Thanks [@eddeee888](https://github.com/eddeee888)! - Improve syntax error messages whilst loading + schema/document -- Updated dependencies [[`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae)]: +- Updated dependencies + [[`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae)]: - @graphql-codegen/client-preset@4.8.1 ## 5.0.5 ### Patch Changes -- [#10282](https://github.com/dotansimha/graphql-code-generator/pull/10282) [`7d7760d`](https://github.com/dotansimha/graphql-code-generator/commit/7d7760d55c21a99417c38ce5e77a6de22b5effcc) Thanks [@oprypkhantc](https://github.com/oprypkhantc)! - Fix watcher watching project root when schema URL is used +- [#10282](https://github.com/dotansimha/graphql-code-generator/pull/10282) + [`7d7760d`](https://github.com/dotansimha/graphql-code-generator/commit/7d7760d55c21a99417c38ce5e77a6de22b5effcc) + Thanks [@oprypkhantc](https://github.com/oprypkhantc)! - Fix watcher watching project root when + schema URL is used ## 5.0.4 ### Patch Changes -- [#10248](https://github.com/dotansimha/graphql-code-generator/pull/10248) [`72eb86f`](https://github.com/dotansimha/graphql-code-generator/commit/72eb86f49bd86da6308d80f9401bcc09478ca886) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`@whatwg-node/fetch@^0.10.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.10.0) (from `^0.9.20`, in `dependencies`) +- [#10248](https://github.com/dotansimha/graphql-code-generator/pull/10248) + [`72eb86f`](https://github.com/dotansimha/graphql-code-generator/commit/72eb86f49bd86da6308d80f9401bcc09478ca886) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@whatwg-node/fetch@^0.10.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.10.0) + (from `^0.9.20`, in `dependencies`) -- [#10227](https://github.com/dotansimha/graphql-code-generator/pull/10227) [`6f1741a`](https://github.com/dotansimha/graphql-code-generator/commit/6f1741af03689f8146178637ecabec18347e9331) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix schema pointers type to allow an array of pointers +- [#10227](https://github.com/dotansimha/graphql-code-generator/pull/10227) + [`6f1741a`](https://github.com/dotansimha/graphql-code-generator/commit/6f1741af03689f8146178637ecabec18347e9331) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix schema pointers type to allow an array of + pointers -- Updated dependencies [[`8737dd8`](https://github.com/dotansimha/graphql-code-generator/commit/8737dd86b4ce3d14234a515fa494736bf7ec35dd), [`ed71811`](https://github.com/dotansimha/graphql-code-generator/commit/ed71811ace083be61c575609e361c629ed7c1740)]: +- Updated dependencies + [[`8737dd8`](https://github.com/dotansimha/graphql-code-generator/commit/8737dd86b4ce3d14234a515fa494736bf7ec35dd), + [`ed71811`](https://github.com/dotansimha/graphql-code-generator/commit/ed71811ace083be61c575609e361c629ed7c1740)]: - @graphql-codegen/client-preset@4.6.0 ## 5.0.3 ### Patch Changes -- [#10069](https://github.com/dotansimha/graphql-code-generator/pull/10069) [`8bb34e7`](https://github.com/dotansimha/graphql-code-generator/commit/8bb34e7cd23a8891313828291c9f2edd6a3b67bc) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: +- [#10069](https://github.com/dotansimha/graphql-code-generator/pull/10069) + [`8bb34e7`](https://github.com/dotansimha/graphql-code-generator/commit/8bb34e7cd23a8891313828291c9f2edd6a3b67bc) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@whatwg-node/fetch@^0.9.20` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.9.20) + (from `^0.8.0`, in `dependencies`) + - Updated dependency + [`graphql-config@^5.1.1` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.1.1) (from + `^5.0.2`, in `dependencies`) - - Updated dependency [`@whatwg-node/fetch@^0.9.20` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.9.20) (from `^0.8.0`, in `dependencies`) - - Updated dependency [`graphql-config@^5.1.1` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.1.1) (from `^5.0.2`, in `dependencies`) +- [`e0092b5`](https://github.com/dotansimha/graphql-code-generator/commit/e0092b548f51c95be19c232515cf9a72873e7b83) + Thanks [@ardatan](https://github.com/ardatan)! - Bump whatwg-node and graphql-config -- [`e0092b5`](https://github.com/dotansimha/graphql-code-generator/commit/e0092b548f51c95be19c232515cf9a72873e7b83) Thanks [@ardatan](https://github.com/ardatan)! - Bump whatwg-node and graphql-config - -- Updated dependencies [[`8471a18`](https://github.com/dotansimha/graphql-code-generator/commit/8471a180cd61dc03dedace87876c5973b09b35f8), [`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf)]: +- Updated dependencies + [[`8471a18`](https://github.com/dotansimha/graphql-code-generator/commit/8471a180cd61dc03dedace87876c5973b09b35f8), + [`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf)]: - @graphql-codegen/client-preset@4.4.0 ## 5.0.2 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/client-preset@4.2.2 - @graphql-codegen/core@4.0.2 - @graphql-codegen/plugin-helpers@5.0.3 @@ -184,19 +333,37 @@ ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - - Added dependency [`@graphql-codegen/client-preset@^4.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/client-preset/v/4.1.0) (to `dependencies`) +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Added dependency + [`@graphql-codegen/client-preset@^4.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/client-preset/v/4.1.0) + (to `dependencies`) -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - ignore events in `.git` directory +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - ignore events in `.git` directory -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - Surface error occurring during import of @parcel/watcher +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - Surface error occurring during import of + @parcel/watcher -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - Include @graphql-codegen/client-preset in @graphql-codegen/cli by default +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - Include @graphql-codegen/client-preset in + @graphql-codegen/cli by default -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - fix watcher unable to find highest common directory on Windows +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - fix watcher unable to find highest common directory + on Windows -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/client-preset@4.2.0 - @graphql-codegen/core@4.0.1 - @graphql-codegen/plugin-helpers@5.0.2 @@ -205,57 +372,110 @@ ### Major Changes -- [#9506](https://github.com/dotansimha/graphql-code-generator/pull/9506) [`dd9c7e148`](https://github.com/dotansimha/graphql-code-generator/commit/dd9c7e14872f48592e530ff0d646449a5cb722b4) Thanks [@valkum](https://github.com/valkum)! - Make @parcel/watcher optional +- [#9506](https://github.com/dotansimha/graphql-code-generator/pull/9506) + [`dd9c7e148`](https://github.com/dotansimha/graphql-code-generator/commit/dd9c7e14872f48592e530ff0d646449a5cb722b4) + Thanks [@valkum](https://github.com/valkum)! - Make @parcel/watcher optional ### Patch Changes -- [#9513](https://github.com/dotansimha/graphql-code-generator/pull/9513) [`fdd19d24d`](https://github.com/dotansimha/graphql-code-generator/commit/fdd19d24df21d3257f3e969b79856d18b6f73123) Thanks [@cichelero](https://github.com/cichelero)! - Update yaml dependency to 2.3.1 +- [#9513](https://github.com/dotansimha/graphql-code-generator/pull/9513) + [`fdd19d24d`](https://github.com/dotansimha/graphql-code-generator/commit/fdd19d24df21d3257f3e969b79856d18b6f73123) + Thanks [@cichelero](https://github.com/cichelero)! - Update yaml dependency to 2.3.1 -- Updated dependencies [[`bb1e0e96e`](https://github.com/dotansimha/graphql-code-generator/commit/bb1e0e96ed9d519684630cd7ea53869b48b4632e)]: +- Updated dependencies + [[`bb1e0e96e`](https://github.com/dotansimha/graphql-code-generator/commit/bb1e0e96ed9d519684630cd7ea53869b48b4632e)]: - @graphql-codegen/plugin-helpers@5.0.1 ## 4.0.1 ### Patch Changes -- [#9479](https://github.com/dotansimha/graphql-code-generator/pull/9479) [`0aa444b5d`](https://github.com/dotansimha/graphql-code-generator/commit/0aa444b5d092565c321643a55fb05c7301e303bf) Thanks [@gilgardosh](https://github.com/gilgardosh)! - dependencies updates: +- [#9479](https://github.com/dotansimha/graphql-code-generator/pull/9479) + [`0aa444b5d`](https://github.com/dotansimha/graphql-code-generator/commit/0aa444b5d092565c321643a55fb05c7301e303bf) + Thanks [@gilgardosh](https://github.com/gilgardosh)! - dependencies updates: + - Updated dependency + [`graphql-config@^5.0.2` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.2) (from + `^5.0.1`, in `dependencies`) - - Updated dependency [`graphql-config@^5.0.2` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.2) (from `^5.0.1`, in `dependencies`) - -- [#9479](https://github.com/dotansimha/graphql-code-generator/pull/9479) [`0aa444b5d`](https://github.com/dotansimha/graphql-code-generator/commit/0aa444b5d092565c321643a55fb05c7301e303bf) Thanks [@gilgardosh](https://github.com/gilgardosh)! - Update graphql-config to v^5.0.2 +- [#9479](https://github.com/dotansimha/graphql-code-generator/pull/9479) + [`0aa444b5d`](https://github.com/dotansimha/graphql-code-generator/commit/0aa444b5d092565c321643a55fb05c7301e303bf) + Thanks [@gilgardosh](https://github.com/gilgardosh)! - Update graphql-config to v^5.0.2 ## 4.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 - -### Patch Changes - -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - - Updated dependency [`graphql-config@^5.0.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.0) (from `^4.5.0`, in `dependencies`) - -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - - Updated dependency [`@graphql-tools/apollo-engine-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/apollo-engine-loader/v/8.0.0) (from `^7.3.6`, in `dependencies`) - - Updated dependency [`@graphql-tools/code-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/8.0.0) (from `^7.3.17`, in `dependencies`) - - Updated dependency [`@graphql-tools/git-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/git-loader/v/8.0.0) (from `^7.2.13`, in `dependencies`) - - Updated dependency [`@graphql-tools/github-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/github-loader/v/8.0.0) (from `^7.3.28`, in `dependencies`) - - Updated dependency [`@graphql-tools/graphql-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/8.0.0) (from `^7.5.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/json-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/json-file-loader/v/8.0.0) (from `^7.4.1`, in `dependencies`) - - Updated dependency [`@graphql-tools/load@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/8.0.0) (from `^7.8.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/prisma-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/prisma-loader/v/8.0.0) (from `^7.2.69`, in `dependencies`) - - Updated dependency [`@graphql-tools/url-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/8.0.0) (from `^7.17.17`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) (from `^9.0.0`, in `dependencies`) - - Updated dependency [`cosmiconfig@^8.1.3` ↗︎](https://www.npmjs.com/package/cosmiconfig/v/8.1.3) (from `^7.0.0`, in `dependencies`) - - Updated dependency [`graphql-config@^5.0.1` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.1) (from `^4.5.0`, in `dependencies`) - -- [#9371](https://github.com/dotansimha/graphql-code-generator/pull/9371) [`d431f426e`](https://github.com/dotansimha/graphql-code-generator/commit/d431f426eb594b820ac712b9f5c616f4badf6bff) Thanks [@Axxxx0n](https://github.com/Axxxx0n)! - Fixed option ignoreNoDocuments when using graphql configs - -- [#9275](https://github.com/dotansimha/graphql-code-generator/pull/9275) [`2a5da5894`](https://github.com/dotansimha/graphql-code-generator/commit/2a5da589468eb5970587187adae9892ff1f13134) Thanks [@milesrichardson](https://github.com/milesrichardson)! - Trigger rebuilds in watch mode while respecting rules of precedence and negation, both in terms of global (top-level) config vs. local (per-output target) config, and in terms of watch patterns (higher priority) vs. documents/schemas (lower priority). This fixes an issue with overly-aggressive rebuilds during watch mode. - -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`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)]: +- [`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 + +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`graphql-config@^5.0.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.0) (from + `^4.5.0`, in `dependencies`) + +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-tools/apollo-engine-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/apollo-engine-loader/v/8.0.0) + (from `^7.3.6`, in `dependencies`) + - Updated dependency + [`@graphql-tools/code-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/8.0.0) + (from `^7.3.17`, in `dependencies`) + - Updated dependency + [`@graphql-tools/git-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/git-loader/v/8.0.0) + (from `^7.2.13`, in `dependencies`) + - Updated dependency + [`@graphql-tools/github-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/github-loader/v/8.0.0) + (from `^7.3.28`, in `dependencies`) + - Updated dependency + [`@graphql-tools/graphql-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/8.0.0) + (from `^7.5.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/json-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/json-file-loader/v/8.0.0) + (from `^7.4.1`, in `dependencies`) + - Updated dependency + [`@graphql-tools/load@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/8.0.0) + (from `^7.8.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/prisma-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/prisma-loader/v/8.0.0) + (from `^7.2.69`, in `dependencies`) + - Updated dependency + [`@graphql-tools/url-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/8.0.0) + (from `^7.17.17`, in `dependencies`) + - Updated dependency + [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) + (from `^9.0.0`, in `dependencies`) + - Updated dependency [`cosmiconfig@^8.1.3` ↗︎](https://www.npmjs.com/package/cosmiconfig/v/8.1.3) + (from `^7.0.0`, in `dependencies`) + - Updated dependency + [`graphql-config@^5.0.1` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.1) (from + `^4.5.0`, in `dependencies`) + +- [#9371](https://github.com/dotansimha/graphql-code-generator/pull/9371) + [`d431f426e`](https://github.com/dotansimha/graphql-code-generator/commit/d431f426eb594b820ac712b9f5c616f4badf6bff) + Thanks [@Axxxx0n](https://github.com/Axxxx0n)! - Fixed option ignoreNoDocuments when using graphql + configs + +- [#9275](https://github.com/dotansimha/graphql-code-generator/pull/9275) + [`2a5da5894`](https://github.com/dotansimha/graphql-code-generator/commit/2a5da589468eb5970587187adae9892ff1f13134) + Thanks [@milesrichardson](https://github.com/milesrichardson)! - Trigger rebuilds in watch mode + while respecting rules of precedence and negation, both in terms of global (top-level) config vs. + local (per-output target) config, and in terms of watch patterns (higher priority) vs. + documents/schemas (lower priority). This fixes an issue with overly-aggressive rebuilds during + watch mode. + +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`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/core@4.0.0 - @graphql-codegen/plugin-helpers@5.0.0 @@ -263,21 +483,37 @@ ### Patch Changes -- [#9267](https://github.com/dotansimha/graphql-code-generator/pull/9267) [`183749346`](https://github.com/dotansimha/graphql-code-generator/commit/1837493464e0b661520deb38c1e5cbd5ed46f978) Thanks [@milesrichardson](https://github.com/milesrichardson)! - Fix watch mode to listen to longest common directory prefix of relevant files, rather than only files below the current working directory (fixes #9266). +- [#9267](https://github.com/dotansimha/graphql-code-generator/pull/9267) + [`183749346`](https://github.com/dotansimha/graphql-code-generator/commit/1837493464e0b661520deb38c1e5cbd5ed46f978) + Thanks [@milesrichardson](https://github.com/milesrichardson)! - Fix watch mode to listen to + longest common directory prefix of relevant files, rather than only files below the current + working directory (fixes #9266). -- [#9280](https://github.com/dotansimha/graphql-code-generator/pull/9280) [`ca1d72c40`](https://github.com/dotansimha/graphql-code-generator/commit/ca1d72c408a5f45ecdb17d556e1a3f7d6811cdf4) Thanks [@saihaj](https://github.com/saihaj)! - fix the default output directory for init command +- [#9280](https://github.com/dotansimha/graphql-code-generator/pull/9280) + [`ca1d72c40`](https://github.com/dotansimha/graphql-code-generator/commit/ca1d72c408a5f45ecdb17d556e1a3f7d6811cdf4) + Thanks [@saihaj](https://github.com/saihaj)! - fix the default output directory for init command ## 3.3.0 ### Minor Changes -- [#9151](https://github.com/dotansimha/graphql-code-generator/pull/9151) [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29) Thanks [@'./user/schema.mappers#UserMapper',](https://github.com/'./user/schema.mappers#UserMapper',)! - Add `watchPattern` config option for `generates` sections. +- [#9151](https://github.com/dotansimha/graphql-code-generator/pull/9151) + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29) + Thanks + [@'./user/schema.mappers#UserMapper',](https://github.com/'./user/schema.mappers#UserMapper',)! - + Add `watchPattern` config option for `generates` sections. - By default, `watch` mode automatically watches all GraphQL schema and document files. This means when a change is detected, Codegen CLI is run. + By default, `watch` mode automatically watches all GraphQL schema and document files. This means + when a change is detected, Codegen CLI is run. - A user may want to run Codegen CLI when non-schema and non-document files are changed. Each `generates` section now has a `watchPattern` option to allow more file patterns to be added to the list of patterns to watch. + A user may want to run Codegen CLI when non-schema and non-document files are changed. Each + `generates` section now has a `watchPattern` option to allow more file patterns to be added to the + list of patterns to watch. - In the example below, mappers are exported from `schema.mappers.ts` files. We want to re-run Codegen if the content of `*.mappers.ts` files change because they change the generated types file. To solve this, we can add mapper file patterns to watch using the glob pattern used for schema and document files. + In the example below, mappers are exported from `schema.mappers.ts` files. We want to re-run + Codegen if the content of `*.mappers.ts` files change because they change the generated types + file. To solve this, we can add mapper file patterns to watch using the glob pattern used for + schema and document files. ```ts // codegen.ts @@ -310,53 +546,84 @@ ### Patch Changes -- Updated dependencies [[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]: +- Updated dependencies + [[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]: - @graphql-codegen/plugin-helpers@4.2.0 ## 3.2.2 ### Patch Changes -- [#9086](https://github.com/dotansimha/graphql-code-generator/pull/9086) [`a34cef35b`](https://github.com/dotansimha/graphql-code-generator/commit/a34cef35b4cbbe83c54bd92f88882b325df173fd) Thanks [@beerose](https://github.com/beerose)! - dependencies updates: +- [#9086](https://github.com/dotansimha/graphql-code-generator/pull/9086) + [`a34cef35b`](https://github.com/dotansimha/graphql-code-generator/commit/a34cef35b4cbbe83c54bd92f88882b325df173fd) + Thanks [@beerose](https://github.com/beerose)! - dependencies updates: + - Updated dependency + [`graphql-config@^4.5.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.5.0) (from + `^4.4.0`, in `dependencies`) + - Added dependency [`jiti@^1.17.1` ↗︎](https://www.npmjs.com/package/jiti/v/1.17.1) (to + `dependencies`) + - Removed dependency + [`cosmiconfig-typescript-loader@^4.3.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.3.0) + (from `dependencies`) + - Removed dependency [`ts-node@^10.9.1` ↗︎](https://www.npmjs.com/package/ts-node/v/10.9.1) (from + `dependencies`) - - Updated dependency [`graphql-config@^4.5.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.5.0) (from `^4.4.0`, in `dependencies`) - - Added dependency [`jiti@^1.17.1` ↗︎](https://www.npmjs.com/package/jiti/v/1.17.1) (to `dependencies`) - - Removed dependency [`cosmiconfig-typescript-loader@^4.3.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.3.0) (from `dependencies`) - - Removed dependency [`ts-node@^10.9.1` ↗︎](https://www.npmjs.com/package/ts-node/v/10.9.1) (from `dependencies`) - -- [#9086](https://github.com/dotansimha/graphql-code-generator/pull/9086) [`a34cef35b`](https://github.com/dotansimha/graphql-code-generator/commit/a34cef35b4cbbe83c54bd92f88882b325df173fd) Thanks [@beerose](https://github.com/beerose)! - Support `codegen.ts` in ESM projects +- [#9086](https://github.com/dotansimha/graphql-code-generator/pull/9086) + [`a34cef35b`](https://github.com/dotansimha/graphql-code-generator/commit/a34cef35b4cbbe83c54bd92f88882b325df173fd) + Thanks [@beerose](https://github.com/beerose)! - Support `codegen.ts` in ESM projects ## 3.2.1 ### Patch Changes -- [#9051](https://github.com/dotansimha/graphql-code-generator/pull/9051) [`f7313f7ca`](https://github.com/dotansimha/graphql-code-generator/commit/f7313f7cabd81ee708e3345b2934aeeb978f65a3) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - - Added dependency [`micromatch@^4.0.5` ↗︎](https://www.npmjs.com/package/micromatch/v/4.0.5) (to `dependencies`) +- [#9051](https://github.com/dotansimha/graphql-code-generator/pull/9051) + [`f7313f7ca`](https://github.com/dotansimha/graphql-code-generator/commit/f7313f7cabd81ee708e3345b2934aeeb978f65a3) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Added dependency [`micromatch@^4.0.5` ↗︎](https://www.npmjs.com/package/micromatch/v/4.0.5) (to + `dependencies`) -- [#9051](https://github.com/dotansimha/graphql-code-generator/pull/9051) [`f7313f7ca`](https://github.com/dotansimha/graphql-code-generator/commit/f7313f7cabd81ee708e3345b2934aeeb978f65a3) Thanks [@saihaj](https://github.com/saihaj)! - only run generate for files that users have listed in config to avoid running this over every change that codegen is not supposed to execute +- [#9051](https://github.com/dotansimha/graphql-code-generator/pull/9051) + [`f7313f7ca`](https://github.com/dotansimha/graphql-code-generator/commit/f7313f7cabd81ee708e3345b2934aeeb978f65a3) + Thanks [@saihaj](https://github.com/saihaj)! - only run generate for files that users have listed + in config to avoid running this over every change that codegen is not supposed to execute ## 3.2.0 ### Minor Changes -- [#9009](https://github.com/dotansimha/graphql-code-generator/pull/9009) [`288ed0977`](https://github.com/dotansimha/graphql-code-generator/commit/288ed097745f9c06dd74a9398a050866caa3942a) Thanks [@saihaj](https://github.com/saihaj)! - use @parcel/watcher for improved watch functionality +- [#9009](https://github.com/dotansimha/graphql-code-generator/pull/9009) + [`288ed0977`](https://github.com/dotansimha/graphql-code-generator/commit/288ed097745f9c06dd74a9398a050866caa3942a) + Thanks [@saihaj](https://github.com/saihaj)! - use @parcel/watcher for improved watch + functionality ### Patch Changes -- [#9009](https://github.com/dotansimha/graphql-code-generator/pull/9009) [`288ed0977`](https://github.com/dotansimha/graphql-code-generator/commit/288ed097745f9c06dd74a9398a050866caa3942a) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Added dependency [`@parcel/watcher@^2.1.0` ↗︎](https://www.npmjs.com/package/@parcel/watcher/v/2.1.0) (to `dependencies`) - - Removed dependency [`chokidar@^3.5.2` ↗︎](https://www.npmjs.com/package/chokidar/v/3.5.2) (from `dependencies`) +- [#9009](https://github.com/dotansimha/graphql-code-generator/pull/9009) + [`288ed0977`](https://github.com/dotansimha/graphql-code-generator/commit/288ed097745f9c06dd74a9398a050866caa3942a) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Added dependency + [`@parcel/watcher@^2.1.0` ↗︎](https://www.npmjs.com/package/@parcel/watcher/v/2.1.0) (to + `dependencies`) + - Removed dependency [`chokidar@^3.5.2` ↗︎](https://www.npmjs.com/package/chokidar/v/3.5.2) (from + `dependencies`) ## 3.1.0 ### Minor Changes -- [#8893](https://github.com/dotansimha/graphql-code-generator/pull/8893) [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c) Thanks [@n1ru4l](https://github.com/n1ru4l)! - It is no longer mandatory to declare an empty plugins array when using a preset +- [#8893](https://github.com/dotansimha/graphql-code-generator/pull/8893) + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - It is no longer mandatory to declare an empty + plugins array when using a preset -- [#8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) Thanks [@kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. +- [#8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) + Thanks [@kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. - DocumentTransform is a functionality that allows you to modify `documents` before they are processed by plugins. You can use functions passed to the `documentTransforms` option to make changes to GraphQL documents. + DocumentTransform is a functionality that allows you to modify `documents` before they are + processed by plugins. You can use functions passed to the `documentTransforms` option to make + changes to GraphQL documents. To use this feature, you can write `documentTransforms` as follows: @@ -383,7 +650,8 @@ export default config ``` - For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the + following code: ```js import type { CodegenConfig } from '@graphql-codegen/cli' @@ -417,7 +685,8 @@ export default config ``` - DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to `documentTransforms`. + DocumentTransform can also be specified by file name. You can create a custom file for a specific + transformation and pass it to `documentTransforms`. Let's create the document transform as a file: @@ -450,9 +719,17 @@ ### Patch Changes -- [#9000](https://github.com/dotansimha/graphql-code-generator/pull/9000) [`4c422ccf6`](https://github.com/dotansimha/graphql-code-generator/commit/4c422ccf6384cfb0d0949ebe5567923973b1a044) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@whatwg-node/fetch@^0.8.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.8.0) (from `^0.6.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#9000](https://github.com/dotansimha/graphql-code-generator/pull/9000) + [`4c422ccf6`](https://github.com/dotansimha/graphql-code-generator/commit/4c422ccf6384cfb0d0949ebe5567923973b1a044) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@whatwg-node/fetch@^0.8.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.8.0) (from + `^0.6.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/core@3.1.0 - @graphql-codegen/plugin-helpers@4.1.0 @@ -460,13 +737,19 @@ ### 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 -- [#8883](https://github.com/dotansimha/graphql-code-generator/pull/8883) [`321d5112e`](https://github.com/dotansimha/graphql-code-generator/commit/321d5112e802fd1d96daf556095b102a81763804) Thanks [@Solo-steven](https://github.com/Solo-steven)! - Fix PluckConfig overwrite problem. +- [#8883](https://github.com/dotansimha/graphql-code-generator/pull/8883) + [`321d5112e`](https://github.com/dotansimha/graphql-code-generator/commit/321d5112e802fd1d96daf556095b102a81763804) + Thanks [@Solo-steven](https://github.com/Solo-steven)! - Fix PluckConfig overwrite problem. -- 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/core@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 @@ -474,62 +757,101 @@ ### Patch Changes -- [#8865](https://github.com/dotansimha/graphql-code-generator/pull/8865) [`e4d073b16`](https://github.com/dotansimha/graphql-code-generator/commit/e4d073b16f904e0879a3d15774ddc9826b0ab5e5) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - - Updated dependency [`@graphql-codegen/core@^2.6.8` ↗︎](https://www.npmjs.com/package/@graphql-codegen/core/v/2.6.8) (from `2.6.8`, in `dependencies`) - - Updated dependency [`@graphql-tools/load@^7.8.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/7.8.0) (from `7.8.0`, in `dependencies`) - - Updated dependency [`cosmiconfig-typescript-loader@^4.3.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.3.0) (from `4.3.0`, in `dependencies`) - - Updated dependency [`graphql-config@^4.4.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.4.0) (from `4.4.0`, in `dependencies`) - - Added dependency [`ts-node@^10.9.1` ↗︎](https://www.npmjs.com/package/ts-node/v/10.9.1) (to `dependencies`) - - Removed dependency [`ts-node@>=10` ↗︎](https://www.npmjs.com/package/ts-node/v/10.0.0) (from `peerDependencies`) - -- [#8808](https://github.com/dotansimha/graphql-code-generator/pull/8808) [`884d25c4e`](https://github.com/dotansimha/graphql-code-generator/commit/884d25c4edb099a46bffb23ffd935abec7d14f80) Thanks [@rwu823](https://github.com/rwu823)! - fix: `gqlMagicComment` type - -- [#8865](https://github.com/dotansimha/graphql-code-generator/pull/8865) [`e4d073b16`](https://github.com/dotansimha/graphql-code-generator/commit/e4d073b16f904e0879a3d15774ddc9826b0ab5e5) Thanks [@n1ru4l](https://github.com/n1ru4l)! - move ts-node from peer dependencies to dependencies +- [#8865](https://github.com/dotansimha/graphql-code-generator/pull/8865) + [`e4d073b16`](https://github.com/dotansimha/graphql-code-generator/commit/e4d073b16f904e0879a3d15774ddc9826b0ab5e5) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/core@^2.6.8` ↗︎](https://www.npmjs.com/package/@graphql-codegen/core/v/2.6.8) + (from `2.6.8`, in `dependencies`) + - Updated dependency + [`@graphql-tools/load@^7.8.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/7.8.0) + (from `7.8.0`, in `dependencies`) + - Updated dependency + [`cosmiconfig-typescript-loader@^4.3.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.3.0) + (from `4.3.0`, in `dependencies`) + - Updated dependency + [`graphql-config@^4.4.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.4.0) (from `4.4.0`, + in `dependencies`) + - Added dependency [`ts-node@^10.9.1` ↗︎](https://www.npmjs.com/package/ts-node/v/10.9.1) (to + `dependencies`) + - Removed dependency [`ts-node@>=10` ↗︎](https://www.npmjs.com/package/ts-node/v/10.0.0) (from + `peerDependencies`) + +- [#8808](https://github.com/dotansimha/graphql-code-generator/pull/8808) + [`884d25c4e`](https://github.com/dotansimha/graphql-code-generator/commit/884d25c4edb099a46bffb23ffd935abec7d14f80) + Thanks [@rwu823](https://github.com/rwu823)! - fix: `gqlMagicComment` type + +- [#8865](https://github.com/dotansimha/graphql-code-generator/pull/8865) + [`e4d073b16`](https://github.com/dotansimha/graphql-code-generator/commit/e4d073b16f904e0879a3d15774ddc9826b0ab5e5) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - move ts-node from peer dependencies to dependencies ## 2.16.4 ### Patch Changes -- [#8770](https://github.com/dotansimha/graphql-code-generator/pull/8770) [`4774247e9`](https://github.com/dotansimha/graphql-code-generator/commit/4774247e9d29838075660d0e08c6b3c6ea57689f) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`graphql-config@4.4.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.4.0) (from `4.3.6`, in `dependencies`) +- [#8770](https://github.com/dotansimha/graphql-code-generator/pull/8770) + [`4774247e9`](https://github.com/dotansimha/graphql-code-generator/commit/4774247e9d29838075660d0e08c6b3c6ea57689f) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`graphql-config@4.4.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.4.0) (from `4.3.6`, + in `dependencies`) -- [#8790](https://github.com/dotansimha/graphql-code-generator/pull/8790) [`fe12b4826`](https://github.com/dotansimha/graphql-code-generator/commit/fe12b4826d666ef69c38cd72bdd44f1bb262caf6) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@whatwg-node/fetch@^0.6.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.6.0) (from `^0.5.0`, in `dependencies`) +- [#8790](https://github.com/dotansimha/graphql-code-generator/pull/8790) + [`fe12b4826`](https://github.com/dotansimha/graphql-code-generator/commit/fe12b4826d666ef69c38cd72bdd44f1bb262caf6) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@whatwg-node/fetch@^0.6.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.6.0) (from + `^0.5.0`, in `dependencies`) ## 2.16.3 ### Patch Changes -- [#8779](https://github.com/dotansimha/graphql-code-generator/pull/8779) [`ad5d83313`](https://github.com/dotansimha/graphql-code-generator/commit/ad5d83313fe146f0593df7ae2efa3c35459e577a) Thanks [@louisscruz](https://github.com/louisscruz)! - add ts-node as a peerDependency +- [#8779](https://github.com/dotansimha/graphql-code-generator/pull/8779) + [`ad5d83313`](https://github.com/dotansimha/graphql-code-generator/commit/ad5d83313fe146f0593df7ae2efa3c35459e577a) + Thanks [@louisscruz](https://github.com/louisscruz)! - add ts-node as a peerDependency ## 2.16.2 ### Patch Changes -- [#8715](https://github.com/dotansimha/graphql-code-generator/pull/8715) [`b1512a59a`](https://github.com/dotansimha/graphql-code-generator/commit/b1512a59a0195c1f67a7e87d6a450e98d115df39) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`cosmiconfig-typescript-loader@4.2.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.2.0) (from `4.1.1`, in `dependencies`) - -- [#8729](https://github.com/dotansimha/graphql-code-generator/pull/8729) [`e6ff224fb`](https://github.com/dotansimha/graphql-code-generator/commit/e6ff224fb70cab38e30a963eb9135b2f6257e46c) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`cosmiconfig-typescript-loader@4.3.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.3.0) (from `4.2.0`, in `dependencies`) +- [#8715](https://github.com/dotansimha/graphql-code-generator/pull/8715) + [`b1512a59a`](https://github.com/dotansimha/graphql-code-generator/commit/b1512a59a0195c1f67a7e87d6a450e98d115df39) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`cosmiconfig-typescript-loader@4.2.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.2.0) + (from `4.1.1`, in `dependencies`) -- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: +- [#8729](https://github.com/dotansimha/graphql-code-generator/pull/8729) + [`e6ff224fb`](https://github.com/dotansimha/graphql-code-generator/commit/e6ff224fb70cab38e30a963eb9135b2f6257e46c) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`cosmiconfig-typescript-loader@4.3.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.3.0) + (from `4.2.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.9.0`, in `dependencies`) +- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.9.0`, in `dependencies`) -- [#8765](https://github.com/dotansimha/graphql-code-generator/pull/8765) [`a9c5414d2`](https://github.com/dotansimha/graphql-code-generator/commit/a9c5414d2ca4d0138eed3d14b0c22046128607dc) Thanks [@aniketdd](https://github.com/aniketdd)! - update @graphql-tools/prisma-loader +- [#8765](https://github.com/dotansimha/graphql-code-generator/pull/8765) + [`a9c5414d2`](https://github.com/dotansimha/graphql-code-generator/commit/a9c5414d2ca4d0138eed3d14b0c22046128607dc) + Thanks [@aniketdd](https://github.com/aniketdd)! - update @graphql-tools/prisma-loader -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 ## 2.16.1 ### Patch Changes -- Updated dependencies [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/core@2.6.8 @@ -537,30 +859,46 @@ ### Minor Changes -- [#8662](https://github.com/dotansimha/graphql-code-generator/pull/8662) [`c0183810f`](https://github.com/dotansimha/graphql-code-generator/commit/c0183810f0178aec6f49ab8a6f35f7adc4d9f13e) Thanks [@jantimon](https://github.com/jantimon)! - the life cycle hook beforeOneFileWrite is now able to modify the generated content +- [#8662](https://github.com/dotansimha/graphql-code-generator/pull/8662) + [`c0183810f`](https://github.com/dotansimha/graphql-code-generator/commit/c0183810f0178aec6f49ab8a6f35f7adc4d9f13e) + Thanks [@jantimon](https://github.com/jantimon)! - the life cycle hook beforeOneFileWrite is now + able to modify the generated content ### Patch Changes -- Updated dependencies [[`c0183810f`](https://github.com/dotansimha/graphql-code-generator/commit/c0183810f0178aec6f49ab8a6f35f7adc4d9f13e)]: +- Updated dependencies + [[`c0183810f`](https://github.com/dotansimha/graphql-code-generator/commit/c0183810f0178aec6f49ab8a6f35f7adc4d9f13e)]: - @graphql-codegen/plugin-helpers@3.1.0 ## 2.15.1 ### Patch Changes -- [#8673](https://github.com/dotansimha/graphql-code-generator/pull/8673) [`a07b6d6c1`](https://github.com/dotansimha/graphql-code-generator/commit/a07b6d6c1b05b2f77efb398b05d29130bae429e9) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: +- [#8673](https://github.com/dotansimha/graphql-code-generator/pull/8673) + [`a07b6d6c1`](https://github.com/dotansimha/graphql-code-generator/commit/a07b6d6c1b05b2f77efb398b05d29130bae429e9) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Removed dependency [`ansi-escapes@^4.3.1` ↗︎](https://www.npmjs.com/package/ansi-escapes/v/4.3.1) + (from `dependencies`) - - Removed dependency [`ansi-escapes@^4.3.1` ↗︎](https://www.npmjs.com/package/ansi-escapes/v/4.3.1) (from `dependencies`) +- [#8706](https://github.com/dotansimha/graphql-code-generator/pull/8706) + [`8ff9b41bd`](https://github.com/dotansimha/graphql-code-generator/commit/8ff9b41bd9323b6f3dde2014fecc4fd39c6a26fc) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@whatwg-node/fetch@^0.5.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.5.0) (from + `^0.3.0`, in `dependencies`) -- [#8706](https://github.com/dotansimha/graphql-code-generator/pull/8706) [`8ff9b41bd`](https://github.com/dotansimha/graphql-code-generator/commit/8ff9b41bd9323b6f3dde2014fecc4fd39c6a26fc) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: +- [#8661](https://github.com/dotansimha/graphql-code-generator/pull/8661) + [`f79a00e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f79a00e8ae073eab426ca08795c924e716123482) + Thanks [@jantimon](https://github.com/jantimon)! - refactor hook execution - - Updated dependency [`@whatwg-node/fetch@^0.5.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.5.0) (from `^0.3.0`, in `dependencies`) +- [#8652](https://github.com/dotansimha/graphql-code-generator/pull/8652) + [`c802a0c0b`](https://github.com/dotansimha/graphql-code-generator/commit/c802a0c0b775cfabc5ace3e7fb6655540c6c4d84) + Thanks [@jantimon](https://github.com/jantimon)! - improve typings for life cycle hooks -- [#8661](https://github.com/dotansimha/graphql-code-generator/pull/8661) [`f79a00e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f79a00e8ae073eab426ca08795c924e716123482) Thanks [@jantimon](https://github.com/jantimon)! - refactor hook execution - -- [#8652](https://github.com/dotansimha/graphql-code-generator/pull/8652) [`c802a0c0b`](https://github.com/dotansimha/graphql-code-generator/commit/c802a0c0b775cfabc5ace3e7fb6655540c6c4d84) Thanks [@jantimon](https://github.com/jantimon)! - improve typings for life cycle hooks - -- 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 - @graphql-codegen/core@2.6.7 @@ -568,59 +906,89 @@ ### Minor Changes -- [#8590](https://github.com/dotansimha/graphql-code-generator/pull/8590) [`2c7fa51c6`](https://github.com/dotansimha/graphql-code-generator/commit/2c7fa51c628a0337f2abfe1b91fe00c6d5fbe749) Thanks [@Diizzayy](https://github.com/Diizzayy)! - register TypeScriptLoader when needed +- [#8590](https://github.com/dotansimha/graphql-code-generator/pull/8590) + [`2c7fa51c6`](https://github.com/dotansimha/graphql-code-generator/commit/2c7fa51c628a0337f2abfe1b91fe00c6d5fbe749) + Thanks [@Diizzayy](https://github.com/Diizzayy)! - register TypeScriptLoader when needed ## 2.14.1 ### Patch Changes -- [#8642](https://github.com/dotansimha/graphql-code-generator/pull/8642) [`5afa923e8`](https://github.com/dotansimha/graphql-code-generator/commit/5afa923e8e4e8db9bbd602e8abf6a193761a282d) Thanks [@jantimon](https://github.com/jantimon)! - faster type generation +- [#8642](https://github.com/dotansimha/graphql-code-generator/pull/8642) + [`5afa923e8`](https://github.com/dotansimha/graphql-code-generator/commit/5afa923e8e4e8db9bbd602e8abf6a193761a282d) + Thanks [@jantimon](https://github.com/jantimon)! - faster type generation -- [#8653](https://github.com/dotansimha/graphql-code-generator/pull/8653) [`d0bc51283`](https://github.com/dotansimha/graphql-code-generator/commit/d0bc51283bb7e496f8933511a8ff5ac2ba547bc8) Thanks [@saihaj](https://github.com/saihaj)! - fix bad concurrency config +- [#8653](https://github.com/dotansimha/graphql-code-generator/pull/8653) + [`d0bc51283`](https://github.com/dotansimha/graphql-code-generator/commit/d0bc51283bb7e496f8933511a8ff5ac2ba547bc8) + Thanks [@saihaj](https://github.com/saihaj)! - fix bad concurrency config ## 2.14.0 ### Minor Changes -- [#8647](https://github.com/dotansimha/graphql-code-generator/pull/8647) [`40a6761a6`](https://github.com/dotansimha/graphql-code-generator/commit/40a6761a602fca592c6f4f0653c819e8debe007b) Thanks [@charlypoly](https://github.com/charlypoly)! - Enable support for loading TS files with import assertions +- [#8647](https://github.com/dotansimha/graphql-code-generator/pull/8647) + [`40a6761a6`](https://github.com/dotansimha/graphql-code-generator/commit/40a6761a602fca592c6f4f0653c819e8debe007b) + Thanks [@charlypoly](https://github.com/charlypoly)! - Enable support for loading TS files with + import assertions ### Patch Changes -- [#8647](https://github.com/dotansimha/graphql-code-generator/pull/8647) [`40a6761a6`](https://github.com/dotansimha/graphql-code-generator/commit/40a6761a602fca592c6f4f0653c819e8debe007b) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - Updated dependency [`@graphql-tools/code-file-loader@^7.3.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/7.3.13) (from `^7.3.1`, in `dependencies`) - - Updated dependency [`@graphql-tools/git-loader@^7.2.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/git-loader/v/7.2.13) (from `^7.2.1`, in `dependencies`) - - Updated dependency [`@graphql-tools/github-loader@^7.3.20` ↗︎](https://www.npmjs.com/package/@graphql-tools/github-loader/v/7.3.20) (from `^7.3.6`, in `dependencies`) +- [#8647](https://github.com/dotansimha/graphql-code-generator/pull/8647) + [`40a6761a6`](https://github.com/dotansimha/graphql-code-generator/commit/40a6761a602fca592c6f4f0653c819e8debe007b) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`@graphql-tools/code-file-loader@^7.3.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/7.3.13) + (from `^7.3.1`, in `dependencies`) + - Updated dependency + [`@graphql-tools/git-loader@^7.2.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/git-loader/v/7.2.13) + (from `^7.2.1`, in `dependencies`) + - Updated dependency + [`@graphql-tools/github-loader@^7.3.20` ↗︎](https://www.npmjs.com/package/@graphql-tools/github-loader/v/7.3.20) + (from `^7.3.6`, in `dependencies`) ## 2.13.12 ### Patch Changes -- Updated dependencies [[`45eb2b18a`](https://github.com/dotansimha/graphql-code-generator/commit/45eb2b18adf25366248bf8d67ef696431db5ee0e), [`45eb2b18a`](https://github.com/dotansimha/graphql-code-generator/commit/45eb2b18adf25366248bf8d67ef696431db5ee0e)]: +- Updated dependencies + [[`45eb2b18a`](https://github.com/dotansimha/graphql-code-generator/commit/45eb2b18adf25366248bf8d67ef696431db5ee0e), + [`45eb2b18a`](https://github.com/dotansimha/graphql-code-generator/commit/45eb2b18adf25366248bf8d67ef696431db5ee0e)]: - @graphql-codegen/core@2.6.6 ## 2.13.11 ### Patch Changes -- [#8556](https://github.com/dotansimha/graphql-code-generator/pull/8556) [`64e553c3f`](https://github.com/dotansimha/graphql-code-generator/commit/64e553c3f62618a2aedf122d292e2700fd93d6e1) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - Updated dependency [`@graphql-codegen/core@2.6.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/core/v/2.6.4) (from `2.6.3`, in `dependencies`) -- Updated dependencies [[`64e553c3f`](https://github.com/dotansimha/graphql-code-generator/commit/64e553c3f62618a2aedf122d292e2700fd93d6e1)]: +- [#8556](https://github.com/dotansimha/graphql-code-generator/pull/8556) + [`64e553c3f`](https://github.com/dotansimha/graphql-code-generator/commit/64e553c3f62618a2aedf122d292e2700fd93d6e1) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/core@2.6.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/core/v/2.6.4) + (from `2.6.3`, in `dependencies`) +- Updated dependencies + [[`64e553c3f`](https://github.com/dotansimha/graphql-code-generator/commit/64e553c3f62618a2aedf122d292e2700fd93d6e1)]: - @graphql-codegen/core@2.6.5 ## 2.13.10 ### Patch Changes -- Updated dependencies [[`516170ef6`](https://github.com/dotansimha/graphql-code-generator/commit/516170ef6cb636c950d560ddf12fa1d2f7ee1c57), [`516170ef6`](https://github.com/dotansimha/graphql-code-generator/commit/516170ef6cb636c950d560ddf12fa1d2f7ee1c57)]: +- Updated dependencies + [[`516170ef6`](https://github.com/dotansimha/graphql-code-generator/commit/516170ef6cb636c950d560ddf12fa1d2f7ee1c57), + [`516170ef6`](https://github.com/dotansimha/graphql-code-generator/commit/516170ef6cb636c950d560ddf12fa1d2f7ee1c57)]: - @graphql-codegen/core@2.6.4 ## 2.13.9 ### Patch Changes -- [#8525](https://github.com/dotansimha/graphql-code-generator/pull/8525) [`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127) Thanks [@charlypoly](https://github.com/charlypoly)! - remove `DetailledError`, not supported by Listr renderer +- [#8525](https://github.com/dotansimha/graphql-code-generator/pull/8525) + [`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127) + Thanks [@charlypoly](https://github.com/charlypoly)! - remove `DetailledError`, not supported by + Listr renderer -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/core@2.6.3 - @graphql-codegen/plugin-helpers@2.7.2 @@ -628,77 +996,122 @@ ### Patch Changes -- [#8535](https://github.com/dotansimha/graphql-code-generator/pull/8535) [`88aa38ff9`](https://github.com/dotansimha/graphql-code-generator/commit/88aa38ff9eb94b66d783a4af3116d9d3313fdbfd) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: +- [#8535](https://github.com/dotansimha/graphql-code-generator/pull/8535) + [`88aa38ff9`](https://github.com/dotansimha/graphql-code-generator/commit/88aa38ff9eb94b66d783a4af3116d9d3313fdbfd) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`@graphql-tools/load@7.8.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/7.8.0) (from + `^7.7.1`, in `dependencies`) - - Updated dependency [`@graphql-tools/load@7.8.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/7.8.0) (from `^7.7.1`, in `dependencies`) - -- [#8535](https://github.com/dotansimha/graphql-code-generator/pull/8535) [`88aa38ff9`](https://github.com/dotansimha/graphql-code-generator/commit/88aa38ff9eb94b66d783a4af3116d9d3313fdbfd) Thanks [@charlypoly](https://github.com/charlypoly)! - Upgrade `@graphql-tools/load` to get benefits of debug mode +- [#8535](https://github.com/dotansimha/graphql-code-generator/pull/8535) + [`88aa38ff9`](https://github.com/dotansimha/graphql-code-generator/commit/88aa38ff9eb94b66d783a4af3116d9d3313fdbfd) + Thanks [@charlypoly](https://github.com/charlypoly)! - Upgrade `@graphql-tools/load` to get + benefits of debug mode ## 2.13.7 ### Patch Changes -- [#8481](https://github.com/dotansimha/graphql-code-generator/pull/8481) [`8473682c4`](https://github.com/dotansimha/graphql-code-generator/commit/8473682c48559382b0a3edd4a494aeaf1c5b99ff) Thanks [@charlypoly](https://github.com/charlypoly)! - ensure to generate `codegen.ts` in a typescript setup +- [#8481](https://github.com/dotansimha/graphql-code-generator/pull/8481) + [`8473682c4`](https://github.com/dotansimha/graphql-code-generator/commit/8473682c48559382b0a3edd4a494aeaf1c5b99ff) + Thanks [@charlypoly](https://github.com/charlypoly)! - ensure to generate `codegen.ts` in a + typescript setup ## 2.13.6 ### Patch Changes -- [#8383](https://github.com/dotansimha/graphql-code-generator/pull/8383) [`c4d9566c7`](https://github.com/dotansimha/graphql-code-generator/commit/c4d9566c792413fa26a537bce268a547c61e5f13) Thanks [@vhenzl](https://github.com/vhenzl)! - Fix `executeHooks` to quote args for shell command +- [#8383](https://github.com/dotansimha/graphql-code-generator/pull/8383) + [`c4d9566c7`](https://github.com/dotansimha/graphql-code-generator/commit/c4d9566c792413fa26a537bce268a547c61e5f13) + Thanks [@vhenzl](https://github.com/vhenzl)! - Fix `executeHooks` to quote args for shell command ## 2.13.5 ### Patch Changes -- [#8452](https://github.com/dotansimha/graphql-code-generator/pull/8452) [`cb1f93618`](https://github.com/dotansimha/graphql-code-generator/commit/cb1f93618b3c92cd092b740973d2469c232c2c00) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - - Updated dependency [`graphql-config@4.3.6` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.3.6) (from `^4.3.5`, in `dependencies`) +- [#8452](https://github.com/dotansimha/graphql-code-generator/pull/8452) + [`cb1f93618`](https://github.com/dotansimha/graphql-code-generator/commit/cb1f93618b3c92cd092b740973d2469c232c2c00) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`graphql-config@4.3.6` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.3.6) (from `^4.3.5`, + in `dependencies`) -- [#8452](https://github.com/dotansimha/graphql-code-generator/pull/8452) [`cb1f93618`](https://github.com/dotansimha/graphql-code-generator/commit/cb1f93618b3c92cd092b740973d2469c232c2c00) Thanks [@charlypoly](https://github.com/charlypoly)! - conflict with `graphql-config` also using TypeScriptLoader(), causing a double `ts-node` register. +- [#8452](https://github.com/dotansimha/graphql-code-generator/pull/8452) + [`cb1f93618`](https://github.com/dotansimha/graphql-code-generator/commit/cb1f93618b3c92cd092b740973d2469c232c2c00) + Thanks [@charlypoly](https://github.com/charlypoly)! - conflict with `graphql-config` also using + TypeScriptLoader(), causing a double `ts-node` register. ## 2.13.4 ### Patch Changes -- [#8441](https://github.com/dotansimha/graphql-code-generator/pull/8441) [`6785f7f0d`](https://github.com/dotansimha/graphql-code-generator/commit/6785f7f0df6b3eb14d30abf37924791c45a4d586) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: +- [#8441](https://github.com/dotansimha/graphql-code-generator/pull/8441) + [`6785f7f0d`](https://github.com/dotansimha/graphql-code-generator/commit/6785f7f0df6b3eb14d30abf37924791c45a4d586) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Added dependency + [`cosmiconfig-typescript-loader@4.1.1` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.1.1) + (to `dependencies`) + - Removed dependency + [`cosmiconfig-typescript-swc-loader@0.0.2` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-swc-loader/v/0.0.2) + (from `dependencies`) - - Added dependency [`cosmiconfig-typescript-loader@4.1.1` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.1.1) (to `dependencies`) - - Removed dependency [`cosmiconfig-typescript-swc-loader@0.0.2` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-swc-loader/v/0.0.2) (from `dependencies`) - -- [#8441](https://github.com/dotansimha/graphql-code-generator/pull/8441) [`6785f7f0d`](https://github.com/dotansimha/graphql-code-generator/commit/6785f7f0df6b3eb14d30abf37924791c45a4d586) Thanks [@charlypoly](https://github.com/charlypoly)! - fix(cli): revert to `cosmiconfig-typescript-loader` +- [#8441](https://github.com/dotansimha/graphql-code-generator/pull/8441) + [`6785f7f0d`](https://github.com/dotansimha/graphql-code-generator/commit/6785f7f0df6b3eb14d30abf37924791c45a4d586) + Thanks [@charlypoly](https://github.com/charlypoly)! - fix(cli): revert to + `cosmiconfig-typescript-loader` ## 2.13.3 ### Patch Changes -- [#8415](https://github.com/dotansimha/graphql-code-generator/pull/8415) [`15d500776`](https://github.com/dotansimha/graphql-code-generator/commit/15d50077680ff96a8d09cc65acd2f82683e67fb5) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - - Added dependency [`cosmiconfig-typescript-swc-loader@0.0.2` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-swc-loader/v/0.0.2) (to `dependencies`) - - Removed dependency [`cosmiconfig-typescript-loader@4.0.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.0.0) (from `dependencies`) +- [#8415](https://github.com/dotansimha/graphql-code-generator/pull/8415) + [`15d500776`](https://github.com/dotansimha/graphql-code-generator/commit/15d50077680ff96a8d09cc65acd2f82683e67fb5) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Added dependency + [`cosmiconfig-typescript-swc-loader@0.0.2` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-swc-loader/v/0.0.2) + (to `dependencies`) + - Removed dependency + [`cosmiconfig-typescript-loader@4.0.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.0.0) + (from `dependencies`) -- [#8415](https://github.com/dotansimha/graphql-code-generator/pull/8415) [`15d500776`](https://github.com/dotansimha/graphql-code-generator/commit/15d50077680ff96a8d09cc65acd2f82683e67fb5) Thanks [@charlypoly](https://github.com/charlypoly)! - feat(cli): drop peerDep on "typescript" by using `cosmiconfig-typescript-swc-loader` +- [#8415](https://github.com/dotansimha/graphql-code-generator/pull/8415) + [`15d500776`](https://github.com/dotansimha/graphql-code-generator/commit/15d50077680ff96a8d09cc65acd2f82683e67fb5) + Thanks [@charlypoly](https://github.com/charlypoly)! - feat(cli): drop peerDep on "typescript" by + using `cosmiconfig-typescript-swc-loader` ## 2.13.2 ### Patch Changes -- [#8427](https://github.com/dotansimha/graphql-code-generator/pull/8427) [`5524ac447`](https://github.com/dotansimha/graphql-code-generator/commit/5524ac447612ff05bfd68f4b758dfcd0fa9e7356) Thanks [@charlypoly](https://github.com/charlypoly)! - Fix issue with `graphql-codegen init` installation wizard +- [#8427](https://github.com/dotansimha/graphql-code-generator/pull/8427) + [`5524ac447`](https://github.com/dotansimha/graphql-code-generator/commit/5524ac447612ff05bfd68f4b758dfcd0fa9e7356) + Thanks [@charlypoly](https://github.com/charlypoly)! - Fix issue with `graphql-codegen init` + installation wizard ## 2.13.1 ### Patch Changes -- [#8405](https://github.com/dotansimha/graphql-code-generator/pull/8405) [`7f7e52bc2`](https://github.com/dotansimha/graphql-code-generator/commit/7f7e52bc22749d1dd6946510856103ab683a1807) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - - Removed dependency [`@graphql-codegen/client-preset@1.0.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/client-preset/v/1.0.1) (from `dependencies`) +- [#8405](https://github.com/dotansimha/graphql-code-generator/pull/8405) + [`7f7e52bc2`](https://github.com/dotansimha/graphql-code-generator/commit/7f7e52bc22749d1dd6946510856103ab683a1807) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Removed dependency + [`@graphql-codegen/client-preset@1.0.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/client-preset/v/1.0.1) + (from `dependencies`) -- [#8405](https://github.com/dotansimha/graphql-code-generator/pull/8405) [`7f7e52bc2`](https://github.com/dotansimha/graphql-code-generator/commit/7f7e52bc22749d1dd6946510856103ab683a1807) Thanks [@charlypoly](https://github.com/charlypoly)! - remove `@graphql-codegen/client-preset` direct dependency +- [#8405](https://github.com/dotansimha/graphql-code-generator/pull/8405) + [`7f7e52bc2`](https://github.com/dotansimha/graphql-code-generator/commit/7f7e52bc22749d1dd6946510856103ab683a1807) + Thanks [@charlypoly](https://github.com/charlypoly)! - remove `@graphql-codegen/client-preset` + direct dependency ## 2.13.0 ### Minor Changes -- [#8302](https://github.com/dotansimha/graphql-code-generator/pull/8302) [`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6) Thanks [@charlypoly](https://github.com/charlypoly)! - **`@graphql-codegen/gql-tag-operations` and `@graphql-codegen/gql-tag-operations-preset`** +- [#8302](https://github.com/dotansimha/graphql-code-generator/pull/8302) + [`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6) + Thanks [@charlypoly](https://github.com/charlypoly)! - **`@graphql-codegen/gql-tag-operations` and + `@graphql-codegen/gql-tag-operations-preset`** Introduce a `gqlTagName` configuration option @@ -706,7 +1119,8 @@ **`@graphql-codegen/client-preset`** - New preset for GraphQL Code Generator v3, more information on the RFC: https://github.com/dotansimha/graphql-code-generator/issues/8296 + New preset for GraphQL Code Generator v3, more information on the RFC: + https://github.com/dotansimha/graphql-code-generator/issues/8296 *** @@ -716,93 +1130,145 @@ ### Patch Changes -- [#8302](https://github.com/dotansimha/graphql-code-generator/pull/8302) [`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - Updated dependency [`@graphql-codegen/plugin-helpers@^2.6.2` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/2.6.2) (from `^2.7.1`, in `dependencies`) - - Updated dependency [`@whatwg-node/fetch@^0.3.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.3.0) (from `^0.4.0`, in `dependencies`) - - Updated dependency [`cosmiconfig-typescript-loader@4.0.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.0.0) (from `^4.0.0`, in `dependencies`) - - Added dependency [`@babel/generator@^7.18.13` ↗︎](https://www.npmjs.com/package/@babel/generator/v/7.18.13) (to `dependencies`) - - Added dependency [`@babel/template@^7.18.10` ↗︎](https://www.npmjs.com/package/@babel/template/v/7.18.10) (to `dependencies`) - - Added dependency [`@babel/types@^7.18.13` ↗︎](https://www.npmjs.com/package/@babel/types/v/7.18.13) (to `dependencies`) - - Added dependency [`@graphql-codegen/client-preset@1.0.1-alpha-20220823170145-c93d8aee3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/client-preset/v/1.0.1) (to `dependencies`) -- Updated dependencies [[`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6)]: +- [#8302](https://github.com/dotansimha/graphql-code-generator/pull/8302) + [`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/plugin-helpers@^2.6.2` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/2.6.2) + (from `^2.7.1`, in `dependencies`) + - Updated dependency + [`@whatwg-node/fetch@^0.3.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.3.0) (from + `^0.4.0`, in `dependencies`) + - Updated dependency + [`cosmiconfig-typescript-loader@4.0.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.0.0) + (from `^4.0.0`, in `dependencies`) + - Added dependency + [`@babel/generator@^7.18.13` ↗︎](https://www.npmjs.com/package/@babel/generator/v/7.18.13) (to + `dependencies`) + - Added dependency + [`@babel/template@^7.18.10` ↗︎](https://www.npmjs.com/package/@babel/template/v/7.18.10) (to + `dependencies`) + - Added dependency + [`@babel/types@^7.18.13` ↗︎](https://www.npmjs.com/package/@babel/types/v/7.18.13) (to + `dependencies`) + - Added dependency + [`@graphql-codegen/client-preset@1.0.1-alpha-20220823170145-c93d8aee3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/client-preset/v/1.0.1) + (to `dependencies`) +- Updated dependencies + [[`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6)]: - @graphql-codegen/client-preset@1.0.1 ## 2.12.2 ### Patch Changes -- [#8384](https://github.com/dotansimha/graphql-code-generator/pull/8384) [`9d3eedaea`](https://github.com/dotansimha/graphql-code-generator/commit/9d3eedaea6a5a505a8f693378bed44a1648a3a37) Thanks [@charlypoly](https://github.com/charlypoly)! - CLI: properly print error that occurred during hook execution +- [#8384](https://github.com/dotansimha/graphql-code-generator/pull/8384) + [`9d3eedaea`](https://github.com/dotansimha/graphql-code-generator/commit/9d3eedaea6a5a505a8f693378bed44a1648a3a37) + Thanks [@charlypoly](https://github.com/charlypoly)! - CLI: properly print error that occurred + during hook execution ## 2.12.1 ### Patch Changes -- [#8335](https://github.com/dotansimha/graphql-code-generator/pull/8335) [`3e121d92e`](https://github.com/dotansimha/graphql-code-generator/commit/3e121d92ebd563a82dbc367cd3e9194ebe5ca1ee) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: +- [#8335](https://github.com/dotansimha/graphql-code-generator/pull/8335) + [`3e121d92e`](https://github.com/dotansimha/graphql-code-generator/commit/3e121d92ebd563a82dbc367cd3e9194ebe5ca1ee) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@whatwg-node/fetch@^0.4.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/null) (from + `^0.3.0`, in `dependencies`) - - Updated dependency [`@whatwg-node/fetch@^0.4.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/null) (from `^0.3.0`, in `dependencies`) +- [#8368](https://github.com/dotansimha/graphql-code-generator/pull/8368) + [`4113b1bd3`](https://github.com/dotansimha/graphql-code-generator/commit/4113b1bd39f3d32759c68a292e8492a0dd4f7371) + Thanks [@charlypoly](https://github.com/charlypoly)! - fix(cli): support ApolloEngine loader in + TypeScript config -- [#8368](https://github.com/dotansimha/graphql-code-generator/pull/8368) [`4113b1bd3`](https://github.com/dotansimha/graphql-code-generator/commit/4113b1bd39f3d32759c68a292e8492a0dd4f7371) Thanks [@charlypoly](https://github.com/charlypoly)! - fix(cli): support ApolloEngine loader in TypeScript config - -- Updated dependencies [[`4113b1bd3`](https://github.com/dotansimha/graphql-code-generator/commit/4113b1bd39f3d32759c68a292e8492a0dd4f7371)]: +- Updated dependencies + [[`4113b1bd3`](https://github.com/dotansimha/graphql-code-generator/commit/4113b1bd39f3d32759c68a292e8492a0dd4f7371)]: - @graphql-codegen/plugin-helpers@2.7.1 ## 2.12.0 ### Minor Changes -- [#8301](https://github.com/dotansimha/graphql-code-generator/pull/8301) [`2ed21a471`](https://github.com/dotansimha/graphql-code-generator/commit/2ed21a471f8de58ecafebf4bf64b3c32cee24d2f) Thanks [@charlypoly](https://github.com/charlypoly)! - Introduces support for TypeScript config file and a new preset lifecycle (required for `client-preset`) +- [#8301](https://github.com/dotansimha/graphql-code-generator/pull/8301) + [`2ed21a471`](https://github.com/dotansimha/graphql-code-generator/commit/2ed21a471f8de58ecafebf4bf64b3c32cee24d2f) + Thanks [@charlypoly](https://github.com/charlypoly)! - Introduces support for TypeScript config + file and a new preset lifecycle (required for `client-preset`) ### Patch Changes -- [#8291](https://github.com/dotansimha/graphql-code-generator/pull/8291) [`d8b4012e1`](https://github.com/dotansimha/graphql-code-generator/commit/d8b4012e1fdbdcff6f9e62365b57426cef578d9a) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - - Updated dependency [`graphql-config@^4.3.5` ↗︎](https://www.npmjs.com/package/graphql-config/v/null) (from `^4.3.4`, in `dependencies`) +- [#8291](https://github.com/dotansimha/graphql-code-generator/pull/8291) + [`d8b4012e1`](https://github.com/dotansimha/graphql-code-generator/commit/d8b4012e1fdbdcff6f9e62365b57426cef578d9a) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`graphql-config@^4.3.5` ↗︎](https://www.npmjs.com/package/graphql-config/v/null) (from `^4.3.4`, + in `dependencies`) -- [#8301](https://github.com/dotansimha/graphql-code-generator/pull/8301) [`2ed21a471`](https://github.com/dotansimha/graphql-code-generator/commit/2ed21a471f8de58ecafebf4bf64b3c32cee24d2f) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: +- [#8301](https://github.com/dotansimha/graphql-code-generator/pull/8301) + [`2ed21a471`](https://github.com/dotansimha/graphql-code-generator/commit/2ed21a471f8de58ecafebf4bf64b3c32cee24d2f) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Added dependency + [`cosmiconfig-typescript-loader@^4.0.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/null) + (to `dependencies`) - - Added dependency [`cosmiconfig-typescript-loader@^4.0.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/null) (to `dependencies`) - -- Updated dependencies [[`2ed21a471`](https://github.com/dotansimha/graphql-code-generator/commit/2ed21a471f8de58ecafebf4bf64b3c32cee24d2f)]: +- Updated dependencies + [[`2ed21a471`](https://github.com/dotansimha/graphql-code-generator/commit/2ed21a471f8de58ecafebf4bf64b3c32cee24d2f)]: - @graphql-codegen/plugin-helpers@2.7.0 ## 2.11.8 ### Patch Changes -- [#8289](https://github.com/dotansimha/graphql-code-generator/pull/8289) [`b5897fcad`](https://github.com/dotansimha/graphql-code-generator/commit/b5897fcad2832d9ffbed0eb2f59e6b7535f4b61c) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - - Updated dependency [`graphql-config@^4.3.4` ↗︎](https://www.npmjs.com/package/graphql-config/v/null) (from `^4.3.1`, in `dependencies`) +- [#8289](https://github.com/dotansimha/graphql-code-generator/pull/8289) + [`b5897fcad`](https://github.com/dotansimha/graphql-code-generator/commit/b5897fcad2832d9ffbed0eb2f59e6b7535f4b61c) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`graphql-config@^4.3.4` ↗︎](https://www.npmjs.com/package/graphql-config/v/null) (from `^4.3.1`, + in `dependencies`) -- [#8289](https://github.com/dotansimha/graphql-code-generator/pull/8289) [`b5897fcad`](https://github.com/dotansimha/graphql-code-generator/commit/b5897fcad2832d9ffbed0eb2f59e6b7535f4b61c) Thanks [@n1ru4l](https://github.com/n1ru4l)! - resolve issue for loading typescript configs +- [#8289](https://github.com/dotansimha/graphql-code-generator/pull/8289) + [`b5897fcad`](https://github.com/dotansimha/graphql-code-generator/commit/b5897fcad2832d9ffbed0eb2f59e6b7535f4b61c) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - resolve issue for loading typescript configs ## 2.11.7 ### Patch Changes -- [#8274](https://github.com/dotansimha/graphql-code-generator/pull/8274) [`b18a0319f`](https://github.com/dotansimha/graphql-code-generator/commit/b18a0319f5f24f2675df8d12d9b440b67b0445bf) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`@whatwg-node/fetch@^0.3.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/null) (from `^0.2.3`, in `dependencies`) +- [#8274](https://github.com/dotansimha/graphql-code-generator/pull/8274) + [`b18a0319f`](https://github.com/dotansimha/graphql-code-generator/commit/b18a0319f5f24f2675df8d12d9b440b67b0445bf) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@whatwg-node/fetch@^0.3.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/null) (from + `^0.2.3`, in `dependencies`) ## 2.11.6 ### Patch Changes -- Updated dependencies [[`6c7d3e54b`](https://github.com/dotansimha/graphql-code-generator/commit/6c7d3e54bb3cb53d8bbbd25e31c45b66f29f4640)]: +- Updated dependencies + [[`6c7d3e54b`](https://github.com/dotansimha/graphql-code-generator/commit/6c7d3e54bb3cb53d8bbbd25e31c45b66f29f4640)]: - @graphql-codegen/core@2.6.2 ## 2.11.5 ### Patch Changes -- [#8198](https://github.com/dotansimha/graphql-code-generator/pull/8198) [`1c7a8c0ad`](https://github.com/dotansimha/graphql-code-generator/commit/1c7a8c0ade2cd1f505b303c742aa31b4489cc12d) Thanks [@charlypoly](https://github.com/charlypoly)! - fix(ci): regression on error output +- [#8198](https://github.com/dotansimha/graphql-code-generator/pull/8198) + [`1c7a8c0ad`](https://github.com/dotansimha/graphql-code-generator/commit/1c7a8c0ade2cd1f505b303c742aa31b4489cc12d) + Thanks [@charlypoly](https://github.com/charlypoly)! - fix(ci): regression on error output ## 2.11.4 ### 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/core@2.6.1 - @graphql-codegen/plugin-helpers@2.6.2 @@ -840,7 +1306,8 @@ ### Minor Changes -- 273ad602f: Replace cross-undici-fetch with @whatwg-node/fetch to fix security vulnerability from undici +- 273ad602f: Replace cross-undici-fetch with @whatwg-node/fetch to fix security vulnerability from + undici ### Patch Changes @@ -856,7 +1323,9 @@ ### Minor Changes -- 2cbcbb371: Add new flag to emit legacy common js imports. Default it will be `true` this way it ensure that generated code works with [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065). +- 2cbcbb371: Add new flag to emit legacy common js imports. Default it will be `true` this way it + ensure that generated code works with + [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065). You can use the option in your config: @@ -875,10 +1344,12 @@ ### Patch Changes -- 32c1560f1: getPluginByName fails unexpectedly when plugin is not prefixed with @graphq-codegen in ESM context +- 32c1560f1: getPluginByName fails unexpectedly when plugin is not prefixed with @graphq-codegen in + ESM context - MODULE_NOT_FOUND is the error code you receive in a CommonJS context when you require() a module and it does not exist. - ERR_MODULE_NOT_FOUND is the error code you receive in an ESM context when you import or import() ad module that does not exist. + MODULE_NOT_FOUND is the error code you receive in a CommonJS context when you require() a module + and it does not exist. ERR_MODULE_NOT_FOUND is the error code you receive in an ESM context when + you import or import() ad module that does not exist. - Updated dependencies [2cbcbb371] - @graphql-codegen/plugin-helpers@2.6.0 @@ -887,17 +1358,20 @@ ### Patch Changes -- 147e801bf: Add `tslib` as a dependency. See https://github.com/dotansimha/graphql-code-generator/issues/8075 +- 147e801bf: Add `tslib` as a dependency. See + https://github.com/dotansimha/graphql-code-generator/issues/8075 ## 2.8.0 ### Minor Changes -- d84afec09: Add bin CLI command for running `graphql-code-generator` in ESM mode. You can now use `graphql-codegen-esm` instead of `graphql-codegen`. +- d84afec09: Add bin CLI command for running `graphql-code-generator` in ESM mode. You can now use + `graphql-codegen-esm` instead of `graphql-codegen`. GraphQL Code Generator will continue supporting both ESM and CommonJS in parallel. -- 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) @@ -928,18 +1402,23 @@ ``` - 2e86ecb65: ### Summary - - Migrate to [`listr2`](https://listr2.kilic.dev) - Remove custom renderer for `listr` - Remove unused dependencies ### Why - [`listr`](https://github.com/SamVerschueren/listr) is not actively maintained and we have to maintain our custom renderer for it to display errors. Migrating to `listr2` it just works out of the almost similar to how it was working in past and is a actively maintained. + [`listr`](https://github.com/SamVerschueren/listr) is not actively maintained and we have to + maintain our custom renderer for it to display errors. Migrating to `listr2` it just works out of + the almost similar to how it was working in past and is a actively maintained. ### Dev notes - Big change for us is how errors were collected. In `listr` errors were thrown and were caught in the `end` function of our custom `listr` Renderer but with `listr2` we don't really get `Error` in `end` function always so instead we use the [context](https://listr2.kilic.dev/getting-started/the-concept-of-context) to collect errors from all the tasks and then show them after all the tasks are finished. + Big change for us is how errors were collected. In `listr` errors were thrown and were caught in + the `end` function of our custom `listr` Renderer but with `listr2` we don't really get `Error` in + `end` function always so instead we use the + [context](https://listr2.kilic.dev/getting-started/the-concept-of-context) to collect errors from + all the tasks and then show them after all the tasks are finished. - Updated dependencies [d84afec09] - Updated dependencies [a4fe5006b] @@ -957,8 +1436,10 @@ - dfd9f07dc: Fix/multi project - 2fb1d8b87: Remove unused `tryToBuildSchema` function -- 4dce44263: Bumps `@graphql-tools/url-loader` to the latest `cross-undici-fetch` version that has pinned `undici` to `~5.5.0` in order to fix a bug/breaking-change introduced with `undici@5.6.0` that causes a `GET/HEAD requests cannot have 'body'` error. - See https://github.com/ardatan/graphql-tools/pull/4559#issue-1292915844 for more details. +- 4dce44263: Bumps `@graphql-tools/url-loader` to the latest `cross-undici-fetch` version that has + pinned `undici` to `~5.5.0` in order to fix a bug/breaking-change introduced with `undici@5.6.0` + that causes a `GET/HEAD requests cannot have 'body'` error. See + https://github.com/ardatan/graphql-tools/pull/4559#issue-1292915844 for more details. ## 2.6.4 @@ -1057,7 +1538,8 @@ ### Minor Changes -- 3e38de399: enhance: sort the schema before processing to have more consistent results. You can disable it with `sort: false`. +- 3e38de399: enhance: sort the schema before processing to have more consistent results. You can + disable it with `sort: false`. ### Patch Changes @@ -1073,7 +1555,8 @@ ### Minor Changes -- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from @graphql-tools/utils +- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from + @graphql-tools/utils - 440172cfe: support ESM ### Patch Changes @@ -1090,7 +1573,8 @@ ### Patch Changes -- edd029e87: fix(graphql-modules-preset): do not parse SDL and use extendedSources that have parsed document already +- edd029e87: fix(graphql-modules-preset): do not parse SDL and use extendedSources that have parsed + document already ## 2.0.0 @@ -1100,7 +1584,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 @@ -1113,13 +1598,15 @@ ### Patch Changes -- e1643e6d4: Fix exception `loader.loaderId is not a function` caused by conflict with an internal dependency of Codegen. +- e1643e6d4: Fix exception `loader.loaderId is not a function` caused by conflict with an internal + dependency of Codegen. ## 1.21.7 ### Patch Changes -- 470336a1: don't require plugins for for config if preset provides plugin. Instead the preset should throw if no plugins were provided. +- 470336a1: don't require plugins for for config if preset provides plugin. Instead the preset + should throw if no plugins were provided. - Updated dependencies [470336a1] - @graphql-codegen/plugin-helpers@1.18.8 @@ -1158,7 +1645,8 @@ ### Patch Changes -- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention +- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming + convention - Updated dependencies [29b75b1e] - @graphql-codegen/plugin-helpers@1.18.3 @@ -1258,7 +1746,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] - Updated dependencies [ac067ea0] diff --git a/packages/graphql-codegen-cli/package.json b/packages/graphql-codegen-cli/package.json index 4aaef0a7928..6090bd7b0ad 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.2.1", + "version": "6.2.2", "type": "module", "repository": { "type": "git", @@ -76,9 +76,9 @@ "@babel/generator": "^7.18.13", "@babel/template": "^7.18.10", "@babel/types": "^7.18.13", - "@graphql-codegen/client-preset": "^5.2.4", - "@graphql-codegen/core": "^5.0.1", - "@graphql-codegen/plugin-helpers": "^6.2.0", + "@graphql-codegen/client-preset": "^5.2.5", + "@graphql-codegen/core": "^5.0.2", + "@graphql-codegen/plugin-helpers": "^6.2.2", "@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 07ca8544b64..5c4d6dbe9c5 100644 --- a/packages/graphql-codegen-core/CHANGELOG.md +++ b/packages/graphql-codegen-core/CHANGELOG.md @@ -1,64 +1,116 @@ # @graphql-codegen/core +## 5.0.2 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + ## 5.0.1 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) + (from `^10.0.0`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 ## 5.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 ## 4.0.2 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/plugin-helpers@5.0.3 ## 4.0.1 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 ## 4.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 -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - Updated dependency [`@graphql-tools/schema@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.0) (from `^9.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) (from `^9.1.1`, in `dependencies`) -- 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)]: +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-tools/schema@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.0) + (from `^9.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) + (from `^9.1.1`, in `dependencies`) +- 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 ## 3.1.0 ### Minor Changes -- [#8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) Thanks [@kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. +- [#8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) + Thanks [@kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. - DocumentTransform is a functionality that allows you to modify `documents` before they are processed by plugins. You can use functions passed to the `documentTransforms` option to make changes to GraphQL documents. + DocumentTransform is a functionality that allows you to modify `documents` before they are + processed by plugins. You can use functions passed to the `documentTransforms` option to make + changes to GraphQL documents. To use this feature, you can write `documentTransforms` as follows: @@ -85,7 +137,8 @@ export default config ``` - For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the + following code: ```js import type { CodegenConfig } from '@graphql-codegen/cli' @@ -119,7 +172,8 @@ export default config ``` - DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to `documentTransforms`. + DocumentTransform can also be specified by file name. You can create a custom file for a specific + transformation and pass it to `documentTransforms`. Let's create the document transform as a file: @@ -152,98 +206,144 @@ ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 ## 3.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 -- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes +- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) + [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) + Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes -- 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 ## 2.6.8 ### 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 ## 2.6.7 ### 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 ## 2.6.6 ### Patch Changes -- [#8606](https://github.com/dotansimha/graphql-code-generator/pull/8606) [`45eb2b18a`](https://github.com/dotansimha/graphql-code-generator/commit/45eb2b18adf25366248bf8d67ef696431db5ee0e) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: +- [#8606](https://github.com/dotansimha/graphql-code-generator/pull/8606) + [`45eb2b18a`](https://github.com/dotansimha/graphql-code-generator/commit/45eb2b18adf25366248bf8d67ef696431db5ee0e) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^9.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.1.1) + (from `9.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^9.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.1.1) (from `9.0.0`, in `dependencies`) - -- [#8606](https://github.com/dotansimha/graphql-code-generator/pull/8606) [`45eb2b18a`](https://github.com/dotansimha/graphql-code-generator/commit/45eb2b18adf25366248bf8d67ef696431db5ee0e) Thanks [@charlypoly](https://github.com/charlypoly)! - Fix validation issue on fragment/ops naming conflict +- [#8606](https://github.com/dotansimha/graphql-code-generator/pull/8606) + [`45eb2b18a`](https://github.com/dotansimha/graphql-code-generator/commit/45eb2b18adf25366248bf8d67ef696431db5ee0e) + Thanks [@charlypoly](https://github.com/charlypoly)! - Fix validation issue on fragment/ops naming + conflict ## 2.6.5 ### Patch Changes -- [#8556](https://github.com/dotansimha/graphql-code-generator/pull/8556) [`64e553c3f`](https://github.com/dotansimha/graphql-code-generator/commit/64e553c3f62618a2aedf122d292e2700fd93d6e1) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.8.0`, in `dependencies`) +- [#8556](https://github.com/dotansimha/graphql-code-generator/pull/8556) + [`64e553c3f`](https://github.com/dotansimha/graphql-code-generator/commit/64e553c3f62618a2aedf122d292e2700fd93d6e1) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.8.0`, in `dependencies`) ## 2.6.4 ### Patch Changes -- [#8548](https://github.com/dotansimha/graphql-code-generator/pull/8548) [`516170ef6`](https://github.com/dotansimha/graphql-code-generator/commit/516170ef6cb636c950d560ddf12fa1d2f7ee1c57) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - - Updated dependency [`@graphql-tools/utils@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.8.0`, in `dependencies`) +- [#8548](https://github.com/dotansimha/graphql-code-generator/pull/8548) + [`516170ef6`](https://github.com/dotansimha/graphql-code-generator/commit/516170ef6cb636c950d560ddf12fa1d2f7ee1c57) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.8.0`, in `dependencies`) -- [#8548](https://github.com/dotansimha/graphql-code-generator/pull/8548) [`516170ef6`](https://github.com/dotansimha/graphql-code-generator/commit/516170ef6cb636c950d560ddf12fa1d2f7ee1c57) Thanks [@charlypoly](https://github.com/charlypoly)! - Improve codegen documents and schema validation +- [#8548](https://github.com/dotansimha/graphql-code-generator/pull/8548) + [`516170ef6`](https://github.com/dotansimha/graphql-code-generator/commit/516170ef6cb636c950d560ddf12fa1d2f7ee1c57) + Thanks [@charlypoly](https://github.com/charlypoly)! - Improve codegen documents and schema + validation ## 2.6.3 ### Patch Changes -- [#8525](https://github.com/dotansimha/graphql-code-generator/pull/8525) [`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127) Thanks [@charlypoly](https://github.com/charlypoly)! - remove `DetailledError`, not supported by Listr renderer +- [#8525](https://github.com/dotansimha/graphql-code-generator/pull/8525) + [`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127) + Thanks [@charlypoly](https://github.com/charlypoly)! - remove `DetailledError`, not supported by + Listr renderer -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/plugin-helpers@2.7.2 ## 2.6.2 ### Patch Changes -- [#8207](https://github.com/dotansimha/graphql-code-generator/pull/8207) [`6c7d3e54b`](https://github.com/dotansimha/graphql-code-generator/commit/6c7d3e54bb3cb53d8bbbd25e31c45b66f29f4640) Thanks [@renovate](https://github.com/apps/renovate)! - ### Dependencies Updates - - - Updated dependency ([`@graphql-tools/schema@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/^9.0.0)) (was `^8.5.0`, in `dependencies`) +- [#8207](https://github.com/dotansimha/graphql-code-generator/pull/8207) + [`6c7d3e54b`](https://github.com/dotansimha/graphql-code-generator/commit/6c7d3e54bb3cb53d8bbbd25e31c45b66f29f4640) + Thanks [@renovate](https://github.com/apps/renovate)! - ### Dependencies Updates + - Updated dependency + ([`@graphql-tools/schema@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/^9.0.0)) + (was `^8.5.0`, in `dependencies`) ## 2.6.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 ## 2.6.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) @@ -301,7 +401,8 @@ ### Minor Changes -- 7c60e5acc: feat(core): ability to skip some specific validation rules with skipDocumentsValidation option +- 7c60e5acc: feat(core): ability to skip some specific validation rules with skipDocumentsValidation + option ### Patch Changes @@ -312,7 +413,8 @@ ### Minor Changes -- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from @graphql-tools/utils +- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from + @graphql-tools/utils - 440172cfe: support ESM ### Patch Changes @@ -331,11 +433,13 @@ ‼️ ‼️ ‼️ 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 -- d80efdec4: Removed `typescript-compatiblity` since it's no longer maintained. Please migrate your codebase to use the latest output of codegen. +- d80efdec4: Removed `typescript-compatiblity` since it's no longer maintained. Please migrate your + codebase to use the latest output of codegen. - Updated dependencies [b0cb13df4] - @graphql-codegen/plugin-helpers@2.0.0 @@ -360,8 +464,10 @@ ### 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 -- ac067ea0: Filter `prepend` and `append` coming from plugins, make sure not to add empty lines when not needed +- 1d7c6432: Bump versions of @graphql-tools/ packages to fix issues with loading schemas and SDL + comments +- ac067ea0: Filter `prepend` and `append` coming from plugins, make sure not to add empty lines when + not needed - Updated dependencies [1d7c6432] - Updated dependencies [1d7c6432] - @graphql-codegen/plugin-helpers@1.17.8 diff --git a/packages/graphql-codegen-core/package.json b/packages/graphql-codegen-core/package.json index 0a2fe51dd63..9f483a78f87 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.1", + "version": "5.0.2", "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.1.1", + "@graphql-codegen/plugin-helpers": "^6.2.2", "@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 7316564fc6f..9f8feb69290 100644 --- a/packages/plugins/other/add/CHANGELOG.md +++ b/packages/plugins/other/add/CHANGELOG.md @@ -1,21 +1,48 @@ # @graphql-codegen/add +## 6.0.1 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + ## 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.3 ### Patch Changes -- [#9987](https://github.com/dotansimha/graphql-code-generator/pull/9987) [`5501c62`](https://github.com/dotansimha/graphql-code-generator/commit/5501c621f19eb5ef8e703a21f7367e07e41f199c) Thanks [@taro-28](https://github.com/taro-28)! - Export configuration types (e.g. `AddPluginConfig`) from the entry point. +- [#9987](https://github.com/dotansimha/graphql-code-generator/pull/9987) + [`5501c62`](https://github.com/dotansimha/graphql-code-generator/commit/5501c621f19eb5ef8e703a21f7367e07e41f199c) + Thanks [@taro-28](https://github.com/taro-28)! - Export configuration types (e.g. + `AddPluginConfig`) from the entry point. ```ts import type { AddPluginConfig } from '@graphql-codegen/add' @@ -25,81 +52,115 @@ ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/plugin-helpers@5.0.3 ## 5.0.1 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 ## 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.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.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) @@ -140,7 +201,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 @@ -160,7 +222,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 - ac067ea0: Fix for empty lines added by add plugin - Updated dependencies [1d7c6432] - Updated dependencies [1d7c6432] diff --git a/packages/plugins/other/add/package.json b/packages/plugins/other/add/package.json index 609fed91efd..a6a7f1750ac 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.0", + "version": "6.0.1", "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.0.0", + "@graphql-codegen/plugin-helpers": "^6.2.2", "tslib": "^2.8.0" }, "publishConfig": { diff --git a/packages/plugins/other/fragment-matcher/CHANGELOG.md b/packages/plugins/other/fragment-matcher/CHANGELOG.md index 1de278b304a..c3984c071ce 100644 --- a/packages/plugins/other/fragment-matcher/CHANGELOG.md +++ b/packages/plugins/other/fragment-matcher/CHANGELOG.md @@ -1,101 +1,162 @@ # @graphql-codegen/fragment-matcher +## 6.0.1 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + ## 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.1.0 ### Minor Changes -- [#10214](https://github.com/dotansimha/graphql-code-generator/pull/10214) [`81b20f5`](https://github.com/dotansimha/graphql-code-generator/commit/81b20f5ab35bf73e7797580ba22c910aecdeddbd) Thanks [@tgandrews](https://github.com/tgandrews)! - Add new flag to make the fragment matcher results deterministic +- [#10214](https://github.com/dotansimha/graphql-code-generator/pull/10214) + [`81b20f5`](https://github.com/dotansimha/graphql-code-generator/commit/81b20f5ab35bf73e7797580ba22c910aecdeddbd) + Thanks [@tgandrews](https://github.com/tgandrews)! - Add new flag to make the fragment matcher + results deterministic ## 5.0.2 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/plugin-helpers@5.0.3 ## 5.0.1 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 ## 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.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.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.3.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.3.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.3.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.3.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) @@ -147,7 +208,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 @@ -168,7 +230,8 @@ - 5e792ff3: **BREAKING CHANGE:** Change the default Apollo-Client version to be "3". - If you are upgrading from v1 of this plugin, and you are using apollo-client v2, please make sure to add to your config: + If you are upgrading from v1 of this plugin, and you are using apollo-client v2, please make sure + to add to your config: ```yaml apolloClientVersion: 2 @@ -179,7 +242,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 diff --git a/packages/plugins/other/fragment-matcher/package.json b/packages/plugins/other/fragment-matcher/package.json index a5c98a86ef2..5db4022026f 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.0", + "version": "6.0.1", "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.0.0", + "@graphql-codegen/plugin-helpers": "^6.2.2", "tslib": "^2.8.0" }, "publishConfig": { diff --git a/packages/plugins/other/introspection/CHANGELOG.md b/packages/plugins/other/introspection/CHANGELOG.md index 8b6c86c7ea3..9246fea4152 100644 --- a/packages/plugins/other/introspection/CHANGELOG.md +++ b/packages/plugins/other/introspection/CHANGELOG.md @@ -1,12 +1,33 @@ # @graphql-codegen/introspection +## 5.0.2 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 5.0.1 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) (from `^6.0.0`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) + (from `^6.0.0`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/visitor-plugin-common@6.2.4 @@ -14,11 +35,27 @@ ### 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), [`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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 @@ -26,16 +63,20 @@ ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 ## 4.0.2 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/plugin-helpers@5.0.3 @@ -43,9 +84,16 @@ ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 - @graphql-codegen/visitor-plugin-common@4.1.0 @@ -53,11 +101,26 @@ ### 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), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 @@ -65,9 +128,17 @@ ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 - @graphql-codegen/visitor-plugin-common@3.0.1 @@ -75,11 +146,15 @@ ### 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 @@ -87,9 +162,13 @@ ### 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), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/visitor-plugin-common@2.13.5 @@ -97,7 +176,11 @@ ### Patch Changes -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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), + [`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 - @graphql-codegen/visitor-plugin-common@2.13.4 @@ -105,9 +188,14 @@ ### 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), [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f), + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: - @graphql-codegen/visitor-plugin-common@2.12.1 - @graphql-codegen/plugin-helpers@2.6.2 @@ -115,7 +203,8 @@ ### 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) @@ -158,7 +247,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 @@ -197,7 +287,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 diff --git a/packages/plugins/other/introspection/package.json b/packages/plugins/other/introspection/package.json index e45a6ddfa56..73056e79687 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.1", + "version": "5.0.2", "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.1.1", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "tslib": "^2.8.0" }, "publishConfig": { diff --git a/packages/plugins/other/schema-ast/CHANGELOG.md b/packages/plugins/other/schema-ast/CHANGELOG.md index 03f5989335b..724d8abe32a 100644 --- a/packages/plugins/other/schema-ast/CHANGELOG.md +++ b/packages/plugins/other/schema-ast/CHANGELOG.md @@ -1,125 +1,203 @@ # @graphql-codegen/schema-ast +## 5.0.2 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + ## 5.0.1 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) + (from `^10.0.0`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 ## 5.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 ## 4.1.0 ### Minor Changes -- [#10023](https://github.com/dotansimha/graphql-code-generator/pull/10023) [`8f864ef`](https://github.com/dotansimha/graphql-code-generator/commit/8f864ef8aad11f233330c71c467a61c449bf270a) Thanks [@eddeee888](https://github.com/eddeee888)! - Allow .graphqls as schema extension +- [#10023](https://github.com/dotansimha/graphql-code-generator/pull/10023) + [`8f864ef`](https://github.com/dotansimha/graphql-code-generator/commit/8f864ef8aad11f233330c71c467a61c449bf270a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Allow .graphqls as schema extension ## 4.0.2 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/plugin-helpers@5.0.3 ## 4.0.1 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 ## 4.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 -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) (from `^9.0.0`, in `dependencies`) -- 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)]: +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) + (from `^9.0.0`, in `dependencies`) +- 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 ## 3.0.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 ## 3.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 ## 2.6.1 ### Patch Changes -- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.8.0`, in `dependencies`) -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.8.0`, in `dependencies`) +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 ## 2.6.0 ### Minor Changes -- [#8712](https://github.com/dotansimha/graphql-code-generator/pull/8712) [`fedd71cbb`](https://github.com/dotansimha/graphql-code-generator/commit/fedd71cbb7f37440a59032d942cb228df78d52e5) Thanks [@danielwaltz](https://github.com/danielwaltz)! - support gql file extension for schema-ast output +- [#8712](https://github.com/dotansimha/graphql-code-generator/pull/8712) + [`fedd71cbb`](https://github.com/dotansimha/graphql-code-generator/commit/fedd71cbb7f37440a59032d942cb228df78d52e5) + Thanks [@danielwaltz](https://github.com/danielwaltz)! - support gql file extension for schema-ast + output ### 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 ## 2.5.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 ## 2.5.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 ## 2.5.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) @@ -163,13 +241,15 @@ ### Minor Changes -- 3e38de399: enhance: sort the schema before processing to have more consistent results. You can disable it with `sort: false`. +- 3e38de399: enhance: sort the schema before processing to have more consistent results. You can + disable it with `sort: false`. ## 2.1.0 ### Minor Changes -- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from @graphql-tools/utils +- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from + @graphql-tools/utils - 440172cfe: support ESM ### Patch Changes @@ -188,7 +268,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 @@ -235,7 +316,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 diff --git a/packages/plugins/other/schema-ast/package.json b/packages/plugins/other/schema-ast/package.json index 8a93b2d31f3..d968b127aa0 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.1", + "version": "5.0.2", "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.1.1", + "@graphql-codegen/plugin-helpers": "^6.2.2", "@graphql-tools/utils": "^11.0.0", "tslib": "^2.8.0" }, diff --git a/packages/plugins/other/visitor-plugin-common/CHANGELOG.md b/packages/plugins/other/visitor-plugin-common/CHANGELOG.md index 1b9346fa5a8..702c41a53a9 100644 --- a/packages/plugins/other/visitor-plugin-common/CHANGELOG.md +++ b/packages/plugins/other/visitor-plugin-common/CHANGELOG.md @@ -1,62 +1,103 @@ # @graphql-codegen/visitor-plugin-common +## 6.2.5 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + ## 6.2.4 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-tools/relay-operation-optimizer@^7.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/relay-operation-optimizer/v/7.1.1) (from `^7.0.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-tools/relay-operation-optimizer@^7.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/relay-operation-optimizer/v/7.1.1) + (from `^7.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) + (from `^10.0.0`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 ## 6.2.3 ### Patch Changes -- [#10580](https://github.com/dotansimha/graphql-code-generator/pull/10580) [`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf) Thanks [@Georgegriff](https://github.com/Georgegriff)! - fixed invalid extracted concrete type name on shared interface +- [#10580](https://github.com/dotansimha/graphql-code-generator/pull/10580) + [`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf) + Thanks [@Georgegriff](https://github.com/Georgegriff)! - fixed invalid extracted concrete type + name on shared interface ## 6.2.2 ### Patch Changes -- [#10530](https://github.com/dotansimha/graphql-code-generator/pull/10530) [`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c) Thanks [@Georgegriff](https://github.com/Georgegriff)! - fix fragment type generation names +- [#10530](https://github.com/dotansimha/graphql-code-generator/pull/10530) + [`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c) + Thanks [@Georgegriff](https://github.com/Georgegriff)! - fix fragment type generation names ## 6.2.1 ### Patch Changes -- [#10503](https://github.com/dotansimha/graphql-code-generator/pull/10503) [`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a) Thanks [@Georgegriff](https://github.com/Georgegriff)! - Use parent type name on interface types without fragments +- [#10503](https://github.com/dotansimha/graphql-code-generator/pull/10503) + [`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a) + Thanks [@Georgegriff](https://github.com/Georgegriff)! - Use parent type name on interface types + without fragments ## 6.2.0 ### Minor Changes -- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option +- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) + Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option ### Patch Changes -- [#10512](https://github.com/dotansimha/graphql-code-generator/pull/10512) [`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8) Thanks [@realies](https://github.com/realies)! - fix: allow mappers to override root types (Query, Mutation, Subscription) +- [#10512](https://github.com/dotansimha/graphql-code-generator/pull/10512) + [`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8) + Thanks [@realies](https://github.com/realies)! - fix: allow mappers to override root types (Query, + Mutation, Subscription) - Previously, mappers configured for root types were ignored because root types were checked before mappers. This fix moves the mapper check before the root type check, allowing mappers to override `rootValueType` when configured. + Previously, mappers configured for root types were ignored because root types were checked before + mappers. This fix moves the mapper check before the root type check, allowing mappers to override + `rootValueType` when configured. -- Updated dependencies [[`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/plugin-helpers@6.1.0 ## 6.1.2 ### Patch Changes -- [#10499](https://github.com/dotansimha/graphql-code-generator/pull/10499) [`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix nested fragment not getting correct meta field in Client Preset +- [#10499](https://github.com/dotansimha/graphql-code-generator/pull/10499) + [`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix nested fragment not getting correct meta + field in Client Preset ## 6.1.1 ### Patch Changes -- [#10498](https://github.com/dotansimha/graphql-code-generator/pull/10498) [`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2) Thanks [@ardatan](https://github.com/ardatan)! - Handle schema extension nodes correctly +- [#10498](https://github.com/dotansimha/graphql-code-generator/pull/10498) + [`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2) + Thanks [@ardatan](https://github.com/ardatan)! - Handle schema extension nodes correctly - When a schema doesn't have an operation type defined but has `schema extension` definitions with directives like below, - schema extensions are not converted to schema definitions by GraphQL Tools. + When a schema doesn't have an operation type defined but has `schema extension` definitions with + directives like below, schema extensions are not converted to schema definitions by GraphQL Tools. So the visitor should handle schema extension nodes correctly. Follow-up to https://github.com/ardatan/graphql-tools/pull/7679 @@ -74,228 +115,367 @@ ### Minor Changes -- [#10449](https://github.com/dotansimha/graphql-code-generator/pull/10449) [`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26) Thanks [@eddeee888](https://github.com/eddeee888)! - Add addInterfaceFieldResolverTypes option to support custom Interface resolver inheritance +- [#10449](https://github.com/dotansimha/graphql-code-generator/pull/10449) + [`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add addInterfaceFieldResolverTypes option to + support custom Interface resolver inheritance ## 6.0.1 ### Patch Changes -- [#10412](https://github.com/dotansimha/graphql-code-generator/pull/10412) [`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30) Thanks [@thekevinbrown](https://github.com/thekevinbrown)! - Add special handling for identifiers that consist entirely of _ characters when transformUnderscore is true. This prevents _ values in GraphQL enums from being emitted without identifers in the resulting types. +- [#10412](https://github.com/dotansimha/graphql-code-generator/pull/10412) + [`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30) + Thanks [@thekevinbrown](https://github.com/thekevinbrown)! - Add special handling for identifiers + that consist entirely of _ characters when transformUnderscore is true. This prevents _ values in + GraphQL enums from being emitted without identifers in the resulting types. ## 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)! - BREAKING CHANGES: Do not generate \_\_isTypeOf for non-implementing types or non-union members - -- [#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)! - Remove deprecated config option `dedupeFragments` - -- [#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)! - Remove NameNode override - -- [#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)! - BREAKING CHANGE: Use Record instead of {} for empty object type - -- [#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)! - Ensure Federation Interfaces have `__resolveReference` if they are resolvable entities - - BREAKING CHANGES: Deprecate `onlyResolveTypeForInterfaces` because majority of use cases cannot implement resolvers in Interfaces. - BREAKING CHANGES: Deprecate `generateInternalResolversIfNeeded.__resolveReference` because types do not have `__resolveReference` if they are not Federation entities or are not resolvable. Users should not have to manually set this option. This option was put in to wait for this major version. - -- [#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)! - BREAKING CHANGE: Improve Federation Entity's resolvers' parent param type: These types were using reference types inline. This makes it hard to handle mappers. The Parent type now all comes from ParentResolverTypes to make handling mappers and parent types simpler. - -- [#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)! - Bump dependencies major versions: - +- [#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)! - BREAKING CHANGES: Do not generate + \_\_isTypeOf for non-implementing types or non-union members + +- [#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)! - Remove deprecated config option + `dedupeFragments` + +- [#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)! - Remove NameNode override + +- [#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)! - BREAKING CHANGE: Use Record instead of {} for empty object type + +- [#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)! - Ensure Federation Interfaces have + `__resolveReference` if they are resolvable entities + + BREAKING CHANGES: Deprecate `onlyResolveTypeForInterfaces` because majority of use cases cannot + implement resolvers in Interfaces. BREAKING CHANGES: Deprecate + `generateInternalResolversIfNeeded.__resolveReference` because types do not have + `__resolveReference` if they are not Federation entities or are not resolvable. Users should not + have to manually set this option. This option was put in to wait for this major version. + +- [#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)! - BREAKING CHANGE: Improve Federation Entity's + resolvers' parent param type: These types were using reference types inline. This makes it hard to + handle mappers. The Parent type now all comes from ParentResolverTypes to make handling mappers + and parent types simpler. + +- [#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)! - Bump dependencies major versions: - dependency-graph to v1 -- [#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)! - Fix `mappers` usage with Federation +- [#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)! - Fix `mappers` usage with Federation - `mappers` was previously used as `__resolveReference`'s first param (usually called "reference"). However, this is incorrect because `reference` interface comes directly from `@key` and `@requires` directives. This patch fixes the issue by creating a new `FederationTypes` type and use it as the base for federation entity types when being used to type entity references. + `mappers` was previously used as `__resolveReference`'s first param (usually called "reference"). + However, this is incorrect because `reference` interface comes directly from `@key` and + `@requires` directives. This patch fixes the issue by creating a new `FederationTypes` type and + use it as the base for federation entity types when being used to type entity references. - BREAKING CHANGES: No longer generate `UnwrappedObject` utility type, as this was used to support the wrong previously generated type. + BREAKING CHANGES: No longer generate `UnwrappedObject` utility type, as this was used to support + the wrong previously generated type. -- [#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 ### Minor 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)! - Report to meta user defined objects whether they have isTypeOf resolver +- [#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)! - Report to meta user defined objects whether + they have isTypeOf resolver ### Patch 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)! - Update @requires type +- [#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)! - Update @requires type -- [#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)! - Fix fields or object types marked with @external being wrongly generated +- [#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)! - Fix fields or object types marked with + @external being wrongly generated -- 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.8.0 ### Minor Changes -- [#10315](https://github.com/dotansimha/graphql-code-generator/pull/10315) [`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc) Thanks [@eddeee888](https://github.com/eddeee888)! - Implement semanticNonNull custom directive +- [#10315](https://github.com/dotansimha/graphql-code-generator/pull/10315) + [`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc) + Thanks [@eddeee888](https://github.com/eddeee888)! - Implement semanticNonNull custom directive ## 5.7.1 ### Patch Changes -- [#10302](https://github.com/dotansimha/graphql-code-generator/pull/10302) [`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix Apollo unmask directive incorrectly generating fragmentRefs +- [#10302](https://github.com/dotansimha/graphql-code-generator/pull/10302) + [`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix Apollo unmask directive incorrectly + generating fragmentRefs ## 5.7.0 ### Minor Changes -- [#10270](https://github.com/dotansimha/graphql-code-generator/pull/10270) [`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c) Thanks [@adapap](https://github.com/adapap)! - feat: implement `includeExternalFragments: boolean` option +- [#10270](https://github.com/dotansimha/graphql-code-generator/pull/10270) + [`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c) + Thanks [@adapap](https://github.com/adapap)! - feat: implement `includeExternalFragments: boolean` + option ## 5.6.1 ### Patch Changes -- [#10230](https://github.com/dotansimha/graphql-code-generator/pull/10230) [`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix generateInternalResolversIfNeeded.\_\_resolveReference making the resolver required +- [#10230](https://github.com/dotansimha/graphql-code-generator/pull/10230) + [`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix + generateInternalResolversIfNeeded.\_\_resolveReference making the resolver required - `__resolveReference`'s default behaviour when not declared is to pass the ref to subsequent resolvers i.e. becoming the `parent`. So, it means we don't have to make this resolver required. + `__resolveReference`'s default behaviour when not declared is to pass the ref to subsequent + resolvers i.e. becoming the `parent`. So, it means we don't have to make this resolver required. - This patch makes `__resolveReference` optional when `generateInternalResolversIfNeeded.__resolveReference` is set to true. + This patch makes `__resolveReference` optional when + `generateInternalResolversIfNeeded.__resolveReference` is set to true. ## 5.6.0 ### Minor Changes -- [#10163](https://github.com/dotansimha/graphql-code-generator/pull/10163) [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for Apollo Client `@unmask` directive with fragment masking. +- [#10163](https://github.com/dotansimha/graphql-code-generator/pull/10163) + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba) + Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for Apollo Client `@unmask` + directive with fragment masking. ### Patch Changes -- [#10187](https://github.com/dotansimha/graphql-code-generator/pull/10187) [`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a) Thanks [@gilgardosh](https://github.com/gilgardosh)! - Fix: type naming for imported enums +- [#10187](https://github.com/dotansimha/graphql-code-generator/pull/10187) + [`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a) + Thanks [@gilgardosh](https://github.com/gilgardosh)! - Fix: type naming for imported enums ## 5.5.0 ### Minor Changes -- [#9989](https://github.com/dotansimha/graphql-code-generator/pull/9989) [`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc) Thanks [@eddeee888](https://github.com/eddeee888)! - Add `generateInternalResolversIfNeeded` option +- [#9989](https://github.com/dotansimha/graphql-code-generator/pull/9989) + [`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add `generateInternalResolversIfNeeded` + option - This option can be used to generate more correct types for internal resolvers. For example, only generate `__resolveReference` if the federation object has a resolvable `@key`. + This option can be used to generate more correct types for internal resolvers. For example, only + generate `__resolveReference` if the federation object has a resolvable `@key`. - In the future, this option can be extended to support other internal resolvers e.g. `__isTypeOf` is only generated for implementing types and union members. + In the future, this option can be extended to support other internal resolvers e.g. `__isTypeOf` + is only generated for implementing types and union members. -- [#10141](https://github.com/dotansimha/graphql-code-generator/pull/10141) [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03) Thanks [@eddeee888](https://github.com/eddeee888)! - Add avoidCheckingAbstractTypesRecursively to avoid checking and generating abstract types recursively +- [#10141](https://github.com/dotansimha/graphql-code-generator/pull/10141) + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add avoidCheckingAbstractTypesRecursively to + avoid checking and generating abstract types recursively - For users that already sets recursive default mappers e.g. `Partial<{T}>` or `DeepPartial<{T}>`, having both options on will cause a nested loop which eventually crashes Codegen. In such case, setting `avoidCheckingAbstractTypesRecursively: true` allows users to continue to use recursive default mappers as before. + For users that already sets recursive default mappers e.g. `Partial<{T}>` or `DeepPartial<{T}>`, + having both options on will cause a nested loop which eventually crashes Codegen. In such case, + setting `avoidCheckingAbstractTypesRecursively: true` allows users to continue to use recursive + default mappers as before. ### Patch Changes -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc)]: - @graphql-codegen/plugin-helpers@5.1.0 ## 5.4.0 ### Minor Changes -- [#10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) Thanks [@eddeee888](https://github.com/eddeee888)! - Extend `config.avoidOptions` to support query, mutation and subscription +- [#10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) + [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extend `config.avoidOptions` to support + query, mutation and subscription - Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and subscription fields non-optional. - Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` and `config.avoidOptions.subscription` can be used to target the respective types. + Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and + subscription fields non-optional. Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` + and `config.avoidOptions.subscription` can be used to target the respective types. ## 5.3.1 ### Patch Changes -- [#10014](https://github.com/dotansimha/graphql-code-generator/pull/10014) [`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix object types with fields being abstract types not pointing to resolver types correctly +- [#10014](https://github.com/dotansimha/graphql-code-generator/pull/10014) + [`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix object types with fields being abstract + types not pointing to resolver types correctly ## 5.3.0 ### Minor Changes -- [#10007](https://github.com/dotansimha/graphql-code-generator/pull/10007) [`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3) Thanks [@eddeee888](https://github.com/eddeee888)! - Add generated resolvers map type name to typescript-resolvers plugin meta +- [#10007](https://github.com/dotansimha/graphql-code-generator/pull/10007) + [`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add generated resolvers map type name to + typescript-resolvers plugin meta ### Patch Changes -- [#10019](https://github.com/dotansimha/graphql-code-generator/pull/10019) [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421) Thanks [@vhfmag](https://github.com/vhfmag)! - Improve code generation performance by computing `ClientSideBaseVisitor`'s `fragmentsGraph` once at instantiation time. +- [#10019](https://github.com/dotansimha/graphql-code-generator/pull/10019) + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421) + Thanks [@vhfmag](https://github.com/vhfmag)! - Improve code generation performance by computing + `ClientSideBaseVisitor`'s `fragmentsGraph` once at instantiation time. ## 5.2.0 ### Minor Changes -- [#9961](https://github.com/dotansimha/graphql-code-generator/pull/9961) [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e) Thanks [@eddeee888](https://github.com/eddeee888)! - Update typescript-resolvers to report generated resolver types in the run to meta field in the output +- [#9961](https://github.com/dotansimha/graphql-code-generator/pull/9961) + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e) + Thanks [@eddeee888](https://github.com/eddeee888)! - Update typescript-resolvers to report + generated resolver types in the run to meta field in the output ### Patch Changes -- [#9944](https://github.com/dotansimha/graphql-code-generator/pull/9944) [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431) Thanks [@eddeee888](https://github.com/eddeee888)! - Add \_ prefix to generated `RefType` in `ResolversInterfaceTypes` and `ResolversUnionTypes` as it is sometimes unused +- [#9944](https://github.com/dotansimha/graphql-code-generator/pull/9944) + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add \_ prefix to generated `RefType` in + `ResolversInterfaceTypes` and `ResolversUnionTypes` as it is sometimes unused -- [#9962](https://github.com/dotansimha/graphql-code-generator/pull/9962) [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix interface mappers not working in nested/self-referencing scenarios +- [#9962](https://github.com/dotansimha/graphql-code-generator/pull/9962) + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix interface mappers not working in + nested/self-referencing scenarios -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e)]: - @graphql-codegen/plugin-helpers@5.0.4 ## 5.1.0 ### Minor Changes -- [#9652](https://github.com/dotansimha/graphql-code-generator/pull/9652) [`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53) Thanks [@gmurphey](https://github.com/gmurphey)! - Added allowUndefinedQueryVariables as config option +- [#9652](https://github.com/dotansimha/graphql-code-generator/pull/9652) + [`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53) + Thanks [@gmurphey](https://github.com/gmurphey)! - Added allowUndefinedQueryVariables as config + option ### Patch Changes -- [#9842](https://github.com/dotansimha/graphql-code-generator/pull/9842) [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d) Thanks [@henryqdineen](https://github.com/henryqdineen)! - properly handle aliased conditionals +- [#9842](https://github.com/dotansimha/graphql-code-generator/pull/9842) + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d) + Thanks [@henryqdineen](https://github.com/henryqdineen)! - properly handle aliased conditionals ## 5.0.0 ### Major Changes -- [#9845](https://github.com/dotansimha/graphql-code-generator/pull/9845) [`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5) Thanks [@productdevbook](https://github.com/productdevbook)! - path starts with "#" +- [#9845](https://github.com/dotansimha/graphql-code-generator/pull/9845) + [`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5) + Thanks [@productdevbook](https://github.com/productdevbook)! - path starts with "#" ## 4.1.2 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/plugin-helpers@5.0.3 ## 4.1.1 ### Patch Changes -- [#9673](https://github.com/dotansimha/graphql-code-generator/pull/9673) [`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f) Thanks [@maclockard](https://github.com/maclockard)! - Respect avoidOptionals when all arguments are optional +- [#9673](https://github.com/dotansimha/graphql-code-generator/pull/9673) + [`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f) + Thanks [@maclockard](https://github.com/maclockard)! - Respect avoidOptionals when all arguments + are optional ## 4.1.0 ### Minor Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - fix: out-of-memory crash (fixes #7720) - perf: implement a caching mechanism that makes sure the type originating at the same location is never generated twice, as long as the combination of selected fields and possible types matches - feat: implement `extractAllFieldsToTypes: boolean` - feat: implement `printFieldsOnNewLines: boolean` +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - fix: out-of-memory crash (fixes #7720) perf: + implement a caching mechanism that makes sure the type originating at the same location is never + generated twice, as long as the combination of selected fields and possible types matches feat: + implement `extractAllFieldsToTypes: boolean` feat: implement `printFieldsOnNewLines: boolean` ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - Avoid reading from null values when selection sets + only contain fragments. -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - Avoid reading from null values when selection sets only contain fragments. - -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 ## 4.0.1 ### Patch Changes -- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string +- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) + [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string - We changed the ID Scalar input type from `string` to `string | number` in the latest major version of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. + We changed the ID Scalar input type from `string` to `string | number` in the latest major version + of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that + depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on + setup which is confusing. ## 4.0.0 ### Major Changes -- [#9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) Thanks [@eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types - - In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID: +- [#9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) + Thanks [@eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types + In GraphQL, Scalar types can be different for client and server. For example, given the native + GraphQL ID: - A client may send `string` or `number` in the input - A client receives `string` in its selection set (i.e output) - - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from the client to `string`) - - A server may return `string` or `number` (GraphQL serializes the value to `string` before sending it to the client ) + - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from + the client to `string`) + - A server may return `string` or `number` (GraphQL serializes the value to `string` before + sending it to the client ) - Currently, we represent every Scalar with only one type. This is what codegen generates as base type: + Currently, we represent every Scalar with only one type. This is what codegen generates as base + type: ```ts export type Scalars = { @@ -340,7 +520,8 @@ } ``` - Note that for `typescript-resolvers`, the type of ID needs to be inverted. However, the referenced types in GraphQL input/output types should still work correctly: + Note that for `typescript-resolvers`, the type of ID needs to be inverted. However, the referenced + types in GraphQL input/output types should still work correctly: ```ts export type Scalars = { @@ -371,7 +552,6 @@ *** Config changes: - 1. Scalars option can now take input/output types: ```ts @@ -385,7 +565,8 @@ } ``` - 2. If a string is given (instead of an object with input/output fields), it will be used as both input and output types: + 2. If a string is given (instead of an object with input/output fields), it will be used as both + input and output types: ```ts config: { @@ -418,21 +599,30 @@ *** - BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are a plugin maintainer and reference Scalar, please update your plugin to use the correct input/output types. + BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are + a plugin maintainer and reference Scalar, please update your plugin to use the correct + input/output types. -- [`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 ### Minor Changes -- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support +- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) + Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support - When a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved. + When a query includes a deferred fragment field, the server will return a partial response with + the non-deferred fields first, followed by the remaining fields once they have been resolved. - Once start using the `@defer` directive in your queries, the generated code will automatically include support for the directive. + Once start using the `@defer` directive in your queries, the generated code will automatically + include support for the directive. ```jsx // src/index.tsx import { graphql } from './gql' + const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { @@ -452,7 +642,8 @@ `) ``` - The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ meaning it may not be available right away. + The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ + meaning it may not be available right away. ```tsx // gql/graphql.ts @@ -463,8 +654,9 @@ }) ``` - Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred - fragment is available: + Apart from generating code that includes support for the `@defer` directive, the Codegen also + exports a utility function called `isFragmentReady`. You can use it to conditionally render + components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType }) => { @@ -488,9 +680,14 @@ export default App; ``` -- [#9339](https://github.com/dotansimha/graphql-code-generator/pull/9339) [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c) Thanks [@AaronMoat](https://github.com/AaronMoat)! - Add excludeTypes config to resolversNonOptionalTypename +- [#9339](https://github.com/dotansimha/graphql-code-generator/pull/9339) + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c) + Thanks [@AaronMoat](https://github.com/AaronMoat)! - Add excludeTypes config to + resolversNonOptionalTypename - This disables the adding of `__typename` in resolver types for any specified typename. This could be useful e.g. if you're wanting to enable this for all new types going forward but not do a big migration. + This disables the adding of `__typename` in resolver types for any specified typename. This could + be useful e.g. if you're wanting to enable this for all new types going forward but not do a big + migration. Usage example: @@ -511,15 +708,24 @@ } ``` -- [#9229](https://github.com/dotansimha/graphql-code-generator/pull/9229) [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c) Thanks [@eddeee888](https://github.com/eddeee888)! - Use generic to simplify ResolversUnionTypes - - This follows the `ResolversInterfaceTypes`'s approach where the `RefType` generic is used to refer back to `ResolversTypes` or `ResolversParentTypes` in cases of nested Union types +- [#9229](https://github.com/dotansimha/graphql-code-generator/pull/9229) + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c) + Thanks [@eddeee888](https://github.com/eddeee888)! - Use generic to simplify ResolversUnionTypes -- [#9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) Thanks [@esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on Enums. + This follows the `ResolversInterfaceTypes`'s approach where the `RefType` generic is used to refer + back to `ResolversTypes` or `ResolversParentTypes` in cases of nested Union types -- [#9229](https://github.com/dotansimha/graphql-code-generator/pull/9229) [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c) Thanks [@eddeee888](https://github.com/eddeee888)! - Extract interfaces to ResolversInterfaceTypes and add to resolversNonOptionalTypename +- [#9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) + Thanks [@esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on + Enums. - 1. `ResolversInterfaceTypes` is a new type that keeps track of a GraphQL interface and its implementing types. +- [#9229](https://github.com/dotansimha/graphql-code-generator/pull/9229) + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extract interfaces to ResolversInterfaceTypes + and add to resolversNonOptionalTypename + 1. `ResolversInterfaceTypes` is a new type that keeps track of a GraphQL interface and its + implementing types. For example, consider this schema: @@ -569,8 +775,8 @@ } ``` - The `RefType` generic is used to reference back to `ResolversTypes` and `ResolversParentTypes` in some cases such as field returning a Union. - + 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` Using the schema above, if we use `resolversNonOptionalTypename` option: @@ -615,38 +821,67 @@ ### Patch Changes -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - - Updated dependency [`@graphql-tools/optimize@^2.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/optimize/v/2.0.0) (from `^1.3.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/relay-operation-optimizer@^7.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/relay-operation-optimizer/v/7.0.0) (from `^6.5.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) (from `^9.0.0`, in `dependencies`) - -- [#9414](https://github.com/dotansimha/graphql-code-generator/pull/9414) [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d) Thanks [@beerose](https://github.com/beerose)! - Include nested fragments in string documentMode - -- [#9369](https://github.com/dotansimha/graphql-code-generator/pull/9369) [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30) Thanks [@asmundg](https://github.com/asmundg)! - Output valid type names with mergeFragmentTypes - -- 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)]: +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-tools/optimize@^2.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/optimize/v/2.0.0) + (from `^1.3.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/relay-operation-optimizer@^7.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/relay-operation-optimizer/v/7.0.0) + (from `^6.5.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) + (from `^9.0.0`, in `dependencies`) + +- [#9414](https://github.com/dotansimha/graphql-code-generator/pull/9414) + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d) + Thanks [@beerose](https://github.com/beerose)! - Include nested fragments in string documentMode + +- [#9369](https://github.com/dotansimha/graphql-code-generator/pull/9369) + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30) + Thanks [@asmundg](https://github.com/asmundg)! - Output valid type names with mergeFragmentTypes + +- 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 ## 3.1.1 ### Patch Changes -- [#9301](https://github.com/dotansimha/graphql-code-generator/pull/9301) [`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85) Thanks [@wassim-k](https://github.com/wassim-k)! - Fix fragment imports for near-operation-file with graphQLTag +- [#9301](https://github.com/dotansimha/graphql-code-generator/pull/9301) + [`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85) + Thanks [@wassim-k](https://github.com/wassim-k)! - Fix fragment imports for near-operation-file + with graphQLTag -- [#9231](https://github.com/dotansimha/graphql-code-generator/pull/9231) [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00) Thanks [@eddeee888](https://github.com/eddeee888)! - Implement resolversNonOptionalTypename for mapper cases +- [#9231](https://github.com/dotansimha/graphql-code-generator/pull/9231) + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00) + Thanks [@eddeee888](https://github.com/eddeee888)! - Implement resolversNonOptionalTypename for + mapper cases ## 3.1.0 ### Minor Changes -- [#9146](https://github.com/dotansimha/graphql-code-generator/pull/9146) [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd) Thanks [@eddeee888](https://github.com/eddeee888)! - [typescript-resolvers] Add `resolversNonOptionalTypename` config option. +- [#9146](https://github.com/dotansimha/graphql-code-generator/pull/9146) + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd) + Thanks [@eddeee888](https://github.com/eddeee888)! - [typescript-resolvers] Add + `resolversNonOptionalTypename` config option. - This is extending on `ResolversUnionTypes` implemented in https://github.com/dotansimha/graphql-code-generator/pull/9069 + This is extending on `ResolversUnionTypes` implemented in + https://github.com/dotansimha/graphql-code-generator/pull/9069 - `resolversNonOptionalTypename` adds non-optional `__typename` to union members of `ResolversUnionTypes`, without affecting the union members' base intefaces. + `resolversNonOptionalTypename` adds non-optional `__typename` to union members of + `ResolversUnionTypes`, without affecting the union members' base intefaces. - A common use case for non-optional `__typename` of union members is using it as the common field to work out the final schema type. This makes implementing the union's `__resolveType` very simple as we can use `__typename` to decide which union member the resolved object is. Without this, we have to check the existence of field/s on the incoming object which could be verbose. + A common use case for non-optional `__typename` of union members is using it as the common field + to work out the final schema type. This makes implementing the union's `__resolveType` very simple + as we can use `__typename` to decide which union member the resolved object is. Without this, we + have to check the existence of field/s on the incoming object which could be verbose. For example, consider this schema: @@ -671,7 +906,8 @@ union BookPayload = BookResult | PayloadError ``` - _With optional `__typename`:_ We need to check existence of certain fields to resolve type in the union resolver: + _With optional `__typename`:_ We need to check existence of certain fields to resolve type in the + union resolver: ```ts // Query/book.ts @@ -701,7 +937,8 @@ } ``` - _With non-optional `__typename`:_ Resolvers declare the type. This which gives us better TypeScript support in resolvers and simplify `__resolveType` implementation: + _With non-optional `__typename`:_ Resolvers declare the type. This which gives us better + TypeScript support in resolvers and simplify `__resolveType` implementation: ```ts // Query/book.ts @@ -746,16 +983,22 @@ ### Patch Changes -- [#9206](https://github.com/dotansimha/graphql-code-generator/pull/9206) [`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix `ResolversUnionTypes` being used in `ResolversParentTypes` +- [#9206](https://github.com/dotansimha/graphql-code-generator/pull/9206) + [`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix `ResolversUnionTypes` being used in + `ResolversParentTypes` - Previously, objects with mappable fields are converted to Omit format that references its own type group or `ResolversTypes` or `ResolversParentTypes` e.g. + Previously, objects with mappable fields are converted to Omit format that references its own type + group or `ResolversTypes` or `ResolversParentTypes` e.g. ```ts export type ResolversTypes = { Book: ResolverTypeWrapper BookPayload: ResolversTypes['BookResult'] | ResolversTypes['StandardError'] // Note: `result` on the next line references `ResolversTypes["Book"]` - BookResult: ResolverTypeWrapper & { result?: Maybe }> + BookResult: ResolverTypeWrapper< + Omit & { result?: Maybe } + > StandardError: ResolverTypeWrapper } @@ -768,18 +1011,23 @@ } ``` - In https://github.com/dotansimha/graphql-code-generator/pull/9069, we extracted resolver union types to its own group: + In https://github.com/dotansimha/graphql-code-generator/pull/9069, we extracted resolver union + types to its own group: ```ts export type ResolversUnionTypes = { // Note: `result` on the next line references `ResolversTypes["Book"]` which is only correct for the `ResolversTypes` case - BookPayload: (Omit & { result?: Maybe }) | StandardError + BookPayload: + | (Omit & { result?: Maybe }) + | StandardError } export type ResolversTypes = { Book: ResolverTypeWrapper BookPayload: ResolverTypeWrapper - BookResult: ResolverTypeWrapper & { result?: Maybe }> + BookResult: ResolverTypeWrapper< + Omit & { result?: Maybe } + > StandardError: ResolverTypeWrapper } @@ -791,11 +1039,14 @@ } ``` - This change creates an extra `ResolversUnionParentTypes` that is referenced by `ResolversParentTypes` to ensure backwards compatibility: + This change creates an extra `ResolversUnionParentTypes` that is referenced by + `ResolversParentTypes` to ensure backwards compatibility: ```ts export type ResolversUnionTypes = { - BookPayload: (Omit & { result?: Maybe }) | StandardError + BookPayload: + | (Omit & { result?: Maybe }) + | StandardError } // ... and the reference is changed in ResolversParentTypes: @@ -805,135 +1056,206 @@ } ``` -- [#9194](https://github.com/dotansimha/graphql-code-generator/pull/9194) [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08) Thanks [@dstaley](https://github.com/dstaley)! - Don't emit import statements for unused fragments +- [#9194](https://github.com/dotansimha/graphql-code-generator/pull/9194) + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08) + Thanks [@dstaley](https://github.com/dstaley)! - Don't emit import statements for unused fragments -- Updated dependencies [[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]: +- Updated dependencies + [[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]: - @graphql-codegen/plugin-helpers@4.2.0 ## 3.0.2 ### Patch Changes -- [#9110](https://github.com/dotansimha/graphql-code-generator/pull/9110) [`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a) Thanks [@gilgardosh](https://github.com/gilgardosh)! - Custom mappers with placeholder will apply omit +- [#9110](https://github.com/dotansimha/graphql-code-generator/pull/9110) + [`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a) + Thanks [@gilgardosh](https://github.com/gilgardosh)! - Custom mappers with placeholder will apply + omit -- [#9069](https://github.com/dotansimha/graphql-code-generator/pull/9069) [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc) Thanks [@eddeee888](https://github.com/eddeee888)! - Extract union types to ResolversUnionTypes +- [#9069](https://github.com/dotansimha/graphql-code-generator/pull/9069) + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extract union types to ResolversUnionTypes -- [#8895](https://github.com/dotansimha/graphql-code-generator/pull/8895) [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c) Thanks [@benkroeger](https://github.com/benkroeger)! - Preserve .js extension when importDocumentNodeExternallyFrom and emitLegacyCommonJSImports is false +- [#8895](https://github.com/dotansimha/graphql-code-generator/pull/8895) + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c) + Thanks [@benkroeger](https://github.com/benkroeger)! - Preserve .js extension when + importDocumentNodeExternallyFrom and emitLegacyCommonJSImports is false ## 3.0.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) -- [#8971](https://github.com/dotansimha/graphql-code-generator/pull/8971) [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Always inline referenced fragments within their document. This prevents issues with duplicated fragments or missing fragments. +- [#8971](https://github.com/dotansimha/graphql-code-generator/pull/8971) + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Always inline referenced fragments within their + document. This prevents issues with duplicated fragments or missing fragments. -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 ## 3.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 -- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes +- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) + [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) + Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes -- 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 ## 2.13.8 ### Patch Changes -- [#8816](https://github.com/dotansimha/graphql-code-generator/pull/8816) [`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a) Thanks [@charle692](https://github.com/charle692)! - Fix issue where visitor-plugin-common emitted ESM imports for Operations when emitLegacyCommonJSImports is true +- [#8816](https://github.com/dotansimha/graphql-code-generator/pull/8816) + [`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a) + Thanks [@charle692](https://github.com/charle692)! - Fix issue where visitor-plugin-common emitted + ESM imports for Operations when emitLegacyCommonJSImports is true ## 2.13.7 ### Patch Changes -- [#8755](https://github.com/dotansimha/graphql-code-generator/pull/8755) [`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560) Thanks [@schmod](https://github.com/schmod)! - avoid using TypeScript namespace imports for enums +- [#8755](https://github.com/dotansimha/graphql-code-generator/pull/8755) + [`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560) + Thanks [@schmod](https://github.com/schmod)! - avoid using TypeScript namespace imports for enums ## 2.13.6 ### Patch Changes -- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.8.0`, in `dependencies`) -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.8.0`, in `dependencies`) +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 ## 2.13.5 ### 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 ## 2.13.4 ### Patch Changes -- [#8686](https://github.com/dotansimha/graphql-code-generator/pull/8686) [`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`change-case-all@1.0.15` ↗︎](https://www.npmjs.com/package/change-case-all/v/1.0.15) (from `1.0.14`, in `dependencies`) -- 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)]: +- [#8686](https://github.com/dotansimha/graphql-code-generator/pull/8686) + [`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`change-case-all@1.0.15` ↗︎](https://www.npmjs.com/package/change-case-all/v/1.0.15) (from + `1.0.14`, in `dependencies`) +- 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 ## 2.13.3 ### Patch Changes -- [#8664](https://github.com/dotansimha/graphql-code-generator/pull/8664) [`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe) Thanks [@jdmoody](https://github.com/jdmoody)! - Fix issue where selection set flattening uses the wrong parent type +- [#8664](https://github.com/dotansimha/graphql-code-generator/pull/8664) + [`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe) + Thanks [@jdmoody](https://github.com/jdmoody)! - Fix issue where selection set flattening uses the + wrong parent type ## 2.13.2 ### Patch Changes -- [#8586](https://github.com/dotansimha/graphql-code-generator/pull/8586) [`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122) Thanks [@levrik](https://github.com/levrik)! - Fix incompatibility between `@oneOf` input types and declaration kind other than `type` +- [#8586](https://github.com/dotansimha/graphql-code-generator/pull/8586) + [`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122) + Thanks [@levrik](https://github.com/levrik)! - Fix incompatibility between `@oneOf` input types + and declaration kind other than `type` ## 2.13.1 ### Patch Changes -- [#8525](https://github.com/dotansimha/graphql-code-generator/pull/8525) [`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127) Thanks [@charlypoly](https://github.com/charlypoly)! - remove `DetailledError`, not supported by Listr renderer +- [#8525](https://github.com/dotansimha/graphql-code-generator/pull/8525) + [`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127) + Thanks [@charlypoly](https://github.com/charlypoly)! - remove `DetailledError`, not supported by + Listr renderer -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/plugin-helpers@2.7.2 ## 2.13.0 ### Minor Changes -- [#8498](https://github.com/dotansimha/graphql-code-generator/pull/8498) [`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b) Thanks [@charlypoly](https://github.com/charlypoly)! - Fragment masking ` $fragmentName` and ` $fragmentRefs` are optionals +- [#8498](https://github.com/dotansimha/graphql-code-generator/pull/8498) + [`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b) + Thanks [@charlypoly](https://github.com/charlypoly)! - Fragment masking ` $fragmentName` and + ` $fragmentRefs` are optionals ## 2.12.2 ### Patch Changes -- [#8432](https://github.com/dotansimha/graphql-code-generator/pull/8432) [`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714) Thanks [@mvestergaard](https://github.com/mvestergaard)! - Remove extension from operations file import +- [#8432](https://github.com/dotansimha/graphql-code-generator/pull/8432) + [`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714) + Thanks [@mvestergaard](https://github.com/mvestergaard)! - Remove extension from operations file + import ## 2.12.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` -- [#8185](https://github.com/dotansimha/graphql-code-generator/pull/8185) [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74) Thanks [@chrisands](https://github.com/chrisands)! - Fix emitLegacyCommonJSImports to being passed +- [#8185](https://github.com/dotansimha/graphql-code-generator/pull/8185) + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74) + Thanks [@chrisands](https://github.com/chrisands)! - Fix emitLegacyCommonJSImports to being passed -- 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 ## 2.12.0 ### Minor Changes -- 2cbcbb371: Add new flag to emit legacy common js imports. Default it will be `true` this way it ensure that generated code works with [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065). +- 2cbcbb371: Add new flag to emit legacy common js imports. Default it will be `true` this way it + ensure that generated code works with + [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065). You can use the option in your config: @@ -959,14 +1281,16 @@ ### Patch Changes -- 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an import with a `.js` extension. +- 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an + import with a `.js` extension. ## 2.11.0 ### Minor Changes - 68bb30e19: Attach `.js` extension to imports starting with either a `.` or `/` character. -- 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) @@ -993,8 +1317,10 @@ ### Patch Changes - d16bebacb: Update @graphql-tools/relay-operation-optimizer package; - - - Previously that package used relay-compiler@12 which has graphql v15 as a peer dependency and it was causing peer dependency warnings if user installs a different version of `graphql` package. Now we forked and released v12 under a different name and removed version range for `graphql` in `peerDependencies` of `relay-compiler` + - Previously that package used relay-compiler@12 which has graphql v15 as a peer dependency and it + was causing peer dependency warnings if user installs a different version of `graphql` package. + Now we forked and released v12 under a different name and removed version range for `graphql` in + `peerDependencies` of `relay-compiler` ## 2.9.0 @@ -1042,13 +1368,15 @@ ### Patch Changes -- fd55e2039: fix incorrect type generation when using the inlineFragmentTypes 'combine' option that resulted in generating masked fragment output. +- fd55e2039: fix incorrect type generation when using the inlineFragmentTypes 'combine' option that + resulted in generating masked fragment output. ## 2.7.0 ### Minor Changes -- 1479233df: Add new `inlineFragmentTypes` mode `'mask'`, which allows generating masked fragment types. +- 1479233df: Add new `inlineFragmentTypes` mode `'mask'`, which allows generating masked fragment + types. ## 2.6.0 @@ -1093,7 +1421,8 @@ ### Minor Changes -- ad02cb9b8: Fixed an issue where ResolversParentTypes referenced non-existing fields of ResolversParentTypes when the corresponding type was a mapped enum. +- ad02cb9b8: Fixed an issue where ResolversParentTypes referenced non-existing fields of + ResolversParentTypes when the corresponding type was a mapped enum. ## 2.3.0 @@ -1121,7 +1450,10 @@ **WARNING:** Using this option does only change the type definitions. - For actually ensuring that a type is correct at runtime you will have to use schema transforms (e.g. with [@graphql-tools/utils mapSchema](https://www.graphql-tools.com/docs/schema-directives)) that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause unnoticed bugs or runtime errors. + For actually ensuring that a type is correct at runtime you will have to use schema transforms + (e.g. with [@graphql-tools/utils mapSchema](https://www.graphql-tools.com/docs/schema-directives)) + that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause + unnoticed bugs or runtime errors. Please use this configuration option with care! @@ -1162,7 +1494,10 @@ **WARNING:** Using this option does only change the generated type definitions. - For actually ensuring that a type is correct at runtime you will have to use schema transforms (e.g. with [@graphql-tools/utils mapSchema](https://www.graphql-tools.com/docs/schema-directives)) that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause unnoticed bugs or runtime errors. + For actually ensuring that a type is correct at runtime you will have to use schema transforms + (e.g. with [@graphql-tools/utils mapSchema](https://www.graphql-tools.com/docs/schema-directives)) + that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause + unnoticed bugs or runtime errors. Example configuration: @@ -1256,13 +1591,17 @@ ‼️ ‼️ ‼️ 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 -- d80efdec4: Add option `inlineFragmentTypes` for deep inlining fragment types within operation types. This `inlineFragmentTypes` is set to `inline` by default (Previous behaviour is `combine`). +- d80efdec4: Add option `inlineFragmentTypes` for deep inlining fragment types within operation + types. This `inlineFragmentTypes` is set to `inline` by default (Previous behaviour is `combine`). - This behavior is the better default for users that only use Fragments for building operations and then want to have access to all the data via the operation type (instead of accessing slices of the data via fragments). + This behavior is the better default for users that only use Fragments for building operations and + then want to have access to all the data via the operation type (instead of accessing slices of + the data via fragments). - Updated dependencies [b0cb13df4] - @graphql-codegen/plugin-helpers@2.0.0 @@ -1271,7 +1610,8 @@ ### Minor Changes -- 9005cc17: add `allowEnumStringTypes` option for allowing string literals as valid return types from resolvers in addition to enum values.\_ +- 9005cc17: add `allowEnumStringTypes` option for allowing string literals as valid return types + from resolvers in addition to enum values.\_ ### Patch Changes @@ -1334,14 +1674,16 @@ ### Minor Changes -- d4942d04: NEW CONFIG (`onlyResolveTypeForInterfaces`): Allow to generate only \_\_resolveType for interfaces +- d4942d04: NEW CONFIG (`onlyResolveTypeForInterfaces`): Allow to generate only \_\_resolveType for + interfaces ### Patch Changes - e947f8e3: Allow to have declarationKind of type: class, interface: interface - 29b75b1e: enhance(docs): improve docs for naming convention - 1f6f3db6: Fix for @skip @include directives upon arrays -- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention +- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming + convention - Updated dependencies [29b75b1e] - @graphql-codegen/plugin-helpers@1.18.3 @@ -1372,7 +1714,8 @@ ### Minor Changes -- bd4bf7cf: feat(visitor-plugin-common): add ignoreEnumValuesFromSchema to ignore enum values from GraphQLSchema +- bd4bf7cf: feat(visitor-plugin-common): add ignoreEnumValuesFromSchema to ignore enum values from + GraphQLSchema ## 1.17.22 @@ -1380,13 +1723,15 @@ - 64293437: Support for input lists coercion - fd5843a7: Fixed a bug where some import namespacing is missed when generating resolver types. -- d75051f5: generate correct types for fragments with an interface type condition that are spread on an interface field. +- d75051f5: generate correct types for fragments with an interface type condition that are spread on + an interface field. ## 1.17.21 ### Patch Changes -- 8356f8a2: Extended behaviour to allow support in `internalResolversPrefix` flag for resolvers plugin +- 8356f8a2: Extended behaviour to allow support in `internalResolversPrefix` flag for resolvers + plugin ## 1.17.20 @@ -1407,14 +1752,16 @@ ### Patch Changes -- faa13973: Fixed a bug in `parseMapper` that were preventing to use mappers with complex type usages +- faa13973: Fixed a bug in `parseMapper` that were preventing to use mappers with complex type + usages ## 1.17.17 ### Patch Changes - 612e5e52: remove broken isTypeOf call for expanding fragments with flattenGeneratedTypes = true -- 9f2a4e2f: Expose `_hasRequiredVariables` to `buildOperation` in order to allow better type-safety for plugins that deals with `variables` +- 9f2a4e2f: Expose `_hasRequiredVariables` to `buildOperation` in order to allow better type-safety + for plugins that deals with `variables` - 0f35e775: Fix issues with incorrect naming of operation and variables when used with typesSuffix - Updated dependencies [eaf45d1f] - @graphql-codegen/plugin-helpers@1.18.1 @@ -1439,15 +1786,18 @@ ### Patch Changes -- 07f9b1b2: Fix a bug caused numeric enum values defined in the GraphQLSchema to be printed incorrectly -- 35f67120: bugfix: allow to specify mappers for GraphQL `interface` and override the default behaviour. +- 07f9b1b2: Fix a bug caused numeric enum values defined in the GraphQLSchema to be printed + incorrectly +- 35f67120: bugfix: allow to specify mappers for GraphQL `interface` and override the default + behaviour. ## 1.17.13 ### 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 @@ -1456,7 +1806,8 @@ ### Patch Changes -- 4266a15f: Allow getDocumentNodeSignature to control the entire generation flow of the typed documents +- 4266a15f: Allow getDocumentNodeSignature to control the entire generation flow of the typed + documents ## 1.17.11 @@ -1480,4 +1831,5 @@ ### Patch Changes -- ce3a5798: Publish minor version to include fixes for client-side-base-visitor, required to v2 of ts-react-apollo plugin (for unified apollo import) +- ce3a5798: Publish minor version to include fixes for client-side-base-visitor, required to v2 of + ts-react-apollo plugin (for unified apollo import) diff --git a/packages/plugins/other/visitor-plugin-common/package.json b/packages/plugins/other/visitor-plugin-common/package.json index 90309c05e6c..8e90ce735fa 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.2.4", + "version": "6.2.5", "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.1.1", + "@graphql-codegen/plugin-helpers": "^6.2.2", "@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 96ab5b334fe..7a23c98ae7a 100644 --- a/packages/plugins/typescript/document-nodes/CHANGELOG.md +++ b/packages/plugins/typescript/document-nodes/CHANGELOG.md @@ -1,12 +1,33 @@ # @graphql-codegen/typescript-document-nodes +## 5.0.10 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 5.0.9 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) (from `6.2.3`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) + (from `6.2.3`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/visitor-plugin-common@6.2.4 @@ -14,28 +35,33 @@ ### Patch Changes -- Updated dependencies [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: +- Updated dependencies + [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: - @graphql-codegen/visitor-plugin-common@6.2.3 ## 5.0.7 ### Patch Changes -- Updated dependencies [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: +- Updated dependencies + [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: - @graphql-codegen/visitor-plugin-common@6.2.2 ## 5.0.6 ### Patch Changes -- Updated dependencies [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: +- Updated dependencies + [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: - @graphql-codegen/visitor-plugin-common@6.2.1 ## 5.0.5 ### Patch Changes -- Updated dependencies [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/visitor-plugin-common@6.2.0 - @graphql-codegen/plugin-helpers@6.1.0 @@ -43,39 +69,59 @@ ### Patch Changes -- Updated dependencies [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: +- Updated dependencies + [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: - @graphql-codegen/visitor-plugin-common@6.1.2 ## 5.0.3 ### Patch Changes -- Updated dependencies [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: +- Updated dependencies + [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: - @graphql-codegen/visitor-plugin-common@6.1.1 ## 5.0.2 ### Patch Changes -- Updated dependencies [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: +- Updated dependencies + [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: - @graphql-codegen/visitor-plugin-common@6.1.0 ## 5.0.1 ### Patch Changes -- Updated dependencies [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: +- Updated dependencies + [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: - @graphql-codegen/visitor-plugin-common@6.0.1 ## 5.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 - -### 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), [`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)]: +- [#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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 @@ -83,42 +129,50 @@ ### Patch Changes -- Updated dependencies [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: +- Updated dependencies + [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: - @graphql-codegen/visitor-plugin-common@5.8.0 ## 4.0.15 ### Patch Changes -- Updated dependencies [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: +- Updated dependencies + [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: - @graphql-codegen/visitor-plugin-common@5.7.1 ## 4.0.14 ### Patch Changes -- Updated dependencies [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: +- Updated dependencies + [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: - @graphql-codegen/visitor-plugin-common@5.7.0 ## 4.0.13 ### Patch Changes -- Updated dependencies [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: +- Updated dependencies + [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: - @graphql-codegen/visitor-plugin-common@5.6.1 ## 4.0.12 ### Patch Changes -- Updated dependencies [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: +- Updated dependencies + [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - @graphql-codegen/visitor-plugin-common@5.6.0 ## 4.0.11 ### Patch Changes -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - @graphql-codegen/visitor-plugin-common@5.5.0 - @graphql-codegen/plugin-helpers@5.1.0 @@ -126,28 +180,36 @@ ### Patch Changes -- Updated dependencies [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: +- Updated dependencies + [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - @graphql-codegen/visitor-plugin-common@5.4.0 ## 4.0.9 ### Patch Changes -- Updated dependencies [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: +- Updated dependencies + [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - @graphql-codegen/visitor-plugin-common@5.3.1 ## 4.0.8 ### Patch Changes -- Updated dependencies [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: +- Updated dependencies + [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - @graphql-codegen/visitor-plugin-common@5.3.0 ## 4.0.7 ### Patch Changes -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - @graphql-codegen/plugin-helpers@5.0.4 - @graphql-codegen/visitor-plugin-common@5.2.0 @@ -155,23 +217,29 @@ ### Patch Changes -- Updated dependencies [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: +- Updated dependencies + [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - @graphql-codegen/visitor-plugin-common@5.1.0 ## 4.0.5 ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 ## 4.0.4 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/plugin-helpers@5.0.3 @@ -179,16 +247,24 @@ ### Patch Changes -- Updated dependencies [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: +- Updated dependencies + [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - @graphql-codegen/visitor-plugin-common@4.1.1 ## 4.0.2 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 - @graphql-codegen/visitor-plugin-common@4.1.0 @@ -196,18 +272,34 @@ ### Patch Changes -- Updated dependencies [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: +- Updated dependencies + [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - @graphql-codegen/visitor-plugin-common@4.0.1 ## 4.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 - -### Patch Changes - -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- [`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), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 @@ -215,14 +307,21 @@ ### Patch Changes -- Updated dependencies [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: +- Updated dependencies + [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - @graphql-codegen/visitor-plugin-common@3.1.1 ## 3.0.3 ### Patch Changes -- Updated dependencies [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: +- Updated dependencies + [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - @graphql-codegen/visitor-plugin-common@3.1.0 - @graphql-codegen/plugin-helpers@4.2.0 @@ -230,16 +329,27 @@ ### Patch Changes -- Updated dependencies [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: +- Updated dependencies + [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - @graphql-codegen/visitor-plugin-common@3.0.2 ## 3.0.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 - @graphql-codegen/visitor-plugin-common@3.0.1 @@ -247,11 +357,15 @@ ### 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 @@ -259,21 +373,26 @@ ### Patch Changes -- Updated dependencies [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: +- Updated dependencies + [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: - @graphql-codegen/visitor-plugin-common@2.13.8 ## 2.3.12 ### Patch Changes -- Updated dependencies [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: +- Updated dependencies + [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: - @graphql-codegen/visitor-plugin-common@2.13.7 ## 2.3.11 ### Patch Changes -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 - @graphql-codegen/visitor-plugin-common@2.13.6 @@ -281,9 +400,13 @@ ### 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), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/visitor-plugin-common@2.13.5 @@ -291,7 +414,11 @@ ### Patch Changes -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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), + [`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 - @graphql-codegen/visitor-plugin-common@2.13.4 @@ -299,21 +426,24 @@ ### Patch Changes -- Updated dependencies [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: +- Updated dependencies + [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: - @graphql-codegen/visitor-plugin-common@2.13.3 ## 2.3.7 ### Patch Changes -- Updated dependencies [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: +- Updated dependencies + [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: - @graphql-codegen/visitor-plugin-common@2.13.2 ## 2.3.6 ### Patch Changes -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/visitor-plugin-common@2.13.1 - @graphql-codegen/plugin-helpers@2.7.2 @@ -321,23 +451,30 @@ ### Patch Changes -- Updated dependencies [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: +- Updated dependencies + [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: - @graphql-codegen/visitor-plugin-common@2.13.0 ## 2.3.4 ### Patch Changes -- Updated dependencies [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: +- Updated dependencies + [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: - @graphql-codegen/visitor-plugin-common@2.12.2 ## 2.3.3 ### 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), [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f), + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: - @graphql-codegen/visitor-plugin-common@2.12.1 - @graphql-codegen/plugin-helpers@2.6.2 @@ -360,7 +497,8 @@ ### 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) @@ -565,7 +703,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 @@ -631,7 +770,8 @@ ### Patch Changes - 29b75b1e: enhance(docs): improve docs for naming convention -- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention +- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming + convention - Updated dependencies [e947f8e3] - Updated dependencies [29b75b1e] - Updated dependencies [d4942d04] @@ -654,7 +794,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/visitor-plugin-common@1.17.13 diff --git a/packages/plugins/typescript/document-nodes/package.json b/packages/plugins/typescript/document-nodes/package.json index 93271875a8a..47f005d3e82 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.9", + "version": "5.0.10", "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.1.1", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "auto-bind": "~4.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 1b5a96bcf35..163f0ab18f3 100644 --- a/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md +++ b/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md @@ -1,13 +1,36 @@ # @graphql-codegen/gql-tag-operations +## 5.1.5 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 5.1.4 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) - - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) (from `6.2.3`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) + (from `^10.0.0`, in `dependencies`) + - Updated dependency + [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) + (from `6.2.3`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/visitor-plugin-common@6.2.4 @@ -15,32 +38,39 @@ ### Patch Changes -- Updated dependencies [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: +- Updated dependencies + [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: - @graphql-codegen/visitor-plugin-common@6.2.3 ## 5.1.2 ### Patch Changes -- Updated dependencies [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: +- Updated dependencies + [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: - @graphql-codegen/visitor-plugin-common@6.2.2 ## 5.1.1 ### Patch Changes -- Updated dependencies [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: +- Updated dependencies + [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: - @graphql-codegen/visitor-plugin-common@6.2.1 ## 5.1.0 ### Minor Changes -- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option +- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) + Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option ### Patch Changes -- Updated dependencies [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/visitor-plugin-common@6.2.0 - @graphql-codegen/plugin-helpers@6.1.0 @@ -48,45 +78,68 @@ ### Patch Changes -- Updated dependencies [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: +- Updated dependencies + [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: - @graphql-codegen/visitor-plugin-common@6.1.2 ## 5.0.4 ### Patch Changes -- Updated dependencies [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: +- Updated dependencies + [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: - @graphql-codegen/visitor-plugin-common@6.1.1 ## 5.0.3 ### Patch Changes -- [#10032](https://github.com/dotansimha/graphql-code-generator/pull/10032) [`1debf51`](https://github.com/dotansimha/graphql-code-generator/commit/1debf51aa714e2a53256419c549f6770b6c894a6) Thanks [@shota-tech](https://github.com/shota-tech)! - Change map of operations from an empty array to an empty object when no operations are found +- [#10032](https://github.com/dotansimha/graphql-code-generator/pull/10032) + [`1debf51`](https://github.com/dotansimha/graphql-code-generator/commit/1debf51aa714e2a53256419c549f6770b6c894a6) + Thanks [@shota-tech](https://github.com/shota-tech)! - Change map of operations from an empty + array to an empty object when no operations are found ## 5.0.2 ### Patch Changes -- Updated dependencies [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: +- Updated dependencies + [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: - @graphql-codegen/visitor-plugin-common@6.1.0 ## 5.0.1 ### Patch Changes -- Updated dependencies [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: +- Updated dependencies + [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: - @graphql-codegen/visitor-plugin-common@6.0.1 ## 5.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 - -### 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), [`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)]: +- [#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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 @@ -94,48 +147,59 @@ ### Patch Changes -- Updated dependencies [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: +- Updated dependencies + [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: - @graphql-codegen/visitor-plugin-common@5.8.0 ## 4.0.16 ### Patch Changes -- Updated dependencies [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: +- Updated dependencies + [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: - @graphql-codegen/visitor-plugin-common@5.7.1 ## 4.0.15 ### Patch Changes -- Updated dependencies [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: +- Updated dependencies + [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: - @graphql-codegen/visitor-plugin-common@5.7.0 ## 4.0.14 ### Patch Changes -- [#10192](https://github.com/dotansimha/graphql-code-generator/pull/10192) [`ec07018`](https://github.com/dotansimha/graphql-code-generator/commit/ec070189a1a3c4d41f2457b56a68b506c81f28ba) Thanks [@brianhuang822](https://github.com/brianhuang822)! - Have gql-tag-operations generate the type for document registry +- [#10192](https://github.com/dotansimha/graphql-code-generator/pull/10192) + [`ec07018`](https://github.com/dotansimha/graphql-code-generator/commit/ec070189a1a3c4d41f2457b56a68b506c81f28ba) + Thanks [@brianhuang822](https://github.com/brianhuang822)! - Have gql-tag-operations generate the + type for document registry ## 4.0.13 ### Patch Changes -- Updated dependencies [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: +- Updated dependencies + [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: - @graphql-codegen/visitor-plugin-common@5.6.1 ## 4.0.12 ### Patch Changes -- Updated dependencies [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: +- Updated dependencies + [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - @graphql-codegen/visitor-plugin-common@5.6.0 ## 4.0.11 ### Patch Changes -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - @graphql-codegen/visitor-plugin-common@5.5.0 - @graphql-codegen/plugin-helpers@5.1.0 @@ -143,30 +207,41 @@ ### Patch Changes -- [#10075](https://github.com/dotansimha/graphql-code-generator/pull/10075) [`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add note about enabling bundle size reduction for the generated `graphql` tag file. +- [#10075](https://github.com/dotansimha/graphql-code-generator/pull/10075) + [`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add note about enabling bundle size reduction for + the generated `graphql` tag file. -- Updated dependencies [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: +- Updated dependencies + [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - @graphql-codegen/visitor-plugin-common@5.4.0 ## 4.0.9 ### Patch Changes -- Updated dependencies [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: +- Updated dependencies + [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - @graphql-codegen/visitor-plugin-common@5.3.1 ## 4.0.8 ### Patch Changes -- Updated dependencies [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: +- Updated dependencies + [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - @graphql-codegen/visitor-plugin-common@5.3.0 ## 4.0.7 ### Patch Changes -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - @graphql-codegen/plugin-helpers@5.0.4 - @graphql-codegen/visitor-plugin-common@5.2.0 @@ -174,23 +249,29 @@ ### Patch Changes -- Updated dependencies [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: +- Updated dependencies + [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - @graphql-codegen/visitor-plugin-common@5.1.0 ## 4.0.5 ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 ## 4.0.4 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/plugin-helpers@5.0.3 @@ -198,16 +279,24 @@ ### Patch Changes -- Updated dependencies [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: +- Updated dependencies + [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - @graphql-codegen/visitor-plugin-common@4.1.1 ## 4.0.2 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 - @graphql-codegen/visitor-plugin-common@4.1.0 @@ -215,20 +304,40 @@ ### Patch Changes -- Updated dependencies [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: +- Updated dependencies + [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - @graphql-codegen/visitor-plugin-common@4.0.1 ## 4.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 - -### Patch Changes - -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) (from `^9.0.0`, in `dependencies`) -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- [`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 + +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) + (from `^9.0.0`, in `dependencies`) +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 @@ -236,18 +345,29 @@ ### Patch Changes -- Updated dependencies [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: +- Updated dependencies + [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - @graphql-codegen/visitor-plugin-common@3.1.1 ## 3.0.0 ### Major Changes -- [#9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) Thanks [@beerose](https://github.com/beerose)! - Add `TypedDocumentNode` string alternative that doesn't require GraphQL AST on the client. This change requires `@graphql-typed-document-node/core` in version `3.2.0` or higher. +- [#9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) + [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) + Thanks [@beerose](https://github.com/beerose)! - Add `TypedDocumentNode` string alternative that + doesn't require GraphQL AST on the client. This change requires + `@graphql-typed-document-node/core` in version `3.2.0` or higher. ### Patch Changes -- Updated dependencies [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: +- Updated dependencies + [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - @graphql-codegen/visitor-plugin-common@3.1.0 - @graphql-codegen/plugin-helpers@4.2.0 @@ -255,20 +375,32 @@ ### Patch Changes -- Updated dependencies [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: +- Updated dependencies + [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - @graphql-codegen/visitor-plugin-common@3.0.2 ## 2.0.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) -- [#8995](https://github.com/dotansimha/graphql-code-generator/pull/8995) [`fe2e9c7a5`](https://github.com/dotansimha/graphql-code-generator/commit/fe2e9c7a5f2731e06dd285e391936608dfa3fb51) Thanks [@charpeni](https://github.com/charpeni)! - Use `gqlTagName` for generated examples +- [#8995](https://github.com/dotansimha/graphql-code-generator/pull/8995) + [`fe2e9c7a5`](https://github.com/dotansimha/graphql-code-generator/commit/fe2e9c7a5f2731e06dd285e391936608dfa3fb51) + Thanks [@charpeni](https://github.com/charpeni)! - Use `gqlTagName` for generated examples -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 - @graphql-codegen/visitor-plugin-common@3.0.1 @@ -276,11 +408,15 @@ ### 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 @@ -288,33 +424,47 @@ ### Patch Changes -- Updated dependencies [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: +- Updated dependencies + [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: - @graphql-codegen/visitor-plugin-common@2.13.8 ## 1.6.1 ### Patch Changes -- [#8796](https://github.com/dotansimha/graphql-code-generator/pull/8796) [`902451601`](https://github.com/dotansimha/graphql-code-generator/commit/902451601b5edf9cb7768e57f332fe6ade79c20a) Thanks [@shmax](https://github.com/shmax)! - remove extra asterisk and add missing semicolon in generated output +- [#8796](https://github.com/dotansimha/graphql-code-generator/pull/8796) + [`902451601`](https://github.com/dotansimha/graphql-code-generator/commit/902451601b5edf9cb7768e57f332fe6ade79c20a) + Thanks [@shmax](https://github.com/shmax)! - remove extra asterisk and add missing semicolon in + generated output ## 1.6.0 ### Minor Changes -- [#8763](https://github.com/dotansimha/graphql-code-generator/pull/8763) [`2a33fc774`](https://github.com/dotansimha/graphql-code-generator/commit/2a33fc7741f7a9532bef68606666d4e3db7785a3) Thanks [@ElvisUpUp](https://github.com/ElvisUpUp)! - change the client-preset generated template +- [#8763](https://github.com/dotansimha/graphql-code-generator/pull/8763) + [`2a33fc774`](https://github.com/dotansimha/graphql-code-generator/commit/2a33fc7741f7a9532bef68606666d4e3db7785a3) + Thanks [@ElvisUpUp](https://github.com/ElvisUpUp)! - change the client-preset generated template ### Patch Changes -- Updated dependencies [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: +- Updated dependencies + [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: - @graphql-codegen/visitor-plugin-common@2.13.7 ## 1.5.12 ### Patch Changes -- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.8.0`, in `dependencies`) -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.8.0`, in `dependencies`) +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 - @graphql-codegen/visitor-plugin-common@2.13.6 @@ -322,9 +472,13 @@ ### 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), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/visitor-plugin-common@2.13.5 @@ -332,7 +486,11 @@ ### Patch Changes -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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), + [`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 - @graphql-codegen/visitor-plugin-common@2.13.4 @@ -340,27 +498,32 @@ ### Patch Changes -- Updated dependencies [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: +- Updated dependencies + [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: - @graphql-codegen/visitor-plugin-common@2.13.3 ## 1.5.8 ### Patch Changes -- [#8633](https://github.com/dotansimha/graphql-code-generator/pull/8633) [`00ddc9368`](https://github.com/dotansimha/graphql-code-generator/commit/00ddc9368211a4511b9f80d543d57c85fff840cb) Thanks [@jantimon](https://github.com/jantimon)! - provide jsdoc comments for better IDE support +- [#8633](https://github.com/dotansimha/graphql-code-generator/pull/8633) + [`00ddc9368`](https://github.com/dotansimha/graphql-code-generator/commit/00ddc9368211a4511b9f80d543d57c85fff840cb) + Thanks [@jantimon](https://github.com/jantimon)! - provide jsdoc comments for better IDE support ## 1.5.7 ### Patch Changes -- Updated dependencies [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: +- Updated dependencies + [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: - @graphql-codegen/visitor-plugin-common@2.13.2 ## 1.5.6 ### Patch Changes -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/visitor-plugin-common@2.13.1 - @graphql-codegen/plugin-helpers@2.7.2 @@ -368,44 +531,59 @@ ### Patch Changes -- Updated dependencies [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: +- Updated dependencies + [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: - @graphql-codegen/visitor-plugin-common@2.13.0 ## 1.5.4 ### Patch Changes -- Updated dependencies [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: +- Updated dependencies + [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: - @graphql-codegen/visitor-plugin-common@2.12.2 ## 1.5.3 ### Patch Changes -- [#8443](https://github.com/dotansimha/graphql-code-generator/pull/8443) [`e2d115146`](https://github.com/dotansimha/graphql-code-generator/commit/e2d11514695ca56674983e8b3b7549cd3b440a5d) Thanks [@charlypoly](https://github.com/charlypoly)! - fix(gql-tag-operations): issues with "no documents" scenario +- [#8443](https://github.com/dotansimha/graphql-code-generator/pull/8443) + [`e2d115146`](https://github.com/dotansimha/graphql-code-generator/commit/e2d11514695ca56674983e8b3b7549cd3b440a5d) + Thanks [@charlypoly](https://github.com/charlypoly)! - fix(gql-tag-operations): issues with "no + documents" scenario ## 1.5.2 ### Patch Changes -- [#8402](https://github.com/dotansimha/graphql-code-generator/pull/8402) [`a76c606e3`](https://github.com/dotansimha/graphql-code-generator/commit/a76c606e3b631ef903d4066e2643bc7f95457e30) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - Removed dependency [`graphql-tag@^2.0.0` ↗︎](https://www.npmjs.com/package/graphql-tag/v/2.0.0) (from `peerDependencies`) +- [#8402](https://github.com/dotansimha/graphql-code-generator/pull/8402) + [`a76c606e3`](https://github.com/dotansimha/graphql-code-generator/commit/a76c606e3b631ef903d4066e2643bc7f95457e30) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Removed dependency [`graphql-tag@^2.0.0` ↗︎](https://www.npmjs.com/package/graphql-tag/v/2.0.0) + (from `peerDependencies`) ## 1.5.1 ### Patch Changes -- [#8401](https://github.com/dotansimha/graphql-code-generator/pull/8401) [`4be3dc884`](https://github.com/dotansimha/graphql-code-generator/commit/4be3dc884bebe30e75b91560820d5604c816d9dd) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - - Removed dependency [`graphql-tag@^2.0.0` ↗︎](https://www.npmjs.com/package/graphql-tag/v/2.0.0) (from `peerDependencies`) +- [#8401](https://github.com/dotansimha/graphql-code-generator/pull/8401) + [`4be3dc884`](https://github.com/dotansimha/graphql-code-generator/commit/4be3dc884bebe30e75b91560820d5604c816d9dd) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Removed dependency [`graphql-tag@^2.0.0` ↗︎](https://www.npmjs.com/package/graphql-tag/v/2.0.0) + (from `peerDependencies`) -- [#8401](https://github.com/dotansimha/graphql-code-generator/pull/8401) [`4be3dc884`](https://github.com/dotansimha/graphql-code-generator/commit/4be3dc884bebe30e75b91560820d5604c816d9dd) Thanks [@charlypoly](https://github.com/charlypoly)! - Remove unused `graphql-tag` peer dependency +- [#8401](https://github.com/dotansimha/graphql-code-generator/pull/8401) + [`4be3dc884`](https://github.com/dotansimha/graphql-code-generator/commit/4be3dc884bebe30e75b91560820d5604c816d9dd) + Thanks [@charlypoly](https://github.com/charlypoly)! - Remove unused `graphql-tag` peer dependency ## 1.5.0 ### Minor Changes -- [#8302](https://github.com/dotansimha/graphql-code-generator/pull/8302) [`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6) Thanks [@charlypoly](https://github.com/charlypoly)! - **`@graphql-codegen/gql-tag-operations` and `@graphql-codegen/gql-tag-operations-preset`** +- [#8302](https://github.com/dotansimha/graphql-code-generator/pull/8302) + [`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6) + Thanks [@charlypoly](https://github.com/charlypoly)! - **`@graphql-codegen/gql-tag-operations` and + `@graphql-codegen/gql-tag-operations-preset`** Introduce a `gqlTagName` configuration option @@ -413,7 +591,8 @@ **`@graphql-codegen/client-preset`** - New preset for GraphQL Code Generator v3, more information on the RFC: https://github.com/dotansimha/graphql-code-generator/issues/8296 + New preset for GraphQL Code Generator v3, more information on the RFC: + https://github.com/dotansimha/graphql-code-generator/issues/8296 *** @@ -425,9 +604,14 @@ ### 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), [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f), + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: - @graphql-codegen/visitor-plugin-common@2.12.1 - @graphql-codegen/plugin-helpers@2.6.2 @@ -435,7 +619,9 @@ ### Minor Changes -- 2cbcbb371: Add new flag to emit legacy common js imports. Default it will be `true` this way it ensure that generated code works with [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065). +- 2cbcbb371: Add new flag to emit legacy common js imports. Default it will be `true` this way it + ensure that generated code works with + [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065). You can use the option in your config: @@ -462,7 +648,8 @@ ### Patch Changes -- 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an import with a `.js` extension. +- 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an + import with a `.js` extension. - Updated dependencies [525ad580b] - @graphql-codegen/visitor-plugin-common@2.11.1 @@ -470,7 +657,8 @@ ### 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) @@ -619,7 +807,8 @@ ### Minor Changes -- 1e9a7e162: feat: support module augumentation for extending the types of gql functions from existing packages via the `augmentedModuleName` config option. +- 1e9a7e162: feat: support module augumentation for extending the types of gql functions from + existing packages via the `augmentedModuleName` config option. ## 1.1.5 @@ -668,7 +857,7 @@ - 0c0c8a92b: export new utility type `DocumentType`, for accessing the document node type. ```tsx - import { gql, DocumentType } from '../gql' + import { DocumentType, gql } from '../gql' const TweetFragment = gql(/* GraphQL */ ` fragment TweetFragment on Tweet { @@ -702,7 +891,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. ### Minor Changes diff --git a/packages/plugins/typescript/gql-tag-operations/package.json b/packages/plugins/typescript/gql-tag-operations/package.json index 07bb9aa0bcc..039e7aac3de 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.1.4", + "version": "5.1.5", "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.1.1", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "@graphql-tools/utils": "^11.0.0", "auto-bind": "~4.0.0", "tslib": "^2.8.0" diff --git a/packages/plugins/typescript/operations/CHANGELOG.md b/packages/plugins/typescript/operations/CHANGELOG.md index 35ba5b9ffde..a1f89fdc32d 100644 --- a/packages/plugins/typescript/operations/CHANGELOG.md +++ b/packages/plugins/typescript/operations/CHANGELOG.md @@ -1,12 +1,36 @@ # @graphql-codegen/typescript-operations +## 5.0.10 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/typescript@5.0.10 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 5.0.9 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) (from `6.2.3`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) + (from `6.2.3`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/typescript@5.0.9 - @graphql-codegen/visitor-plugin-common@6.2.4 @@ -15,9 +39,13 @@ ### Patch Changes -- [#10580](https://github.com/dotansimha/graphql-code-generator/pull/10580) [`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf) Thanks [@Georgegriff](https://github.com/Georgegriff)! - fixed invalid extracted concrete type name on shared interface +- [#10580](https://github.com/dotansimha/graphql-code-generator/pull/10580) + [`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf) + Thanks [@Georgegriff](https://github.com/Georgegriff)! - fixed invalid extracted concrete type + name on shared interface -- Updated dependencies [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: +- Updated dependencies + [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: - @graphql-codegen/visitor-plugin-common@6.2.3 - @graphql-codegen/typescript@5.0.8 @@ -25,7 +53,8 @@ ### Patch Changes -- Updated dependencies [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: +- Updated dependencies + [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: - @graphql-codegen/visitor-plugin-common@6.2.2 - @graphql-codegen/typescript@5.0.7 @@ -33,7 +62,8 @@ ### Patch Changes -- Updated dependencies [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: +- Updated dependencies + [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: - @graphql-codegen/visitor-plugin-common@6.2.1 - @graphql-codegen/typescript@5.0.6 @@ -41,7 +71,9 @@ ### Patch Changes -- Updated dependencies [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/visitor-plugin-common@6.2.0 - @graphql-codegen/plugin-helpers@6.1.0 - @graphql-codegen/typescript@5.0.5 @@ -50,7 +82,8 @@ ### Patch Changes -- Updated dependencies [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: +- Updated dependencies + [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: - @graphql-codegen/visitor-plugin-common@6.1.2 - @graphql-codegen/typescript@5.0.4 @@ -58,7 +91,8 @@ ### Patch Changes -- Updated dependencies [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: +- Updated dependencies + [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: - @graphql-codegen/visitor-plugin-common@6.1.1 - @graphql-codegen/typescript@5.0.3 @@ -66,7 +100,8 @@ ### Patch Changes -- Updated dependencies [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: +- Updated dependencies + [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: - @graphql-codegen/visitor-plugin-common@6.1.0 - @graphql-codegen/typescript@5.0.2 @@ -74,7 +109,8 @@ ### Patch Changes -- Updated dependencies [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: +- Updated dependencies + [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: - @graphql-codegen/visitor-plugin-common@6.0.1 - @graphql-codegen/typescript@5.0.1 @@ -82,13 +118,32 @@ ### 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)! - BREAKING CHANGE: Use Record instead of {} for empty object type - -- [#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), [`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)]: +- [#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)! - BREAKING CHANGE: Use Record instead of {} for empty object type + +- [#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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 - @graphql-codegen/typescript@5.0.0 @@ -97,17 +152,25 @@ ### Patch Changes -- [#10330](https://github.com/dotansimha/graphql-code-generator/pull/10330) [`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae) Thanks [@jnoordsij](https://github.com/jnoordsij)! - Make graphql-sock optional peerDep +- [#10330](https://github.com/dotansimha/graphql-code-generator/pull/10330) + [`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae) + Thanks [@jnoordsij](https://github.com/jnoordsij)! - Make graphql-sock optional peerDep ## 4.6.0 ### Minor Changes -- [#10323](https://github.com/dotansimha/graphql-code-generator/pull/10323) [`f3cf4df`](https://github.com/dotansimha/graphql-code-generator/commit/f3cf4df358a896c5df0a7d8909c2fbf192e10c01) Thanks [@eddeee888](https://github.com/eddeee888)! - Add support for `nullability.errorHandlingClient`. This allows clients to get stronger types with [semantic nullability](https://github.com/graphql/graphql-wg/blob/main/rfcs/SemanticNullability.md)-enabled schemas. +- [#10323](https://github.com/dotansimha/graphql-code-generator/pull/10323) + [`f3cf4df`](https://github.com/dotansimha/graphql-code-generator/commit/f3cf4df358a896c5df0a7d8909c2fbf192e10c01) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add support for + `nullability.errorHandlingClient`. This allows clients to get stronger types with + [semantic nullability](https://github.com/graphql/graphql-wg/blob/main/rfcs/SemanticNullability.md)-enabled + schemas. ### Patch Changes -- Updated dependencies [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: +- Updated dependencies + [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: - @graphql-codegen/visitor-plugin-common@5.8.0 - @graphql-codegen/typescript@4.1.6 @@ -115,9 +178,13 @@ ### Patch Changes -- [#10302](https://github.com/dotansimha/graphql-code-generator/pull/10302) [`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix Apollo unmask directive incorrectly generating fragmentRefs +- [#10302](https://github.com/dotansimha/graphql-code-generator/pull/10302) + [`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix Apollo unmask directive incorrectly + generating fragmentRefs -- Updated dependencies [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: +- Updated dependencies + [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: - @graphql-codegen/visitor-plugin-common@5.7.1 - @graphql-codegen/typescript@4.1.5 @@ -125,11 +192,15 @@ ### Minor Changes -- [#10270](https://github.com/dotansimha/graphql-code-generator/pull/10270) [`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c) Thanks [@adapap](https://github.com/adapap)! - feat: implement `includeExternalFragments: boolean` option +- [#10270](https://github.com/dotansimha/graphql-code-generator/pull/10270) + [`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c) + Thanks [@adapap](https://github.com/adapap)! - feat: implement `includeExternalFragments: boolean` + option ### Patch Changes -- Updated dependencies [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: +- Updated dependencies + [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: - @graphql-codegen/visitor-plugin-common@5.7.0 - @graphql-codegen/typescript@4.1.4 @@ -137,7 +208,8 @@ ### Patch Changes -- Updated dependencies [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: +- Updated dependencies + [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: - @graphql-codegen/visitor-plugin-common@5.6.1 - @graphql-codegen/typescript@4.1.3 @@ -145,11 +217,16 @@ ### Minor Changes -- [#10163](https://github.com/dotansimha/graphql-code-generator/pull/10163) [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for Apollo Client `@unmask` directive with fragment masking. +- [#10163](https://github.com/dotansimha/graphql-code-generator/pull/10163) + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba) + Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for Apollo Client `@unmask` + directive with fragment masking. ### Patch Changes -- Updated dependencies [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: +- Updated dependencies + [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - @graphql-codegen/visitor-plugin-common@5.6.0 - @graphql-codegen/typescript@4.1.2 @@ -157,7 +234,9 @@ ### Patch Changes -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - @graphql-codegen/visitor-plugin-common@5.5.0 - @graphql-codegen/plugin-helpers@5.1.0 - @graphql-codegen/typescript@4.1.1 @@ -166,14 +245,19 @@ ### Minor Changes -- [#10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) Thanks [@eddeee888](https://github.com/eddeee888)! - Extend `config.avoidOptions` to support query, mutation and subscription +- [#10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) + [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extend `config.avoidOptions` to support + query, mutation and subscription - Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and subscription fields non-optional. - Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` and `config.avoidOptions.subscription` can be used to target the respective types. + Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and + subscription fields non-optional. Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` + and `config.avoidOptions.subscription` can be used to target the respective types. ### Patch Changes -- Updated dependencies [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: +- Updated dependencies + [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - @graphql-codegen/visitor-plugin-common@5.4.0 - @graphql-codegen/typescript@4.1.0 @@ -181,7 +265,8 @@ ### Patch Changes -- Updated dependencies [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: +- Updated dependencies + [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - @graphql-codegen/visitor-plugin-common@5.3.1 - @graphql-codegen/typescript@4.0.9 @@ -189,7 +274,9 @@ ### Patch Changes -- Updated dependencies [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: +- Updated dependencies + [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - @graphql-codegen/visitor-plugin-common@5.3.0 - @graphql-codegen/typescript@4.0.8 @@ -197,7 +284,11 @@ ### Patch Changes -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - @graphql-codegen/plugin-helpers@5.0.4 - @graphql-codegen/visitor-plugin-common@5.2.0 - @graphql-codegen/typescript@4.0.7 @@ -206,13 +297,20 @@ ### Minor Changes -- [#9652](https://github.com/dotansimha/graphql-code-generator/pull/9652) [`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53) Thanks [@gmurphey](https://github.com/gmurphey)! - Added allowUndefinedQueryVariables as config option +- [#9652](https://github.com/dotansimha/graphql-code-generator/pull/9652) + [`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53) + Thanks [@gmurphey](https://github.com/gmurphey)! - Added allowUndefinedQueryVariables as config + option ### Patch Changes -- [#9842](https://github.com/dotansimha/graphql-code-generator/pull/9842) [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d) Thanks [@henryqdineen](https://github.com/henryqdineen)! - properly handle aliased conditionals +- [#9842](https://github.com/dotansimha/graphql-code-generator/pull/9842) + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d) + Thanks [@henryqdineen](https://github.com/henryqdineen)! - properly handle aliased conditionals -- Updated dependencies [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: +- Updated dependencies + [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - @graphql-codegen/visitor-plugin-common@5.1.0 - @graphql-codegen/typescript@4.0.6 @@ -220,7 +318,8 @@ ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 - @graphql-codegen/typescript@4.0.5 @@ -228,9 +327,12 @@ ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/typescript@4.0.4 - @graphql-codegen/plugin-helpers@5.0.3 @@ -239,7 +341,8 @@ ### Patch Changes -- Updated dependencies [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: +- Updated dependencies + [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - @graphql-codegen/visitor-plugin-common@4.1.1 - @graphql-codegen/typescript@4.0.3 @@ -247,16 +350,26 @@ ### Minor Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - fix: out-of-memory crash (fixes #7720) - perf: implement a caching mechanism that makes sure the type originating at the same location is never generated twice, as long as the combination of selected fields and possible types matches - feat: implement `extractAllFieldsToTypes: boolean` - feat: implement `printFieldsOnNewLines: boolean` - -### Patch Changes - -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - fix: out-of-memory crash (fixes #7720) perf: + implement a caching mechanism that makes sure the type originating at the same location is never + generated twice, as long as the combination of selected fields and possible types matches feat: + implement `extractAllFieldsToTypes: boolean` feat: implement `printFieldsOnNewLines: boolean` + +### Patch Changes + +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 - @graphql-codegen/typescript@4.0.2 - @graphql-codegen/visitor-plugin-common@4.1.0 @@ -265,11 +378,17 @@ ### Patch Changes -- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string +- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) + [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string - We changed the ID Scalar input type from `string` to `string | number` in the latest major version of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. + We changed the ID Scalar input type from `string` to `string | number` in the latest major version + of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that + depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on + setup which is confusing. -- Updated dependencies [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: +- Updated dependencies + [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - @graphql-codegen/visitor-plugin-common@4.0.1 - @graphql-codegen/typescript@4.0.1 @@ -277,16 +396,21 @@ ### Major Changes -- [#9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) Thanks [@eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types - - In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID: +- [#9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) + Thanks [@eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types + In GraphQL, Scalar types can be different for client and server. For example, given the native + GraphQL ID: - A client may send `string` or `number` in the input - A client receives `string` in its selection set (i.e output) - - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from the client to `string`) - - A server may return `string` or `number` (GraphQL serializes the value to `string` before sending it to the client ) + - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from + the client to `string`) + - A server may return `string` or `number` (GraphQL serializes the value to `string` before + sending it to the client ) - Currently, we represent every Scalar with only one type. This is what codegen generates as base type: + Currently, we represent every Scalar with only one type. This is what codegen generates as base + type: ```ts export type Scalars = { @@ -331,7 +455,8 @@ } ``` - Note that for `typescript-resolvers`, the type of ID needs to be inverted. However, the referenced types in GraphQL input/output types should still work correctly: + Note that for `typescript-resolvers`, the type of ID needs to be inverted. However, the referenced + types in GraphQL input/output types should still work correctly: ```ts export type Scalars = { @@ -362,7 +487,6 @@ *** Config changes: - 1. Scalars option can now take input/output types: ```ts @@ -376,7 +500,8 @@ } ``` - 2. If a string is given (instead of an object with input/output fields), it will be used as both input and output types: + 2. If a string is given (instead of an object with input/output fields), it will be used as both + input and output types: ```ts config: { @@ -409,21 +534,30 @@ *** - BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are a plugin maintainer and reference Scalar, please update your plugin to use the correct input/output types. + BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are + a plugin maintainer and reference Scalar, please update your plugin to use the correct + input/output types. -- [`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 ### Minor Changes -- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support +- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) + Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support - When a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved. + When a query includes a deferred fragment field, the server will return a partial response with + the non-deferred fields first, followed by the remaining fields once they have been resolved. - Once start using the `@defer` directive in your queries, the generated code will automatically include support for the directive. + Once start using the `@defer` directive in your queries, the generated code will automatically + include support for the directive. ```jsx // src/index.tsx import { graphql } from './gql' + const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { @@ -443,7 +577,8 @@ `) ``` - The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ meaning it may not be available right away. + The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ + meaning it may not be available right away. ```tsx // gql/graphql.ts @@ -454,8 +589,9 @@ }) ``` - Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred - fragment is available: + Apart from generating code that includes support for the `@defer` directive, the Codegen also + exports a utility function called `isFragmentReady`. You can use it to conditionally render + components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType }) => { @@ -479,11 +615,27 @@ export default App; ``` -- [#9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) Thanks [@esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on Enums. - -### Patch Changes - -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- [#9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) + Thanks [@esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on + Enums. + +### Patch Changes + +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 - @graphql-codegen/typescript@4.0.0 @@ -492,7 +644,9 @@ ### Patch Changes -- Updated dependencies [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: +- Updated dependencies + [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - @graphql-codegen/visitor-plugin-common@3.1.1 - @graphql-codegen/typescript@3.0.4 @@ -500,7 +654,13 @@ ### Patch Changes -- Updated dependencies [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: +- Updated dependencies + [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), + [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1), + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - @graphql-codegen/visitor-plugin-common@3.1.0 - @graphql-codegen/plugin-helpers@4.2.0 - @graphql-codegen/typescript@3.0.3 @@ -509,7 +669,10 @@ ### Patch Changes -- Updated dependencies [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: +- Updated dependencies + [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - @graphql-codegen/visitor-plugin-common@3.0.2 - @graphql-codegen/typescript@3.0.2 @@ -517,9 +680,18 @@ ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 - @graphql-codegen/typescript@3.0.1 - @graphql-codegen/visitor-plugin-common@3.0.1 @@ -528,11 +700,15 @@ ### 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 - @graphql-codegen/typescript@3.0.0 @@ -541,7 +717,8 @@ ### Patch Changes -- Updated dependencies [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: +- Updated dependencies + [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: - @graphql-codegen/visitor-plugin-common@2.13.8 - @graphql-codegen/typescript@2.8.8 @@ -549,7 +726,8 @@ ### Patch Changes -- Updated dependencies [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: +- Updated dependencies + [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: - @graphql-codegen/visitor-plugin-common@2.13.7 - @graphql-codegen/typescript@2.8.7 @@ -557,7 +735,10 @@ ### Patch Changes -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 - @graphql-codegen/visitor-plugin-common@2.13.6 - @graphql-codegen/typescript@2.8.6 @@ -566,9 +747,13 @@ ### 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), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/visitor-plugin-common@2.13.5 - @graphql-codegen/typescript@2.8.5 @@ -577,7 +762,11 @@ ### Patch Changes -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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), + [`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 - @graphql-codegen/visitor-plugin-common@2.13.4 - @graphql-codegen/typescript@2.8.4 @@ -586,9 +775,13 @@ ### Patch Changes -- [#8664](https://github.com/dotansimha/graphql-code-generator/pull/8664) [`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe) Thanks [@jdmoody](https://github.com/jdmoody)! - Fix issue where selection set flattening uses the wrong parent type +- [#8664](https://github.com/dotansimha/graphql-code-generator/pull/8664) + [`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe) + Thanks [@jdmoody](https://github.com/jdmoody)! - Fix issue where selection set flattening uses the + wrong parent type -- Updated dependencies [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: +- Updated dependencies + [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: - @graphql-codegen/visitor-plugin-common@2.13.3 - @graphql-codegen/typescript@2.8.3 @@ -596,7 +789,8 @@ ### Patch Changes -- Updated dependencies [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: +- Updated dependencies + [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: - @graphql-codegen/visitor-plugin-common@2.13.2 - @graphql-codegen/typescript@2.8.2 @@ -604,7 +798,8 @@ ### Patch Changes -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/visitor-plugin-common@2.13.1 - @graphql-codegen/plugin-helpers@2.7.2 - @graphql-codegen/typescript@2.8.1 @@ -613,7 +808,8 @@ ### Patch Changes -- Updated dependencies [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: +- Updated dependencies + [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: - @graphql-codegen/visitor-plugin-common@2.13.0 - @graphql-codegen/typescript@2.7.5 @@ -621,7 +817,8 @@ ### Patch Changes -- Updated dependencies [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: +- Updated dependencies + [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: - @graphql-codegen/visitor-plugin-common@2.12.2 - @graphql-codegen/typescript@2.7.4 @@ -629,9 +826,14 @@ ### 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), [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f), + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: - @graphql-codegen/visitor-plugin-common@2.12.1 - @graphql-codegen/typescript@2.7.3 - @graphql-codegen/plugin-helpers@2.6.2 @@ -657,7 +859,8 @@ ### 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) @@ -755,7 +958,8 @@ ### Patch Changes -- fd55e2039: fix incorrect type generation when using the inlineFragmentTypes 'combine' option that resulted in generating masked fragment output. +- fd55e2039: fix incorrect type generation when using the inlineFragmentTypes 'combine' option that + resulted in generating masked fragment output. - Updated dependencies [fd55e2039] - @graphql-codegen/visitor-plugin-common@2.7.1 - @graphql-codegen/typescript@2.4.5 @@ -772,7 +976,8 @@ ### Minor Changes -- 4d413b13a: feat: Support including fragments when using flattenGeneratedTypes in typescript-operations +- 4d413b13a: feat: Support including fragments when using flattenGeneratedTypes in + typescript-operations ## 2.2.4 @@ -927,13 +1132,17 @@ ‼️ ‼️ ‼️ 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 -- d80efdec4: Add option `inlineFragmentTypes` for deep inlining fragment types within operation types. This `inlineFragmentTypes` is set to `inline` by default (Previous behaviour is `combine`). +- d80efdec4: Add option `inlineFragmentTypes` for deep inlining fragment types within operation + types. This `inlineFragmentTypes` is set to `inline` by default (Previous behaviour is `combine`). - This behavior is the better default for users that only use Fragments for building operations and then want to have access to all the data via the operation type (instead of accessing slices of the data via fragments). + This behavior is the better default for users that only use Fragments for building operations and + then want to have access to all the data via the operation type (instead of accessing slices of + the data via fragments). - Updated dependencies [d80efdec4] - Updated dependencies [d80efdec4] @@ -1010,7 +1219,8 @@ ### Patch Changes - 1f6f3db6: Fix for @skip @include directives upon arrays -- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention +- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming + convention - Updated dependencies [e947f8e3] - Updated dependencies [29b75b1e] - Updated dependencies [d4942d04] @@ -1093,7 +1303,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/visitor-plugin-common@1.17.13 diff --git a/packages/plugins/typescript/operations/package.json b/packages/plugins/typescript/operations/package.json index fd8d266b4e0..67f081ed44a 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.0.9", + "version": "5.0.10", "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.1.1", - "@graphql-codegen/typescript": "^5.0.9", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/typescript": "^5.0.10", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "auto-bind": "~4.0.0", "tslib": "^2.8.0" }, diff --git a/packages/plugins/typescript/resolvers/CHANGELOG.md b/packages/plugins/typescript/resolvers/CHANGELOG.md index 7f55d1a2ad2..375cce74028 100644 --- a/packages/plugins/typescript/resolvers/CHANGELOG.md +++ b/packages/plugins/typescript/resolvers/CHANGELOG.md @@ -1,13 +1,39 @@ # @graphql-codegen/typescript-resolvers +## 5.1.8 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/typescript@5.0.10 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 5.1.7 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) (from `6.2.3`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) + (from `6.2.3`, in `dependencies`) + - Updated dependency + [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) + (from `^10.0.0`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/typescript@5.0.9 - @graphql-codegen/visitor-plugin-common@6.2.4 @@ -16,7 +42,8 @@ ### Patch Changes -- Updated dependencies [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: +- Updated dependencies + [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: - @graphql-codegen/visitor-plugin-common@6.2.3 - @graphql-codegen/typescript@5.0.8 @@ -24,7 +51,8 @@ ### Patch Changes -- Updated dependencies [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: +- Updated dependencies + [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: - @graphql-codegen/visitor-plugin-common@6.2.2 - @graphql-codegen/typescript@5.0.7 @@ -32,7 +60,8 @@ ### Patch Changes -- Updated dependencies [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: +- Updated dependencies + [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: - @graphql-codegen/visitor-plugin-common@6.2.1 - @graphql-codegen/typescript@5.0.6 @@ -40,7 +69,9 @@ ### Patch Changes -- Updated dependencies [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/visitor-plugin-common@6.2.0 - @graphql-codegen/plugin-helpers@6.1.0 - @graphql-codegen/typescript@5.0.5 @@ -49,7 +80,8 @@ ### Patch Changes -- Updated dependencies [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: +- Updated dependencies + [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: - @graphql-codegen/visitor-plugin-common@6.1.2 - @graphql-codegen/typescript@5.0.4 @@ -57,7 +89,8 @@ ### Patch Changes -- Updated dependencies [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: +- Updated dependencies + [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: - @graphql-codegen/visitor-plugin-common@6.1.1 - @graphql-codegen/typescript@5.0.3 @@ -65,11 +98,16 @@ ### Minor Changes -- [#10449](https://github.com/dotansimha/graphql-code-generator/pull/10449) [`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26) Thanks [@eddeee888](https://github.com/eddeee888)! - Add `addInterfaceFieldResolverTypes` option to support custom Interface resolver inheritance behaviour (such as the one enabled by [makeExecutableSchema's inheritResolversFromInterfaces](https://the-guild.dev/graphql/tools/docs/generate-schema#makeexecutableschema)) +- [#10449](https://github.com/dotansimha/graphql-code-generator/pull/10449) + [`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add `addInterfaceFieldResolverTypes` option + to support custom Interface resolver inheritance behaviour (such as the one enabled by + [makeExecutableSchema's inheritResolversFromInterfaces](https://the-guild.dev/graphql/tools/docs/generate-schema#makeexecutableschema)) ### Patch Changes -- Updated dependencies [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: +- Updated dependencies + [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: - @graphql-codegen/visitor-plugin-common@6.1.0 - @graphql-codegen/typescript@5.0.2 @@ -77,7 +115,8 @@ ### Patch Changes -- Updated dependencies [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: +- Updated dependencies + [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: - @graphql-codegen/visitor-plugin-common@6.0.1 - @graphql-codegen/typescript@5.0.1 @@ -85,36 +124,87 @@ ### 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)! - BREAKING CHANGES: Do not generate \_\_isTypeOf for non-implementing types or non-union members - -- [#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)! - BREAKING CHANGE: Use Record instead of {} for empty object type - -- [#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)! - Ensure Federation Interfaces have `__resolveReference` if they are resolvable entities - - BREAKING CHANGES: Deprecate `onlyResolveTypeForInterfaces` because majority of use cases cannot implement resolvers in Interfaces. Interface normal resolvers are not generated by default. Use `addInterfaceFieldResolverTypes` option released in `@graphql-codegen/typescript-resolvers@5.1.0` to support custom Interface resolver inheritance behaviour (such as the one enabled by [makeExecutableSchema's inheritResolversFromInterfaces](https://the-guild.dev/graphql/tools/docs/generate-schema#makeexecutableschema)) - BREAKING CHANGES: Deprecate `generateInternalResolversIfNeeded.__resolveReference` because types do not have `__resolveReference` if they are not Federation entities or are not resolvable. Users should not have to manually set this option. This option was put in to wait for this major version. - -- [#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)! - BREAKING CHANGE: Improve Federation Entity's resolvers' parent param type: These types were using reference types inline. This makes it hard to handle mappers. The Parent type now all comes from ParentResolverTypes to make handling mappers and parent types simpler. - -- [#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)! - Fix `mappers` usage with Federation - - `mappers` was previously used as `__resolveReference`'s first param (usually called "reference"). However, this is incorrect because `reference` interface comes directly from `@key` and `@requires` directives. This patch fixes the issue by creating a new `FederationTypes` type and use it as the base for federation entity types when being used to type entity references. - - BREAKING CHANGES: No longer generate `UnwrappedObject` utility type, as this was used to support the wrong previously generated type. - -- [#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)! - BREAKING CHANGES: Do not generate + \_\_isTypeOf for non-implementing types or non-union members + +- [#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)! - BREAKING CHANGE: Use Record instead of {} for empty object type + +- [#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)! - Ensure Federation Interfaces have + `__resolveReference` if they are resolvable entities + + BREAKING CHANGES: Deprecate `onlyResolveTypeForInterfaces` because majority of use cases cannot + implement resolvers in Interfaces. Interface normal resolvers are not generated by default. Use + `addInterfaceFieldResolverTypes` option released in `@graphql-codegen/typescript-resolvers@5.1.0` + to support custom Interface resolver inheritance behaviour (such as the one enabled by + [makeExecutableSchema's inheritResolversFromInterfaces](https://the-guild.dev/graphql/tools/docs/generate-schema#makeexecutableschema)) + BREAKING CHANGES: Deprecate `generateInternalResolversIfNeeded.__resolveReference` because types + do not have `__resolveReference` if they are not Federation entities or are not resolvable. Users + should not have to manually set this option. This option was put in to wait for this major + version. + +- [#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)! - BREAKING CHANGE: Improve Federation Entity's + resolvers' parent param type: These types were using reference types inline. This makes it hard to + handle mappers. The Parent type now all comes from ParentResolverTypes to make handling mappers + and parent types simpler. + +- [#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)! - Fix `mappers` usage with Federation + + `mappers` was previously used as `__resolveReference`'s first param (usually called "reference"). + However, this is incorrect because `reference` interface comes directly from `@key` and + `@requires` directives. This patch fixes the issue by creating a new `FederationTypes` type and + use it as the base for federation entity types when being used to type entity references. + + BREAKING CHANGES: No longer generate `UnwrappedObject` utility type, as this was used to support + the wrong previously generated type. + +- [#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 ### Minor 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)! - Report to meta user defined objects whether they have isTypeOf resolver - -### Patch 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)! - Update @requires type - -- [#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)! - Fix fields or object types marked with @external being wrongly generated - -- 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), [`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)]: +- [#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)! - Report to meta user defined objects whether + they have isTypeOf resolver + +### Patch 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)! - Update @requires type + +- [#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)! - Fix fields or object types marked with + @external being wrongly generated + +- 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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 - @graphql-codegen/typescript@5.0.0 @@ -123,23 +213,31 @@ ### Patch Changes -- [#10419](https://github.com/dotansimha/graphql-code-generator/pull/10419) [`2fc3869`](https://github.com/dotansimha/graphql-code-generator/commit/2fc3869de216554fa896359a082066eaa18e8634) Thanks [@chdanielmueller](https://github.com/chdanielmueller)! - Fix enum resolver for partially mapped enumValues +- [#10419](https://github.com/dotansimha/graphql-code-generator/pull/10419) + [`2fc3869`](https://github.com/dotansimha/graphql-code-generator/commit/2fc3869de216554fa896359a082066eaa18e8634) + Thanks [@chdanielmueller](https://github.com/chdanielmueller)! - Fix enum resolver for partially + mapped enumValues ## 4.5.1 ### Patch Changes -- [#10330](https://github.com/dotansimha/graphql-code-generator/pull/10330) [`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae) Thanks [@jnoordsij](https://github.com/jnoordsij)! - Make graphql-sock optional peerDep +- [#10330](https://github.com/dotansimha/graphql-code-generator/pull/10330) + [`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae) + Thanks [@jnoordsij](https://github.com/jnoordsij)! - Make graphql-sock optional peerDep ## 4.5.0 ### Minor Changes -- [#10315](https://github.com/dotansimha/graphql-code-generator/pull/10315) [`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc) Thanks [@eddeee888](https://github.com/eddeee888)! - Implement semanticNonNull custom directive +- [#10315](https://github.com/dotansimha/graphql-code-generator/pull/10315) + [`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc) + Thanks [@eddeee888](https://github.com/eddeee888)! - Implement semanticNonNull custom directive ### Patch Changes -- Updated dependencies [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: +- Updated dependencies + [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: - @graphql-codegen/visitor-plugin-common@5.8.0 - @graphql-codegen/typescript@4.1.6 @@ -147,7 +245,8 @@ ### Patch Changes -- Updated dependencies [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: +- Updated dependencies + [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: - @graphql-codegen/visitor-plugin-common@5.7.1 - @graphql-codegen/typescript@4.1.5 @@ -155,7 +254,8 @@ ### Patch Changes -- Updated dependencies [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: +- Updated dependencies + [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: - @graphql-codegen/visitor-plugin-common@5.7.0 - @graphql-codegen/typescript@4.1.4 @@ -163,13 +263,19 @@ ### Patch Changes -- [#10230](https://github.com/dotansimha/graphql-code-generator/pull/10230) [`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix generateInternalResolversIfNeeded.\_\_resolveReference making the resolver required +- [#10230](https://github.com/dotansimha/graphql-code-generator/pull/10230) + [`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix + generateInternalResolversIfNeeded.\_\_resolveReference making the resolver required - `__resolveReference`'s default behaviour when not declared is to pass the ref to subsequent resolvers i.e. becoming the `parent`. So, it means we don't have to make this resolver required. + `__resolveReference`'s default behaviour when not declared is to pass the ref to subsequent + resolvers i.e. becoming the `parent`. So, it means we don't have to make this resolver required. - This patch makes `__resolveReference` optional when `generateInternalResolversIfNeeded.__resolveReference` is set to true. + This patch makes `__resolveReference` optional when + `generateInternalResolversIfNeeded.__resolveReference` is set to true. -- Updated dependencies [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: +- Updated dependencies + [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: - @graphql-codegen/visitor-plugin-common@5.6.1 - @graphql-codegen/typescript@4.1.3 @@ -177,9 +283,13 @@ ### Patch Changes -- [#10187](https://github.com/dotansimha/graphql-code-generator/pull/10187) [`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a) Thanks [@gilgardosh](https://github.com/gilgardosh)! - Fix: type naming for imported enums +- [#10187](https://github.com/dotansimha/graphql-code-generator/pull/10187) + [`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a) + Thanks [@gilgardosh](https://github.com/gilgardosh)! - Fix: type naming for imported enums -- Updated dependencies [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: +- Updated dependencies + [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - @graphql-codegen/visitor-plugin-common@5.6.0 - @graphql-codegen/typescript@4.1.2 @@ -187,19 +297,32 @@ ### Minor Changes -- [#9989](https://github.com/dotansimha/graphql-code-generator/pull/9989) [`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc) Thanks [@eddeee888](https://github.com/eddeee888)! - Add `generateInternalResolversIfNeeded` option +- [#9989](https://github.com/dotansimha/graphql-code-generator/pull/9989) + [`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add `generateInternalResolversIfNeeded` + option - This option can be used to generate more correct types for internal resolvers. For example, only generate `__resolveReference` if the federation object has a resolvable `@key`. + This option can be used to generate more correct types for internal resolvers. For example, only + generate `__resolveReference` if the federation object has a resolvable `@key`. - In the future, this option can be extended to support other internal resolvers e.g. `__isTypeOf` is only generated for implementing types and union members. + In the future, this option can be extended to support other internal resolvers e.g. `__isTypeOf` + is only generated for implementing types and union members. -- [#10141](https://github.com/dotansimha/graphql-code-generator/pull/10141) [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03) Thanks [@eddeee888](https://github.com/eddeee888)! - Add avoidCheckingAbstractTypesRecursively to avoid checking and generating abstract types recursively +- [#10141](https://github.com/dotansimha/graphql-code-generator/pull/10141) + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add avoidCheckingAbstractTypesRecursively to + avoid checking and generating abstract types recursively - For users that already sets recursive default mappers e.g. `Partial<{T}>` or `DeepPartial<{T}>`, having both options on will cause a nested loop which eventually crashes Codegen. In such case, setting `avoidCheckingAbstractTypesRecursively: true` allows users to continue to use recursive default mappers as before. + For users that already sets recursive default mappers e.g. `Partial<{T}>` or `DeepPartial<{T}>`, + having both options on will cause a nested loop which eventually crashes Codegen. In such case, + setting `avoidCheckingAbstractTypesRecursively: true` allows users to continue to use recursive + default mappers as before. ### Patch Changes -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - @graphql-codegen/visitor-plugin-common@5.5.0 - @graphql-codegen/plugin-helpers@5.1.0 - @graphql-codegen/typescript@4.1.1 @@ -208,14 +331,19 @@ ### Minor Changes -- [#10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) Thanks [@eddeee888](https://github.com/eddeee888)! - Extend `config.avoidOptions` to support query, mutation and subscription +- [#10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) + [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extend `config.avoidOptions` to support + query, mutation and subscription - Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and subscription fields non-optional. - Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` and `config.avoidOptions.subscription` can be used to target the respective types. + Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and + subscription fields non-optional. Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` + and `config.avoidOptions.subscription` can be used to target the respective types. ### Patch Changes -- Updated dependencies [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: +- Updated dependencies + [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - @graphql-codegen/visitor-plugin-common@5.4.0 - @graphql-codegen/typescript@4.1.0 @@ -223,9 +351,13 @@ ### Patch Changes -- [#10014](https://github.com/dotansimha/graphql-code-generator/pull/10014) [`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix object types with fields being abstract types not pointing to resolver types correctly +- [#10014](https://github.com/dotansimha/graphql-code-generator/pull/10014) + [`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix object types with fields being abstract + types not pointing to resolver types correctly -- Updated dependencies [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: +- Updated dependencies + [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - @graphql-codegen/visitor-plugin-common@5.3.1 - @graphql-codegen/typescript@4.0.9 @@ -233,11 +365,16 @@ ### Minor Changes -- [#10007](https://github.com/dotansimha/graphql-code-generator/pull/10007) [`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3) Thanks [@eddeee888](https://github.com/eddeee888)! - Add generated resolvers map type name to typescript-resolvers plugin meta +- [#10007](https://github.com/dotansimha/graphql-code-generator/pull/10007) + [`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add generated resolvers map type name to + typescript-resolvers plugin meta ### Patch Changes -- Updated dependencies [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: +- Updated dependencies + [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - @graphql-codegen/visitor-plugin-common@5.3.0 - @graphql-codegen/typescript@4.0.8 @@ -245,15 +382,28 @@ ### Minor Changes -- [#9961](https://github.com/dotansimha/graphql-code-generator/pull/9961) [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e) Thanks [@eddeee888](https://github.com/eddeee888)! - Update typescript-resolvers to report generated resolver types in the run to meta field in the output +- [#9961](https://github.com/dotansimha/graphql-code-generator/pull/9961) + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e) + Thanks [@eddeee888](https://github.com/eddeee888)! - Update typescript-resolvers to report + generated resolver types in the run to meta field in the output ### Patch Changes -- [#9944](https://github.com/dotansimha/graphql-code-generator/pull/9944) [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431) Thanks [@eddeee888](https://github.com/eddeee888)! - Add \_ prefix to generated `RefType` in `ResolversInterfaceTypes` and `ResolversUnionTypes` as it is sometimes unused +- [#9944](https://github.com/dotansimha/graphql-code-generator/pull/9944) + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add \_ prefix to generated `RefType` in + `ResolversInterfaceTypes` and `ResolversUnionTypes` as it is sometimes unused -- [#9962](https://github.com/dotansimha/graphql-code-generator/pull/9962) [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix interface mappers not working in nested/self-referencing scenarios +- [#9962](https://github.com/dotansimha/graphql-code-generator/pull/9962) + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix interface mappers not working in + nested/self-referencing scenarios -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - @graphql-codegen/plugin-helpers@5.0.4 - @graphql-codegen/visitor-plugin-common@5.2.0 - @graphql-codegen/typescript@4.0.7 @@ -262,7 +412,9 @@ ### Patch Changes -- Updated dependencies [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: +- Updated dependencies + [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - @graphql-codegen/visitor-plugin-common@5.1.0 - @graphql-codegen/typescript@4.0.6 @@ -270,7 +422,8 @@ ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 - @graphql-codegen/typescript@4.0.5 @@ -278,9 +431,12 @@ ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/typescript@4.0.4 - @graphql-codegen/plugin-helpers@5.0.3 @@ -289,9 +445,13 @@ ### Patch Changes -- [#9673](https://github.com/dotansimha/graphql-code-generator/pull/9673) [`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f) Thanks [@maclockard](https://github.com/maclockard)! - Respect avoidOptionals when all arguments are optional +- [#9673](https://github.com/dotansimha/graphql-code-generator/pull/9673) + [`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f) + Thanks [@maclockard](https://github.com/maclockard)! - Respect avoidOptionals when all arguments + are optional -- Updated dependencies [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: +- Updated dependencies + [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - @graphql-codegen/visitor-plugin-common@4.1.1 - @graphql-codegen/typescript@4.0.3 @@ -299,9 +459,17 @@ ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 - @graphql-codegen/typescript@4.0.2 - @graphql-codegen/visitor-plugin-common@4.1.0 @@ -310,11 +478,17 @@ ### Patch Changes -- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string +- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) + [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string - We changed the ID Scalar input type from `string` to `string | number` in the latest major version of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. + We changed the ID Scalar input type from `string` to `string | number` in the latest major version + of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that + depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on + setup which is confusing. -- Updated dependencies [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: +- Updated dependencies + [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - @graphql-codegen/visitor-plugin-common@4.0.1 - @graphql-codegen/typescript@4.0.1 @@ -322,16 +496,21 @@ ### Major Changes -- [#9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) Thanks [@eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types - - In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID: +- [#9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) + Thanks [@eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types + In GraphQL, Scalar types can be different for client and server. For example, given the native + GraphQL ID: - A client may send `string` or `number` in the input - A client receives `string` in its selection set (i.e output) - - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from the client to `string`) - - A server may return `string` or `number` (GraphQL serializes the value to `string` before sending it to the client ) + - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from + the client to `string`) + - A server may return `string` or `number` (GraphQL serializes the value to `string` before + sending it to the client ) - Currently, we represent every Scalar with only one type. This is what codegen generates as base type: + Currently, we represent every Scalar with only one type. This is what codegen generates as base + type: ```ts export type Scalars = { @@ -376,7 +555,8 @@ } ``` - Note that for `typescript-resolvers`, the type of ID needs to be inverted. However, the referenced types in GraphQL input/output types should still work correctly: + Note that for `typescript-resolvers`, the type of ID needs to be inverted. However, the referenced + types in GraphQL input/output types should still work correctly: ```ts export type Scalars = { @@ -407,7 +587,6 @@ *** Config changes: - 1. Scalars option can now take input/output types: ```ts @@ -421,7 +600,8 @@ } ``` - 2. If a string is given (instead of an object with input/output fields), it will be used as both input and output types: + 2. If a string is given (instead of an object with input/output fields), it will be used as both + input and output types: ```ts config: { @@ -454,21 +634,30 @@ *** - BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are a plugin maintainer and reference Scalar, please update your plugin to use the correct input/output types. + BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are + a plugin maintainer and reference Scalar, please update your plugin to use the correct + input/output types. -- [`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 ### Minor Changes -- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support +- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) + Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support - When a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved. + When a query includes a deferred fragment field, the server will return a partial response with + the non-deferred fields first, followed by the remaining fields once they have been resolved. - Once start using the `@defer` directive in your queries, the generated code will automatically include support for the directive. + Once start using the `@defer` directive in your queries, the generated code will automatically + include support for the directive. ```jsx // src/index.tsx import { graphql } from './gql' + const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { @@ -488,7 +677,8 @@ `) ``` - The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ meaning it may not be available right away. + The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ + meaning it may not be available right away. ```tsx // gql/graphql.ts @@ -499,8 +689,9 @@ }) ``` - Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred - fragment is available: + Apart from generating code that includes support for the `@defer` directive, the Codegen also + exports a utility function called `isFragmentReady`. You can use it to conditionally render + components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType }) => { @@ -524,9 +715,14 @@ export default App; ``` -- [#9339](https://github.com/dotansimha/graphql-code-generator/pull/9339) [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c) Thanks [@AaronMoat](https://github.com/AaronMoat)! - Add excludeTypes config to resolversNonOptionalTypename +- [#9339](https://github.com/dotansimha/graphql-code-generator/pull/9339) + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c) + Thanks [@AaronMoat](https://github.com/AaronMoat)! - Add excludeTypes config to + resolversNonOptionalTypename - This disables the adding of `__typename` in resolver types for any specified typename. This could be useful e.g. if you're wanting to enable this for all new types going forward but not do a big migration. + This disables the adding of `__typename` in resolver types for any specified typename. This could + be useful e.g. if you're wanting to enable this for all new types going forward but not do a big + migration. Usage example: @@ -547,15 +743,24 @@ } ``` -- [#9229](https://github.com/dotansimha/graphql-code-generator/pull/9229) [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c) Thanks [@eddeee888](https://github.com/eddeee888)! - Use generic to simplify ResolversUnionTypes +- [#9229](https://github.com/dotansimha/graphql-code-generator/pull/9229) + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c) + Thanks [@eddeee888](https://github.com/eddeee888)! - Use generic to simplify ResolversUnionTypes - This follows the `ResolversInterfaceTypes`'s approach where the `RefType` generic is used to refer back to `ResolversTypes` or `ResolversParentTypes` in cases of nested Union types + This follows the `ResolversInterfaceTypes`'s approach where the `RefType` generic is used to refer + back to `ResolversTypes` or `ResolversParentTypes` in cases of nested Union types -- [#9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) Thanks [@esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on Enums. +- [#9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) + Thanks [@esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on + Enums. -- [#9229](https://github.com/dotansimha/graphql-code-generator/pull/9229) [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c) Thanks [@eddeee888](https://github.com/eddeee888)! - Extract interfaces to ResolversInterfaceTypes and add to resolversNonOptionalTypename - - 1. `ResolversInterfaceTypes` is a new type that keeps track of a GraphQL interface and its implementing types. +- [#9229](https://github.com/dotansimha/graphql-code-generator/pull/9229) + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extract interfaces to ResolversInterfaceTypes + and add to resolversNonOptionalTypename + 1. `ResolversInterfaceTypes` is a new type that keeps track of a GraphQL interface and its + implementing types. For example, consider this schema: @@ -605,8 +810,8 @@ } ``` - The `RefType` generic is used to reference back to `ResolversTypes` and `ResolversParentTypes` in some cases such as field returning a Union. - + 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` Using the schema above, if we use `resolversNonOptionalTypename` option: @@ -651,9 +856,26 @@ ### Patch Changes -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) (from `^9.0.0`, in `dependencies`) -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) + (from `^9.0.0`, in `dependencies`) +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 - @graphql-codegen/typescript@4.0.0 @@ -662,9 +884,14 @@ ### Patch Changes -- [#9231](https://github.com/dotansimha/graphql-code-generator/pull/9231) [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00) Thanks [@eddeee888](https://github.com/eddeee888)! - Implement resolversNonOptionalTypename for mapper cases +- [#9231](https://github.com/dotansimha/graphql-code-generator/pull/9231) + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00) + Thanks [@eddeee888](https://github.com/eddeee888)! - Implement resolversNonOptionalTypename for + mapper cases -- Updated dependencies [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: +- Updated dependencies + [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - @graphql-codegen/visitor-plugin-common@3.1.1 - @graphql-codegen/typescript@3.0.4 @@ -672,13 +899,21 @@ ### Minor Changes -- [#9146](https://github.com/dotansimha/graphql-code-generator/pull/9146) [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd) Thanks [@eddeee888](https://github.com/eddeee888)! - [typescript-resolvers] Add `resolversNonOptionalTypename` config option. +- [#9146](https://github.com/dotansimha/graphql-code-generator/pull/9146) + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd) + Thanks [@eddeee888](https://github.com/eddeee888)! - [typescript-resolvers] Add + `resolversNonOptionalTypename` config option. - This is extending on `ResolversUnionTypes` implemented in https://github.com/dotansimha/graphql-code-generator/pull/9069 + This is extending on `ResolversUnionTypes` implemented in + https://github.com/dotansimha/graphql-code-generator/pull/9069 - `resolversNonOptionalTypename` adds non-optional `__typename` to union members of `ResolversUnionTypes`, without affecting the union members' base intefaces. + `resolversNonOptionalTypename` adds non-optional `__typename` to union members of + `ResolversUnionTypes`, without affecting the union members' base intefaces. - A common use case for non-optional `__typename` of union members is using it as the common field to work out the final schema type. This makes implementing the union's `__resolveType` very simple as we can use `__typename` to decide which union member the resolved object is. Without this, we have to check the existence of field/s on the incoming object which could be verbose. + A common use case for non-optional `__typename` of union members is using it as the common field + to work out the final schema type. This makes implementing the union's `__resolveType` very simple + as we can use `__typename` to decide which union member the resolved object is. Without this, we + have to check the existence of field/s on the incoming object which could be verbose. For example, consider this schema: @@ -703,7 +938,8 @@ union BookPayload = BookResult | PayloadError ``` - _With optional `__typename`:_ We need to check existence of certain fields to resolve type in the union resolver: + _With optional `__typename`:_ We need to check existence of certain fields to resolve type in the + union resolver: ```ts // Query/book.ts @@ -733,7 +969,8 @@ } ``` - _With non-optional `__typename`:_ Resolvers declare the type. This which gives us better TypeScript support in resolvers and simplify `__resolveType` implementation: + _With non-optional `__typename`:_ Resolvers declare the type. This which gives us better + TypeScript support in resolvers and simplify `__resolveType` implementation: ```ts // Query/book.ts @@ -778,16 +1015,22 @@ ### Patch Changes -- [#9206](https://github.com/dotansimha/graphql-code-generator/pull/9206) [`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix `ResolversUnionTypes` being used in `ResolversParentTypes` +- [#9206](https://github.com/dotansimha/graphql-code-generator/pull/9206) + [`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix `ResolversUnionTypes` being used in + `ResolversParentTypes` - Previously, objects with mappable fields are converted to Omit format that references its own type group or `ResolversTypes` or `ResolversParentTypes` e.g. + Previously, objects with mappable fields are converted to Omit format that references its own type + group or `ResolversTypes` or `ResolversParentTypes` e.g. ```ts export type ResolversTypes = { Book: ResolverTypeWrapper BookPayload: ResolversTypes['BookResult'] | ResolversTypes['StandardError'] // Note: `result` on the next line references `ResolversTypes["Book"]` - BookResult: ResolverTypeWrapper & { result?: Maybe }> + BookResult: ResolverTypeWrapper< + Omit & { result?: Maybe } + > StandardError: ResolverTypeWrapper } @@ -800,18 +1043,23 @@ } ``` - In https://github.com/dotansimha/graphql-code-generator/pull/9069, we extracted resolver union types to its own group: + In https://github.com/dotansimha/graphql-code-generator/pull/9069, we extracted resolver union + types to its own group: ```ts export type ResolversUnionTypes = { // Note: `result` on the next line references `ResolversTypes["Book"]` which is only correct for the `ResolversTypes` case - BookPayload: (Omit & { result?: Maybe }) | StandardError + BookPayload: + | (Omit & { result?: Maybe }) + | StandardError } export type ResolversTypes = { Book: ResolverTypeWrapper BookPayload: ResolverTypeWrapper - BookResult: ResolverTypeWrapper & { result?: Maybe }> + BookResult: ResolverTypeWrapper< + Omit & { result?: Maybe } + > StandardError: ResolverTypeWrapper } @@ -823,11 +1071,14 @@ } ``` - This change creates an extra `ResolversUnionParentTypes` that is referenced by `ResolversParentTypes` to ensure backwards compatibility: + This change creates an extra `ResolversUnionParentTypes` that is referenced by + `ResolversParentTypes` to ensure backwards compatibility: ```ts export type ResolversUnionTypes = { - BookPayload: (Omit & { result?: Maybe }) | StandardError + BookPayload: + | (Omit & { result?: Maybe }) + | StandardError } // ... and the reference is changed in ResolversParentTypes: @@ -837,9 +1088,17 @@ } ``` -- [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087) Thanks [@saihaj](https://github.com/saihaj)! - Resolve issue with nesting fields in `@provides` directive being prevented - -- Updated dependencies [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: +- [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087) + Thanks [@saihaj](https://github.com/saihaj)! - Resolve issue with nesting fields in `@provides` + directive being prevented + +- Updated dependencies + [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), + [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1), + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - @graphql-codegen/visitor-plugin-common@3.1.0 - @graphql-codegen/plugin-helpers@4.2.0 - @graphql-codegen/typescript@3.0.3 @@ -848,11 +1107,19 @@ ### Patch Changes -- [#9110](https://github.com/dotansimha/graphql-code-generator/pull/9110) [`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a) Thanks [@gilgardosh](https://github.com/gilgardosh)! - Custom mappers with placeholder will apply omit +- [#9110](https://github.com/dotansimha/graphql-code-generator/pull/9110) + [`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a) + Thanks [@gilgardosh](https://github.com/gilgardosh)! - Custom mappers with placeholder will apply + omit -- [#9069](https://github.com/dotansimha/graphql-code-generator/pull/9069) [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc) Thanks [@eddeee888](https://github.com/eddeee888)! - Extract union types to ResolversUnionTypes +- [#9069](https://github.com/dotansimha/graphql-code-generator/pull/9069) + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extract union types to ResolversUnionTypes -- Updated dependencies [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: +- Updated dependencies + [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - @graphql-codegen/visitor-plugin-common@3.0.2 - @graphql-codegen/typescript@3.0.2 @@ -860,13 +1127,25 @@ ### Minor Changes -- [#8853](https://github.com/dotansimha/graphql-code-generator/pull/8853) [`b13aa7449`](https://github.com/dotansimha/graphql-code-generator/commit/b13aa7449637eaf28976ea7e31730b0290609919) Thanks [@KGAdamCook](https://github.com/KGAdamCook)! - Updated customResolveInfo to use the correct importType for external imports - -### Patch Changes - -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8853](https://github.com/dotansimha/graphql-code-generator/pull/8853) + [`b13aa7449`](https://github.com/dotansimha/graphql-code-generator/commit/b13aa7449637eaf28976ea7e31730b0290609919) + Thanks [@KGAdamCook](https://github.com/KGAdamCook)! - Updated customResolveInfo to use the + correct importType for external imports + +### Patch Changes + +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 - @graphql-codegen/typescript@3.0.1 - @graphql-codegen/visitor-plugin-common@3.0.1 @@ -875,13 +1154,19 @@ ### 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 -- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes +- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) + [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) + Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes -- 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 - @graphql-codegen/typescript@3.0.0 @@ -890,7 +1175,8 @@ ### Patch Changes -- Updated dependencies [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: +- Updated dependencies + [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: - @graphql-codegen/visitor-plugin-common@2.13.8 - @graphql-codegen/typescript@2.8.8 @@ -898,7 +1184,8 @@ ### Patch Changes -- Updated dependencies [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: +- Updated dependencies + [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: - @graphql-codegen/visitor-plugin-common@2.13.7 - @graphql-codegen/typescript@2.8.7 @@ -906,9 +1193,16 @@ ### Patch Changes -- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.8.0`, in `dependencies`) -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.8.0`, in `dependencies`) +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 - @graphql-codegen/visitor-plugin-common@2.13.6 - @graphql-codegen/typescript@2.8.6 @@ -917,9 +1211,13 @@ ### 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), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/visitor-plugin-common@2.13.5 - @graphql-codegen/typescript@2.8.5 @@ -928,7 +1226,11 @@ ### Patch Changes -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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), + [`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 - @graphql-codegen/visitor-plugin-common@2.13.4 - @graphql-codegen/typescript@2.8.4 @@ -937,7 +1239,8 @@ ### Patch Changes -- Updated dependencies [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: +- Updated dependencies + [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: - @graphql-codegen/visitor-plugin-common@2.13.3 - @graphql-codegen/typescript@2.8.3 @@ -945,7 +1248,8 @@ ### Patch Changes -- Updated dependencies [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: +- Updated dependencies + [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: - @graphql-codegen/visitor-plugin-common@2.13.2 - @graphql-codegen/typescript@2.8.2 @@ -953,7 +1257,8 @@ ### Patch Changes -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/visitor-plugin-common@2.13.1 - @graphql-codegen/plugin-helpers@2.7.2 - @graphql-codegen/typescript@2.8.1 @@ -962,7 +1267,8 @@ ### Patch Changes -- Updated dependencies [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: +- Updated dependencies + [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: - @graphql-codegen/visitor-plugin-common@2.13.0 - @graphql-codegen/typescript@2.7.5 @@ -970,7 +1276,8 @@ ### Patch Changes -- Updated dependencies [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: +- Updated dependencies + [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: - @graphql-codegen/visitor-plugin-common@2.12.2 - @graphql-codegen/typescript@2.7.4 @@ -978,9 +1285,14 @@ ### 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), [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f), + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: - @graphql-codegen/visitor-plugin-common@2.12.1 - @graphql-codegen/typescript@2.7.3 - @graphql-codegen/plugin-helpers@2.6.2 @@ -998,7 +1310,8 @@ ### Patch Changes -- 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an import with a `.js` extension. +- 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an + import with a `.js` extension. - Updated dependencies [525ad580b] - @graphql-codegen/visitor-plugin-common@2.11.1 - @graphql-codegen/typescript@2.7.1 @@ -1007,7 +1320,8 @@ ### 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) @@ -1159,7 +1473,9 @@ ### Patch Changes -- 3d57ec666: loosen return type of SubscriptionSubscribeFn from `PromiseOrValue` to `PromiseOrValue`. This fixes type conflicts with libraries such as `ix/asynciterable` and is what `graphql-js` expects. +- 3d57ec666: loosen return type of SubscriptionSubscribeFn from `PromiseOrValue` to + `PromiseOrValue`. This fixes type conflicts with libraries such as + `ix/asynciterable` and is what `graphql-js` expects. ## 2.4.0 @@ -1197,7 +1513,8 @@ ### Minor Changes -- 46b38d9c1: Add makeResolverTypeCallable property to config which allows a resolver function to be called +- 46b38d9c1: Add makeResolverTypeCallable property to config which allows a resolver function to be + called ## 2.2.1 @@ -1215,7 +1532,10 @@ **WARNING:** Using this option does only change the generated type definitions. - For actually ensuring that a type is correct at runtime you will have to use schema transforms (e.g. with [@graphql-tools/utils mapSchema](https://www.graphql-tools.com/docs/schema-directives)) that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause unnoticed bugs or runtime errors. + For actually ensuring that a type is correct at runtime you will have to use schema transforms + (e.g. with [@graphql-tools/utils mapSchema](https://www.graphql-tools.com/docs/schema-directives)) + that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause + unnoticed bugs or runtime errors. Example configuration: @@ -1297,7 +1617,8 @@ ### Minor Changes -- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from @graphql-tools/utils +- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from + @graphql-tools/utils - 440172cfe: support ESM ### Patch Changes @@ -1332,7 +1653,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 @@ -1348,7 +1670,8 @@ ### Minor Changes - 8e4d5826: Add a new type for StitchResolver without selectionSet -- 9005cc17: add `allowEnumStringTypes` option for allowing string literals as valid return types from resolvers in addition to enum values.\_ +- 9005cc17: add `allowEnumStringTypes` option for allowing string literals as valid return types + from resolvers in addition to enum values.\_ ### Patch Changes @@ -1411,11 +1734,13 @@ ### Minor Changes -- d4942d04: NEW CONFIG (`onlyResolveTypeForInterfaces`): Allow to generate only \_\_resolveType for interfaces +- d4942d04: NEW CONFIG (`onlyResolveTypeForInterfaces`): Allow to generate only \_\_resolveType for + interfaces ### Patch Changes -- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention +- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming + convention - Updated dependencies [e947f8e3] - Updated dependencies [29b75b1e] - Updated dependencies [d4942d04] @@ -1450,7 +1775,8 @@ ### Minor Changes -- 8356f8a2: Added a new config flag for customizing `isTypeOf` and `resolveType` prefix (`internalResolversPrefix`) +- 8356f8a2: Added a new config flag for customizing `isTypeOf` and `resolveType` prefix + (`internalResolversPrefix`) ### Patch Changes @@ -1503,7 +1829,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 - af3803b8: only transform federated parent types when they contain @external directive - Updated dependencies [1d7c6432] - Updated dependencies [1d7c6432] diff --git a/packages/plugins/typescript/resolvers/package.json b/packages/plugins/typescript/resolvers/package.json index 34902c94974..71ab5a0adb5 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.7", + "version": "5.1.8", "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.1.1", - "@graphql-codegen/typescript": "^5.0.9", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/typescript": "^5.0.10", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "@graphql-tools/utils": "^11.0.0", "auto-bind": "~4.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 9f5116f73f8..c3e1b55f776 100644 --- a/packages/plugins/typescript/typed-document-node/CHANGELOG.md +++ b/packages/plugins/typescript/typed-document-node/CHANGELOG.md @@ -1,12 +1,33 @@ # @graphql-codegen/typed-document-node +## 6.1.8 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 6.1.7 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) (from `6.2.3`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) + (from `6.2.3`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/visitor-plugin-common@6.2.4 @@ -14,28 +35,33 @@ ### Patch Changes -- Updated dependencies [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: +- Updated dependencies + [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: - @graphql-codegen/visitor-plugin-common@6.2.3 ## 6.1.5 ### Patch Changes -- Updated dependencies [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: +- Updated dependencies + [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: - @graphql-codegen/visitor-plugin-common@6.2.2 ## 6.1.4 ### Patch Changes -- Updated dependencies [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: +- Updated dependencies + [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: - @graphql-codegen/visitor-plugin-common@6.2.1 ## 6.1.3 ### Patch Changes -- Updated dependencies [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/visitor-plugin-common@6.2.0 - @graphql-codegen/plugin-helpers@6.1.0 @@ -43,49 +69,71 @@ ### Patch Changes -- Updated dependencies [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: +- Updated dependencies + [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: - @graphql-codegen/visitor-plugin-common@6.1.2 ## 6.1.1 ### Patch Changes -- Updated dependencies [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: +- Updated dependencies + [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: - @graphql-codegen/visitor-plugin-common@6.1.1 ## 6.1.0 ### Minor Changes -- [#10456](https://github.com/dotansimha/graphql-code-generator/pull/10456) [`655b91d`](https://github.com/dotansimha/graphql-code-generator/commit/655b91dd6d8b5f90eb26cd59d6a3d12c3dccc529) Thanks [@aovens-quantifi](https://github.com/aovens-quantifi)! - feat(typed-document-node): Allow importing operation types +- [#10456](https://github.com/dotansimha/graphql-code-generator/pull/10456) + [`655b91d`](https://github.com/dotansimha/graphql-code-generator/commit/655b91dd6d8b5f90eb26cd59d6a3d12c3dccc529) + Thanks [@aovens-quantifi](https://github.com/aovens-quantifi)! - feat(typed-document-node): Allow + importing operation types - Adds the `importOperationTypesFrom` option, similar to many other codegen - plugins. This allows importing the operation types rather than needing to - generate them within this plugin config. + Adds the `importOperationTypesFrom` option, similar to many other codegen plugins. This allows + importing the operation types rather than needing to generate them within this plugin config. ## 6.0.2 ### Patch Changes -- Updated dependencies [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: +- Updated dependencies + [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: - @graphql-codegen/visitor-plugin-common@6.1.0 ## 6.0.1 ### Patch Changes -- Updated dependencies [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: +- Updated dependencies + [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: - @graphql-codegen/visitor-plugin-common@6.0.1 ## 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 - -### 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), [`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)]: +- [#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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 @@ -93,58 +141,78 @@ ### Patch Changes -- [#10362](https://github.com/dotansimha/graphql-code-generator/pull/10362) [`3188b8c`](https://github.com/dotansimha/graphql-code-generator/commit/3188b8c39e9fd24e3dbbd0bcc8767052153eb399) Thanks [@Brookke](https://github.com/Brookke)! - Make generated type compatible with noImplicitOverride=true +- [#10362](https://github.com/dotansimha/graphql-code-generator/pull/10362) + [`3188b8c`](https://github.com/dotansimha/graphql-code-generator/commit/3188b8c39e9fd24e3dbbd0bcc8767052153eb399) + Thanks [@Brookke](https://github.com/Brookke)! - Make generated type compatible with + noImplicitOverride=true -- [#10373](https://github.com/dotansimha/graphql-code-generator/pull/10373) [`c3295f9`](https://github.com/dotansimha/graphql-code-generator/commit/c3295f9c60383e5631ccc4080bc28e7c00a4d61b) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix client preset not working with exactOptionalPropertyTypes=true when documentMode=string +- [#10373](https://github.com/dotansimha/graphql-code-generator/pull/10373) + [`c3295f9`](https://github.com/dotansimha/graphql-code-generator/commit/c3295f9c60383e5631ccc4080bc28e7c00a4d61b) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix client preset not working with + exactOptionalPropertyTypes=true when documentMode=string ## 5.1.1 ### Patch Changes -- Updated dependencies [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: +- Updated dependencies + [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: - @graphql-codegen/visitor-plugin-common@5.8.0 ## 5.1.0 ### Minor Changes -- [#10307](https://github.com/dotansimha/graphql-code-generator/pull/10307) [`bfe3c75`](https://github.com/dotansimha/graphql-code-generator/commit/bfe3c7575e0b5f3a252fe9d72416f7829e44c885) Thanks [@mvantellingen](https://github.com/mvantellingen)! - Update generated code to be compatible with TypeScript 5.8 `erasableSyntaxOnly` flag +- [#10307](https://github.com/dotansimha/graphql-code-generator/pull/10307) + [`bfe3c75`](https://github.com/dotansimha/graphql-code-generator/commit/bfe3c7575e0b5f3a252fe9d72416f7829e44c885) + Thanks [@mvantellingen](https://github.com/mvantellingen)! - Update generated code to be + compatible with TypeScript 5.8 `erasableSyntaxOnly` flag ## 5.0.15 ### Patch Changes -- Updated dependencies [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: +- Updated dependencies + [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: - @graphql-codegen/visitor-plugin-common@5.7.1 ## 5.0.14 ### Patch Changes -- Updated dependencies [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: +- Updated dependencies + [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: - @graphql-codegen/visitor-plugin-common@5.7.0 ## 5.0.13 ### Patch Changes -- Updated dependencies [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: +- Updated dependencies + [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: - @graphql-codegen/visitor-plugin-common@5.6.1 ## 5.0.12 ### Patch Changes -- Updated dependencies [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: +- Updated dependencies + [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - @graphql-codegen/visitor-plugin-common@5.6.0 ## 5.0.11 ### Patch Changes -- [#10160](https://github.com/dotansimha/graphql-code-generator/pull/10160) [`c7af639`](https://github.com/dotansimha/graphql-code-generator/commit/c7af63964089938150402db69d49f11f93bb5175) Thanks [@jyasskin](https://github.com/jyasskin)! - Allow explicit `undefined` in additional to optional arguments +- [#10160](https://github.com/dotansimha/graphql-code-generator/pull/10160) + [`c7af639`](https://github.com/dotansimha/graphql-code-generator/commit/c7af63964089938150402db69d49f11f93bb5175) + Thanks [@jyasskin](https://github.com/jyasskin)! - Allow explicit `undefined` in additional to + optional arguments -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - @graphql-codegen/visitor-plugin-common@5.5.0 - @graphql-codegen/plugin-helpers@5.1.0 @@ -152,28 +220,36 @@ ### Patch Changes -- Updated dependencies [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: +- Updated dependencies + [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - @graphql-codegen/visitor-plugin-common@5.4.0 ## 5.0.9 ### Patch Changes -- Updated dependencies [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: +- Updated dependencies + [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - @graphql-codegen/visitor-plugin-common@5.3.1 ## 5.0.8 ### Patch Changes -- Updated dependencies [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: +- Updated dependencies + [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - @graphql-codegen/visitor-plugin-common@5.3.0 ## 5.0.7 ### Patch Changes -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - @graphql-codegen/plugin-helpers@5.0.4 - @graphql-codegen/visitor-plugin-common@5.2.0 @@ -181,23 +257,29 @@ ### Patch Changes -- Updated dependencies [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: +- Updated dependencies + [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - @graphql-codegen/visitor-plugin-common@5.1.0 ## 5.0.5 ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 ## 5.0.4 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/plugin-helpers@5.0.3 @@ -205,16 +287,24 @@ ### Patch Changes -- Updated dependencies [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: +- Updated dependencies + [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - @graphql-codegen/visitor-plugin-common@4.1.1 ## 5.0.2 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 - @graphql-codegen/visitor-plugin-common@4.1.0 @@ -222,26 +312,34 @@ ### Patch Changes -- Updated dependencies [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: +- Updated dependencies + [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - @graphql-codegen/visitor-plugin-common@4.0.1 ## 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 ### Minor Changes -- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support +- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) + Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support - When a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved. + When a query includes a deferred fragment field, the server will return a partial response with + the non-deferred fields first, followed by the remaining fields once they have been resolved. - Once start using the `@defer` directive in your queries, the generated code will automatically include support for the directive. + Once start using the `@defer` directive in your queries, the generated code will automatically + include support for the directive. ```jsx // src/index.tsx import { graphql } from './gql' + const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { @@ -261,7 +359,8 @@ `) ``` - The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ meaning it may not be available right away. + The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ + meaning it may not be available right away. ```tsx // gql/graphql.ts @@ -272,8 +371,9 @@ }) ``` - Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred - fragment is available: + Apart from generating code that includes support for the `@defer` directive, the Codegen also + exports a utility function called `isFragmentReady`. You can use it to conditionally render + components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType }) => { @@ -299,7 +399,20 @@ ### Patch Changes -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 @@ -307,18 +420,29 @@ ### Patch Changes -- Updated dependencies [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: +- Updated dependencies + [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - @graphql-codegen/visitor-plugin-common@3.1.1 ## 4.0.0 ### Major Changes -- [#9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) Thanks [@beerose](https://github.com/beerose)! - Add `TypedDocumentNode` string alternative that doesn't require GraphQL AST on the client. This change requires `@graphql-typed-document-node/core` in version `3.2.0` or higher. +- [#9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) + [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) + Thanks [@beerose](https://github.com/beerose)! - Add `TypedDocumentNode` string alternative that + doesn't require GraphQL AST on the client. This change requires + `@graphql-typed-document-node/core` in version `3.2.0` or higher. ### Patch Changes -- Updated dependencies [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: +- Updated dependencies + [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - @graphql-codegen/visitor-plugin-common@3.1.0 - @graphql-codegen/plugin-helpers@4.2.0 @@ -326,20 +450,33 @@ ### Patch Changes -- Updated dependencies [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: +- Updated dependencies + [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - @graphql-codegen/visitor-plugin-common@3.0.2 ## 3.0.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) -- [#8971](https://github.com/dotansimha/graphql-code-generator/pull/8971) [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Allow passing fragment documents to APIs like Apollos `readFragment` +- [#8971](https://github.com/dotansimha/graphql-code-generator/pull/8971) + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Allow passing fragment documents to APIs like + Apollos `readFragment` -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 - @graphql-codegen/visitor-plugin-common@3.0.1 @@ -347,11 +484,15 @@ ### 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 @@ -359,21 +500,26 @@ ### Patch Changes -- Updated dependencies [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: +- Updated dependencies + [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: - @graphql-codegen/visitor-plugin-common@2.13.8 ## 2.3.12 ### Patch Changes -- Updated dependencies [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: +- Updated dependencies + [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: - @graphql-codegen/visitor-plugin-common@2.13.7 ## 2.3.11 ### Patch Changes -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 - @graphql-codegen/visitor-plugin-common@2.13.6 @@ -381,9 +527,13 @@ ### 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), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/visitor-plugin-common@2.13.5 @@ -391,9 +541,17 @@ ### Patch Changes -- [#8686](https://github.com/dotansimha/graphql-code-generator/pull/8686) [`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`change-case-all@1.0.15` ↗︎](https://www.npmjs.com/package/change-case-all/v/1.0.15) (from `1.0.14`, in `dependencies`) -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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)]: +- [#8686](https://github.com/dotansimha/graphql-code-generator/pull/8686) + [`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`change-case-all@1.0.15` ↗︎](https://www.npmjs.com/package/change-case-all/v/1.0.15) (from + `1.0.14`, in `dependencies`) +- Updated dependencies + [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), + [`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 - @graphql-codegen/visitor-plugin-common@2.13.4 @@ -401,21 +559,24 @@ ### Patch Changes -- Updated dependencies [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: +- Updated dependencies + [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: - @graphql-codegen/visitor-plugin-common@2.13.3 ## 2.3.7 ### Patch Changes -- Updated dependencies [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: +- Updated dependencies + [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: - @graphql-codegen/visitor-plugin-common@2.13.2 ## 2.3.6 ### Patch Changes -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/visitor-plugin-common@2.13.1 - @graphql-codegen/plugin-helpers@2.7.2 @@ -423,23 +584,30 @@ ### Patch Changes -- Updated dependencies [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: +- Updated dependencies + [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: - @graphql-codegen/visitor-plugin-common@2.13.0 ## 2.3.4 ### Patch Changes -- Updated dependencies [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: +- Updated dependencies + [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: - @graphql-codegen/visitor-plugin-common@2.12.2 ## 2.3.3 ### 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), [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f), + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: - @graphql-codegen/visitor-plugin-common@2.12.1 - @graphql-codegen/plugin-helpers@2.6.2 @@ -462,7 +630,8 @@ ### 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) @@ -668,7 +837,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. ### Minor Changes @@ -747,7 +917,8 @@ ### Patch Changes -- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention +- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming + convention - Updated dependencies [e947f8e3] - Updated dependencies [29b75b1e] - Updated dependencies [d4942d04] @@ -804,7 +975,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/visitor-plugin-common@1.17.13 diff --git a/packages/plugins/typescript/typed-document-node/package.json b/packages/plugins/typescript/typed-document-node/package.json index eed2ecd6b48..4c64819507c 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.7", + "version": "6.1.8", "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.1.1", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.0" diff --git a/packages/plugins/typescript/typescript/CHANGELOG.md b/packages/plugins/typescript/typescript/CHANGELOG.md index 1c7abc8968d..74889fcd174 100644 --- a/packages/plugins/typescript/typescript/CHANGELOG.md +++ b/packages/plugins/typescript/typescript/CHANGELOG.md @@ -1,12 +1,36 @@ # @graphql-codegen/typescript +## 5.0.10 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/schema-ast@5.0.2 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 5.0.9 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) (from `6.2.3`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) + (from `6.2.3`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/schema-ast@5.0.1 - @graphql-codegen/visitor-plugin-common@6.2.4 @@ -15,28 +39,33 @@ ### Patch Changes -- Updated dependencies [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: +- Updated dependencies + [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: - @graphql-codegen/visitor-plugin-common@6.2.3 ## 5.0.7 ### Patch Changes -- Updated dependencies [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: +- Updated dependencies + [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: - @graphql-codegen/visitor-plugin-common@6.2.2 ## 5.0.6 ### Patch Changes -- Updated dependencies [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: +- Updated dependencies + [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: - @graphql-codegen/visitor-plugin-common@6.2.1 ## 5.0.5 ### Patch Changes -- Updated dependencies [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/visitor-plugin-common@6.2.0 - @graphql-codegen/plugin-helpers@6.1.0 @@ -44,41 +73,63 @@ ### Patch Changes -- Updated dependencies [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: +- Updated dependencies + [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: - @graphql-codegen/visitor-plugin-common@6.1.2 ## 5.0.3 ### Patch Changes -- Updated dependencies [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: +- Updated dependencies + [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: - @graphql-codegen/visitor-plugin-common@6.1.1 ## 5.0.2 ### Patch Changes -- Updated dependencies [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: +- Updated dependencies + [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: - @graphql-codegen/visitor-plugin-common@6.1.0 ## 5.0.1 ### Patch Changes -- Updated dependencies [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: +- Updated dependencies + [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: - @graphql-codegen/visitor-plugin-common@6.0.1 ## 5.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)! - Remove NameNode override - -- [#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), [`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)]: +- [#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)! - Remove NameNode override + +- [#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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 - @graphql-codegen/schema-ast@5.0.0 @@ -87,42 +138,50 @@ ### Patch Changes -- Updated dependencies [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: +- Updated dependencies + [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: - @graphql-codegen/visitor-plugin-common@5.8.0 ## 4.1.5 ### Patch Changes -- Updated dependencies [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: +- Updated dependencies + [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: - @graphql-codegen/visitor-plugin-common@5.7.1 ## 4.1.4 ### Patch Changes -- Updated dependencies [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: +- Updated dependencies + [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: - @graphql-codegen/visitor-plugin-common@5.7.0 ## 4.1.3 ### Patch Changes -- Updated dependencies [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: +- Updated dependencies + [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: - @graphql-codegen/visitor-plugin-common@5.6.1 ## 4.1.2 ### Patch Changes -- Updated dependencies [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: +- Updated dependencies + [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - @graphql-codegen/visitor-plugin-common@5.6.0 ## 4.1.1 ### Patch Changes -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - @graphql-codegen/visitor-plugin-common@5.5.0 - @graphql-codegen/plugin-helpers@5.1.0 @@ -130,35 +189,47 @@ ### Minor Changes -- [#10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) Thanks [@eddeee888](https://github.com/eddeee888)! - Extend `config.avoidOptions` to support query, mutation and subscription +- [#10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) + [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) + Thanks [@eddeee888](https://github.com/eddeee888)! - Extend `config.avoidOptions` to support + query, mutation and subscription - Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and subscription fields non-optional. - Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` and `config.avoidOptions.subscription` can be used to target the respective types. + Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and + subscription fields non-optional. Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` + and `config.avoidOptions.subscription` can be used to target the respective types. ### Patch Changes -- Updated dependencies [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: +- Updated dependencies + [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - @graphql-codegen/visitor-plugin-common@5.4.0 ## 4.0.9 ### Patch Changes -- Updated dependencies [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: +- Updated dependencies + [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - @graphql-codegen/visitor-plugin-common@5.3.1 ## 4.0.8 ### Patch Changes -- Updated dependencies [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: +- Updated dependencies + [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - @graphql-codegen/visitor-plugin-common@5.3.0 ## 4.0.7 ### Patch Changes -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - @graphql-codegen/plugin-helpers@5.0.4 - @graphql-codegen/visitor-plugin-common@5.2.0 @@ -166,23 +237,29 @@ ### Patch Changes -- Updated dependencies [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: +- Updated dependencies + [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - @graphql-codegen/visitor-plugin-common@5.1.0 ## 4.0.5 ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 ## 4.0.4 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/schema-ast@4.0.2 - @graphql-codegen/plugin-helpers@5.0.3 @@ -191,16 +268,25 @@ ### Patch Changes -- Updated dependencies [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: +- Updated dependencies + [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - @graphql-codegen/visitor-plugin-common@4.1.1 ## 4.0.2 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 - @graphql-codegen/schema-ast@4.0.1 - @graphql-codegen/visitor-plugin-common@4.1.0 @@ -209,27 +295,38 @@ ### Patch Changes -- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string +- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) + [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string - We changed the ID Scalar input type from `string` to `string | number` in the latest major version of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. + We changed the ID Scalar input type from `string` to `string | number` in the latest major version + of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that + depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on + setup which is confusing. -- Updated dependencies [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: +- Updated dependencies + [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - @graphql-codegen/visitor-plugin-common@4.0.1 ## 4.0.0 ### Major Changes -- [#9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) Thanks [@eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types - - In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID: +- [#9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) + Thanks [@eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types + In GraphQL, Scalar types can be different for client and server. For example, given the native + GraphQL ID: - A client may send `string` or `number` in the input - A client receives `string` in its selection set (i.e output) - - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from the client to `string`) - - A server may return `string` or `number` (GraphQL serializes the value to `string` before sending it to the client ) + - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from + the client to `string`) + - A server may return `string` or `number` (GraphQL serializes the value to `string` before + sending it to the client ) - Currently, we represent every Scalar with only one type. This is what codegen generates as base type: + Currently, we represent every Scalar with only one type. This is what codegen generates as base + type: ```ts export type Scalars = { @@ -274,7 +371,8 @@ } ``` - Note that for `typescript-resolvers`, the type of ID needs to be inverted. However, the referenced types in GraphQL input/output types should still work correctly: + Note that for `typescript-resolvers`, the type of ID needs to be inverted. However, the referenced + types in GraphQL input/output types should still work correctly: ```ts export type Scalars = { @@ -305,7 +403,6 @@ *** Config changes: - 1. Scalars option can now take input/output types: ```ts @@ -319,7 +416,8 @@ } ``` - 2. If a string is given (instead of an object with input/output fields), it will be used as both input and output types: + 2. If a string is given (instead of an object with input/output fields), it will be used as both + input and output types: ```ts config: { @@ -352,21 +450,30 @@ *** - BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are a plugin maintainer and reference Scalar, please update your plugin to use the correct input/output types. + BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are + a plugin maintainer and reference Scalar, please update your plugin to use the correct + input/output types. -- [`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 ### Minor Changes -- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support +- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) + Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support - When a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved. + When a query includes a deferred fragment field, the server will return a partial response with + the non-deferred fields first, followed by the remaining fields once they have been resolved. - Once start using the `@defer` directive in your queries, the generated code will automatically include support for the directive. + Once start using the `@defer` directive in your queries, the generated code will automatically + include support for the directive. ```jsx // src/index.tsx import { graphql } from './gql' + const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { @@ -386,7 +493,8 @@ `) ``` - The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ meaning it may not be available right away. + The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ + meaning it may not be available right away. ```tsx // gql/graphql.ts @@ -397,8 +505,9 @@ }) ``` - Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred - fragment is available: + Apart from generating code that includes support for the `@defer` directive, the Codegen also + exports a utility function called `isFragmentReady`. You can use it to conditionally render + components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType }) => { @@ -422,11 +531,28 @@ export default App; ``` -- [#9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) Thanks [@esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on Enums. - -### Patch Changes - -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- [#9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) + Thanks [@esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on + Enums. + +### Patch Changes + +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/schema-ast@4.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 @@ -435,16 +561,26 @@ ### Patch Changes -- Updated dependencies [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: +- Updated dependencies + [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - @graphql-codegen/visitor-plugin-common@3.1.1 ## 3.0.3 ### Patch Changes -- [#9150](https://github.com/dotansimha/graphql-code-generator/pull/9150) [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1) Thanks [@rliljest](https://github.com/rliljest)! - Properly escape enum identifiers when enumsAsConst is used +- [#9150](https://github.com/dotansimha/graphql-code-generator/pull/9150) + [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1) + Thanks [@rliljest](https://github.com/rliljest)! - Properly escape enum identifiers when + enumsAsConst is used -- Updated dependencies [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: +- Updated dependencies + [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - @graphql-codegen/visitor-plugin-common@3.1.0 - @graphql-codegen/plugin-helpers@4.2.0 @@ -452,16 +588,28 @@ ### Patch Changes -- Updated dependencies [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: +- Updated dependencies + [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - @graphql-codegen/visitor-plugin-common@3.0.2 ## 3.0.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 - @graphql-codegen/schema-ast@3.0.1 - @graphql-codegen/visitor-plugin-common@3.0.1 @@ -470,11 +618,15 @@ ### 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 - @graphql-codegen/schema-ast@3.0.0 @@ -483,21 +635,27 @@ ### Patch Changes -- Updated dependencies [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: +- Updated dependencies + [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: - @graphql-codegen/visitor-plugin-common@2.13.8 ## 2.8.7 ### Patch Changes -- Updated dependencies [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: +- Updated dependencies + [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: - @graphql-codegen/visitor-plugin-common@2.13.7 ## 2.8.6 ### Patch Changes -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 - @graphql-codegen/schema-ast@2.6.1 - @graphql-codegen/visitor-plugin-common@2.13.6 @@ -506,9 +664,14 @@ ### 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 [[`fedd71cbb`](https://github.com/dotansimha/graphql-code-generator/commit/fedd71cbb7f37440a59032d942cb228df78d52e5), [`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`fedd71cbb`](https://github.com/dotansimha/graphql-code-generator/commit/fedd71cbb7f37440a59032d942cb228df78d52e5), + [`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/schema-ast@2.6.0 - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/visitor-plugin-common@2.13.5 @@ -517,7 +680,11 @@ ### Patch Changes -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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), + [`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 - @graphql-codegen/visitor-plugin-common@2.13.4 - @graphql-codegen/schema-ast@2.5.2 @@ -526,23 +693,29 @@ ### Patch Changes -- Updated dependencies [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: +- Updated dependencies + [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: - @graphql-codegen/visitor-plugin-common@2.13.3 ## 2.8.2 ### Patch Changes -- [#8586](https://github.com/dotansimha/graphql-code-generator/pull/8586) [`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122) Thanks [@levrik](https://github.com/levrik)! - Fix incompatibility between `@oneOf` input types and declaration kind other than `type` +- [#8586](https://github.com/dotansimha/graphql-code-generator/pull/8586) + [`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122) + Thanks [@levrik](https://github.com/levrik)! - Fix incompatibility between `@oneOf` input types + and declaration kind other than `type` -- Updated dependencies [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: +- Updated dependencies + [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: - @graphql-codegen/visitor-plugin-common@2.13.2 ## 2.8.1 ### Patch Changes -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/visitor-plugin-common@2.13.1 - @graphql-codegen/plugin-helpers@2.7.2 @@ -550,29 +723,39 @@ ### Minor Changes -- [#8390](https://github.com/dotansimha/graphql-code-generator/pull/8390) [`12ecbe067`](https://github.com/dotansimha/graphql-code-generator/commit/12ecbe067b37c340ffef99b96d487931be260f69) Thanks [@Diizzayy](https://github.com/Diizzayy)! - handle undefined namedType when including introspection type definitions +- [#8390](https://github.com/dotansimha/graphql-code-generator/pull/8390) + [`12ecbe067`](https://github.com/dotansimha/graphql-code-generator/commit/12ecbe067b37c340ffef99b96d487931be260f69) + Thanks [@Diizzayy](https://github.com/Diizzayy)! - handle undefined namedType when including + introspection type definitions ## 2.7.5 ### Patch Changes -- Updated dependencies [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: +- Updated dependencies + [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: - @graphql-codegen/visitor-plugin-common@2.13.0 ## 2.7.4 ### Patch Changes -- Updated dependencies [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: +- Updated dependencies + [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: - @graphql-codegen/visitor-plugin-common@2.12.2 ## 2.7.3 ### 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), [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f), + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: - @graphql-codegen/schema-ast@2.5.1 - @graphql-codegen/visitor-plugin-common@2.12.1 - @graphql-codegen/plugin-helpers@2.6.2 @@ -596,7 +779,8 @@ ### 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) @@ -794,7 +978,10 @@ **WARNING:** Using this option does only change the type definitions. - For actually ensuring that a type is correct at runtime you will have to use schema transforms (e.g. with [@graphql-tools/utils mapSchema](https://www.graphql-tools.com/docs/schema-directives)) that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause unnoticed bugs or runtime errors. + For actually ensuring that a type is correct at runtime you will have to use schema transforms + (e.g. with [@graphql-tools/utils mapSchema](https://www.graphql-tools.com/docs/schema-directives)) + that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause + unnoticed bugs or runtime errors. Please use this configuration option with care! @@ -831,7 +1018,8 @@ } ``` -- 8261e4161: Make futureProofEnums option work for all enum output types, (it worked only with enumsAsTypes) +- 8261e4161: Make futureProofEnums option work for all enum output types, (it worked only with + enumsAsTypes) ### Patch Changes @@ -880,7 +1068,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 @@ -894,7 +1083,8 @@ ### Minor Changes -- 9005cc17: add `allowEnumStringTypes` option for allowing string literals as valid return types from resolvers in addition to enum values.\_ +- 9005cc17: add `allowEnumStringTypes` option for allowing string literals as valid return types + from resolvers in addition to enum values.\_ ### Patch Changes @@ -955,7 +1145,8 @@ ### Patch Changes - e947f8e3: Allow to have declarationKind of type: class, interface: interface -- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention +- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming + convention - Updated dependencies [e947f8e3] - Updated dependencies [29b75b1e] - Updated dependencies [d4942d04] @@ -968,7 +1159,8 @@ ### Minor Changes -- 34b8087e: Adds futureProofUnion option to account for a possible unknown new type added to union types +- 34b8087e: Adds futureProofUnion option to account for a possible unknown new type added to union + types ### Patch Changes @@ -1006,7 +1198,8 @@ ### Minor Changes -- 1d6a593f: Added `useImplementingTypes` flag for generating code that uses implementing types instead of interfaces +- 1d6a593f: Added `useImplementingTypes` flag for generating code that uses implementing types + instead of interfaces ### Patch Changes @@ -1026,8 +1219,8 @@ ### Minor Changes -- 49242c20: Added a "defaultValue" option in the "avoidOptionals" config - See https://github.com/dotansimha/graphql-code-generator/issues/5112 +- 49242c20: Added a "defaultValue" option in the "avoidOptionals" config See + https://github.com/dotansimha/graphql-code-generator/issues/5112 ### Patch Changes @@ -1060,7 +1253,8 @@ ### Patch Changes -- 07f9b1b2: Fix a bug caused numeric enum values defined in the GraphQLSchema to be printed incorrectly +- 07f9b1b2: Fix a bug caused numeric enum values defined in the GraphQLSchema to be printed + incorrectly - Updated dependencies [07f9b1b2] - Updated dependencies [35f67120] - @graphql-codegen/visitor-plugin-common@1.17.14 @@ -1070,7 +1264,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/visitor-plugin-common@1.17.13 diff --git a/packages/plugins/typescript/typescript/package.json b/packages/plugins/typescript/typescript/package.json index c23a88c8743..d6e0ede2eb2 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.9", + "version": "5.0.10", "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.1.1", - "@graphql-codegen/schema-ast": "^5.0.1", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/schema-ast": "^5.0.2", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "auto-bind": "~4.0.0", "tslib": "^2.8.0" }, diff --git a/packages/presets/client/CHANGELOG.md b/packages/presets/client/CHANGELOG.md index a1f724fdb3a..6609a39f9a1 100644 --- a/packages/presets/client/CHANGELOG.md +++ b/packages/presets/client/CHANGELOG.md @@ -1,12 +1,47 @@ # @graphql-codegen/client-preset +## 5.2.5 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/add@6.0.1 + - @graphql-codegen/gql-tag-operations@5.1.5 + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/typed-document-node@6.1.8 + - @graphql-codegen/typescript@5.0.10 + - @graphql-codegen/typescript-operations@5.0.10 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 5.2.4 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) + (from `^10.0.0`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/gql-tag-operations@5.1.4 - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/typed-document-node@6.1.7 @@ -18,7 +53,8 @@ ### Patch Changes -- Updated dependencies [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: +- Updated dependencies + [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: - @graphql-codegen/visitor-plugin-common@6.2.3 - @graphql-codegen/typescript-operations@5.0.8 - @graphql-codegen/gql-tag-operations@5.1.3 @@ -29,7 +65,8 @@ ### Patch Changes -- Updated dependencies [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: +- Updated dependencies + [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: - @graphql-codegen/visitor-plugin-common@6.2.2 - @graphql-codegen/gql-tag-operations@5.1.2 - @graphql-codegen/typescript-operations@5.0.7 @@ -40,7 +77,8 @@ ### Patch Changes -- Updated dependencies [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: +- Updated dependencies + [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: - @graphql-codegen/visitor-plugin-common@6.2.1 - @graphql-codegen/gql-tag-operations@5.1.1 - @graphql-codegen/typescript-operations@5.0.6 @@ -51,11 +89,15 @@ ### Minor Changes -- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option +- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) + Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option ### Patch Changes -- Updated dependencies [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/visitor-plugin-common@6.2.0 - @graphql-codegen/gql-tag-operations@5.1.0 - @graphql-codegen/plugin-helpers@6.1.0 @@ -67,9 +109,13 @@ ### Patch Changes -- [#10499](https://github.com/dotansimha/graphql-code-generator/pull/10499) [`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix nested fragment not getting correct meta field in Client Preset +- [#10499](https://github.com/dotansimha/graphql-code-generator/pull/10499) + [`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix nested fragment not getting correct meta + field in Client Preset -- Updated dependencies [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: +- Updated dependencies + [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: - @graphql-codegen/visitor-plugin-common@6.1.2 - @graphql-codegen/gql-tag-operations@5.0.5 - @graphql-codegen/typescript-operations@5.0.4 @@ -80,7 +126,8 @@ ### Patch Changes -- Updated dependencies [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: +- Updated dependencies + [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: - @graphql-codegen/visitor-plugin-common@6.1.1 - @graphql-codegen/gql-tag-operations@5.0.4 - @graphql-codegen/typescript-operations@5.0.3 @@ -91,20 +138,25 @@ ### Patch Changes -- Updated dependencies [[`1debf51`](https://github.com/dotansimha/graphql-code-generator/commit/1debf51aa714e2a53256419c549f6770b6c894a6)]: +- Updated dependencies + [[`1debf51`](https://github.com/dotansimha/graphql-code-generator/commit/1debf51aa714e2a53256419c549f6770b6c894a6)]: - @graphql-codegen/gql-tag-operations@5.0.3 ## 5.1.0 ### Minor Changes -- [#10459](https://github.com/dotansimha/graphql-code-generator/pull/10459) [`87184aa`](https://github.com/dotansimha/graphql-code-generator/commit/87184aa240cb6209e7b3ade13aa54da6ff0b3dff) Thanks [@eddeee888](https://github.com/eddeee888)! - Forward immutableTypes to client preset config +- [#10459](https://github.com/dotansimha/graphql-code-generator/pull/10459) + [`87184aa`](https://github.com/dotansimha/graphql-code-generator/commit/87184aa240cb6209e7b3ade13aa54da6ff0b3dff) + Thanks [@eddeee888](https://github.com/eddeee888)! - Forward immutableTypes to client preset + config ## 5.0.3 ### Patch Changes -- Updated dependencies [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: +- Updated dependencies + [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: - @graphql-codegen/visitor-plugin-common@6.1.0 - @graphql-codegen/gql-tag-operations@5.0.2 - @graphql-codegen/typescript-operations@5.0.2 @@ -115,7 +167,8 @@ ### Patch Changes -- Updated dependencies [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: +- Updated dependencies + [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: - @graphql-codegen/visitor-plugin-common@6.0.1 - @graphql-codegen/gql-tag-operations@5.0.1 - @graphql-codegen/typescript-operations@5.0.1 @@ -126,21 +179,46 @@ ### Patch Changes -- [#10393](https://github.com/dotansimha/graphql-code-generator/pull/10393) [`ee2276c`](https://github.com/dotansimha/graphql-code-generator/commit/ee2276cb073a87458eda957a17c9e296c1cf313a) Thanks [@eddeee888](https://github.com/eddeee888)! - Include undefined explicitly for input maybe value in Client Preset +- [#10393](https://github.com/dotansimha/graphql-code-generator/pull/10393) + [`ee2276c`](https://github.com/dotansimha/graphql-code-generator/commit/ee2276cb073a87458eda957a17c9e296c1cf313a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Include undefined explicitly for input maybe + value in Client Preset ## 5.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)! - BREAKING CHANGE: Use Record instead of {} for empty object type - -- [#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)! - Stop passing through the deprecated config option `dedupeFragments` - -- [#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), [`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)]: +- [#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)! - BREAKING CHANGE: Use Record instead of {} for empty object type + +- [#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)! - Stop passing through the deprecated config + option `dedupeFragments` + +- [#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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 - @graphql-codegen/typescript@5.0.0 @@ -153,40 +231,62 @@ ### Patch Changes -- [#10362](https://github.com/dotansimha/graphql-code-generator/pull/10362) [`3188b8c`](https://github.com/dotansimha/graphql-code-generator/commit/3188b8c39e9fd24e3dbbd0bcc8767052153eb399) Thanks [@Brookke](https://github.com/Brookke)! - Make generated type compatible with noImplicitOverride=true +- [#10362](https://github.com/dotansimha/graphql-code-generator/pull/10362) + [`3188b8c`](https://github.com/dotansimha/graphql-code-generator/commit/3188b8c39e9fd24e3dbbd0bcc8767052153eb399) + Thanks [@Brookke](https://github.com/Brookke)! - Make generated type compatible with + noImplicitOverride=true -- [#10373](https://github.com/dotansimha/graphql-code-generator/pull/10373) [`c3295f9`](https://github.com/dotansimha/graphql-code-generator/commit/c3295f9c60383e5631ccc4080bc28e7c00a4d61b) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix client preset not working with exactOptionalPropertyTypes=true when documentMode=string +- [#10373](https://github.com/dotansimha/graphql-code-generator/pull/10373) + [`c3295f9`](https://github.com/dotansimha/graphql-code-generator/commit/c3295f9c60383e5631ccc4080bc28e7c00a4d61b) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix client preset not working with + exactOptionalPropertyTypes=true when documentMode=string -- Updated dependencies [[`3188b8c`](https://github.com/dotansimha/graphql-code-generator/commit/3188b8c39e9fd24e3dbbd0bcc8767052153eb399), [`c3295f9`](https://github.com/dotansimha/graphql-code-generator/commit/c3295f9c60383e5631ccc4080bc28e7c00a4d61b)]: +- Updated dependencies + [[`3188b8c`](https://github.com/dotansimha/graphql-code-generator/commit/3188b8c39e9fd24e3dbbd0bcc8767052153eb399), + [`c3295f9`](https://github.com/dotansimha/graphql-code-generator/commit/c3295f9c60383e5631ccc4080bc28e7c00a4d61b)]: - @graphql-codegen/typed-document-node@5.1.2 ## 4.8.2 ### Patch Changes -- [#10120](https://github.com/dotansimha/graphql-code-generator/pull/10120) [`98392fc`](https://github.com/dotansimha/graphql-code-generator/commit/98392fc5d91035b5b5b0ffdefd78d0398762a523) Thanks [@yangirov](https://github.com/yangirov)! - The `@graphql-codegen/client-preset` package now supports the `enumValues` option. +- [#10120](https://github.com/dotansimha/graphql-code-generator/pull/10120) + [`98392fc`](https://github.com/dotansimha/graphql-code-generator/commit/98392fc5d91035b5b5b0ffdefd78d0398762a523) + Thanks [@yangirov](https://github.com/yangirov)! - The `@graphql-codegen/client-preset` package + now supports the `enumValues` option. -- Updated dependencies [[`e324382`](https://github.com/dotansimha/graphql-code-generator/commit/e3243824cfe0d7ab463cf0d5a6455715510959be)]: +- Updated dependencies + [[`e324382`](https://github.com/dotansimha/graphql-code-generator/commit/e3243824cfe0d7ab463cf0d5a6455715510959be)]: - @graphql-codegen/plugin-helpers@5.1.1 ## 4.8.1 ### Patch Changes -- [#10330](https://github.com/dotansimha/graphql-code-generator/pull/10330) [`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae) Thanks [@jnoordsij](https://github.com/jnoordsij)! - Make graphql-sock optional peerDep +- [#10330](https://github.com/dotansimha/graphql-code-generator/pull/10330) + [`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae) + Thanks [@jnoordsij](https://github.com/jnoordsij)! - Make graphql-sock optional peerDep -- Updated dependencies [[`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae)]: +- Updated dependencies + [[`c5efba3`](https://github.com/dotansimha/graphql-code-generator/commit/c5efba34a7b422720be9ce32937dd19fb0784bae)]: - @graphql-codegen/typescript-operations@4.6.1 ## 4.8.0 ### Minor Changes -- [#10323](https://github.com/dotansimha/graphql-code-generator/pull/10323) [`f3cf4df`](https://github.com/dotansimha/graphql-code-generator/commit/f3cf4df358a896c5df0a7d8909c2fbf192e10c01) Thanks [@eddeee888](https://github.com/eddeee888)! - Add support for `nullability.errorHandlingClient`. This allows clients to get stronger types with [semantic nullability](https://github.com/graphql/graphql-wg/blob/main/rfcs/SemanticNullability.md)-enabled schemas. +- [#10323](https://github.com/dotansimha/graphql-code-generator/pull/10323) + [`f3cf4df`](https://github.com/dotansimha/graphql-code-generator/commit/f3cf4df358a896c5df0a7d8909c2fbf192e10c01) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add support for + `nullability.errorHandlingClient`. This allows clients to get stronger types with + [semantic nullability](https://github.com/graphql/graphql-wg/blob/main/rfcs/SemanticNullability.md)-enabled + schemas. ### Patch Changes -- Updated dependencies [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc), [`f3cf4df`](https://github.com/dotansimha/graphql-code-generator/commit/f3cf4df358a896c5df0a7d8909c2fbf192e10c01)]: +- Updated dependencies + [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc), + [`f3cf4df`](https://github.com/dotansimha/graphql-code-generator/commit/f3cf4df358a896c5df0a7d8909c2fbf192e10c01)]: - @graphql-codegen/visitor-plugin-common@5.8.0 - @graphql-codegen/typescript-operations@4.6.0 - @graphql-codegen/gql-tag-operations@4.0.17 @@ -197,20 +297,28 @@ ### Minor Changes -- [#10307](https://github.com/dotansimha/graphql-code-generator/pull/10307) [`bfe3c75`](https://github.com/dotansimha/graphql-code-generator/commit/bfe3c7575e0b5f3a252fe9d72416f7829e44c885) Thanks [@mvantellingen](https://github.com/mvantellingen)! - Update generated code to be compatible with TypeScript 5.8 `erasableSyntaxOnly` flag +- [#10307](https://github.com/dotansimha/graphql-code-generator/pull/10307) + [`bfe3c75`](https://github.com/dotansimha/graphql-code-generator/commit/bfe3c7575e0b5f3a252fe9d72416f7829e44c885) + Thanks [@mvantellingen](https://github.com/mvantellingen)! - Update generated code to be + compatible with TypeScript 5.8 `erasableSyntaxOnly` flag ### Patch Changes -- Updated dependencies [[`bfe3c75`](https://github.com/dotansimha/graphql-code-generator/commit/bfe3c7575e0b5f3a252fe9d72416f7829e44c885)]: +- Updated dependencies + [[`bfe3c75`](https://github.com/dotansimha/graphql-code-generator/commit/bfe3c7575e0b5f3a252fe9d72416f7829e44c885)]: - @graphql-codegen/typed-document-node@5.1.0 ## 4.6.4 ### Patch Changes -- [#10302](https://github.com/dotansimha/graphql-code-generator/pull/10302) [`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix Apollo unmask directive incorrectly generating fragmentRefs +- [#10302](https://github.com/dotansimha/graphql-code-generator/pull/10302) + [`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix Apollo unmask directive incorrectly + generating fragmentRefs -- Updated dependencies [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: +- Updated dependencies + [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: - @graphql-codegen/visitor-plugin-common@5.7.1 - @graphql-codegen/typescript-operations@4.5.1 - @graphql-codegen/gql-tag-operations@4.0.16 @@ -221,9 +329,13 @@ ### Patch Changes -- [#10298](https://github.com/dotansimha/graphql-code-generator/pull/10298) [`3efc472`](https://github.com/dotansimha/graphql-code-generator/commit/3efc472b970754b05b1e1f9fe7d33cfa5ec65455) Thanks [@dotansimha](https://github.com/dotansimha)! - Fix a bug where fragment spreads with `@client` directives is not being removed from the generated persisted documents +- [#10298](https://github.com/dotansimha/graphql-code-generator/pull/10298) + [`3efc472`](https://github.com/dotansimha/graphql-code-generator/commit/3efc472b970754b05b1e1f9fe7d33cfa5ec65455) + Thanks [@dotansimha](https://github.com/dotansimha)! - Fix a bug where fragment spreads with + `@client` directives is not being removed from the generated persisted documents -- Updated dependencies [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: +- Updated dependencies + [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: - @graphql-codegen/visitor-plugin-common@5.7.0 - @graphql-codegen/typescript-operations@4.5.0 - @graphql-codegen/gql-tag-operations@4.0.15 @@ -234,26 +346,36 @@ ### Patch Changes -- [#10280](https://github.com/dotansimha/graphql-code-generator/pull/10280) [`6da52a3`](https://github.com/dotansimha/graphql-code-generator/commit/6da52a3248c0ac9ef32140d130ac3da6fcaa1445) Thanks [@konomae](https://github.com/konomae)! - fix `onlyEnums` passthrough in client-preset +- [#10280](https://github.com/dotansimha/graphql-code-generator/pull/10280) + [`6da52a3`](https://github.com/dotansimha/graphql-code-generator/commit/6da52a3248c0ac9ef32140d130ac3da6fcaa1445) + Thanks [@konomae](https://github.com/konomae)! - fix `onlyEnums` passthrough in client-preset ## 4.6.1 ### Patch Changes -- Updated dependencies [[`ec07018`](https://github.com/dotansimha/graphql-code-generator/commit/ec070189a1a3c4d41f2457b56a68b506c81f28ba)]: +- Updated dependencies + [[`ec07018`](https://github.com/dotansimha/graphql-code-generator/commit/ec070189a1a3c4d41f2457b56a68b506c81f28ba)]: - @graphql-codegen/gql-tag-operations@4.0.14 ## 4.6.0 ### Minor Changes -- [#10268](https://github.com/dotansimha/graphql-code-generator/pull/10268) [`8737dd8`](https://github.com/dotansimha/graphql-code-generator/commit/8737dd86b4ce3d14234a515fa494736bf7ec35dd) Thanks [@eddeee888](https://github.com/eddeee888)! - Forward customDirectives to support Apollo unmask +- [#10268](https://github.com/dotansimha/graphql-code-generator/pull/10268) + [`8737dd8`](https://github.com/dotansimha/graphql-code-generator/commit/8737dd86b4ce3d14234a515fa494736bf7ec35dd) + Thanks [@eddeee888](https://github.com/eddeee888)! - Forward customDirectives to support Apollo + unmask -- [#10155](https://github.com/dotansimha/graphql-code-generator/pull/10155) [`ed71811`](https://github.com/dotansimha/graphql-code-generator/commit/ed71811ace083be61c575609e361c629ed7c1740) Thanks [@nebbles](https://github.com/nebbles)! - client-preset generated output is configurable with onlyOperationTypes and onlyEnumTypes +- [#10155](https://github.com/dotansimha/graphql-code-generator/pull/10155) + [`ed71811`](https://github.com/dotansimha/graphql-code-generator/commit/ed71811ace083be61c575609e361c629ed7c1740) + Thanks [@nebbles](https://github.com/nebbles)! - client-preset generated output is configurable + with onlyOperationTypes and onlyEnumTypes ### Patch Changes -- Updated dependencies [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: +- Updated dependencies + [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: - @graphql-codegen/visitor-plugin-common@5.6.1 - @graphql-codegen/gql-tag-operations@4.0.13 - @graphql-codegen/typescript-operations@4.4.1 @@ -264,9 +386,14 @@ ### Patch Changes -- [#9981](https://github.com/dotansimha/graphql-code-generator/pull/9981) [`05aa6b4`](https://github.com/dotansimha/graphql-code-generator/commit/05aa6b4cee6214674b25c9d20df27ce5e0e3927c) Thanks [@azu](https://github.com/azu)! - The client preset now allows the use of the `enumsAsConst` config option +- [#9981](https://github.com/dotansimha/graphql-code-generator/pull/9981) + [`05aa6b4`](https://github.com/dotansimha/graphql-code-generator/commit/05aa6b4cee6214674b25c9d20df27ce5e0e3927c) + Thanks [@azu](https://github.com/azu)! - The client preset now allows the use of the + `enumsAsConst` config option -- Updated dependencies [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: +- Updated dependencies + [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - @graphql-codegen/visitor-plugin-common@5.6.0 - @graphql-codegen/typescript-operations@4.4.0 - @graphql-codegen/gql-tag-operations@4.0.12 @@ -277,13 +404,20 @@ ### Minor Changes -- [#10136](https://github.com/dotansimha/graphql-code-generator/pull/10136) [`3fd4486`](https://github.com/dotansimha/graphql-code-generator/commit/3fd4486a548c27099377c7bd696a22d1638227f4) Thanks [@wxt2005](https://github.com/wxt2005)! - foward skipTypeNameForRoot to client-preset +- [#10136](https://github.com/dotansimha/graphql-code-generator/pull/10136) + [`3fd4486`](https://github.com/dotansimha/graphql-code-generator/commit/3fd4486a548c27099377c7bd696a22d1638227f4) + Thanks [@wxt2005](https://github.com/wxt2005)! - foward skipTypeNameForRoot to client-preset ### Patch Changes -- [#10182](https://github.com/dotansimha/graphql-code-generator/pull/10182) [`effd875`](https://github.com/dotansimha/graphql-code-generator/commit/effd875b205fa9c5a99ce5e7fcdeb86cea7723fc) Thanks [@eddeee888](https://github.com/eddeee888)! - Revert slimmer client preset output +- [#10182](https://github.com/dotansimha/graphql-code-generator/pull/10182) + [`effd875`](https://github.com/dotansimha/graphql-code-generator/commit/effd875b205fa9c5a99ce5e7fcdeb86cea7723fc) + Thanks [@eddeee888](https://github.com/eddeee888)! - Revert slimmer client preset output -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03), [`c7af639`](https://github.com/dotansimha/graphql-code-generator/commit/c7af63964089938150402db69d49f11f93bb5175)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03), + [`c7af639`](https://github.com/dotansimha/graphql-code-generator/commit/c7af63964089938150402db69d49f11f93bb5175)]: - @graphql-codegen/visitor-plugin-common@5.5.0 - @graphql-codegen/plugin-helpers@5.1.0 - @graphql-codegen/typed-document-node@5.0.11 @@ -295,13 +429,21 @@ ### Minor Changes -- [#10073](https://github.com/dotansimha/graphql-code-generator/pull/10073) [`8471a18`](https://github.com/dotansimha/graphql-code-generator/commit/8471a180cd61dc03dedace87876c5973b09b35f8) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Reduce noise of generated code by only generating code relevant to GraphQL operations. +- [#10073](https://github.com/dotansimha/graphql-code-generator/pull/10073) + [`8471a18`](https://github.com/dotansimha/graphql-code-generator/commit/8471a180cd61dc03dedace87876c5973b09b35f8) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Reduce noise of generated code by only generating + code relevant to GraphQL operations. ### Patch Changes -- [#10075](https://github.com/dotansimha/graphql-code-generator/pull/10075) [`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add note about enabling bundle size reduction for the generated `graphql` tag file. +- [#10075](https://github.com/dotansimha/graphql-code-generator/pull/10075) + [`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add note about enabling bundle size reduction for + the generated `graphql` tag file. -- Updated dependencies [[`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf), [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: +- Updated dependencies + [[`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf), + [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - @graphql-codegen/gql-tag-operations@4.0.10 - @graphql-codegen/visitor-plugin-common@5.4.0 - @graphql-codegen/typescript-operations@4.3.0 @@ -312,13 +454,17 @@ ### Patch Changes -- [#9817](https://github.com/dotansimha/graphql-code-generator/pull/9817) [`7ac42a3`](https://github.com/dotansimha/graphql-code-generator/commit/7ac42a33915985b9504bc16f38a22e057bbcd1ab) Thanks [@nikitalocalhost](https://github.com/nikitalocalhost)! - Resolve runtime error when using the babel plugin within an ESM environment. +- [#9817](https://github.com/dotansimha/graphql-code-generator/pull/9817) + [`7ac42a3`](https://github.com/dotansimha/graphql-code-generator/commit/7ac42a33915985b9504bc16f38a22e057bbcd1ab) + Thanks [@nikitalocalhost](https://github.com/nikitalocalhost)! - Resolve runtime error when using + the babel plugin within an ESM environment. ## 4.3.2 ### Patch Changes -- Updated dependencies [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: +- Updated dependencies + [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - @graphql-codegen/visitor-plugin-common@5.3.1 - @graphql-codegen/gql-tag-operations@4.0.9 - @graphql-codegen/typescript-operations@4.2.3 @@ -329,7 +475,9 @@ ### Patch Changes -- Updated dependencies [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: +- Updated dependencies + [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - @graphql-codegen/visitor-plugin-common@5.3.0 - @graphql-codegen/gql-tag-operations@4.0.8 - @graphql-codegen/typescript-operations@4.2.2 @@ -340,7 +488,10 @@ ### Minor Changes -- [#10001](https://github.com/dotansimha/graphql-code-generator/pull/10001) [`1be6e65`](https://github.com/dotansimha/graphql-code-generator/commit/1be6e65943b85162f3d465189d0a6df4b962df5d) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Support discriminating `null` and `undefined` within the `useFragment` function. +- [#10001](https://github.com/dotansimha/graphql-code-generator/pull/10001) + [`1be6e65`](https://github.com/dotansimha/graphql-code-generator/commit/1be6e65943b85162f3d465189d0a6df4b962df5d) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Support discriminating `null` and `undefined` + within the `useFragment` function. ```ts function MyComponent(props: FragmentType | null) { @@ -356,11 +507,17 @@ Before, the returned type from `useFragment` was always `TType | null | undefined`. -- [#9804](https://github.com/dotansimha/graphql-code-generator/pull/9804) [`5e594ef`](https://github.com/dotansimha/graphql-code-generator/commit/5e594ef8f39b9e1036b6bcaa977f914a66fec03e) Thanks [@rachel-church](https://github.com/rachel-church)! - Preserving `Array` or `ReadonlyArray` in `useFragment()` return type. +- [#9804](https://github.com/dotansimha/graphql-code-generator/pull/9804) + [`5e594ef`](https://github.com/dotansimha/graphql-code-generator/commit/5e594ef8f39b9e1036b6bcaa977f914a66fec03e) + Thanks [@rachel-church](https://github.com/rachel-church)! - Preserving `Array` or + `ReadonlyArray` in `useFragment()` return type. ### Patch Changes -- [#9996](https://github.com/dotansimha/graphql-code-generator/pull/9996) [`99f449c`](https://github.com/dotansimha/graphql-code-generator/commit/99f449c8dcd645d49eda26e4ddfcb8ad7056ecbf) Thanks [@nahn20](https://github.com/nahn20)! - Added configuration to allow for custom hash functions for persisted documents in the client preset +- [#9996](https://github.com/dotansimha/graphql-code-generator/pull/9996) + [`99f449c`](https://github.com/dotansimha/graphql-code-generator/commit/99f449c8dcd645d49eda26e4ddfcb8ad7056ecbf) + Thanks [@nahn20](https://github.com/nahn20)! - Added configuration to allow for custom hash + functions for persisted documents in the client preset ### Example @@ -387,14 +544,19 @@ } ``` -- Updated dependencies [[`5501c62`](https://github.com/dotansimha/graphql-code-generator/commit/5501c621f19eb5ef8e703a21f7367e07e41f199c)]: +- Updated dependencies + [[`5501c62`](https://github.com/dotansimha/graphql-code-generator/commit/5501c621f19eb5ef8e703a21f7367e07e41f199c)]: - @graphql-codegen/add@5.0.3 ## 4.2.6 ### Patch Changes -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - @graphql-codegen/plugin-helpers@5.0.4 - @graphql-codegen/visitor-plugin-common@5.2.0 - @graphql-codegen/gql-tag-operations@4.0.7 @@ -406,13 +568,20 @@ ### Patch Changes -- [#9889](https://github.com/dotansimha/graphql-code-generator/pull/9889) [`cd60e14`](https://github.com/dotansimha/graphql-code-generator/commit/cd60e14c4dc5a496a93089dae677fc797c04671e) Thanks [@Sojaner](https://github.com/Sojaner)! - Omit `__typename` from being added on the root node of a subscription when using `addTypenameSelectionDocumentTransform` with documentTransforms since a single root node is expected and the code generator fails because of that (refer to https://spec.graphql.org/draft/#sec-Single-root-field) +- [#9889](https://github.com/dotansimha/graphql-code-generator/pull/9889) + [`cd60e14`](https://github.com/dotansimha/graphql-code-generator/commit/cd60e14c4dc5a496a93089dae677fc797c04671e) + Thanks [@Sojaner](https://github.com/Sojaner)! - Omit `__typename` from being added on the root + node of a subscription when using `addTypenameSelectionDocumentTransform` with documentTransforms + since a single root node is expected and the code generator fails because of that (refer to + https://spec.graphql.org/draft/#sec-Single-root-field) ## 4.2.4 ### Patch Changes -- Updated dependencies [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: +- Updated dependencies + [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - @graphql-codegen/visitor-plugin-common@5.1.0 - @graphql-codegen/typescript-operations@4.2.0 - @graphql-codegen/gql-tag-operations@4.0.6 @@ -423,7 +592,8 @@ ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 - @graphql-codegen/gql-tag-operations@4.0.5 - @graphql-codegen/typescript-operations@4.1.3 @@ -434,9 +604,12 @@ ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/typescript-operations@4.1.2 - @graphql-codegen/add@5.0.2 @@ -449,9 +622,12 @@ ### Patch Changes -- [#9557](https://github.com/dotansimha/graphql-code-generator/pull/9557) [`48ddaeae1`](https://github.com/dotansimha/graphql-code-generator/commit/48ddaeae1809cb52e6de5aa14f0d47bedde9d547) Thanks [@konomae](https://github.com/konomae)! - Add eslint-disable comment to fragment-masking.ts +- [#9557](https://github.com/dotansimha/graphql-code-generator/pull/9557) + [`48ddaeae1`](https://github.com/dotansimha/graphql-code-generator/commit/48ddaeae1809cb52e6de5aa14f0d47bedde9d547) + Thanks [@konomae](https://github.com/konomae)! - Add eslint-disable comment to fragment-masking.ts -- Updated dependencies [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: +- Updated dependencies + [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - @graphql-codegen/visitor-plugin-common@4.1.1 - @graphql-codegen/gql-tag-operations@4.0.3 - @graphql-codegen/typescript-operations@4.1.1 @@ -462,13 +638,28 @@ ### Minor Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - The client preset now allows the use of the `futureProofEnums` config option - -### Patch Changes - -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - The client preset now allows the use of the + `futureProofEnums` config option + +### Patch Changes + +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/add@5.0.1 - @graphql-codegen/gql-tag-operations@4.0.2 - @graphql-codegen/plugin-helpers@5.0.2 @@ -481,9 +672,13 @@ ### Minor Changes -- [#9562](https://github.com/dotansimha/graphql-code-generator/pull/9562) [`5beee9794`](https://github.com/dotansimha/graphql-code-generator/commit/5beee9794de208fed17e516a259535f56d626c9d) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add the `addTypenameSelectionDocumentTransform` for automatically adding `__typename` selections to all objct type selection sets. +- [#9562](https://github.com/dotansimha/graphql-code-generator/pull/9562) + [`5beee9794`](https://github.com/dotansimha/graphql-code-generator/commit/5beee9794de208fed17e516a259535f56d626c9d) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add the `addTypenameSelectionDocumentTransform` for + automatically adding `__typename` selections to all objct type selection sets. - This is useful for GraphQL Clients such as Apollo Client or urql that need typename information for their cache to function. + This is useful for GraphQL Clients such as Apollo Client or urql that need typename information + for their cache to function. **Example Usage** @@ -512,18 +707,25 @@ ### Patch Changes -- Updated dependencies [[`bb1e0e96e`](https://github.com/dotansimha/graphql-code-generator/commit/bb1e0e96ed9d519684630cd7ea53869b48b4632e)]: +- Updated dependencies + [[`bb1e0e96e`](https://github.com/dotansimha/graphql-code-generator/commit/bb1e0e96ed9d519684630cd7ea53869b48b4632e)]: - @graphql-codegen/plugin-helpers@5.0.1 ## 4.0.1 ### Patch Changes -- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string +- [#9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) + [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) + Thanks [@eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string - We changed the ID Scalar input type from `string` to `string | number` in the latest major version of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. + We changed the ID Scalar input type from `string` to `string | number` in the latest major version + of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that + depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on + setup which is confusing. -- Updated dependencies [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: +- Updated dependencies + [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - @graphql-codegen/visitor-plugin-common@4.0.1 - @graphql-codegen/typescript-operations@4.0.1 - @graphql-codegen/typescript@4.0.1 @@ -534,19 +736,26 @@ ### 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 ### Minor Changes -- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support +- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) + Thanks [@beerose](https://github.com/beerose)! - Add `@defer` directive support - When a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved. + When a query includes a deferred fragment field, the server will return a partial response with + the non-deferred fields first, followed by the remaining fields once they have been resolved. - Once start using the `@defer` directive in your queries, the generated code will automatically include support for the directive. + Once start using the `@defer` directive in your queries, the generated code will automatically + include support for the directive. ```jsx // src/index.tsx import { graphql } from './gql' + const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { @@ -566,7 +775,8 @@ `) ``` - The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ meaning it may not be available right away. + The generated type for `GetUserQuery` will have information that the fragment is _incremental,_ + meaning it may not be available right away. ```tsx // gql/graphql.ts @@ -577,8 +787,9 @@ }) ``` - Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred - fragment is available: + Apart from generating code that includes support for the `@defer` directive, the Codegen also + exports a utility function called `isFragmentReady`. You can use it to conditionally render + components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType }) => { @@ -602,24 +813,56 @@ export default App; ``` -- [#9353](https://github.com/dotansimha/graphql-code-generator/pull/9353) [`d7e335b58`](https://github.com/dotansimha/graphql-code-generator/commit/d7e335b5874a821c9f609c66d554921ed8c6de19) Thanks [@charpeni](https://github.com/charpeni)! - Implement the ability the specify the hash algorithm used for persisted documents via `persistedDocuments.hashAlgorithm` - -### Patch Changes - -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - - Updated dependency [`@graphql-tools/documents@^1.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/documents/v/1.0.0) (from `^0.1.0`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) (from `^9.0.0`, in `dependencies`) - -- [#9315](https://github.com/dotansimha/graphql-code-generator/pull/9315) [`6d2de206a`](https://github.com/dotansimha/graphql-code-generator/commit/6d2de206abdcce9e176bbc157cd27b37a20b0f97) Thanks [@luvejo](https://github.com/luvejo)! - improve error message - -- [#9385](https://github.com/dotansimha/graphql-code-generator/pull/9385) [`a7dda3546`](https://github.com/dotansimha/graphql-code-generator/commit/a7dda3546567b5bb70015fc3ae197562231d7911) Thanks [@beerose](https://github.com/beerose)! - Improve isFragmentReady utility function to work with noUncheckedIndexedAccess TSC setting - -- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@beerose](https://github.com/beerose)! - Pass `emitLegacyCommonJSImports` and `isStringDocumentMode` to the client preset config - -- [#9414](https://github.com/dotansimha/graphql-code-generator/pull/9414) [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d) Thanks [@beerose](https://github.com/beerose)! - Include nested fragments in string documentMode - -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- [#9353](https://github.com/dotansimha/graphql-code-generator/pull/9353) + [`d7e335b58`](https://github.com/dotansimha/graphql-code-generator/commit/d7e335b5874a821c9f609c66d554921ed8c6de19) + Thanks [@charpeni](https://github.com/charpeni)! - Implement the ability the specify the hash + algorithm used for persisted documents via `persistedDocuments.hashAlgorithm` + +### Patch Changes + +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-tools/documents@^1.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/documents/v/1.0.0) + (from `^0.1.0`, in `dependencies`) + - Updated dependency + [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) + (from `^9.0.0`, in `dependencies`) + +- [#9315](https://github.com/dotansimha/graphql-code-generator/pull/9315) + [`6d2de206a`](https://github.com/dotansimha/graphql-code-generator/commit/6d2de206abdcce9e176bbc157cd27b37a20b0f97) + Thanks [@luvejo](https://github.com/luvejo)! - improve error message + +- [#9385](https://github.com/dotansimha/graphql-code-generator/pull/9385) + [`a7dda3546`](https://github.com/dotansimha/graphql-code-generator/commit/a7dda3546567b5bb70015fc3ae197562231d7911) + Thanks [@beerose](https://github.com/beerose)! - Improve isFragmentReady utility function to work + with noUncheckedIndexedAccess TSC setting + +- [#9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) + Thanks [@beerose](https://github.com/beerose)! - Pass `emitLegacyCommonJSImports` and + `isStringDocumentMode` to the client preset config + +- [#9414](https://github.com/dotansimha/graphql-code-generator/pull/9414) + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d) + Thanks [@beerose](https://github.com/beerose)! - Include nested fragments in string documentMode + +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/gql-tag-operations@4.0.0 - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 @@ -632,7 +875,9 @@ ### Patch Changes -- Updated dependencies [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: +- Updated dependencies + [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - @graphql-codegen/visitor-plugin-common@3.1.1 - @graphql-codegen/gql-tag-operations@3.0.1 - @graphql-codegen/typescript-operations@3.0.4 @@ -643,13 +888,28 @@ ### Major Changes -- [#9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) Thanks [@beerose](https://github.com/beerose)! - Add `TypedDocumentNode` string alternative that doesn't require GraphQL AST on the client. This change requires `@graphql-typed-document-node/core` in version `3.2.0` or higher. - -### Patch Changes - -- [#9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) Thanks [@beerose](https://github.com/beerose)! - dependencies updates: - - Updated dependency [`@graphql-typed-document-node/core@3.2.0` ↗︎](https://www.npmjs.com/package/@graphql-typed-document-node/core/v/3.2.0) (from `3.1.2`, in `dependencies`) -- Updated dependencies [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1), [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: +- [#9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) + [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) + Thanks [@beerose](https://github.com/beerose)! - Add `TypedDocumentNode` string alternative that + doesn't require GraphQL AST on the client. This change requires + `@graphql-typed-document-node/core` in version `3.2.0` or higher. + +### Patch Changes + +- [#9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) + [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) + Thanks [@beerose](https://github.com/beerose)! - dependencies updates: + - Updated dependency + [`@graphql-typed-document-node/core@3.2.0` ↗︎](https://www.npmjs.com/package/@graphql-typed-document-node/core/v/3.2.0) + (from `3.1.2`, in `dependencies`) +- Updated dependencies + [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), + [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1), + [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712), + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - @graphql-codegen/visitor-plugin-common@3.1.0 - @graphql-codegen/plugin-helpers@4.2.0 - @graphql-codegen/typescript@3.0.3 @@ -661,9 +921,16 @@ ### Patch Changes -- [#9049](https://github.com/dotansimha/graphql-code-generator/pull/9049) [`9430c3811`](https://github.com/dotansimha/graphql-code-generator/commit/9430c38111579c8c0023cbabfae047156ae2df42) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@graphql-typed-document-node/core@3.1.2` ↗︎](https://www.npmjs.com/package/@graphql-typed-document-node/core/v/3.1.2) (from `3.1.1`, in `dependencies`) -- Updated dependencies [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: +- [#9049](https://github.com/dotansimha/graphql-code-generator/pull/9049) + [`9430c3811`](https://github.com/dotansimha/graphql-code-generator/commit/9430c38111579c8c0023cbabfae047156ae2df42) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-typed-document-node/core@3.1.2` ↗︎](https://www.npmjs.com/package/@graphql-typed-document-node/core/v/3.1.2) + (from `3.1.1`, in `dependencies`) +- Updated dependencies + [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - @graphql-codegen/visitor-plugin-common@3.0.2 - @graphql-codegen/gql-tag-operations@2.0.2 - @graphql-codegen/typescript-operations@3.0.2 @@ -674,11 +941,18 @@ ### Minor Changes -- [#8893](https://github.com/dotansimha/graphql-code-generator/pull/8893) [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c) Thanks [@n1ru4l](https://github.com/n1ru4l)! - It is no longer mandatory to declare an empty plugins array when using a preset +- [#8893](https://github.com/dotansimha/graphql-code-generator/pull/8893) + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - It is no longer mandatory to declare an empty + plugins array when using a preset -- [#8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) Thanks [@kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. +- [#8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) + Thanks [@kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. - DocumentTransform is a functionality that allows you to modify `documents` before they are processed by plugins. You can use functions passed to the `documentTransforms` option to make changes to GraphQL documents. + DocumentTransform is a functionality that allows you to modify `documents` before they are + processed by plugins. You can use functions passed to the `documentTransforms` option to make + changes to GraphQL documents. To use this feature, you can write `documentTransforms` as follows: @@ -705,7 +979,8 @@ export default config ``` - For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the + following code: ```js import type { CodegenConfig } from '@graphql-codegen/cli' @@ -739,7 +1014,8 @@ export default config ``` - DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to `documentTransforms`. + DocumentTransform can also be specified by file name. You can create a custom file for a specific + transformation and pass it to `documentTransforms`. Let's create the document transform as a file: @@ -772,15 +1048,34 @@ ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) - -- [#8995](https://github.com/dotansimha/graphql-code-generator/pull/8995) [`fe2e9c7a5`](https://github.com/dotansimha/graphql-code-generator/commit/fe2e9c7a5f2731e06dd285e391936608dfa3fb51) Thanks [@charpeni](https://github.com/charpeni)! - Use `gqlTagName` for generated examples - -- [#8971](https://github.com/dotansimha/graphql-code-generator/pull/8971) [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Allow passing fragment documents to APIs like Apollos `readFragment` - -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`fe2e9c7a5`](https://github.com/dotansimha/graphql-code-generator/commit/fe2e9c7a5f2731e06dd285e391936608dfa3fb51), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) + +- [#8995](https://github.com/dotansimha/graphql-code-generator/pull/8995) + [`fe2e9c7a5`](https://github.com/dotansimha/graphql-code-generator/commit/fe2e9c7a5f2731e06dd285e391936608dfa3fb51) + Thanks [@charpeni](https://github.com/charpeni)! - Use `gqlTagName` for generated examples + +- [#8971](https://github.com/dotansimha/graphql-code-generator/pull/8971) + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Allow passing fragment documents to APIs like + Apollos `readFragment` + +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`fe2e9c7a5`](https://github.com/dotansimha/graphql-code-generator/commit/fe2e9c7a5f2731e06dd285e391936608dfa3fb51), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/add@4.0.1 - @graphql-codegen/gql-tag-operations@2.0.1 - @graphql-codegen/plugin-helpers@4.1.0 @@ -793,18 +1088,29 @@ ### 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 -- [#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)! - dependencies updates: +- [#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)! - dependencies updates: + - Updated dependency + [`@babel/helper-plugin-utils@^7.20.2` ↗︎](https://www.npmjs.com/package/@babel/helper-plugin-utils/v/7.20.2) + (from `^7.14.5`, in `dependencies`) + - Updated dependency + [`@babel/template@^7.20.7` ↗︎](https://www.npmjs.com/package/@babel/template/v/7.20.7) (from + `^7.15.4`, in `dependencies`) - - Updated dependency [`@babel/helper-plugin-utils@^7.20.2` ↗︎](https://www.npmjs.com/package/@babel/helper-plugin-utils/v/7.20.2) (from `^7.14.5`, in `dependencies`) - - Updated dependency [`@babel/template@^7.20.7` ↗︎](https://www.npmjs.com/package/@babel/template/v/7.20.7) (from `^7.15.4`, in `dependencies`) +- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) + [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) + Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes -- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes - -- 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 - @graphql-codegen/add@4.0.0 @@ -817,7 +1123,9 @@ ### Minor Changes -- [#8757](https://github.com/dotansimha/graphql-code-generator/pull/8757) [`4f290aa72`](https://github.com/dotansimha/graphql-code-generator/commit/4f290aa7279a05ffa40920c1c9e5e5b37c164335) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for persisted documents. +- [#8757](https://github.com/dotansimha/graphql-code-generator/pull/8757) + [`4f290aa72`](https://github.com/dotansimha/graphql-code-generator/commit/4f290aa7279a05ffa40920c1c9e5e5b37c164335) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for persisted documents. You can now generate and embed a persisted documents hash for the executable documents. @@ -843,7 +1151,8 @@ export default config ``` - This will generate `./src/gql/persisted-documents.json` (dictionary of hashes with their operation string). + This will generate `./src/gql/persisted-documents.json` (dictionary of hashes with their operation + string). In addition to that each generated document node will have a `__meta__.hash` property. @@ -865,7 +1174,10 @@ console.log((allFilmsWithVariablesQueryDocument as any)['__meta__']['hash']) ``` -- [#8757](https://github.com/dotansimha/graphql-code-generator/pull/8757) [`4f290aa72`](https://github.com/dotansimha/graphql-code-generator/commit/4f290aa7279a05ffa40920c1c9e5e5b37c164335) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for embedding metadata in the document AST. +- [#8757](https://github.com/dotansimha/graphql-code-generator/pull/8757) + [`4f290aa72`](https://github.com/dotansimha/graphql-code-generator/commit/4f290aa7279a05ffa40920c1c9e5e5b37c164335) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for embedding metadata in the document + AST. It is now possible to embed metadata (e.g. for your GraphQL client within the emitted code). @@ -918,9 +1230,14 @@ ### Patch Changes -- [#8757](https://github.com/dotansimha/graphql-code-generator/pull/8757) [`4f290aa72`](https://github.com/dotansimha/graphql-code-generator/commit/4f290aa7279a05ffa40920c1c9e5e5b37c164335) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - Added dependency [`@graphql-tools/documents@^0.1.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/documents/v/0.1.0) (to `dependencies`) -- Updated dependencies [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: +- [#8757](https://github.com/dotansimha/graphql-code-generator/pull/8757) + [`4f290aa72`](https://github.com/dotansimha/graphql-code-generator/commit/4f290aa7279a05ffa40920c1c9e5e5b37c164335) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Added dependency + [`@graphql-tools/documents@^0.1.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/documents/v/0.1.0) + (to `dependencies`) +- Updated dependencies + [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: - @graphql-codegen/visitor-plugin-common@2.13.8 - @graphql-codegen/gql-tag-operations@1.6.2 - @graphql-codegen/typescript-operations@2.5.13 @@ -931,16 +1248,22 @@ ### Patch Changes -- [#8796](https://github.com/dotansimha/graphql-code-generator/pull/8796) [`902451601`](https://github.com/dotansimha/graphql-code-generator/commit/902451601b5edf9cb7768e57f332fe6ade79c20a) Thanks [@shmax](https://github.com/shmax)! - remove extra asterisk and add missing semicolon in generated output +- [#8796](https://github.com/dotansimha/graphql-code-generator/pull/8796) + [`902451601`](https://github.com/dotansimha/graphql-code-generator/commit/902451601b5edf9cb7768e57f332fe6ade79c20a) + Thanks [@shmax](https://github.com/shmax)! - remove extra asterisk and add missing semicolon in + generated output -- Updated dependencies [[`902451601`](https://github.com/dotansimha/graphql-code-generator/commit/902451601b5edf9cb7768e57f332fe6ade79c20a)]: +- Updated dependencies + [[`902451601`](https://github.com/dotansimha/graphql-code-generator/commit/902451601b5edf9cb7768e57f332fe6ade79c20a)]: - @graphql-codegen/gql-tag-operations@1.6.1 ## 1.2.5 ### Patch Changes -- Updated dependencies [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560), [`2a33fc774`](https://github.com/dotansimha/graphql-code-generator/commit/2a33fc7741f7a9532bef68606666d4e3db7785a3)]: +- Updated dependencies + [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560), + [`2a33fc774`](https://github.com/dotansimha/graphql-code-generator/commit/2a33fc7741f7a9532bef68606666d4e3db7785a3)]: - @graphql-codegen/visitor-plugin-common@2.13.7 - @graphql-codegen/gql-tag-operations@1.6.0 - @graphql-codegen/typescript-operations@2.5.12 @@ -951,13 +1274,23 @@ ### Patch Changes -- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.8.0`, in `dependencies`) +- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.8.0`, in `dependencies`) -- [#8752](https://github.com/dotansimha/graphql-code-generator/pull/8752) [`cbca5a7ea`](https://github.com/dotansimha/graphql-code-generator/commit/cbca5a7ea3591f7ccf42399842cddb3581b40cf7) Thanks [@pbrink231](https://github.com/pbrink231)! - add typescript `avoidOptionals` to forwarded config +- [#8752](https://github.com/dotansimha/graphql-code-generator/pull/8752) + [`cbca5a7ea`](https://github.com/dotansimha/graphql-code-generator/commit/cbca5a7ea3591f7ccf42399842cddb3581b40cf7) + Thanks [@pbrink231](https://github.com/pbrink231)! - add typescript `avoidOptionals` to forwarded + config -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/gql-tag-operations@1.5.12 - @graphql-codegen/plugin-helpers@3.1.2 - @graphql-codegen/visitor-plugin-common@2.13.6 @@ -969,9 +1302,13 @@ ### 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), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/add@3.2.3 - @graphql-codegen/visitor-plugin-common@2.13.5 @@ -984,9 +1321,16 @@ ### Patch Changes -- [#8702](https://github.com/dotansimha/graphql-code-generator/pull/8702) [`0eb0dde8a`](https://github.com/dotansimha/graphql-code-generator/commit/0eb0dde8a0eb89805711287798561a0b14b6dd59) Thanks [@ithinkdancan](https://github.com/ithinkdancan)! - add config for nonOptionalTypename +- [#8702](https://github.com/dotansimha/graphql-code-generator/pull/8702) + [`0eb0dde8a`](https://github.com/dotansimha/graphql-code-generator/commit/0eb0dde8a0eb89805711287798561a0b14b6dd59) + Thanks [@ithinkdancan](https://github.com/ithinkdancan)! - add config for nonOptionalTypename -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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), + [`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), + [`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 - @graphql-codegen/typed-document-node@2.3.9 - @graphql-codegen/visitor-plugin-common@2.13.4 @@ -999,7 +1343,8 @@ ### Patch Changes -- Updated dependencies [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: +- Updated dependencies + [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: - @graphql-codegen/visitor-plugin-common@2.13.3 - @graphql-codegen/typescript-operations@2.5.8 - @graphql-codegen/gql-tag-operations@1.5.9 @@ -1010,20 +1355,25 @@ ### Minor Changes -- [#8657](https://github.com/dotansimha/graphql-code-generator/pull/8657) [`4b96035a8`](https://github.com/dotansimha/graphql-code-generator/commit/4b96035a8e0abca6715db586e8915ae968c403c6) Thanks [@charlypoly](https://github.com/charlypoly)! - Export a testing helper: `makeFragmentData(data, fragment)` +- [#8657](https://github.com/dotansimha/graphql-code-generator/pull/8657) + [`4b96035a8`](https://github.com/dotansimha/graphql-code-generator/commit/4b96035a8e0abca6715db586e8915ae968c403c6) + Thanks [@charlypoly](https://github.com/charlypoly)! - Export a testing helper: + `makeFragmentData(data, fragment)` ## 1.1.5 ### Patch Changes -- Updated dependencies [[`00ddc9368`](https://github.com/dotansimha/graphql-code-generator/commit/00ddc9368211a4511b9f80d543d57c85fff840cb)]: +- Updated dependencies + [[`00ddc9368`](https://github.com/dotansimha/graphql-code-generator/commit/00ddc9368211a4511b9f80d543d57c85fff840cb)]: - @graphql-codegen/gql-tag-operations@1.5.8 ## 1.1.4 ### Patch Changes -- Updated dependencies [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: +- Updated dependencies + [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: - @graphql-codegen/visitor-plugin-common@2.13.2 - @graphql-codegen/typescript@2.8.2 - @graphql-codegen/gql-tag-operations@1.5.7 @@ -1034,7 +1384,8 @@ ### Patch Changes -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/visitor-plugin-common@2.13.1 - @graphql-codegen/plugin-helpers@2.7.2 - @graphql-codegen/gql-tag-operations@1.5.6 @@ -1046,25 +1397,36 @@ ### Patch Changes -- [#8545](https://github.com/dotansimha/graphql-code-generator/pull/8545) [`3e7792486`](https://github.com/dotansimha/graphql-code-generator/commit/3e7792486e088a0dc10a0e3e4f5e0dff2ca031de) Thanks [@tojump](https://github.com/tojump)! - Forward dedupeFragments config option +- [#8545](https://github.com/dotansimha/graphql-code-generator/pull/8545) + [`3e7792486`](https://github.com/dotansimha/graphql-code-generator/commit/3e7792486e088a0dc10a0e3e4f5e0dff2ca031de) + Thanks [@tojump](https://github.com/tojump)! - Forward dedupeFragments config option ## 1.1.1 ### Patch Changes -- [#8523](https://github.com/dotansimha/graphql-code-generator/pull/8523) [`3a3202fbb`](https://github.com/dotansimha/graphql-code-generator/commit/3a3202fbb671617d34075040e7aa8129650bbcb1) Thanks [@charlypoly](https://github.com/charlypoly)! - allow non-typescript plugins +- [#8523](https://github.com/dotansimha/graphql-code-generator/pull/8523) + [`3a3202fbb`](https://github.com/dotansimha/graphql-code-generator/commit/3a3202fbb671617d34075040e7aa8129650bbcb1) + Thanks [@charlypoly](https://github.com/charlypoly)! - allow non-typescript plugins ## 1.1.0 ### Minor Changes -- [#8498](https://github.com/dotansimha/graphql-code-generator/pull/8498) [`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b) Thanks [@charlypoly](https://github.com/charlypoly)! - Fragment masking ` $fragmentName` and ` $fragmentRefs` are optionals +- [#8498](https://github.com/dotansimha/graphql-code-generator/pull/8498) + [`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b) + Thanks [@charlypoly](https://github.com/charlypoly)! - Fragment masking ` $fragmentName` and + ` $fragmentRefs` are optionals ### Patch Changes -- [#8500](https://github.com/dotansimha/graphql-code-generator/pull/8500) [`71aae7a92`](https://github.com/dotansimha/graphql-code-generator/commit/71aae7a92f77ec5ce29631b292d84e066219ea35) Thanks [@charlypoly](https://github.com/charlypoly)! - Add warning and errors to prevent unwanted configuration +- [#8500](https://github.com/dotansimha/graphql-code-generator/pull/8500) + [`71aae7a92`](https://github.com/dotansimha/graphql-code-generator/commit/71aae7a92f77ec5ce29631b292d84e066219ea35) + Thanks [@charlypoly](https://github.com/charlypoly)! - Add warning and errors to prevent unwanted + configuration -- Updated dependencies [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: +- Updated dependencies + [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: - @graphql-codegen/visitor-plugin-common@2.13.0 - @graphql-codegen/gql-tag-operations@1.5.5 - @graphql-codegen/typescript-operations@2.5.5 @@ -1075,13 +1437,17 @@ ### Patch Changes -- [#8472](https://github.com/dotansimha/graphql-code-generator/pull/8472) [`a08fb6502`](https://github.com/dotansimha/graphql-code-generator/commit/a08fb6502f5dec6babcb78dbecd621f05a3e300c) Thanks [@panusoi](https://github.com/panusoi)! - The client preset now allows the use of the `enumsAsTypes` config option +- [#8472](https://github.com/dotansimha/graphql-code-generator/pull/8472) + [`a08fb6502`](https://github.com/dotansimha/graphql-code-generator/commit/a08fb6502f5dec6babcb78dbecd621f05a3e300c) + Thanks [@panusoi](https://github.com/panusoi)! - The client preset now allows the use of the + `enumsAsTypes` config option ## 1.0.6 ### Patch Changes -- Updated dependencies [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: +- Updated dependencies + [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: - @graphql-codegen/visitor-plugin-common@2.12.2 - @graphql-codegen/gql-tag-operations@1.5.4 - @graphql-codegen/typescript-operations@2.5.4 @@ -1092,13 +1458,18 @@ ### Patch Changes -- [#8457](https://github.com/dotansimha/graphql-code-generator/pull/8457) [`126194017`](https://github.com/dotansimha/graphql-code-generator/commit/1261940173b8266d17fa03c1775104aff6086d3c) Thanks [@charlypoly](https://github.com/charlypoly)! - typo in config mapping +- [#8457](https://github.com/dotansimha/graphql-code-generator/pull/8457) + [`126194017`](https://github.com/dotansimha/graphql-code-generator/commit/1261940173b8266d17fa03c1775104aff6086d3c) + Thanks [@charlypoly](https://github.com/charlypoly)! - typo in config mapping ## 1.0.4 ### Patch Changes -- [#8455](https://github.com/dotansimha/graphql-code-generator/pull/8455) [`d19573d88`](https://github.com/dotansimha/graphql-code-generator/commit/d19573d889513abab77a99d5f75f25612a891446) Thanks [@charlypoly](https://github.com/charlypoly)! - The client preset now allows the use of the following `config`: +- [#8455](https://github.com/dotansimha/graphql-code-generator/pull/8455) + [`d19573d88`](https://github.com/dotansimha/graphql-code-generator/commit/d19573d889513abab77a99d5f75f25612a891446) + Thanks [@charlypoly](https://github.com/charlypoly)! - The client preset now allows the use of the + following `config`: - `scalars` - `defaultScalarType` - `strictScalars` @@ -1111,29 +1482,43 @@ ### Patch Changes -- [#8443](https://github.com/dotansimha/graphql-code-generator/pull/8443) [`e2d115146`](https://github.com/dotansimha/graphql-code-generator/commit/e2d11514695ca56674983e8b3b7549cd3b440a5d) Thanks [@charlypoly](https://github.com/charlypoly)! - fix(gql-tag-operations): issues with "no documents" scenario +- [#8443](https://github.com/dotansimha/graphql-code-generator/pull/8443) + [`e2d115146`](https://github.com/dotansimha/graphql-code-generator/commit/e2d11514695ca56674983e8b3b7549cd3b440a5d) + Thanks [@charlypoly](https://github.com/charlypoly)! - fix(gql-tag-operations): issues with "no + documents" scenario -- Updated dependencies [[`e2d115146`](https://github.com/dotansimha/graphql-code-generator/commit/e2d11514695ca56674983e8b3b7549cd3b440a5d)]: +- Updated dependencies + [[`e2d115146`](https://github.com/dotansimha/graphql-code-generator/commit/e2d11514695ca56674983e8b3b7549cd3b440a5d)]: - @graphql-codegen/gql-tag-operations@1.5.3 ## 1.0.2 ### Patch Changes -- [#8402](https://github.com/dotansimha/graphql-code-generator/pull/8402) [`a76c606e3`](https://github.com/dotansimha/graphql-code-generator/commit/a76c606e3b631ef903d4066e2643bc7f95457e30) Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: - - - Updated dependency [`@graphql-codegen/gql-tag-operations@1.5.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/gql-tag-operations/v/1.5.1) (from `^1.5.0`, in `dependencies`) +- [#8402](https://github.com/dotansimha/graphql-code-generator/pull/8402) + [`a76c606e3`](https://github.com/dotansimha/graphql-code-generator/commit/a76c606e3b631ef903d4066e2643bc7f95457e30) + Thanks [@charlypoly](https://github.com/charlypoly)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/gql-tag-operations@1.5.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/gql-tag-operations/v/1.5.1) + (from `^1.5.0`, in `dependencies`) -- [#8402](https://github.com/dotansimha/graphql-code-generator/pull/8402) [`a76c606e3`](https://github.com/dotansimha/graphql-code-generator/commit/a76c606e3b631ef903d4066e2643bc7f95457e30) Thanks [@charlypoly](https://github.com/charlypoly)! - update `@graphql-codegen/gql-tag-operations` +- [#8402](https://github.com/dotansimha/graphql-code-generator/pull/8402) + [`a76c606e3`](https://github.com/dotansimha/graphql-code-generator/commit/a76c606e3b631ef903d4066e2643bc7f95457e30) + Thanks [@charlypoly](https://github.com/charlypoly)! - update + `@graphql-codegen/gql-tag-operations` -- Updated dependencies [[`a76c606e3`](https://github.com/dotansimha/graphql-code-generator/commit/a76c606e3b631ef903d4066e2643bc7f95457e30)]: +- Updated dependencies + [[`a76c606e3`](https://github.com/dotansimha/graphql-code-generator/commit/a76c606e3b631ef903d4066e2643bc7f95457e30)]: - @graphql-codegen/gql-tag-operations@1.5.2 ## 1.0.1 ### Patch Changes -- [#8302](https://github.com/dotansimha/graphql-code-generator/pull/8302) [`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6) Thanks [@charlypoly](https://github.com/charlypoly)! - **`@graphql-codegen/gql-tag-operations` and `@graphql-codegen/gql-tag-operations-preset`** +- [#8302](https://github.com/dotansimha/graphql-code-generator/pull/8302) + [`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6) + Thanks [@charlypoly](https://github.com/charlypoly)! - **`@graphql-codegen/gql-tag-operations` and + `@graphql-codegen/gql-tag-operations-preset`** Introduce a `gqlTagName` configuration option @@ -1141,7 +1526,8 @@ **`@graphql-codegen/client-preset`** - New preset for GraphQL Code Generator v3, more information on the RFC: https://github.com/dotansimha/graphql-code-generator/issues/8296 + New preset for GraphQL Code Generator v3, more information on the RFC: + https://github.com/dotansimha/graphql-code-generator/issues/8296 *** @@ -1149,5 +1535,6 @@ Update init wizard with 3.0 recommendations (`codegen.ts`, `client` preset) -- Updated dependencies [[`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6)]: +- Updated dependencies + [[`876844e76`](https://github.com/dotansimha/graphql-code-generator/commit/876844e7644a917172f09b3c4eb54a2f4c90e4c6)]: - @graphql-codegen/gql-tag-operations@1.5.0 diff --git a/packages/presets/client/package.json b/packages/presets/client/package.json index 2a666178c63..132efa94d72 100644 --- a/packages/presets/client/package.json +++ b/packages/presets/client/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/client-preset", - "version": "5.2.4", + "version": "5.2.5", "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.0", - "@graphql-codegen/gql-tag-operations": "5.1.4", - "@graphql-codegen/plugin-helpers": "^6.1.1", - "@graphql-codegen/typed-document-node": "^6.1.7", - "@graphql-codegen/typescript": "^5.0.9", - "@graphql-codegen/typescript-operations": "^5.0.9", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/add": "^6.0.1", + "@graphql-codegen/gql-tag-operations": "5.1.5", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/typed-document-node": "^6.1.8", + "@graphql-codegen/typescript": "^5.0.10", + "@graphql-codegen/typescript-operations": "^5.0.10", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "@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 994c842348c..c5b0a20c7ad 100644 --- a/packages/presets/graphql-modules/CHANGELOG.md +++ b/packages/presets/graphql-modules/CHANGELOG.md @@ -1,13 +1,36 @@ # @graphql-codegen/graphql-modules-preset +## 5.1.5 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a), + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + - @graphql-codegen/visitor-plugin-common@6.2.5 + ## 5.1.4 ### Patch Changes -- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) (from `6.2.3`, in `dependencies`) - - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) -- Updated dependencies [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: +- [#10619](https://github.com/dotansimha/graphql-code-generator/pull/10619) + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@graphql-codegen/visitor-plugin-common@^6.2.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.3) + (from `6.2.3`, in `dependencies`) + - Updated dependency + [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) + (from `^10.0.0`, in `dependencies`) +- Updated dependencies + [[`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072), + [`cdf5dc5`](https://github.com/dotansimha/graphql-code-generator/commit/cdf5dc56c5591cfe031e02cbc31deff761a40072)]: - @graphql-codegen/plugin-helpers@6.1.1 - @graphql-codegen/visitor-plugin-common@6.2.4 @@ -15,32 +38,39 @@ ### Patch Changes -- Updated dependencies [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: +- Updated dependencies + [[`6038634`](https://github.com/dotansimha/graphql-code-generator/commit/60386344081917f2884db933309821603a2be2bf)]: - @graphql-codegen/visitor-plugin-common@6.2.3 ## 5.1.2 ### Patch Changes -- Updated dependencies [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: +- Updated dependencies + [[`f588d91`](https://github.com/dotansimha/graphql-code-generator/commit/f588d91ac43ea0aa5931915ce980d2e6876bb59c)]: - @graphql-codegen/visitor-plugin-common@6.2.2 ## 5.1.1 ### Patch Changes -- Updated dependencies [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: +- Updated dependencies + [[`b995ed1`](https://github.com/dotansimha/graphql-code-generator/commit/b995ed13a49379ea05e0e313fac68b557527523a)]: - @graphql-codegen/visitor-plugin-common@6.2.1 ## 5.1.0 ### Minor Changes -- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option +- [#10510](https://github.com/dotansimha/graphql-code-generator/pull/10510) + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670) + Thanks [@nickmessing](https://github.com/nickmessing)! - add importExtension configuration option ### Patch Changes -- Updated dependencies [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: +- Updated dependencies + [[`f821e8a`](https://github.com/dotansimha/graphql-code-generator/commit/f821e8ab9351f23a9f7e5d5e6fc69c8e8868cad8), + [`9e70bcb`](https://github.com/dotansimha/graphql-code-generator/commit/9e70bcbf5390e815a6844f1965b04056e5d8e670)]: - @graphql-codegen/visitor-plugin-common@6.2.0 - @graphql-codegen/plugin-helpers@6.1.0 @@ -48,45 +78,68 @@ ### Patch Changes -- Updated dependencies [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: +- Updated dependencies + [[`51a1a72`](https://github.com/dotansimha/graphql-code-generator/commit/51a1a7280578d43681391df11d320a8416c0b41d)]: - @graphql-codegen/visitor-plugin-common@6.1.2 ## 5.0.4 ### Patch Changes -- Updated dependencies [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: +- Updated dependencies + [[`6715330`](https://github.com/dotansimha/graphql-code-generator/commit/67153304646694d75aee24afd70c3fce12e9f1f2)]: - @graphql-codegen/visitor-plugin-common@6.1.1 ## 5.0.3 ### Patch Changes -- Updated dependencies [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: +- Updated dependencies + [[`8258f1f`](https://github.com/dotansimha/graphql-code-generator/commit/8258f1f6012c106d02ef28bca9ec424f70c4aa26)]: - @graphql-codegen/visitor-plugin-common@6.1.0 ## 5.0.2 ### Patch Changes -- Updated dependencies [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: +- Updated dependencies + [[`accdab6`](https://github.com/dotansimha/graphql-code-generator/commit/accdab69106605241933e9d66d64dc7077656f30)]: - @graphql-codegen/visitor-plugin-common@6.0.1 ## 5.0.1 ### Patch Changes -- [#10447](https://github.com/dotansimha/graphql-code-generator/pull/10447) [`5dad86e`](https://github.com/dotansimha/graphql-code-generator/commit/5dad86e4753369e288fba5821722507d88afb3dc) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix \_\_isTypeOf wrongly picked on objects that are not implementing types or union members +- [#10447](https://github.com/dotansimha/graphql-code-generator/pull/10447) + [`5dad86e`](https://github.com/dotansimha/graphql-code-generator/commit/5dad86e4753369e288fba5821722507d88afb3dc) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix \_\_isTypeOf wrongly picked on objects + that are not implementing types or union members ## 5.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 - -### 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), [`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)]: +- [#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), + [`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/visitor-plugin-common@6.0.0 - @graphql-codegen/plugin-helpers@6.0.0 @@ -94,48 +147,59 @@ ### Patch Changes -- [#10314](https://github.com/dotansimha/graphql-code-generator/pull/10314) [`d94ae3d`](https://github.com/dotansimha/graphql-code-generator/commit/d94ae3dc71f84ab2b1ce8733cf42342bb27fa951) Thanks [@acharkov](https://github.com/acharkov)! - Fix generated imports for graphql-modules-preset: .js extension is used. +- [#10314](https://github.com/dotansimha/graphql-code-generator/pull/10314) + [`d94ae3d`](https://github.com/dotansimha/graphql-code-generator/commit/d94ae3dc71f84ab2b1ce8733cf42342bb27fa951) + Thanks [@acharkov](https://github.com/acharkov)! - Fix generated imports for + graphql-modules-preset: .js extension is used. ## 4.0.16 ### Patch Changes -- Updated dependencies [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: +- Updated dependencies + [[`f6909d1`](https://github.com/dotansimha/graphql-code-generator/commit/f6909d1797c15b79a0afb7ec089471763a485bfc)]: - @graphql-codegen/visitor-plugin-common@5.8.0 ## 4.0.15 ### Patch Changes -- Updated dependencies [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: +- Updated dependencies + [[`d8566c0`](https://github.com/dotansimha/graphql-code-generator/commit/d8566c015943ea4dbcaeaf57d3d8406553ae230a)]: - @graphql-codegen/visitor-plugin-common@5.7.1 ## 4.0.14 ### Patch Changes -- Updated dependencies [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: +- Updated dependencies + [[`6d7c1d7`](https://github.com/dotansimha/graphql-code-generator/commit/6d7c1d7c0a4662acdc0efafd4234229ad0a8dd3c)]: - @graphql-codegen/visitor-plugin-common@5.7.0 ## 4.0.13 ### Patch Changes -- Updated dependencies [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: +- Updated dependencies + [[`60dd72f`](https://github.com/dotansimha/graphql-code-generator/commit/60dd72fb103fd7fd70b4e1def98da29588865517)]: - @graphql-codegen/visitor-plugin-common@5.6.1 ## 4.0.12 ### Patch Changes -- Updated dependencies [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: +- Updated dependencies + [[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), + [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - @graphql-codegen/visitor-plugin-common@5.6.0 ## 4.0.11 ### Patch Changes -- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: +- Updated dependencies + [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), + [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - @graphql-codegen/visitor-plugin-common@5.5.0 - @graphql-codegen/plugin-helpers@5.1.0 @@ -143,28 +207,36 @@ ### Patch Changes -- Updated dependencies [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: +- Updated dependencies + [[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - @graphql-codegen/visitor-plugin-common@5.4.0 ## 4.0.9 ### Patch Changes -- Updated dependencies [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: +- Updated dependencies + [[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - @graphql-codegen/visitor-plugin-common@5.3.1 ## 4.0.8 ### Patch Changes -- Updated dependencies [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: +- Updated dependencies + [[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), + [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - @graphql-codegen/visitor-plugin-common@5.3.0 ## 4.0.7 ### Patch Changes -- Updated dependencies [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: +- Updated dependencies + [[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), + [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), + [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - @graphql-codegen/plugin-helpers@5.0.4 - @graphql-codegen/visitor-plugin-common@5.2.0 @@ -172,23 +244,29 @@ ### Patch Changes -- Updated dependencies [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: +- Updated dependencies + [[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), + [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - @graphql-codegen/visitor-plugin-common@5.1.0 ## 4.0.5 ### Patch Changes -- Updated dependencies [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: +- Updated dependencies + [[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - @graphql-codegen/visitor-plugin-common@5.0.0 ## 4.0.4 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/visitor-plugin-common@4.1.2 - @graphql-codegen/plugin-helpers@5.0.3 @@ -196,16 +274,24 @@ ### Patch Changes -- Updated dependencies [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: +- Updated dependencies + [[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - @graphql-codegen/visitor-plugin-common@4.1.1 ## 4.0.2 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 - @graphql-codegen/visitor-plugin-common@4.1.0 @@ -213,20 +299,40 @@ ### Patch Changes -- Updated dependencies [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: +- Updated dependencies + [[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - @graphql-codegen/visitor-plugin-common@4.0.1 ## 4.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 - -### Patch Changes - -- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) (from `^9.0.0`, in `dependencies`) -- Updated dependencies [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: +- [`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 + +- [#9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.0) + (from `^9.0.0`, in `dependencies`) +- Updated dependencies + [[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), + [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), + [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), + [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), + [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), + [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), + [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), + [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), + [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), + [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), + [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - @graphql-codegen/plugin-helpers@5.0.0 - @graphql-codegen/visitor-plugin-common@4.0.0 @@ -234,14 +340,21 @@ ### Patch Changes -- Updated dependencies [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: +- Updated dependencies + [[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), + [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - @graphql-codegen/visitor-plugin-common@3.1.1 ## 3.1.2 ### Patch Changes -- Updated dependencies [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: +- Updated dependencies + [[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), + [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), + [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), + [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - @graphql-codegen/visitor-plugin-common@3.1.0 - @graphql-codegen/plugin-helpers@4.2.0 @@ -249,16 +362,23 @@ ### Patch Changes -- Updated dependencies [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: +- Updated dependencies + [[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), + [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), + [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - @graphql-codegen/visitor-plugin-common@3.0.2 ## 3.1.0 ### Minor Changes -- [#8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) Thanks [@kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. +- [#8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) + Thanks [@kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. - DocumentTransform is a functionality that allows you to modify `documents` before they are processed by plugins. You can use functions passed to the `documentTransforms` option to make changes to GraphQL documents. + DocumentTransform is a functionality that allows you to modify `documents` before they are + processed by plugins. You can use functions passed to the `documentTransforms` option to make + changes to GraphQL documents. To use this feature, you can write `documentTransforms` as follows: @@ -285,7 +405,8 @@ export default config ``` - For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the + following code: ```js import type { CodegenConfig } from '@graphql-codegen/cli' @@ -319,7 +440,8 @@ export default config ``` - DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to `documentTransforms`. + DocumentTransform can also be specified by file name. You can create a custom file for a specific + transformation and pass it to `documentTransforms`. Let's create the document transform as a file: @@ -352,9 +474,17 @@ ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 - @graphql-codegen/visitor-plugin-common@3.0.1 @@ -362,13 +492,19 @@ ### 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 -- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes +- [#8871](https://github.com/dotansimha/graphql-code-generator/pull/8871) + [`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5) + Thanks [@B2o5T](https://github.com/B2o5T)! - eslint fixes -- 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/visitor-plugin-common@3.0.0 - @graphql-codegen/plugin-helpers@4.0.0 @@ -376,23 +512,32 @@ ### Patch Changes -- Updated dependencies [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: +- Updated dependencies + [[`a98198524`](https://github.com/dotansimha/graphql-code-generator/commit/a9819852443884b43de7c15040ccffc205f9177a)]: - @graphql-codegen/visitor-plugin-common@2.13.8 ## 2.5.11 ### Patch Changes -- Updated dependencies [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: +- Updated dependencies + [[`eb454d06c`](https://github.com/dotansimha/graphql-code-generator/commit/eb454d06c977f11f7d4a7b0b07eb80f8fd590560)]: - @graphql-codegen/visitor-plugin-common@2.13.7 ## 2.5.10 ### Patch Changes -- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) (from `^8.8.0`, in `dependencies`) -- Updated dependencies [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: +- [#8771](https://github.com/dotansimha/graphql-code-generator/pull/8771) + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`@graphql-tools/utils@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/9.0.0) + (from `^8.8.0`, in `dependencies`) +- Updated dependencies + [[`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`ed87c782b`](https://github.com/dotansimha/graphql-code-generator/commit/ed87c782bf3292bfbee772c6962d6cbc43a9abe7), + [`6c6b6f2df`](https://github.com/dotansimha/graphql-code-generator/commit/6c6b6f2df88a3a37b437a25320dab5590f033316)]: - @graphql-codegen/plugin-helpers@3.1.2 - @graphql-codegen/visitor-plugin-common@2.13.6 @@ -400,9 +545,13 @@ ### 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), [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: +- Updated dependencies + [[`307a5d350`](https://github.com/dotansimha/graphql-code-generator/commit/307a5d350643dd065d228b04ef3b4bd70cac0e81), + [`46f75304a`](https://github.com/dotansimha/graphql-code-generator/commit/46f75304a69a13e8b5f58303f65c81b30a2ad96a)]: - @graphql-codegen/plugin-helpers@3.1.1 - @graphql-codegen/visitor-plugin-common@2.13.5 @@ -410,9 +559,17 @@ ### Patch Changes -- [#8686](https://github.com/dotansimha/graphql-code-generator/pull/8686) [`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`change-case-all@1.0.15` ↗︎](https://www.npmjs.com/package/change-case-all/v/1.0.15) (from `1.0.14`, in `dependencies`) -- Updated dependencies [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), [`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)]: +- [#8686](https://github.com/dotansimha/graphql-code-generator/pull/8686) + [`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`change-case-all@1.0.15` ↗︎](https://www.npmjs.com/package/change-case-all/v/1.0.15) (from + `1.0.14`, in `dependencies`) +- Updated dependencies + [[`a6c2097f4`](https://github.com/dotansimha/graphql-code-generator/commit/a6c2097f4789c0cce4296ce349790ce29943ed22), + [`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 - @graphql-codegen/visitor-plugin-common@2.13.4 @@ -420,21 +577,24 @@ ### Patch Changes -- Updated dependencies [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: +- Updated dependencies + [[`62f655452`](https://github.com/dotansimha/graphql-code-generator/commit/62f6554520955dd675e11c920f35ef9bf0aaeffe)]: - @graphql-codegen/visitor-plugin-common@2.13.3 ## 2.5.6 ### Patch Changes -- Updated dependencies [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: +- Updated dependencies + [[`ef4c2c9c2`](https://github.com/dotansimha/graphql-code-generator/commit/ef4c2c9c233c68830f10eb4c167c7cceead27122)]: - @graphql-codegen/visitor-plugin-common@2.13.2 ## 2.5.5 ### Patch Changes -- Updated dependencies [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: +- Updated dependencies + [[`63dc8f205`](https://github.com/dotansimha/graphql-code-generator/commit/63dc8f2054e27b944f7d8dc59db8afa85760a127)]: - @graphql-codegen/visitor-plugin-common@2.13.1 - @graphql-codegen/plugin-helpers@2.7.2 @@ -442,29 +602,39 @@ ### Patch Changes -- Updated dependencies [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: +- Updated dependencies + [[`a46b8d99c`](https://github.com/dotansimha/graphql-code-generator/commit/a46b8d99c797283d773ec14163c62be9c84d4c2b)]: - @graphql-codegen/visitor-plugin-common@2.13.0 ## 2.5.3 ### Patch Changes -- [#8486](https://github.com/dotansimha/graphql-code-generator/pull/8486) [`08add4e88`](https://github.com/dotansimha/graphql-code-generator/commit/08add4e88af8fd05172cbb8f7973952155c43b4a) Thanks [@jycouet](https://github.com/jycouet)! - handle global config.useTypeImports in graphql-modules +- [#8486](https://github.com/dotansimha/graphql-code-generator/pull/8486) + [`08add4e88`](https://github.com/dotansimha/graphql-code-generator/commit/08add4e88af8fd05172cbb8f7973952155c43b4a) + Thanks [@jycouet](https://github.com/jycouet)! - handle global config.useTypeImports in + graphql-modules ## 2.5.2 ### Patch Changes -- Updated dependencies [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: +- Updated dependencies + [[`1bd7f771c`](https://github.com/dotansimha/graphql-code-generator/commit/1bd7f771ccb949a5a37395c7c57cb41c19340714)]: - @graphql-codegen/visitor-plugin-common@2.12.2 ## 2.5.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), [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: +- Updated dependencies + [[`b408f8238`](https://github.com/dotansimha/graphql-code-generator/commit/b408f8238c00bbb4cd448501093856c06cfde50f), + [`47d0a57e2`](https://github.com/dotansimha/graphql-code-generator/commit/47d0a57e27dd0d2334670bfc6c81c45e00ff4e74)]: - @graphql-codegen/visitor-plugin-common@2.12.1 - @graphql-codegen/plugin-helpers@2.6.2 @@ -472,7 +642,9 @@ ### Minor Changes -- [#6796](https://github.com/dotansimha/graphql-code-generator/pull/6796) [`8b6e8e664`](https://github.com/dotansimha/graphql-code-generator/commit/8b6e8e6648f2d95cc40873cfc008a545d8a9c46f) Thanks [@kamilkisiela](https://github.com/kamilkisiela)! - Introduce requireRootResolvers flag +- [#6796](https://github.com/dotansimha/graphql-code-generator/pull/6796) + [`8b6e8e664`](https://github.com/dotansimha/graphql-code-generator/commit/8b6e8e6648f2d95cc40873cfc008a545d8a9c46f) + Thanks [@kamilkisiela](https://github.com/kamilkisiela)! - Introduce requireRootResolvers flag ## 2.4.2 @@ -486,7 +658,8 @@ ### Patch Changes -- 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an import with a `.js` extension. +- 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an + import with a `.js` extension. - Updated dependencies [525ad580b] - @graphql-codegen/visitor-plugin-common@2.11.1 @@ -494,7 +667,8 @@ ### 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) @@ -669,7 +843,8 @@ ### Patch Changes -- f32521da3: Duplication of TS interfaces when GraphQL type definition and type extension are in the same module +- f32521da3: Duplication of TS interfaces when GraphQL type definition and type extension are in the + same module - Updated dependencies [6470e6cc9] - Updated dependencies [263570e50] - Updated dependencies [35199dedf] @@ -702,7 +877,8 @@ ### Patch Changes -- edd029e87: fix(graphql-modules-preset): do not parse SDL and use extendedSources that have parsed document already +- edd029e87: fix(graphql-modules-preset): do not parse SDL and use extendedSources that have parsed + document already ## 2.0.0 @@ -712,7 +888,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 @@ -794,7 +971,8 @@ - f7a94f9d: Include enum resolvers - 3cba8833: Fixed issue with preset breaking when pattern doesn't match -- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention +- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming + convention - Updated dependencies [e947f8e3] - Updated dependencies [29b75b1e] - Updated dependencies [d4942d04] @@ -807,7 +985,8 @@ ### Patch Changes -- c7cb4195: fix(graphql-modules-preset): apply naming convention to scalar config references in module typings +- c7cb4195: fix(graphql-modules-preset): apply naming convention to scalar config references in + module typings - Updated dependencies [63be0f40] - Updated dependencies [190482a1] - Updated dependencies [4444348d] @@ -832,7 +1011,8 @@ ### Minor Changes -- 6b708b69: Added `importBaseTypesFrom` flag to allow customizations of the import for the base types +- 6b708b69: Added `importBaseTypesFrom` flag to allow customizations of the import for the base + types ### Patch Changes diff --git a/packages/presets/graphql-modules/package.json b/packages/presets/graphql-modules/package.json index b1934acc801..6c34d7cc720 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.4", + "version": "5.1.5", "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.1.1", - "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-codegen/plugin-helpers": "^6.2.2", + "@graphql-codegen/visitor-plugin-common": "^6.2.5", "@graphql-tools/utils": "^11.0.0", "change-case-all": "1.0.15", "parse-filepath": "^1.0.2", diff --git a/packages/utils/graphql-codegen-testing/CHANGELOG.md b/packages/utils/graphql-codegen-testing/CHANGELOG.md index 435c2ea689a..f57edd71481 100644 --- a/packages/utils/graphql-codegen-testing/CHANGELOG.md +++ b/packages/utils/graphql-codegen-testing/CHANGELOG.md @@ -1,146 +1,234 @@ # @graphql-codegen/testing +## 4.0.5 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) +- Updated dependencies + [[`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a)]: + - @graphql-codegen/plugin-helpers@6.2.2 + ## 4.0.4 ### Patch Changes -- [#10622](https://github.com/dotansimha/graphql-code-generator/pull/10622) [`369b2c1`](https://github.com/dotansimha/graphql-code-generator/commit/369b2c1934a74a3ca7f49d8972608f5ec341d17b) Thanks [@eddeee888](https://github.com/eddeee888)! - Force publish to fix failed publish 4.0.2 +- [#10622](https://github.com/dotansimha/graphql-code-generator/pull/10622) + [`369b2c1`](https://github.com/dotansimha/graphql-code-generator/commit/369b2c1934a74a3ca7f49d8972608f5ec341d17b) + Thanks [@eddeee888](https://github.com/eddeee888)! - Force publish to fix failed publish 4.0.2 ## 4.0.2 ### Patch Changes -- [#10614](https://github.com/dotansimha/graphql-code-generator/pull/10614) [`4780d57`](https://github.com/dotansimha/graphql-code-generator/commit/4780d57377392da71e3665f7b8cffe7cbcb98309) Thanks [@eddeee888](https://github.com/eddeee888)! - Fix usage issue due to ESM/CJS incompatibility +- [#10614](https://github.com/dotansimha/graphql-code-generator/pull/10614) + [`4780d57`](https://github.com/dotansimha/graphql-code-generator/commit/4780d57377392da71e3665f7b8cffe7cbcb98309) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix usage issue due to ESM/CJS + incompatibility ## 4.0.1 ### Patch Changes -- [#10313](https://github.com/dotansimha/graphql-code-generator/pull/10313) [`ace5c41`](https://github.com/dotansimha/graphql-code-generator/commit/ace5c4176ce4bc8328d3066a8111ca8ce3a34ca6) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`jest-diff@^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0 || ^30.0.0` ↗︎](https://www.npmjs.com/package/jest-diff/v/23.0.0) (from `^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0`, in `peerDependencies`) +- [#10313](https://github.com/dotansimha/graphql-code-generator/pull/10313) + [`ace5c41`](https://github.com/dotansimha/graphql-code-generator/commit/ace5c4176ce4bc8328d3066a8111ca8ce3a34ca6) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency + [`jest-diff@^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0 || ^30.0.0` ↗︎](https://www.npmjs.com/package/jest-diff/v/23.0.0) + (from `^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0`, in + `peerDependencies`) ## 4.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)! - Bump depdendencies major versions: - +- [#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)! - Bump depdendencies major versions: - nock v14 -- [#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 ## 3.0.4 ### Patch Changes -- [#10070](https://github.com/dotansimha/graphql-code-generator/pull/10070) [`5fb302c`](https://github.com/dotansimha/graphql-code-generator/commit/5fb302c9ee8fc7af01c03e63a1c33ea1997fca16) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`nock@13.5.4` ↗︎](https://www.npmjs.com/package/nock/v/13.5.4) (from `13.5.3`, in `dependencies`) +- [#10070](https://github.com/dotansimha/graphql-code-generator/pull/10070) + [`5fb302c`](https://github.com/dotansimha/graphql-code-generator/commit/5fb302c9ee8fc7af01c03e63a1c33ea1997fca16) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`nock@13.5.4` ↗︎](https://www.npmjs.com/package/nock/v/13.5.4) (from + `13.5.3`, in `dependencies`) ## 3.0.3 ### Patch Changes -- [#9627](https://github.com/dotansimha/graphql-code-generator/pull/9627) [`422e2a7`](https://github.com/dotansimha/graphql-code-generator/commit/422e2a78f4ebe158e5e4a5f3248e0d03e88b69d6) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - - Updated dependency [`nock@13.3.6` ↗︎](https://www.npmjs.com/package/nock/v/13.3.6) (from `13.3.1`, in `dependencies`) +- [#9627](https://github.com/dotansimha/graphql-code-generator/pull/9627) + [`422e2a7`](https://github.com/dotansimha/graphql-code-generator/commit/422e2a78f4ebe158e5e4a5f3248e0d03e88b69d6) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`nock@13.3.6` ↗︎](https://www.npmjs.com/package/nock/v/13.3.6) (from + `13.3.1`, in `dependencies`) -- [#9851](https://github.com/dotansimha/graphql-code-generator/pull/9851) [`217ed56`](https://github.com/dotansimha/graphql-code-generator/commit/217ed565a2f722f76ce90a3ce5d14117d3e9993f) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`nock@13.5.3` ↗︎](https://www.npmjs.com/package/nock/v/13.5.3) (from `13.3.6`, in `dependencies`) +- [#9851](https://github.com/dotansimha/graphql-code-generator/pull/9851) + [`217ed56`](https://github.com/dotansimha/graphql-code-generator/commit/217ed565a2f722f76ce90a3ce5d14117d3e9993f) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`nock@13.5.3` ↗︎](https://www.npmjs.com/package/nock/v/13.5.3) (from + `13.3.6`, in `dependencies`) ## 3.0.2 ### Patch Changes -- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release +- [#9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) + [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) + Thanks [@saihaj](https://github.com/saihaj)! - bumping for a release -- Updated dependencies [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: +- Updated dependencies + [[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - @graphql-codegen/plugin-helpers@5.0.3 ## 3.0.1 ### Patch Changes -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) - -- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: - - Updated dependency [`jest-diff@^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0` ↗︎](https://www.npmjs.com/package/jest-diff/v/23.0.0) (from `^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0`, in `peerDependencies`) -- Updated dependencies [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from + `~2.5.0`, in `dependencies`) + +- [#9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) + [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) + Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates: + - Updated dependency + [`jest-diff@^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0` ↗︎](https://www.npmjs.com/package/jest-diff/v/23.0.0) + (from `^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0`, in `peerDependencies`) +- Updated dependencies + [[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - @graphql-codegen/plugin-helpers@5.0.2 ## 3.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 -- [#9407](https://github.com/dotansimha/graphql-code-generator/pull/9407) [`bec804225`](https://github.com/dotansimha/graphql-code-generator/commit/bec8042256e1718e7867b9d5c038eb7d22e72774) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`nock@13.3.1` ↗︎](https://www.npmjs.com/package/nock/v/13.3.1) (from `13.3.0`, in `dependencies`) -- 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)]: +- [#9407](https://github.com/dotansimha/graphql-code-generator/pull/9407) + [`bec804225`](https://github.com/dotansimha/graphql-code-generator/commit/bec8042256e1718e7867b9d5c038eb7d22e72774) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`nock@13.3.1` ↗︎](https://www.npmjs.com/package/nock/v/13.3.1) (from + `13.3.0`, in `dependencies`) +- 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 ## 2.0.2 ### Patch Changes -- [#9228](https://github.com/dotansimha/graphql-code-generator/pull/9228) [`a5ec5af36`](https://github.com/dotansimha/graphql-code-generator/commit/a5ec5af36cd77f4ec86773a899aa5ebd16d4ff9f) Thanks [@eddeee888](https://github.com/eddeee888)! - Add complex test cases for resolvers tests +- [#9228](https://github.com/dotansimha/graphql-code-generator/pull/9228) + [`a5ec5af36`](https://github.com/dotansimha/graphql-code-generator/commit/a5ec5af36cd77f4ec86773a899aa5ebd16d4ff9f) + Thanks [@eddeee888](https://github.com/eddeee888)! - Add complex test cases for resolvers tests -- Updated dependencies [[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]: +- Updated dependencies + [[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), + [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]: - @graphql-codegen/plugin-helpers@4.2.0 ## 2.0.1 ### Patch Changes -- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) -- Updated dependencies [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: +- [#8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) + [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from + `~2.4.0`, in `dependencies`) +- Updated dependencies + [[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), + [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), + [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - @graphql-codegen/plugin-helpers@4.1.0 ## 2.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 ## 1.18.3 ### Patch Changes -- [#8836](https://github.com/dotansimha/graphql-code-generator/pull/8836) [`4fa0a566e`](https://github.com/dotansimha/graphql-code-generator/commit/4fa0a566e1b5253c303ea2a4b5cbbf7c12ca3677) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - - Updated dependency [`nock@13.3.0` ↗︎](https://www.npmjs.com/package/nock/v/13.3.0) (from `13.2.9`, in `dependencies`) +- [#8836](https://github.com/dotansimha/graphql-code-generator/pull/8836) + [`4fa0a566e`](https://github.com/dotansimha/graphql-code-generator/commit/4fa0a566e1b5253c303ea2a4b5cbbf7c12ca3677) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`nock@13.3.0` ↗︎](https://www.npmjs.com/package/nock/v/13.3.0) (from + `13.2.9`, in `dependencies`) ## 1.18.2 ### 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 ## 1.18.1 ### 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 ## 1.18.0 ### Minor Changes -- [#8556](https://github.com/dotansimha/graphql-code-generator/pull/8556) [`64e553c3f`](https://github.com/dotansimha/graphql-code-generator/commit/64e553c3f62618a2aedf122d292e2700fd93d6e1) Thanks [@charlypoly](https://github.com/charlypoly)! - `mockGraphQLServer`, resolvers common testing helpers and fixtures, typing updates +- [#8556](https://github.com/dotansimha/graphql-code-generator/pull/8556) + [`64e553c3f`](https://github.com/dotansimha/graphql-code-generator/commit/64e553c3f62618a2aedf122d292e2700fd93d6e1) + Thanks [@charlypoly](https://github.com/charlypoly)! - `mockGraphQLServer`, resolvers common + testing helpers and fixtures, typing updates diff --git a/packages/utils/graphql-codegen-testing/package.json b/packages/utils/graphql-codegen-testing/package.json index 94b3d6d9c37..c1714d01176 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.4", + "version": "4.0.5", "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.0.0", + "@graphql-codegen/plugin-helpers": "^6.2.2", "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 9edce1dbabd..af0d4cc3de4 100644 --- a/packages/utils/plugins-helpers/CHANGELOG.md +++ b/packages/utils/plugins-helpers/CHANGELOG.md @@ -1,5 +1,15 @@ # @graphql-codegen/plugin-helpers +## 6.2.2 + +### Patch Changes + +- [#10103](https://github.com/dotansimha/graphql-code-generator/pull/10103) + [`9a66574`](https://github.com/dotansimha/graphql-code-generator/commit/9a665749cfa271dcf1b36f9047ececeb9a62ea8a) + Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: + - Updated dependency [`tslib@^2.8.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.0) (from + `~2.6.0`, in `dependencies`) + ## 6.2.1 ### Patch Changes diff --git a/packages/utils/plugins-helpers/package.json b/packages/utils/plugins-helpers/package.json index ba0f8d99c83..7f2c8432be3 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.2.1", + "version": "6.2.2", "type": "module", "description": "GraphQL Code Generator common utils and types", "repository": { diff --git a/website/package.json b/website/package.json index e78f672c01b..55415c33a7a 100644 --- a/website/package.json +++ b/website/package.json @@ -11,20 +11,20 @@ "start": "next start" }, "dependencies": { - "@graphql-codegen/add": "6.0.0", + "@graphql-codegen/add": "6.0.1", "@graphql-codegen/c-sharp": "6.0.0", "@graphql-codegen/c-sharp-operations": "4.0.0", - "@graphql-codegen/cli": "6.2.1", - "@graphql-codegen/client-preset": "5.2.4", - "@graphql-codegen/core": "5.0.1", + "@graphql-codegen/cli": "6.2.2", + "@graphql-codegen/client-preset": "5.2.5", + "@graphql-codegen/core": "5.0.2", "@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.0", + "@graphql-codegen/fragment-matcher": "6.0.1", "@graphql-codegen/hasura-allow-list": "4.0.0", "@graphql-codegen/import-types-preset": "4.0.0", - "@graphql-codegen/introspection": "5.0.1", + "@graphql-codegen/introspection": "5.0.2", "@graphql-codegen/java": "5.0.0", "@graphql-codegen/java-apollo-android": "4.0.0", "@graphql-codegen/java-resolvers": "4.0.0", @@ -32,10 +32,10 @@ "@graphql-codegen/kotlin": "4.0.0", "@graphql-codegen/named-operations-object": "4.0.0", "@graphql-codegen/near-operation-file-preset": "5.0.0", - "@graphql-codegen/schema-ast": "5.0.1", + "@graphql-codegen/schema-ast": "5.0.2", "@graphql-codegen/time": "6.0.0", - "@graphql-codegen/typed-document-node": "6.1.7", - "@graphql-codegen/typescript": "5.0.9", + "@graphql-codegen/typed-document-node": "6.1.8", + "@graphql-codegen/typescript": "5.0.10", "@graphql-codegen/typescript-apollo-angular": "5.0.0", "@graphql-codegen/typescript-apollo-client-helpers": "4.0.0", "@graphql-codegen/typescript-generic-sdk": "5.0.0", @@ -44,10 +44,10 @@ "@graphql-codegen/typescript-mongodb": "4.0.1", "@graphql-codegen/typescript-msw": "4.0.0", "@graphql-codegen/typescript-nhost": "1.0.0", - "@graphql-codegen/typescript-operations": "5.0.9", + "@graphql-codegen/typescript-operations": "5.0.10", "@graphql-codegen/typescript-react-apollo": "4.4.1", "@graphql-codegen/typescript-react-query": "4.1.0", - "@graphql-codegen/typescript-resolvers": "5.1.7", + "@graphql-codegen/typescript-resolvers": "5.1.8", "@graphql-codegen/typescript-rtk-query": "4.0.0", "@graphql-codegen/typescript-stencil-apollo": "4.0.0", "@graphql-codegen/typescript-type-graphql": "3.0.1",