diff --git a/.changeset/@graphql-codegen_add-8879-dependencies.md b/.changeset/@graphql-codegen_add-8879-dependencies.md deleted file mode 100644 index f6fab0a5fbc..00000000000 --- a/.changeset/@graphql-codegen_add-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/add": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_cli-9000-dependencies.md b/.changeset/@graphql-codegen_cli-9000-dependencies.md deleted file mode 100644 index 63a17245734..00000000000 --- a/.changeset/@graphql-codegen_cli-9000-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/cli": patch ---- -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`) diff --git a/.changeset/@graphql-codegen_client-preset-8879-dependencies.md b/.changeset/@graphql-codegen_client-preset-8879-dependencies.md deleted file mode 100644 index ddfcaff989a..00000000000 --- a/.changeset/@graphql-codegen_client-preset-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/client-preset": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_core-8879-dependencies.md b/.changeset/@graphql-codegen_core-8879-dependencies.md deleted file mode 100644 index ad816caa49c..00000000000 --- a/.changeset/@graphql-codegen_core-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/core": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_fragment-matcher-8879-dependencies.md b/.changeset/@graphql-codegen_fragment-matcher-8879-dependencies.md deleted file mode 100644 index 9b059212f68..00000000000 --- a/.changeset/@graphql-codegen_fragment-matcher-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/fragment-matcher": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_gql-tag-operations-8879-dependencies.md b/.changeset/@graphql-codegen_gql-tag-operations-8879-dependencies.md deleted file mode 100644 index ec4006ad924..00000000000 --- a/.changeset/@graphql-codegen_gql-tag-operations-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/gql-tag-operations": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_gql-tag-operations-preset-8879-dependencies.md b/.changeset/@graphql-codegen_gql-tag-operations-preset-8879-dependencies.md deleted file mode 100644 index 54027afee60..00000000000 --- a/.changeset/@graphql-codegen_gql-tag-operations-preset-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/gql-tag-operations-preset": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_graphql-modules-preset-8879-dependencies.md b/.changeset/@graphql-codegen_graphql-modules-preset-8879-dependencies.md deleted file mode 100644 index cce8074641d..00000000000 --- a/.changeset/@graphql-codegen_graphql-modules-preset-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/graphql-modules-preset": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_introspection-8879-dependencies.md b/.changeset/@graphql-codegen_introspection-8879-dependencies.md deleted file mode 100644 index 877cef41168..00000000000 --- a/.changeset/@graphql-codegen_introspection-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/introspection": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_plugin-helpers-8879-dependencies.md b/.changeset/@graphql-codegen_plugin-helpers-8879-dependencies.md deleted file mode 100644 index fe8db8fe191..00000000000 --- a/.changeset/@graphql-codegen_plugin-helpers-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/plugin-helpers": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_schema-ast-8879-dependencies.md b/.changeset/@graphql-codegen_schema-ast-8879-dependencies.md deleted file mode 100644 index 8b1039ac1ee..00000000000 --- a/.changeset/@graphql-codegen_schema-ast-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/schema-ast": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_testing-8879-dependencies.md b/.changeset/@graphql-codegen_testing-8879-dependencies.md deleted file mode 100644 index 2ee5c07fa7e..00000000000 --- a/.changeset/@graphql-codegen_testing-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/testing": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typed-document-node-8879-dependencies.md b/.changeset/@graphql-codegen_typed-document-node-8879-dependencies.md deleted file mode 100644 index e66156fb3da..00000000000 --- a/.changeset/@graphql-codegen_typed-document-node-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typed-document-node": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-8879-dependencies.md b/.changeset/@graphql-codegen_typescript-8879-dependencies.md deleted file mode 100644 index c1fbc4fd2c3..00000000000 --- a/.changeset/@graphql-codegen_typescript-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-document-nodes-8879-dependencies.md b/.changeset/@graphql-codegen_typescript-document-nodes-8879-dependencies.md deleted file mode 100644 index b35736bd8fa..00000000000 --- a/.changeset/@graphql-codegen_typescript-document-nodes-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-document-nodes": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-operations-8879-dependencies.md b/.changeset/@graphql-codegen_typescript-operations-8879-dependencies.md deleted file mode 100644 index a9b42a395a4..00000000000 --- a/.changeset/@graphql-codegen_typescript-operations-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-operations": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-resolvers-8879-dependencies.md b/.changeset/@graphql-codegen_typescript-resolvers-8879-dependencies.md deleted file mode 100644 index 82e082cdbbe..00000000000 --- a/.changeset/@graphql-codegen_typescript-resolvers-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/typescript-resolvers": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_visitor-plugin-common-8879-dependencies.md b/.changeset/@graphql-codegen_visitor-plugin-common-8879-dependencies.md deleted file mode 100644 index 4cd9dc5b7ea..00000000000 --- a/.changeset/@graphql-codegen_visitor-plugin-common-8879-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@graphql-codegen/visitor-plugin-common": patch ---- -dependencies updates: - - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) diff --git a/.changeset/bright-islands-pretend.md b/.changeset/bright-islands-pretend.md deleted file mode 100644 index 98531f617ea..00000000000 --- a/.changeset/bright-islands-pretend.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphql-codegen/cli': minor -'@graphql-codegen/client-preset': minor -'@graphql-codegen/gql-tag-operations-preset': minor ---- - -It is no longer mandatory to declare an empty plugins array when using a preset diff --git a/.changeset/chilly-beers-sleep.md b/.changeset/chilly-beers-sleep.md deleted file mode 100644 index fd9ca78042b..00000000000 --- a/.changeset/chilly-beers-sleep.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/plugin-helpers': minor ---- - -mark `plugins` in config optional diff --git a/.changeset/nasty-eggs-rule.md b/.changeset/nasty-eggs-rule.md deleted file mode 100644 index a25a02bf2b0..00000000000 --- a/.changeset/nasty-eggs-rule.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/gql-tag-operations': patch -'@graphql-codegen/client-preset': patch ---- - -Use `gqlTagName` for generated examples diff --git a/.changeset/popular-radios-shake.md b/.changeset/popular-radios-shake.md deleted file mode 100644 index e0ea889d67d..00000000000 --- a/.changeset/popular-radios-shake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/typescript-resolvers': minor ---- - -Updated customResolveInfo to use the correct importType for external imports diff --git a/.changeset/rare-rats-rhyme.md b/.changeset/rare-rats-rhyme.md deleted file mode 100644 index ca3d1b36592..00000000000 --- a/.changeset/rare-rats-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch ---- - -Always inline referenced fragments within their document. This prevents issues with duplicated fragments or missing fragments. diff --git a/.changeset/rotten-lizards-bathe.md b/.changeset/rotten-lizards-bathe.md deleted file mode 100644 index d795869c0c3..00000000000 --- a/.changeset/rotten-lizards-bathe.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-codegen/client-preset': patch -'@graphql-codegen/typed-document-node': patch ---- - -Allow passing fragment documents to APIs like Apollos `readFragment` diff --git a/.changeset/short-toes-relax.md b/.changeset/short-toes-relax.md deleted file mode 100644 index d352658a3ed..00000000000 --- a/.changeset/short-toes-relax.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -"@graphql-codegen/cli": minor -"@graphql-codegen/core": minor -"@graphql-codegen/plugin-helpers": minor -"@graphql-codegen/client-preset": minor -"@graphql-codegen/gql-tag-operations-preset": minor -"@graphql-codegen/graphql-modules-preset": minor ---- - -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. - -To use this feature, you can write `documentTransforms` as follows: - -```ts -import type { CodegenConfig } from '@graphql-codegen/cli'; - -const config: CodegenConfig = { - schema: 'https://localhost:4000/graphql', - documents: ['src/**/*.tsx'], - generates: { - './src/gql/': { - preset: 'client', - documentTransforms: [ - { - transform: ({ documents }) => { - // Make some changes to the documents - return documents; - }, - }, - ], - }, - }, -}; -export default config; -``` - -For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: - -```js -import type { CodegenConfig } from '@graphql-codegen/cli'; -import { visit } from 'graphql'; - -const config: CodegenConfig = { - schema: 'https://localhost:4000/graphql', - documents: ['src/**/*.tsx'], - generates: { - './src/gql/': { - preset: 'client', - documentTransforms: [ - { - transform: ({ documents }) => { - return documents.map(documentFile => { - documentFile.document = visit(documentFile.document, { - Directive: { - leave(node) { - if (node.name.value === 'localOnlyDirective') return null; - }, - }, - }); - return documentFile; - }); - }, - }, - ], - }, - }, -}; -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`. - -Let's create the document transform as a file: - -```js -module.exports = { - transform: ({ documents }) => { - // Make some changes to the documents - return documents; - }, -}; -``` - -Then, you can specify the file name as follows: - -```ts -import type { CodegenConfig } from '@graphql-codegen/cli'; - -const config: CodegenConfig = { - schema: 'https://localhost:4000/graphql', - documents: ['src/**/*.tsx'], - generates: { - './src/gql/': { - preset: 'client', - documentTransforms: ['./my-document-transform.js'], - }, - }, -}; -export default config; -``` diff --git a/examples/persisted-documents/package.json b/examples/persisted-documents/package.json index 25e3838548b..2504dd6a9be 100644 --- a/examples/persisted-documents/package.json +++ b/examples/persisted-documents/package.json @@ -10,8 +10,8 @@ "@graphql-typed-document-node/core": "3.1.1", "jest": "28.1.3", "babel-jest": "28.1.3", - "@graphql-codegen/cli": "3.0.0", - "@graphql-codegen/client-preset": "2.0.0", + "@graphql-codegen/cli": "3.1.0", + "@graphql-codegen/client-preset": "2.1.0", "@babel/core": "7.20.12", "@babel/preset-env": "7.20.2", "@babel/preset-typescript": "7.18.6" diff --git a/examples/programmatic-typescript/package.json b/examples/programmatic-typescript/package.json index 30ab60d14be..eaa33139fcb 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": "3.0.0", - "@graphql-codegen/plugin-helpers": "4.0.0", - "@graphql-codegen/typed-document-node": "3.0.0", - "@graphql-codegen/typescript": "3.0.0", - "@graphql-codegen/typescript-operations": "3.0.0", - "@graphql-codegen/typescript-resolvers": "3.0.0", + "@graphql-codegen/core": "3.1.0", + "@graphql-codegen/plugin-helpers": "4.1.0", + "@graphql-codegen/typed-document-node": "3.0.1", + "@graphql-codegen/typescript": "3.0.1", + "@graphql-codegen/typescript-operations": "3.0.1", + "@graphql-codegen/typescript-resolvers": "3.1.0", "@graphql-tools/graphql-file-loader": "7.5.16", "@graphql-tools/load": "7.8.12", "@graphql-tools/schema": "9.0.16", diff --git a/examples/react/apollo-client/package.json b/examples/react/apollo-client/package.json index a80cd4b2142..6d5254071f4 100644 --- a/examples/react/apollo-client/package.json +++ b/examples/react/apollo-client/package.json @@ -9,8 +9,8 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@graphql-codegen/cli": "^3.0.0", - "@graphql-codegen/client-preset": "^2.0.0", + "@graphql-codegen/cli": "^3.1.0", + "@graphql-codegen/client-preset": "^2.1.0", "@types/jest": "^27.5.2", "@types/node": "^18.11.18", "@types/react": "^18.0.15", diff --git a/examples/react/graphql-request/package.json b/examples/react/graphql-request/package.json index 962616ca12d..be7efc30047 100644 --- a/examples/react/graphql-request/package.json +++ b/examples/react/graphql-request/package.json @@ -8,8 +8,8 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@graphql-codegen/cli": "^3.0.0", - "@graphql-codegen/client-preset": "^2.0.0", + "@graphql-codegen/cli": "^3.1.0", + "@graphql-codegen/client-preset": "^2.1.0", "@types/jest": "^27.5.2", "@types/node": "^18.11.18", "@types/react": "^18.0.17", diff --git a/examples/react/nextjs-swr/package.json b/examples/react/nextjs-swr/package.json index 28d421d5461..8f3ee23aef0 100644 --- a/examples/react/nextjs-swr/package.json +++ b/examples/react/nextjs-swr/package.json @@ -19,9 +19,9 @@ "swr": "^1.3.0" }, "devDependencies": { - "@graphql-codegen/cli": "^3.0.0", - "@graphql-codegen/client-preset": "^2.0.0", - "@graphql-codegen/schema-ast": "2.6.1", + "@graphql-codegen/cli": "^3.1.0", + "@graphql-codegen/client-preset": "^2.1.0", + "@graphql-codegen/schema-ast": "3.0.1", "@types/node": "^18.11.18", "@types/react": "^18.0.17", "@types/react-dom": "^18.0.10", diff --git a/examples/react/tanstack-react-query/package.json b/examples/react/tanstack-react-query/package.json index 89a1ca9f4f9..43e6fa11405 100644 --- a/examples/react/tanstack-react-query/package.json +++ b/examples/react/tanstack-react-query/package.json @@ -10,8 +10,8 @@ "react-scripts": "^5.0.1" }, "devDependencies": { - "@graphql-codegen/cli": "^3.0.0", - "@graphql-codegen/client-preset": "^2.0.0", + "@graphql-codegen/cli": "^3.1.0", + "@graphql-codegen/client-preset": "^2.1.0", "@types/jest": "^27.5.2", "@types/node": "^18.11.18", "@types/react": "^18.0.17", diff --git a/examples/react/urql/package.json b/examples/react/urql/package.json index 7f56d82a250..96f288083e0 100644 --- a/examples/react/urql/package.json +++ b/examples/react/urql/package.json @@ -13,8 +13,8 @@ "@types/node": "^18.11.18", "@types/react": "^18.0.17", "@types/react-dom": "^18.0.10", - "@graphql-codegen/cli": "^3.0.0", - "@graphql-codegen/client-preset": "^2.0.0", + "@graphql-codegen/cli": "^3.1.0", + "@graphql-codegen/client-preset": "^2.1.0", "typescript": "4.7.4", "serve": "14.2.0", "cypress": "12.6.0", diff --git a/examples/typescript-esm/package.json b/examples/typescript-esm/package.json index a7f3672c0dd..5f617a03781 100644 --- a/examples/typescript-esm/package.json +++ b/examples/typescript-esm/package.json @@ -3,8 +3,8 @@ "version": "0.0.0", "private": true, "devDependencies": { - "@graphql-codegen/cli": "3.0.0", - "@graphql-codegen/client-preset": "2.0.0" + "@graphql-codegen/cli": "3.1.0", + "@graphql-codegen/client-preset": "2.1.0" }, "dependencies": { "@graphql-typed-document-node/core": "3.1.1", diff --git a/examples/typescript-graphql-request/package.json b/examples/typescript-graphql-request/package.json index 5ccd8bfa720..ecc8e93dd43 100644 --- a/examples/typescript-graphql-request/package.json +++ b/examples/typescript-graphql-request/package.json @@ -3,8 +3,8 @@ "version": "0.0.0", "private": true, "devDependencies": { - "@graphql-codegen/cli": "3.0.0", - "@graphql-codegen/gql-tag-operations-preset": "2.0.0" + "@graphql-codegen/cli": "3.1.0", + "@graphql-codegen/gql-tag-operations-preset": "2.1.0" }, "dependencies": { "graphql": "16.6.0", diff --git a/examples/typescript-resolvers/package.json b/examples/typescript-resolvers/package.json index f07389c3c98..5883f32ed06 100644 --- a/examples/typescript-resolvers/package.json +++ b/examples/typescript-resolvers/package.json @@ -3,9 +3,9 @@ "version": "0.0.0", "private": true, "devDependencies": { - "@graphql-codegen/cli": "3.0.0", - "@graphql-codegen/typescript": "3.0.0", - "@graphql-codegen/typescript-resolvers": "3.0.0" + "@graphql-codegen/cli": "3.1.0", + "@graphql-codegen/typescript": "3.0.1", + "@graphql-codegen/typescript-resolvers": "3.1.0" }, "dependencies": { "graphql": "16.6.0", diff --git a/examples/vue/apollo-composable/package.json b/examples/vue/apollo-composable/package.json index ae67177422e..055d880cbab 100644 --- a/examples/vue/apollo-composable/package.json +++ b/examples/vue/apollo-composable/package.json @@ -17,8 +17,8 @@ "vue": "^3.2.37" }, "devDependencies": { - "@graphql-codegen/cli": "^3.0.0", - "@graphql-codegen/client-preset": "^2.0.0", + "@graphql-codegen/cli": "^3.1.0", + "@graphql-codegen/client-preset": "^2.1.0", "@vitejs/plugin-vue": "^4.0.0", "typescript": "^4.9.3", "vite": "^4.1.0", diff --git a/examples/vue/urql/package.json b/examples/vue/urql/package.json index 6db44cd6338..fe80e6fbc2a 100644 --- a/examples/vue/urql/package.json +++ b/examples/vue/urql/package.json @@ -16,8 +16,8 @@ "vue": "^3.2.45" }, "devDependencies": { - "@graphql-codegen/cli": "^3.0.0", - "@graphql-codegen/client-preset": "^2.0.0", + "@graphql-codegen/cli": "^3.1.0", + "@graphql-codegen/client-preset": "^2.1.0", "@vitejs/plugin-vue": "^4.0.0", "typescript": "^4.9.3", "vite": "^4.1.0", diff --git a/examples/vue/villus/package.json b/examples/vue/villus/package.json index c9edf62173c..062130a7d48 100644 --- a/examples/vue/villus/package.json +++ b/examples/vue/villus/package.json @@ -16,8 +16,8 @@ "vue": "^3.2.37" }, "devDependencies": { - "@graphql-codegen/cli": "^3.0.0", - "@graphql-codegen/client-preset": "^2.0.0", + "@graphql-codegen/cli": "^3.1.0", + "@graphql-codegen/client-preset": "^2.1.0", "@vitejs/plugin-vue": "^4.0.0", "typescript": "^4.9.3", "vite": "^4.1.0", diff --git a/examples/yoga-tests/package.json b/examples/yoga-tests/package.json index 6fcbee8ada7..9f827185176 100644 --- a/examples/yoga-tests/package.json +++ b/examples/yoga-tests/package.json @@ -9,8 +9,8 @@ "@graphql-typed-document-node/core": "3.1.1", "jest": "28.1.3", "babel-jest": "28.1.3", - "@graphql-codegen/cli": "3.0.0", - "@graphql-codegen/client-preset": "2.0.0", + "@graphql-codegen/cli": "3.1.0", + "@graphql-codegen/client-preset": "2.1.0", "@babel/core": "7.20.12", "@babel/preset-env": "7.20.2", "@babel/preset-typescript": "7.18.6" diff --git a/packages/graphql-cli-codegen-plugin/CHANGELOG.md b/packages/graphql-cli-codegen-plugin/CHANGELOG.md index 4543d05df83..25c2fbf9079 100644 --- a/packages/graphql-cli-codegen-plugin/CHANGELOG.md +++ b/packages/graphql-cli-codegen-plugin/CHANGELOG.md @@ -1,5 +1,12 @@ # @graphql-cli/codegen +## 3.0.1 + +### Patch Changes + +- Updated dependencies [[`4c422ccf6`](https://github.com/dotansimha/graphql-code-generator/commit/4c422ccf6384cfb0d0949ebe5567923973b1a044), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: + - @graphql-codegen/cli@3.1.0 + ## 3.0.0 ### Major Changes diff --git a/packages/graphql-cli-codegen-plugin/package.json b/packages/graphql-cli-codegen-plugin/package.json index 33f4ee55ab6..d17a3470ba1 100644 --- a/packages/graphql-cli-codegen-plugin/package.json +++ b/packages/graphql-cli-codegen-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-cli/codegen", - "version": "3.0.0", + "version": "3.0.1", "description": "GraphQL Code Generator's GraphQL CLI plugin. GraphQL Code Generator is a tool that generates code from your GraphQL schema and documents for your backend or frontend with flexible support for custom plugins and templates.", "license": "MIT", "keywords": [ @@ -25,7 +25,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/cli": "3.0.0", + "@graphql-codegen/cli": "3.1.0", "@graphql-cli/common": "4.1.0" }, "main": "dist/cjs/index.js", diff --git a/packages/graphql-codegen-cli/CHANGELOG.md b/packages/graphql-codegen-cli/CHANGELOG.md index d775b0d710d..0efaa8a5cce 100644 --- a/packages/graphql-codegen-cli/CHANGELOG.md +++ b/packages/graphql-codegen-cli/CHANGELOG.md @@ -1,5 +1,113 @@ # @graphql-codegen/cli +## 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 + +- [#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. + + To use this feature, you can write `documentTransforms` as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }, + ], + }, + }, + }; + export default config; + ``` + + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + + ```js + import type { CodegenConfig } from '@graphql-codegen/cli'; + import { visit } from 'graphql'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + return documents.map(documentFile => { + documentFile.document = visit(documentFile.document, { + Directive: { + leave(node) { + if (node.name.value === 'localOnlyDirective') return null; + }, + }, + }); + return documentFile; + }); + }, + }, + ], + }, + }, + }; + 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`. + + Let's create the document transform as a file: + + ```js + module.exports = { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }; + ``` + + Then, you can specify the file name as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: ['./my-document-transform.js'], + }, + }, + }; + export default config; + ``` + +### 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)]: + - @graphql-codegen/core@3.1.0 + - @graphql-codegen/plugin-helpers@4.1.0 + ## 3.0.0 ### Major Changes diff --git a/packages/graphql-codegen-cli/package.json b/packages/graphql-codegen-cli/package.json index eb97fe975f9..0e9d68f8b59 100644 --- a/packages/graphql-codegen-cli/package.json +++ b/packages/graphql-codegen-cli/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/cli", - "version": "3.0.0", + "version": "3.1.0", "license": "MIT", "bin": { "gql-gen": "dist/cjs/bin.js", @@ -43,8 +43,8 @@ "@babel/generator": "^7.18.13", "@babel/template": "^7.18.10", "@babel/types": "^7.18.13", - "@graphql-codegen/core": "^3.0.0", - "@graphql-codegen/plugin-helpers": "^4.0.0", + "@graphql-codegen/core": "^3.1.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", "@graphql-tools/apollo-engine-loader": "^7.3.6", "@graphql-tools/code-file-loader": "^7.3.17", "@graphql-tools/git-loader": "^7.2.13", diff --git a/packages/graphql-codegen-core/CHANGELOG.md b/packages/graphql-codegen-core/CHANGELOG.md index 0937429d561..eef9645b421 100644 --- a/packages/graphql-codegen-core/CHANGELOG.md +++ b/packages/graphql-codegen-core/CHANGELOG.md @@ -1,5 +1,110 @@ # @graphql-codegen/core +## 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. + + 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: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }, + ], + }, + }, + }; + export default config; + ``` + + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + + ```js + import type { CodegenConfig } from '@graphql-codegen/cli'; + import { visit } from 'graphql'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + return documents.map(documentFile => { + documentFile.document = visit(documentFile.document, { + Directive: { + leave(node) { + if (node.name.value === 'localOnlyDirective') return null; + }, + }, + }); + return documentFile; + }); + }, + }, + ], + }, + }, + }; + 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`. + + Let's create the document transform as a file: + + ```js + module.exports = { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }; + ``` + + Then, you can specify the file name as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: ['./my-document-transform.js'], + }, + }, + }; + export default config; + ``` + +### 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + ## 3.0.0 ### Major Changes diff --git a/packages/graphql-codegen-core/package.json b/packages/graphql-codegen-core/package.json index 1a56d74ed0a..f099f45fc58 100644 --- a/packages/graphql-codegen-core/package.json +++ b/packages/graphql-codegen-core/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/core", - "version": "3.0.0", + "version": "3.1.0", "license": "MIT", "repository": { "type": "git", @@ -37,7 +37,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": "^4.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", "@graphql-tools/schema": "^9.0.0", "@graphql-tools/utils": "^9.1.1", "tslib": "~2.5.0" diff --git a/packages/plugins/other/add/CHANGELOG.md b/packages/plugins/other/add/CHANGELOG.md index b360247fb8d..390d7094b45 100644 --- a/packages/plugins/other/add/CHANGELOG.md +++ b/packages/plugins/other/add/CHANGELOG.md @@ -1,5 +1,14 @@ # @graphql-codegen/add +## 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + ## 4.0.0 ### Major Changes diff --git a/packages/plugins/other/add/package.json b/packages/plugins/other/add/package.json index bbc89aa727f..b8b7523dd5c 100644 --- a/packages/plugins/other/add/package.json +++ b/packages/plugins/other/add/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/add", - "version": "4.0.0", + "version": "4.0.1", "description": "GraphQL Code Generator plugin for adding custom content to your output file", "repository": { "type": "git", @@ -12,7 +12,7 @@ "lint": "eslint **/*.ts" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", "tslib": "~2.5.0" }, "peerDependencies": { diff --git a/packages/plugins/other/fragment-matcher/CHANGELOG.md b/packages/plugins/other/fragment-matcher/CHANGELOG.md index 418aed9c872..5b3b5230404 100644 --- a/packages/plugins/other/fragment-matcher/CHANGELOG.md +++ b/packages/plugins/other/fragment-matcher/CHANGELOG.md @@ -1,5 +1,14 @@ # @graphql-codegen/fragment-matcher +## 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + ## 4.0.0 ### Major Changes diff --git a/packages/plugins/other/fragment-matcher/package.json b/packages/plugins/other/fragment-matcher/package.json index 8bf3b558d6c..120673dfb2b 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": "4.0.0", + "version": "4.0.1", "description": "graphql-code-generate plugin for generating fragments matcher introspection file", "repository": { "type": "git", @@ -13,7 +13,7 @@ "test": "jest --no-watchman --config ../../../../jest.config.js" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", "tslib": "~2.5.0" }, "peerDependencies": { diff --git a/packages/plugins/other/introspection/CHANGELOG.md b/packages/plugins/other/introspection/CHANGELOG.md index e29198d0843..47ea7d755c1 100644 --- a/packages/plugins/other/introspection/CHANGELOG.md +++ b/packages/plugins/other/introspection/CHANGELOG.md @@ -1,5 +1,15 @@ # @graphql-codegen/introspection +## 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 3.0.0 ### Major Changes diff --git a/packages/plugins/other/introspection/package.json b/packages/plugins/other/introspection/package.json index a63af367a0c..e813b15f7f0 100644 --- a/packages/plugins/other/introspection/package.json +++ b/packages/plugins/other/introspection/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/introspection", - "version": "3.0.0", + "version": "3.0.1", "description": "GraphQL Code Generator plugin for generating an introspection JSON file for a GraphQLSchema", "repository": { "type": "git", @@ -13,8 +13,8 @@ "test": "jest --no-watchman --config ../../../../jest.config.js" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/visitor-plugin-common": "^3.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/visitor-plugin-common": "^3.0.1", "tslib": "~2.5.0" }, "peerDependencies": { diff --git a/packages/plugins/other/schema-ast/CHANGELOG.md b/packages/plugins/other/schema-ast/CHANGELOG.md index 90d1e05bf7a..c85f022d968 100644 --- a/packages/plugins/other/schema-ast/CHANGELOG.md +++ b/packages/plugins/other/schema-ast/CHANGELOG.md @@ -1,5 +1,14 @@ # @graphql-codegen/schema-ast +## 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + ## 3.0.0 ### Major Changes diff --git a/packages/plugins/other/schema-ast/package.json b/packages/plugins/other/schema-ast/package.json index e69de5fc4a6..43c7e6ee367 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": "3.0.0", + "version": "3.0.1", "description": "GraphQL Code Generator plugin for generating a .graphql file from a given schema", "repository": { "type": "git", @@ -13,7 +13,7 @@ "test": "jest --no-watchman --config ../../../../jest.config.js" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", "@graphql-tools/utils": "^9.0.0", "tslib": "~2.5.0" }, diff --git a/packages/plugins/other/visitor-plugin-common/CHANGELOG.md b/packages/plugins/other/visitor-plugin-common/CHANGELOG.md index 25d8f9b095c..2379fd820e7 100644 --- a/packages/plugins/other/visitor-plugin-common/CHANGELOG.md +++ b/packages/plugins/other/visitor-plugin-common/CHANGELOG.md @@ -1,5 +1,18 @@ # @graphql-codegen/visitor-plugin-common +## 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`) + +- [#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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + ## 3.0.0 ### Major Changes diff --git a/packages/plugins/other/visitor-plugin-common/package.json b/packages/plugins/other/visitor-plugin-common/package.json index 768f44795b0..bd3284f53b3 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": "3.0.0", + "version": "3.0.1", "license": "MIT", "repository": { "type": "git", @@ -13,7 +13,7 @@ }, "dependencies": { "@graphql-tools/optimize": "^1.3.0", - "@graphql-codegen/plugin-helpers": "^4.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", "@graphql-tools/relay-operation-optimizer": "^6.5.0", "@graphql-tools/utils": "^9.0.0", "auto-bind": "~4.0.0", diff --git a/packages/plugins/typescript/document-nodes/CHANGELOG.md b/packages/plugins/typescript/document-nodes/CHANGELOG.md index 108f9ef8b2e..31369d5982d 100644 --- a/packages/plugins/typescript/document-nodes/CHANGELOG.md +++ b/packages/plugins/typescript/document-nodes/CHANGELOG.md @@ -1,5 +1,15 @@ # @graphql-codegen/typescript-document-nodes +## 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 3.0.0 ### Major Changes diff --git a/packages/plugins/typescript/document-nodes/package.json b/packages/plugins/typescript/document-nodes/package.json index 7c1dcb5bce4..e6f648d42da 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": "3.0.0", + "version": "3.0.1", "description": "GraphQL Code Generator plugin for generating TypeScript modules with embedded GraphQL document nodes", "repository": { "type": "git", @@ -13,8 +13,8 @@ "test": "jest --no-watchman --config ../../../../jest.config.js" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/visitor-plugin-common": "3.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/visitor-plugin-common": "3.0.1", "auto-bind": "~4.0.0", "tslib": "~2.5.0" }, diff --git a/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md b/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md index 2d7b0b938ed..b34ae1227f6 100644 --- a/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md +++ b/packages/plugins/typescript/gql-tag-operations/CHANGELOG.md @@ -1,5 +1,19 @@ # @graphql-codegen/gql-tag-operations +## 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`) + +- [#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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 2.0.0 ### Major Changes diff --git a/packages/plugins/typescript/gql-tag-operations/package.json b/packages/plugins/typescript/gql-tag-operations/package.json index 30a39050d2c..5d177114602 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": "2.0.0", + "version": "2.0.1", "description": "GraphQL Code Generator plugin for generating a typed gql tag function", "repository": { "type": "git", @@ -17,8 +17,8 @@ }, "dependencies": { "@graphql-tools/utils": "^9.0.0", - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/visitor-plugin-common": "3.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/visitor-plugin-common": "3.0.1", "auto-bind": "~4.0.0", "tslib": "~2.5.0" }, diff --git a/packages/plugins/typescript/operations/CHANGELOG.md b/packages/plugins/typescript/operations/CHANGELOG.md index 722d14db182..983f685912d 100644 --- a/packages/plugins/typescript/operations/CHANGELOG.md +++ b/packages/plugins/typescript/operations/CHANGELOG.md @@ -1,5 +1,16 @@ # @graphql-codegen/typescript-operations +## 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/typescript@3.0.1 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 3.0.0 ### Major Changes diff --git a/packages/plugins/typescript/operations/package.json b/packages/plugins/typescript/operations/package.json index ff7f4f1328c..a3f65ad1192 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": "3.0.0", + "version": "3.0.1", "description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments", "repository": { "type": "git", @@ -13,9 +13,9 @@ "test": "jest --no-watchman --config ../../../../jest.config.js" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/typescript": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "3.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/typescript": "^3.0.1", + "@graphql-codegen/visitor-plugin-common": "3.0.1", "auto-bind": "~4.0.0", "tslib": "~2.5.0" }, diff --git a/packages/plugins/typescript/resolvers/CHANGELOG.md b/packages/plugins/typescript/resolvers/CHANGELOG.md index a306805af8e..32c11db9c64 100644 --- a/packages/plugins/typescript/resolvers/CHANGELOG.md +++ b/packages/plugins/typescript/resolvers/CHANGELOG.md @@ -1,5 +1,20 @@ # @graphql-codegen/typescript-resolvers +## 3.1.0 + +### 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/typescript@3.0.1 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 3.0.0 ### Major Changes diff --git a/packages/plugins/typescript/resolvers/package.json b/packages/plugins/typescript/resolvers/package.json index b437ebd30a4..fb97461823f 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": "3.0.0", + "version": "3.1.0", "description": "GraphQL Code Generator plugin for generating TypeScript types for resolvers signature", "repository": { "type": "git", @@ -13,9 +13,9 @@ "test": "jest --no-watchman --config ../../../../jest.config.js" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/typescript": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "3.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/typescript": "^3.0.1", + "@graphql-codegen/visitor-plugin-common": "3.0.1", "@graphql-tools/utils": "^9.0.0", "auto-bind": "~4.0.0", "tslib": "~2.5.0" diff --git a/packages/plugins/typescript/typed-document-node/CHANGELOG.md b/packages/plugins/typescript/typed-document-node/CHANGELOG.md index bbef659e09a..083e526f28e 100644 --- a/packages/plugins/typescript/typed-document-node/CHANGELOG.md +++ b/packages/plugins/typescript/typed-document-node/CHANGELOG.md @@ -1,5 +1,19 @@ # @graphql-codegen/typed-document-node +## 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`) + +- [#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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 3.0.0 ### Major Changes diff --git a/packages/plugins/typescript/typed-document-node/package.json b/packages/plugins/typescript/typed-document-node/package.json index 98db30ab086..94133b3a538 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": "3.0.0", + "version": "3.0.1", "description": "GraphQL Code Generator plugin for generating ready-to-use TypedDocumentNode based on GraphQL operations", "repository": { "type": "git", @@ -17,8 +17,8 @@ }, "dependencies": { "change-case-all": "1.0.15", - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/visitor-plugin-common": "3.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/visitor-plugin-common": "3.0.1", "auto-bind": "~4.0.0", "tslib": "~2.5.0" }, diff --git a/packages/plugins/typescript/typescript/CHANGELOG.md b/packages/plugins/typescript/typescript/CHANGELOG.md index a50b519af2d..ca2f693eff6 100644 --- a/packages/plugins/typescript/typescript/CHANGELOG.md +++ b/packages/plugins/typescript/typescript/CHANGELOG.md @@ -1,5 +1,16 @@ # @graphql-codegen/typescript +## 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/schema-ast@3.0.1 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 3.0.0 ### Major Changes diff --git a/packages/plugins/typescript/typescript/package.json b/packages/plugins/typescript/typescript/package.json index b69b9e40423..bbd3b1cf890 100644 --- a/packages/plugins/typescript/typescript/package.json +++ b/packages/plugins/typescript/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/typescript", - "version": "3.0.0", + "version": "3.0.1", "description": "GraphQL Code Generator plugin for generating TypeScript types", "repository": { "type": "git", @@ -13,9 +13,9 @@ "test": "jest --no-watchman --config ../../../../jest.config.js" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/schema-ast": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "3.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/schema-ast": "^3.0.1", + "@graphql-codegen/visitor-plugin-common": "3.0.1", "auto-bind": "~4.0.0", "tslib": "~2.5.0" }, diff --git a/packages/presets/client/CHANGELOG.md b/packages/presets/client/CHANGELOG.md index c0a2d27a4d0..32257e76c25 100644 --- a/packages/presets/client/CHANGELOG.md +++ b/packages/presets/client/CHANGELOG.md @@ -1,5 +1,124 @@ # @graphql-codegen/client-preset +## 2.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 + +- [#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. + + To use this feature, you can write `documentTransforms` as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }, + ], + }, + }, + }; + export default config; + ``` + + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + + ```js + import type { CodegenConfig } from '@graphql-codegen/cli'; + import { visit } from 'graphql'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + return documents.map(documentFile => { + documentFile.document = visit(documentFile.document, { + Directive: { + leave(node) { + if (node.name.value === 'localOnlyDirective') return null; + }, + }, + }); + return documentFile; + }); + }, + }, + ], + }, + }, + }; + 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`. + + Let's create the document transform as a file: + + ```js + module.exports = { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }; + ``` + + Then, you can specify the file name as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: ['./my-document-transform.js'], + }, + }, + }; + export default config; + ``` + +### 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)]: + - @graphql-codegen/add@4.0.1 + - @graphql-codegen/gql-tag-operations@2.0.1 + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/typed-document-node@3.0.1 + - @graphql-codegen/typescript@3.0.1 + - @graphql-codegen/typescript-operations@3.0.1 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 2.0.0 ### Major Changes diff --git a/packages/presets/client/package.json b/packages/presets/client/package.json index 1d63418165a..d1acdf5331d 100644 --- a/packages/presets/client/package.json +++ b/packages/presets/client/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/client-preset", - "version": "2.0.0", + "version": "2.1.0", "description": "GraphQL Code Generator preset for client.", "repository": { "type": "git", @@ -19,13 +19,13 @@ "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/template": "^7.20.7", - "@graphql-codegen/add": "^4.0.0", - "@graphql-codegen/typed-document-node": "^3.0.0", - "@graphql-codegen/typescript": "^3.0.0", - "@graphql-codegen/typescript-operations": "^3.0.0", - "@graphql-codegen/gql-tag-operations": "2.0.0", - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/visitor-plugin-common": "^3.0.0", + "@graphql-codegen/add": "^4.0.1", + "@graphql-codegen/typed-document-node": "^3.0.1", + "@graphql-codegen/typescript": "^3.0.1", + "@graphql-codegen/typescript-operations": "^3.0.1", + "@graphql-codegen/gql-tag-operations": "2.0.1", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/visitor-plugin-common": "^3.0.1", "@graphql-typed-document-node/core": "3.1.1", "@graphql-tools/documents": "^0.1.0", "@graphql-tools/utils": "^9.0.0", diff --git a/packages/presets/gql-tag-operations/CHANGELOG.md b/packages/presets/gql-tag-operations/CHANGELOG.md index 54db02e4ee8..f0b58398ad1 100644 --- a/packages/presets/gql-tag-operations/CHANGELOG.md +++ b/packages/presets/gql-tag-operations/CHANGELOG.md @@ -1,5 +1,118 @@ # @graphql-codegen/gql-tag-operations-preset +## 2.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 + +- [#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. + + To use this feature, you can write `documentTransforms` as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }, + ], + }, + }, + }; + export default config; + ``` + + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + + ```js + import type { CodegenConfig } from '@graphql-codegen/cli'; + import { visit } from 'graphql'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + return documents.map(documentFile => { + documentFile.document = visit(documentFile.document, { + Directive: { + leave(node) { + if (node.name.value === 'localOnlyDirective') return null; + }, + }, + }); + return documentFile; + }); + }, + }, + ], + }, + }, + }; + 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`. + + Let's create the document transform as a file: + + ```js + module.exports = { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }; + ``` + + Then, you can specify the file name as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: ['./my-document-transform.js'], + }, + }, + }; + export default config; + ``` + +### 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), [`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 + - @graphql-codegen/typed-document-node@3.0.1 + - @graphql-codegen/typescript@3.0.1 + - @graphql-codegen/typescript-operations@3.0.1 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 2.0.0 ### Major Changes diff --git a/packages/presets/gql-tag-operations/package.json b/packages/presets/gql-tag-operations/package.json index d42df08e39f..c3b77842bd7 100644 --- a/packages/presets/gql-tag-operations/package.json +++ b/packages/presets/gql-tag-operations/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/gql-tag-operations-preset", - "version": "2.0.0", + "version": "2.1.0", "description": "GraphQL Code Generator preset for gql magic.", "repository": { "type": "git", @@ -19,13 +19,13 @@ "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/template": "^7.15.4", - "@graphql-codegen/add": "^4.0.0", - "@graphql-codegen/typed-document-node": "^3.0.0", - "@graphql-codegen/typescript": "^3.0.0", - "@graphql-codegen/typescript-operations": "^3.0.0", - "@graphql-codegen/gql-tag-operations": "^2.0.0", - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/visitor-plugin-common": "^3.0.0", + "@graphql-codegen/add": "^4.0.1", + "@graphql-codegen/typed-document-node": "^3.0.1", + "@graphql-codegen/typescript": "^3.0.1", + "@graphql-codegen/typescript-operations": "^3.0.1", + "@graphql-codegen/gql-tag-operations": "^2.0.1", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/visitor-plugin-common": "^3.0.1", "@graphql-tools/utils": "^9.0.0", "tslib": "~2.5.0" }, diff --git a/packages/presets/graphql-modules/CHANGELOG.md b/packages/presets/graphql-modules/CHANGELOG.md index 03189a433a0..c0c98d6c4d6 100644 --- a/packages/presets/graphql-modules/CHANGELOG.md +++ b/packages/presets/graphql-modules/CHANGELOG.md @@ -1,5 +1,111 @@ # @graphql-codegen/graphql-modules-preset +## 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. + + 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: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }, + ], + }, + }, + }; + export default config; + ``` + + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + + ```js + import type { CodegenConfig } from '@graphql-codegen/cli'; + import { visit } from 'graphql'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + return documents.map(documentFile => { + documentFile.document = visit(documentFile.document, { + Directive: { + leave(node) { + if (node.name.value === 'localOnlyDirective') return null; + }, + }, + }); + return documentFile; + }); + }, + }, + ], + }, + }, + }; + 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`. + + Let's create the document transform as a file: + + ```js + module.exports = { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }; + ``` + + Then, you can specify the file name as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: ['./my-document-transform.js'], + }, + }, + }; + export default config; + ``` + +### 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + - @graphql-codegen/visitor-plugin-common@3.0.1 + ## 3.0.0 ### Major Changes diff --git a/packages/presets/graphql-modules/package.json b/packages/presets/graphql-modules/package.json index 418c4d54737..9e267a4b9da 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": "3.0.0", + "version": "3.1.0", "description": "GraphQL Code Generator preset for modularized schema", "repository": { "type": "git", @@ -15,8 +15,8 @@ "@types/parse-filepath": "1.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/visitor-plugin-common": "3.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", + "@graphql-codegen/visitor-plugin-common": "3.0.1", "@graphql-tools/utils": "^9.0.0", "parse-filepath": "^1.0.2", "change-case-all": "1.0.15", diff --git a/packages/utils/graphql-codegen-testing/CHANGELOG.md b/packages/utils/graphql-codegen-testing/CHANGELOG.md index a13dcb88279..c7e11e3751f 100644 --- a/packages/utils/graphql-codegen-testing/CHANGELOG.md +++ b/packages/utils/graphql-codegen-testing/CHANGELOG.md @@ -1,5 +1,14 @@ # @graphql-codegen/testing +## 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)]: + - @graphql-codegen/plugin-helpers@4.1.0 + ## 2.0.0 ### Major Changes diff --git a/packages/utils/graphql-codegen-testing/package.json b/packages/utils/graphql-codegen-testing/package.json index bf470b2cf57..bd0ee1a20ba 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": "2.0.0", + "version": "2.0.1", "description": "GraphQL Codegen Testing Utils", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", @@ -40,7 +40,7 @@ "typescript": ">=3.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", + "@graphql-codegen/plugin-helpers": "^4.1.0", "common-tags": "^1.8.0", "lz-string": "^1.4.4", "graphql-helix": "1.13.0", diff --git a/packages/utils/plugins-helpers/CHANGELOG.md b/packages/utils/plugins-helpers/CHANGELOG.md index 75e6fbc99ff..245ea95d450 100644 --- a/packages/utils/plugins-helpers/CHANGELOG.md +++ b/packages/utils/plugins-helpers/CHANGELOG.md @@ -1,5 +1,110 @@ # @graphql-codegen/plugin-helpers +## 4.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)! - mark `plugins` in config optional + +- [#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. + + To use this feature, you can write `documentTransforms` as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }, + ], + }, + }, + }; + export default config; + ``` + + For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: + + ```js + import type { CodegenConfig } from '@graphql-codegen/cli'; + import { visit } from 'graphql'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: [ + { + transform: ({ documents }) => { + return documents.map(documentFile => { + documentFile.document = visit(documentFile.document, { + Directive: { + leave(node) { + if (node.name.value === 'localOnlyDirective') return null; + }, + }, + }); + return documentFile; + }); + }, + }, + ], + }, + }, + }; + 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`. + + Let's create the document transform as a file: + + ```js + module.exports = { + transform: ({ documents }) => { + // Make some changes to the documents + return documents; + }, + }; + ``` + + Then, you can specify the file name as follows: + + ```ts + import type { CodegenConfig } from '@graphql-codegen/cli'; + + const config: CodegenConfig = { + schema: 'https://localhost:4000/graphql', + documents: ['src/**/*.tsx'], + generates: { + './src/gql/': { + preset: 'client', + documentTransforms: ['./my-document-transform.js'], + }, + }, + }; + export default config; + ``` + +### 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`) + ## 4.0.0 ### Major Changes diff --git a/packages/utils/plugins-helpers/package.json b/packages/utils/plugins-helpers/package.json index 89638705a4a..a2852fc7dab 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": "4.0.0", + "version": "4.1.0", "description": "GraphQL Code Generator common utils and types", "repository": { "type": "git", diff --git a/website/package.json b/website/package.json index 76cc27f9a04..502af5d4fbf 100644 --- a/website/package.json +++ b/website/package.json @@ -21,19 +21,19 @@ "prettier-plugin-tailwindcss": "0.2.3" }, "dependencies": { - "@graphql-codegen/add": "4.0.0", + "@graphql-codegen/add": "4.0.1", "@graphql-codegen/c-sharp": "4.3.1", "@graphql-codegen/c-sharp-operations": "2.3.1", - "@graphql-codegen/cli": "3.0.0", - "@graphql-codegen/core": "3.0.0", + "@graphql-codegen/cli": "3.1.0", + "@graphql-codegen/core": "3.1.0", "@graphql-codegen/flow": "2.3.6", "@graphql-codegen/flow-operations": "2.3.6", "@graphql-codegen/flow-resolvers": "2.4.4", "@graphql-codegen/flutter-freezed": "^3.0.1", - "@graphql-codegen/fragment-matcher": "4.0.0", + "@graphql-codegen/fragment-matcher": "4.0.1", "@graphql-codegen/hasura-allow-list": "2.0.0", "@graphql-codegen/import-types-preset": "2.2.6", - "@graphql-codegen/introspection": "3.0.0", + "@graphql-codegen/introspection": "3.0.1", "@graphql-codegen/java": "3.3.6", "@graphql-codegen/java-apollo-android": "2.3.6", "@graphql-codegen/java-resolvers": "2.3.6", @@ -41,10 +41,10 @@ "@graphql-codegen/kotlin": "2.3.6", "@graphql-codegen/named-operations-object": "2.3.1", "@graphql-codegen/near-operation-file-preset": "2.5.0", - "@graphql-codegen/schema-ast": "3.0.0", + "@graphql-codegen/schema-ast": "3.0.1", "@graphql-codegen/time": "4.0.0", - "@graphql-codegen/typed-document-node": "3.0.0", - "@graphql-codegen/typescript": "3.0.0", + "@graphql-codegen/typed-document-node": "3.0.1", + "@graphql-codegen/typescript": "3.0.1", "@graphql-codegen/typescript-apollo-angular": "3.5.6", "@graphql-codegen/typescript-apollo-client-helpers": "2.2.6", "@graphql-codegen/typescript-generic-sdk": "3.1.0", @@ -52,10 +52,10 @@ "@graphql-codegen/typescript-graphql-request": "4.5.8", "@graphql-codegen/typescript-mongodb": "2.4.6", "@graphql-codegen/typescript-msw": "1.1.6", - "@graphql-codegen/typescript-operations": "3.0.0", + "@graphql-codegen/typescript-operations": "3.0.1", "@graphql-codegen/typescript-react-apollo": "3.3.7", "@graphql-codegen/typescript-react-query": "4.1.0", - "@graphql-codegen/typescript-resolvers": "3.0.0", + "@graphql-codegen/typescript-resolvers": "3.1.0", "@graphql-codegen/typescript-rtk-query": "2.4.1", "@graphql-codegen/typescript-stencil-apollo": "2.3.6", "@graphql-codegen/typescript-type-graphql": "2.3.6",