chore(deps): update graphqlcodegenerator monorepo #383

Merged
renovate merged 1 commits from renovate/graphqlcodegenerator-monorepo into main 2026-10-08 16:23:32 +00:00
Owner

This PR contains the following updates:

Package Change Age Confidence
@graphql-codegen/cli (source) 7.4.3 → 7.4.4 age confidence
@graphql-codegen/typescript (source) 6.1.0 → 6.1.1 age confidence
@graphql-codegen/typescript-operations (source) 6.1.9 → 6.1.10 age confidence

Release Notes

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

v7.4.4

Compare Source

Patch Changes
  • #​11025
    43d0f65
    Thanks @​BuddhaBing! - Widen
    Types.SchemaWithLoaderOptions['loader'] to accept a custom loader function
    (CustomSchemaLoaderFn) in addition to a path string.

    A per-entry schema custom loader ({ '<pointer>': { loader, ...options } }) is resolved by
    @graphql-tools/load's useCustomLoader, which already accepts either a path string (resolved
    via require()) or a function value at runtime (typeof loaderPointer === 'function'). Only the
    TypeScript type restricted loader to string, forcing consumers who pass an imported loader
    function (or a class instance exposing a bound loader property) to cast the schema array to
    bypass the type error, even though it worked correctly at runtime.

    This is additive and backward compatible — loader: string continues to type-check exactly as
    before.

    Also fixes a schema-cache collision for function loaders in @graphql-codegen/cli: the cache key
    is JSON.stringify(schemaPointerMap), and JSON.stringify drops functions, so two generates
    targets using different loader functions for the same pointer
    ({ 'schema.graphql': { loader: fnA } } vs { loader: fnB }) both keyed as
    {"schema.graphql":{}} and the second silently reused the first's schema. Function values are now
    keyed by object identity (via the existing getJsObjectId), so distinct loaders load separately
    while one function reused across targets still loads once.

  • #​11020
    82ebbb5
    Thanks @​eddeee888! - Fix type errors in cli under
    strict: true:

    • @graphql-codegen/cli: loadCodegenConfig returns Promise<LoadCodegenConfigResult | null>,
      matching the null it resolves to when no config file is found. YamlCliFlags includes the
      kebab-case ignore-no-documents, emit-legacy-common-js-imports and import-extension flags
      that the CLI reads. CodegenContext.filepath is optional, and watch mode only watches the
      config file when the context has a filepath. CodegenContext.getConfig() without an argument
      returns Types.Config, and getConfig(extraConfig) returns T & Types.Config.
      CodegenContext.checkModeStaleFiles is typed as string[]. Adds @types/yargs,
      @types/babel__generator and @types/babel__template as dev dependencies.
    • @graphql-codegen/plugin-helpers: normalizeInstanceOrArray and normalizeConfig accept
      null and undefined, returning [].

    Generated output is unchanged.

  • Updated dependencies
    [43d0f65,
    82ebbb5,
    e972b6d,
    eae0e62,
    1f7566f]:

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

v6.1.1

Compare Source

Patch Changes
  • #​11019
    eae0e62
    Thanks @​eddeee888! - Fix type errors in plugin-helpers under
    strict: true:

    • @graphql-codegen/plugin-helpers: ProfilerEvent.cat is optional, matching the Trace Event
      format and Profiler.run's optional cat. FederationMeta's reference selection sets are
      typed recursively ({ [field: string]: true | ReferenceSelectionSet }), matching the nested
      selections @key/@requires/@provides produce. oldVisit's visitor param is typed as
      OldVisitor: enter and leave maps keyed by AST node kind, whose callbacks receive the typed
      node plus graphql's key, parent, path and ancestors. Federation directives missing their
      fields argument, and operations whose root type is missing from the schema, throw a
      descriptive error.
    • @graphql-codegen/typescript and @graphql-codegen/typescript-operations: the
      InputValueDefinition visitor methods take path and ancestors as required params, since the
      visitor always passes them.

    Generated output is unchanged.

  • #​11014
    7a376ef
    Thanks @​eddeee888! - Fix type errors in typescript under
    strict: true by typing the shared visitor methods it overrides:

    • @graphql-codegen/visitor-plugin-common: adds NormalizedDeclarationKindConfig (every
      declaration kind set), used by normalizeDeclarationKind, DEFAULT_DECLARATION_KINDS and
      ParsedTypesConfig.declarationKind. BaseTypesVisitor's NamedType, ListType,
      FieldDefinition, InputValueDefinition and UnionTypeDefinition have typed visitor params
      (key and parent are required, since the visitor always passes them), and
      ObjectTypeDefinition, EnumTypeDefinition and DirectiveDefinition may return null.
    • @graphql-codegen/typescript: skips document files without a document when collecting
      introspection types, types the TsVisitor visitor params, and TsVisitor.EnumTypeDefinition
      may return null like the introspection visitor's override.

    Generated output is unchanged.

  • Updated dependencies
    [43d0f65,
    82ebbb5,
    eae0e62,
    1f7566f,
    7a376ef,
    3caccd3,
    ccc0d5c]:

