Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 2, 2025

Note

Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to mend[bot].

This notice will be removed on 2025-10-07.


This PR contains the following updates:

Package Change Age Confidence
@graphql-codegen/cli (source) 2.13.12 -> 6.0.0 age confidence
@graphql-codegen/client-preset (source) 1.1.4 -> 5.0.2 age confidence
@graphql-codegen/introspection (source) 2.2.1 -> 5.0.0 age confidence

Release Notes

dotansimha/graphql-code-generator (@​graphql-codegen/cli)

v6.0.0

Compare Source

Major Changes
Patch Changes

v5.0.7

Compare Source

Patch Changes

v5.0.6

Compare Source

Patch Changes

v5.0.5

Compare Source

Patch Changes

v5.0.4

Compare Source

Patch Changes

v5.0.3

Compare Source

Patch Changes

v5.0.2

Compare Source

Patch Changes

v5.0.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Major Changes
Patch Changes

v4.0.1

Compare Source

Patch Changes

v4.0.0

Compare Source

Major Changes
Patch Changes

v3.3.1

Compare Source

Patch Changes

v3.3.0

Compare Source

Minor Changes
  • #​9151 b7dacb21f Thanks @​'./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.

    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.

    // codegen.ts
    const config: CodegenConfig = {
      schema: 'src/schema/**/*.graphql',
      generates: {
        'src/schema/types.ts': {
          plugins: ['typescript', 'typescript-resolvers'],
          config: {
            mappers: {
    
              Book: './book/schema.mappers#BookMapper',
            },
          }
          watchPattern: 'src/schema/**/*.mappers.ts', // Watches mapper files in `watch` mode. Use an array for multiple patterns e.g. `['src/*.pattern1.ts','src/*.pattern2.ts']`
        },
      },
    };

    Then, run Codegen CLI in watch mode:

    yarn graphql-codegen --watch

    Now, updating *.mappers.ts files re-runs Codegen! 🎉

    Note: watchPattern is only used in watch mode i.e. running CLI with --watch flag.

Patch Changes

v3.2.2

Compare Source

Patch Changes

v3.2.1

Compare Source

Patch Changes

v3.2.0

Compare Source

Minor Changes
Patch Changes

v3.1.0

Compare Source

Minor Changes
  • #​8893 a118c307a Thanks @​n1ru4l! - It is no longer mandatory to declare an empty plugins array when using a preset

  • #​8723 a3309e63e Thanks @​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:

    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:

    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:

    module.exports = {
      transform: ({ documents }) => {
        // Make some changes to the documents
        return documents
      }
    }

    Then, you can specify the file name as follows:

    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

v3.0.0

Compare Source

Major Changes
Patch Changes

v2.16.5

Compare Source

Patch Changes

v2.16.4

Compare Source

Patch Changes

v2.16.3

Compare Source

Patch Changes

v2.16.2

Compare Source

Patch Changes

v2.16.1

Compare Source

Patch Changes

v2.16.0

Compare Source

Minor Changes
Patch Changes

v2.15.0

Compare Source

Minor Changes

v2.14.1

Compare Source

Patch Changes

v2.14.0

Compare Source

Minor Changes
Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/client-preset)

v5.0.2

Compare Source

Patch Changes

v5.0.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Major Changes
Patch Changes

v4.8.3

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) in timezone UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) August 2, 2025 09:54
renovate-approve[bot]
renovate-approve bot previously approved these changes Aug 2, 2025
Copy link

vercel bot commented Aug 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
template-ecommerce-webapp-nextjs Error Error Oct 3, 2025 6:32am

@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 4a93d7f to e71aff5 Compare August 2, 2025 16:17
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from e71aff5 to 4ea2527 Compare August 2, 2025 19:31
renovate-approve[bot]
renovate-approve bot previously approved these changes Aug 2, 2025
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 4ea2527 to ce98471 Compare August 3, 2025 00:16
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from ce98471 to f3072c2 Compare August 3, 2025 04:28
renovate-approve[bot]
renovate-approve bot previously approved these changes Aug 3, 2025
renovate-approve[bot]
renovate-approve bot previously approved these changes Aug 3, 2025
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 761d460 to 754933a Compare August 3, 2025 14:38
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 754933a to 836d1c7 Compare August 10, 2025 15:45
renovate-approve[bot]
renovate-approve bot previously approved these changes Aug 10, 2025
renovate-approve[bot]
renovate-approve bot previously approved these changes Aug 19, 2025
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from d454ec7 to be797af Compare September 20, 2025 06:08
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from be797af to 91c4b71 Compare September 25, 2025 17:10
renovate-approve[bot]
renovate-approve bot previously approved these changes Sep 25, 2025
renovate-approve[bot]
renovate-approve bot previously approved these changes Sep 29, 2025
renovate-approve[bot]
renovate-approve bot previously approved these changes Sep 30, 2025
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 2f0ee23 to 5ddac31 Compare September 30, 2025 06:42
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 5ddac31 to 885300a Compare October 1, 2025 22:52
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 885300a to 2cc9c31 Compare October 2, 2025 02:34
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 2cc9c31 to 9e81a9b Compare October 2, 2025 06:31
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 9e81a9b to 226a0ff Compare October 3, 2025 02:46
@renovate renovate bot force-pushed the renovate/main-major-graphqlcodegenerator-monorepo branch from 226a0ff to 09d8e60 Compare October 3, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants