Skip to content

Comments

chore: update graphqlcodegenerator monorepo (main-private) (major)#509

Open
renovate[bot] wants to merge 1 commit intomain-privatefrom
renovate/main-private-major-graphqlcodegenerator-monorepo
Open

chore: update graphqlcodegenerator monorepo (main-private) (major)#509
renovate[bot] wants to merge 1 commit intomain-privatefrom
renovate/main-private-major-graphqlcodegenerator-monorepo

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 30, 2025

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@graphql-codegen/cli (source) 2.13.126.1.2 age confidence
@graphql-codegen/client-preset (source) 1.1.45.2.3 age confidence
@graphql-codegen/introspection (source) 2.2.15.0.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

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

v6.1.2

Compare Source

Patch Changes
  • #​10590 e173e11 Thanks @​ya2s! - Fix GraphQL Config loading to forward nested extensions.codegen.config options
    when loading schemas/documents, matching codegen.ts behavior.

v6.1.1

Compare Source

Patch Changes
  • #​10569 8cb7d43 Thanks @​etr2460! - fix(graphql-codegen-cli): Don't hang when 0 CPUs are found

    Fixes generation when 0 CPUs are returned by os.cpus(), which occurs in sandbox environments.

v6.1.0

Compare Source

Minor Changes
Patch Changes

v6.0.2

Compare Source

Patch Changes

v6.0.1

Compare Source

Patch Changes
  • #​10468 cb1b9d9 Thanks @​eddeee888! - In watch mode, do not write output on failure

    Previously, on partial or full failure, watch mode still write to output. However, since the output'd be an empty array, it will then call removeStaleFiles internally to remove all previously generated files.

    This patch puts a temporary fix to avoid writing output on any failure to fix the described behaviour.

    This also means the config.allowPartialOutputs does not work in watch mode for now.

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.2.3

Compare Source

Patch Changes

v5.2.2

Compare Source

Patch Changes

v5.2.1

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.

@vercel
Copy link

vercel bot commented Nov 30, 2025

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

Project Deployment Actions Updated (UTC)
template-blog-webapp-nextjs Error Error Feb 22, 2026 6:47pm

Request Review

@renovate renovate bot enabled auto-merge (squash) November 30, 2025 10:53
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 1cbb038 to 549f112 Compare November 30, 2025 14:50
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 549f112 to f54341f Compare December 3, 2025 16:02
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from f54341f to 98cec92 Compare December 12, 2025 09:19
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 98cec92 to 1511f6e Compare December 12, 2025 15:44
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 1511f6e to dc3db3f Compare December 12, 2025 18:55
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from dc3db3f to 1030d5b Compare December 12, 2025 23:26
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 1030d5b to 914e7e8 Compare December 18, 2025 15:50
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 914e7e8 to e0131ff Compare December 20, 2025 06:58
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from e0131ff to ae42f0d Compare December 20, 2025 10:52
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from ae42f0d to 4bbbf95 Compare December 20, 2025 14:49
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 4bbbf95 to 81205d7 Compare December 20, 2025 19:39
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 81205d7 to d27d6a5 Compare December 20, 2025 22:56
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from d27d6a5 to 12dce96 Compare December 21, 2025 06:49
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 12dce96 to 97d827a Compare December 23, 2025 11:08
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 97d827a to d4ed68e Compare December 24, 2025 02:49
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from d4ed68e to 27687c7 Compare January 8, 2026 21:29
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 27687c7 to d430dff Compare January 11, 2026 14:25
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from d430dff to fbc7af2 Compare January 19, 2026 17:01
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from fbc7af2 to 8fb44b4 Compare February 2, 2026 16:27
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 8fb44b4 to 5be64e2 Compare February 6, 2026 14:48
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 5be64e2 to 819f6ef Compare February 17, 2026 08:53
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 819f6ef to 2120bbf Compare February 19, 2026 11:57
@renovate renovate bot force-pushed the renovate/main-private-major-graphqlcodegenerator-monorepo branch from 2120bbf to ba02df5 Compare February 22, 2026 18:46
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