dotansimha/graphql-code-generator (@​graphql-codegen/typescript-operations)

v6.1.10

Compare Source

Patch Changes
  • #​11019
    eae0e62
    Thanks @​eddeee888! - Fix type errors in plugin-helpers under
    strict: true:

    • @graphql-codegen/plugin-helpers: ProfilerEvent.cat is optional, matching the Trace Event
      format and Profiler.run's optional cat. FederationMeta's reference selection sets are
      typed recursively ({ [field: string]: true | ReferenceSelectionSet }), matching the nested
      selections @key/@requires/@provides produce. oldVisit's visitor param is typed as
      OldVisitor: enter and leave maps keyed by AST node kind, whose callbacks receive the typed
      node plus graphql's key, parent, path and ancestors. Federation directives missing their
      fields argument, and operations whose root type is missing from the schema, throw a
      descriptive error.
    • @graphql-codegen/typescript and @graphql-codegen/typescript-operations: the
      InputValueDefinition visitor methods take path and ancestors as required params, since the
      visitor always passes them.

    Generated output is unchanged.

  • #​11009
    1f7566f
    Thanks @​eddeee888! - Fix type errors in typescript-operations
    under strict: true by widening the shared types it calls into:

    • @graphql-codegen/plugin-helpers: Types.ComplexPluginOutput's prepend and append now
      accept null items. Core already skipped them.
    • @graphql-codegen/visitor-plugin-common: DeclarationBlock.withComment accepts undefined,
      parseEnumValues's mapOrStr is optional (it already defaulted to {}),
      ImportSource.namespace accepts null, and optimizeOperations's includeFragments is
      optional.
    • @graphql-codegen/typescript-operations: skips document files without a document, and no
      longer throws when called without the plugin info argument.

    Generated output is unchanged.

  • Updated dependencies
    [43d0f65,
    82ebbb5,
    eae0e62,
    1f7566f,
    7a376ef,
    3caccd3,
    ccc0d5c]:


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • 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 has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@graphql-codegen/cli](https://github.com/dotansimha/graphql-code-generator) ([source](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/graphql-codegen-cli)) | [`7.4.3` → `7.4.4`](https://renovatebot.com/diffs/npm/@graphql-codegen%2fcli/7.4.3/7.4.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@graphql-codegen%2fcli/7.4.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@graphql-codegen%2fcli/7.4.3/7.4.4?slim=true) | | [@graphql-codegen/typescript](https://github.com/dotansimha/graphql-code-generator) ([source](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typescript)) | [`6.1.0` → `6.1.1`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript/6.1.0/6.1.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@graphql-codegen%2ftypescript/6.1.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@graphql-codegen%2ftypescript/6.1.0/6.1.1?slim=true) | | [@graphql-codegen/typescript-operations](https://github.com/dotansimha/graphql-code-generator) ([source](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/operations)) | [`6.1.9` → `6.1.10`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript-operations/6.1.9/6.1.10) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@graphql-codegen%2ftypescript-operations/6.1.10?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@graphql-codegen%2ftypescript-operations/6.1.9/6.1.10?slim=true) | --- ### Release Notes <details> <summary>dotansimha/graphql-code-generator (@&#8203;graphql-codegen/cli)</summary> ### [`v7.4.4`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#744) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@7.4.3...@graphql-codegen/cli@7.4.4) ##### Patch Changes - [#&#8203;11025](https://github.com/dotansimha/graphql-code-generator/pull/11025) [`43d0f65`](https://github.com/dotansimha/graphql-code-generator/commit/43d0f65c5a0f19a9743aef875e7a2ef3fe8c6e35) Thanks [@&#8203;BuddhaBing](https://github.com/BuddhaBing)! - Widen `Types.SchemaWithLoaderOptions['loader']` to accept a custom loader function (`CustomSchemaLoaderFn`) in addition to a path string. A per-entry `schema` custom loader (`{ '<pointer>': { loader, ...options } }`) is resolved by `@graphql-tools/load`'s `useCustomLoader`, which already accepts either a path string (resolved via `require()`) or a function value at runtime (`typeof loaderPointer === 'function'`). Only the TypeScript type restricted `loader` to `string`, forcing consumers who pass an imported loader function (or a class instance exposing a bound `loader` property) to cast the `schema` array to bypass the type error, even though it worked correctly at runtime. This is additive and backward compatible — `loader: string` continues to type-check exactly as before. Also fixes a schema-cache collision for function loaders in `@graphql-codegen/cli`: the cache key is `JSON.stringify(schemaPointerMap)`, and `JSON.stringify` drops functions, so two `generates` targets using different loader functions for the same pointer (`{ 'schema.graphql': { loader: fnA } }` vs `{ loader: fnB }`) both keyed as `{"schema.graphql":{}}` and the second silently reused the first's schema. Function values are now keyed by object identity (via the existing `getJsObjectId`), so distinct loaders load separately while one function reused across targets still loads once. - [#&#8203;11020](https://github.com/dotansimha/graphql-code-generator/pull/11020) [`82ebbb5`](https://github.com/dotansimha/graphql-code-generator/commit/82ebbb548b67eb8445cbc4ab71b782e65b29a973) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Fix type errors in `cli` under `strict: true`: - `@graphql-codegen/cli`: `loadCodegenConfig` returns `Promise<LoadCodegenConfigResult | null>`, matching the `null` it resolves to when no config file is found. `YamlCliFlags` includes the kebab-case `ignore-no-documents`, `emit-legacy-common-js-imports` and `import-extension` flags that the CLI reads. `CodegenContext.filepath` is optional, and watch mode only watches the config file when the context has a `filepath`. `CodegenContext.getConfig()` without an argument returns `Types.Config`, and `getConfig(extraConfig)` returns `T & Types.Config`. `CodegenContext.checkModeStaleFiles` is typed as `string[]`. Adds `@types/yargs`, `@types/babel__generator` and `@types/babel__template` as dev dependencies. - `@graphql-codegen/plugin-helpers`: `normalizeInstanceOrArray` and `normalizeConfig` accept `null` and `undefined`, returning `[]`. Generated output is unchanged. - Updated dependencies \[[`43d0f65`](https://github.com/dotansimha/graphql-code-generator/commit/43d0f65c5a0f19a9743aef875e7a2ef3fe8c6e35), [`82ebbb5`](https://github.com/dotansimha/graphql-code-generator/commit/82ebbb548b67eb8445cbc4ab71b782e65b29a973), [`e972b6d`](https://github.com/dotansimha/graphql-code-generator/commit/e972b6d2a2a388748887d87c54fbb66617fc8f44), [`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52), [`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)@7.4.1 - [@&#8203;graphql-codegen/client-preset](https://github.com/graphql-codegen/client-preset)@6.2.1 </details> <details> <summary>dotansimha/graphql-code-generator (@&#8203;graphql-codegen/typescript)</summary> ### [`v6.1.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#611) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@6.1.0...@graphql-codegen/typescript@6.1.1) ##### Patch Changes - [#&#8203;11019](https://github.com/dotansimha/graphql-code-generator/pull/11019) [`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Fix type errors in `plugin-helpers` under `strict: true`: - `@graphql-codegen/plugin-helpers`: `ProfilerEvent.cat` is optional, matching the Trace Event format and `Profiler.run`'s optional `cat`. `FederationMeta`'s reference selection sets are typed recursively (`{ [field: string]: true | ReferenceSelectionSet }`), matching the nested selections `@key`/`@requires`/`@provides` produce. `oldVisit`'s `visitor` param is typed as `OldVisitor`: `enter` and `leave` maps keyed by AST node kind, whose callbacks receive the typed node plus graphql's `key`, `parent`, `path` and `ancestors`. Federation directives missing their `fields` argument, and operations whose root type is missing from the schema, throw a descriptive error. - `@graphql-codegen/typescript` and `@graphql-codegen/typescript-operations`: the `InputValueDefinition` visitor methods take `path` and `ancestors` as required params, since the visitor always passes them. Generated output is unchanged. - [#&#8203;11014](https://github.com/dotansimha/graphql-code-generator/pull/11014) [`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Fix type errors in `typescript` under `strict: true` by typing the shared visitor methods it overrides: - `@graphql-codegen/visitor-plugin-common`: adds `NormalizedDeclarationKindConfig` (every declaration kind set), used by `normalizeDeclarationKind`, `DEFAULT_DECLARATION_KINDS` and `ParsedTypesConfig.declarationKind`. `BaseTypesVisitor`'s `NamedType`, `ListType`, `FieldDefinition`, `InputValueDefinition` and `UnionTypeDefinition` have typed visitor params (`key` and `parent` are required, since the visitor always passes them), and `ObjectTypeDefinition`, `EnumTypeDefinition` and `DirectiveDefinition` may return `null`. - `@graphql-codegen/typescript`: skips document files without a `document` when collecting introspection types, types the `TsVisitor` visitor params, and `TsVisitor.EnumTypeDefinition` may return `null` like the introspection visitor's override. Generated output is unchanged. - Updated dependencies \[[`43d0f65`](https://github.com/dotansimha/graphql-code-generator/commit/43d0f65c5a0f19a9743aef875e7a2ef3fe8c6e35), [`82ebbb5`](https://github.com/dotansimha/graphql-code-generator/commit/82ebbb548b67eb8445cbc4ab71b782e65b29a973), [`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52), [`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3), [`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6), [`3caccd3`](https://github.com/dotansimha/graphql-code-generator/commit/3caccd34f191c7e95b09ff8e80a426b8b133be62), [`ccc0d5c`](https://github.com/dotansimha/graphql-code-generator/commit/ccc0d5c205842405dbe95f5b95aded5b5e487e8e)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)@7.4.1 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)@7.2.8 </details> <details> <summary>dotansimha/graphql-code-generator (@&#8203;graphql-codegen/typescript-operations)</summary> ### [`v6.1.10`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#6110) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@6.1.9...@graphql-codegen/typescript-operations@6.1.10) ##### Patch Changes - [#&#8203;11019](https://github.com/dotansimha/graphql-code-generator/pull/11019) [`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Fix type errors in `plugin-helpers` under `strict: true`: - `@graphql-codegen/plugin-helpers`: `ProfilerEvent.cat` is optional, matching the Trace Event format and `Profiler.run`'s optional `cat`. `FederationMeta`'s reference selection sets are typed recursively (`{ [field: string]: true | ReferenceSelectionSet }`), matching the nested selections `@key`/`@requires`/`@provides` produce. `oldVisit`'s `visitor` param is typed as `OldVisitor`: `enter` and `leave` maps keyed by AST node kind, whose callbacks receive the typed node plus graphql's `key`, `parent`, `path` and `ancestors`. Federation directives missing their `fields` argument, and operations whose root type is missing from the schema, throw a descriptive error. - `@graphql-codegen/typescript` and `@graphql-codegen/typescript-operations`: the `InputValueDefinition` visitor methods take `path` and `ancestors` as required params, since the visitor always passes them. Generated output is unchanged. - [#&#8203;11009](https://github.com/dotansimha/graphql-code-generator/pull/11009) [`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Fix type errors in `typescript-operations` under `strict: true` by widening the shared types it calls into: - `@graphql-codegen/plugin-helpers`: `Types.ComplexPluginOutput`'s `prepend` and `append` now accept `null` items. Core already skipped them. - `@graphql-codegen/visitor-plugin-common`: `DeclarationBlock.withComment` accepts `undefined`, `parseEnumValues`'s `mapOrStr` is optional (it already defaulted to `{}`), `ImportSource.namespace` accepts `null`, and `optimizeOperations`'s `includeFragments` is optional. - `@graphql-codegen/typescript-operations`: skips document files without a `document`, and no longer throws when called without the plugin info argument. Generated output is unchanged. - Updated dependencies \[[`43d0f65`](https://github.com/dotansimha/graphql-code-generator/commit/43d0f65c5a0f19a9743aef875e7a2ef3fe8c6e35), [`82ebbb5`](https://github.com/dotansimha/graphql-code-generator/commit/82ebbb548b67eb8445cbc4ab71b782e65b29a973), [`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52), [`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3), [`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6), [`3caccd3`](https://github.com/dotansimha/graphql-code-generator/commit/3caccd34f191c7e95b09ff8e80a426b8b133be62), [`ccc0d5c`](https://github.com/dotansimha/graphql-code-generator/commit/ccc0d5c205842405dbe95f5b95aded5b5e487e8e)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)@7.4.1 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)@7.2.8 </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - 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](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzMuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjEzMy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
renovate added 1 commit 2026-10-08 16:17:51 +00:00
chore(deps): update graphqlcodegenerator monorepo
renovate/stability-days Updates have met minimum release age requirement
schemas-app / build (pull_request) Successful in 5m39s
schemas-app / deploy-prod (pull_request) Skipped
c1e8982bd2
renovate scheduled this pull request to auto merge when all checks succeed 2026-10-08 16:17:52 +00:00
renovate merged commit 30190b678d into main 2026-10-08 16:23:32 +00:00
renovate deleted branch renovate/graphqlcodegenerator-monorepo 2026-10-08 16:23:32 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unboundsoftware/schemas-app#383