Skip to content

Update graphqlcodegenerator monorepo - #1308

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/graphqlcodegenerator-monorepo
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/graphqlcodegenerator-monorepo

Conversation

@renovate

@renovate renovate Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence Diffend
@graphql-codegen/cli (source) 7.4.1 → 7.4.6 age adoption passing confidence Diff
@graphql-codegen/typescript (source) 6.1.0 → 6.1.2 age adoption passing confidence Diff

Release Notes

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

v7.4.6

Compare Source

Patch Changes
  • #​10985
    d8aa07f
    Thanks @​eddeee888! - Build with strict: true, which changes
    these emitted type declarations:

    • @graphql-codegen/cli: mkdirp returns Promise<string | undefined>, and the require (-r)
      CLI option's default is typed never[] instead of any[].
    • @graphql-codegen/visitor-plugin-common: BaseResolversVisitor and BaseTypesVisitor
      SchemaDefinition()/SchemaExtension() return null instead of any.
    • @graphql-codegen/visitor-plugin-common: BaseSelectionSetProcessor.typeCache is keyed by
      Location | undefined.
    • @graphql-codegen/visitor-plugin-common: SelectionSetToObject.buildSelectionSet returns
      typeInfo as { name: string; type: string } | null.
    • @graphql-codegen/visitor-plugin-common: getPossibleTypes accepts null as the type, which
      graphql 15's schema.getType() can return.
    • @graphql-codegen/visitor-plugin-common: removeDescription returns nodes with
      description: undefined instead of any.
    • @graphql-codegen/typescript: TsIntrospectionVisitor's constructor takes pluginConfig as
      TypeScriptPluginConfig | undefined, DirectiveDefinition() returns null and
      ObjectTypeDefinition() returns string | null.
    • @graphql-codegen/client-preset: the babel preset accepts options as
      ClientBabelPresetOptions | null | undefined.
    • @graphql-codegen/testing: mockGraphQLServer returns nock.Scope | null.
    • @graphql-codegen/graphql-modules-preset: a schema without extensions (graphql 15) throws the
      "requires to use GraphQL SDL" error instead of a TypeError.

    Generated output is unchanged.

  • Updated dependencies
    [d8aa07f]:

v7.4.5

Compare Source

Patch Changes

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]:

v7.4.3

Compare Source

Patch Changes

v7.4.2

Compare Source

Patch Changes
  • #​10956
    cec9c1c
    Thanks @​eddeee888! - Fix dynamically-loaded plugins/presets in ESM
    builds. Previously, ESM used the bare module specifier without resolving it relative to the
    consuming project first, so a plugin only loaded if it happened to be reachable from the CLI
    package's own node_modules. Resolving it the same way the CJS build already does
    (relativeRequire.resolve(mod)) fixes that, but the resolved absolute path also has to be
    converted to a file:// URL (pathToFileURL(...).href) before being passed to import() —
    otherwise, on Windows, the loader misparses a raw path like C:\... as a c: protocol scheme and
    throws ERR_UNSUPPORTED_ESM_URL_SCHEME.

  • #​10966
    3029b60
    Thanks @​eddeee888! - Fix lifecycle hook scripts (e.g.
    hooks: { afterAllFileWrite: ['prettier --write'] } }) failing on Windows when the file paths
    passed to them contain a backslash or other POSIX shell-special character. Hook arguments were
    always quoted using POSIX single-quoting, but child_process.exec() runs through cmd.exe on
    Windows by default, which doesn't strip single quotes — so the hook script received the literal
    quote characters as part of its argument and failed to find the file. Arguments are now quoted
    per-platform: POSIX quoting stays unchanged elsewhere, and Windows arguments are wrapped in double
    quotes only when they actually need it, matching cmd.exe's own convention.

  • #​10959
    7dffaae
    Thanks @​eddeee888! - Fix the CLI reporting success (exit code 0)
    when a generates output's preset can't be resolved. The error was shown in the terminal but
    never counted toward the run's failure state, so allowPartialOutputs: false (the default) never
    took effect for this case.

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

v6.1.2

Compare Source

Patch Changes
  • #​10985
    d8aa07f
    Thanks @​eddeee888! - Build with strict: true, which changes
    these emitted type declarations:

    • @graphql-codegen/cli: mkdirp returns Promise<string | undefined>, and the require (-r)
      CLI option's default is typed never[] instead of any[].
    • @graphql-codegen/visitor-plugin-common: BaseResolversVisitor and BaseTypesVisitor
      SchemaDefinition()/SchemaExtension() return null instead of any.
    • @graphql-codegen/visitor-plugin-common: BaseSelectionSetProcessor.typeCache is keyed by
      Location | undefined.
    • @graphql-codegen/visitor-plugin-common: SelectionSetToObject.buildSelectionSet returns
      typeInfo as { name: string; type: string } | null.
    • @graphql-codegen/visitor-plugin-common: getPossibleTypes accepts null as the type, which
      graphql 15's schema.getType() can return.
    • @graphql-codegen/visitor-plugin-common: removeDescription returns nodes with
      description: undefined instead of any.
    • @graphql-codegen/typescript: TsIntrospectionVisitor's constructor takes pluginConfig as
      TypeScriptPluginConfig | undefined, DirectiveDefinition() returns null and
      ObjectTypeDefinition() returns string | null.
    • @graphql-codegen/client-preset: the babel preset accepts options as
      ClientBabelPresetOptions | null | undefined.
    • @graphql-codegen/testing: mockGraphQLServer returns nock.Scope | null.
    • @graphql-codegen/graphql-modules-preset: a schema without extensions (graphql 15) throws the
      "requires to use GraphQL SDL" error instead of a TypeError.

    Generated output is unchanged.

  • Updated dependencies
    [d8aa07f,
    5078faf]:

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]:


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, 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 added the dependencies This updates dependency files label Sep 27, 2026
@github-actions

github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2991380590

Status: Failed
Duration: 6 minutes

Job summaries

rspec: [cloud]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/17481673057/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2991380590/test_report
Finished in 1 minute 1.71 seconds (files took 13.68 seconds to load)
2028 examples, 1 failure
Line Coverage: 93.49% (7241 / 7745)
[TEST PROF INFO] Time spent in factories: 00:34.590 (49.3% of total time)

rspec: [ee]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/17481673056/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2991380590/test_report
Finished in 42.94 seconds (files took 9.82 seconds to load)
1885 examples, 0 failures
Line Coverage: 93.62% (6895 / 7365)
[TEST PROF INFO] Time spent in factories: 00:23.652 (48.28% of total time)

rspec: [ce]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/17481673055/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2991380590/test_report
Finished in 30.86 seconds (files took 8.66 seconds to load)
1819 examples, 0 failures
Line Coverage: 93.2% (6657 / 7143)
[TEST PROF INFO] Time spent in factories: 00:15.281 (42.17% of total time)

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/17481768531/artifacts/out/index.html

rubocop

1100 files inspected, no offenses detected

@renovate
renovate Bot force-pushed the renovate/graphqlcodegenerator-monorepo branch 2 times, most recently from e827988 to 756bfdf Compare October 1, 2026 19:35
@renovate renovate Bot changed the title Update dependency @graphql-codegen/cli to v7.4.2 Update dependency @graphql-codegen/cli to v7.4.3 Oct 1, 2026
@renovate
renovate Bot force-pushed the renovate/graphqlcodegenerator-monorepo branch from 756bfdf to a07f786 Compare October 12, 2026 20:17
@renovate renovate Bot changed the title Update dependency @graphql-codegen/cli to v7.4.3 Update graphqlcodegenerator monorepo Oct 12, 2026
@renovate
renovate Bot force-pushed the renovate/graphqlcodegenerator-monorepo branch 3 times, most recently from f5d12ef to 34a3617 Compare October 20, 2026 18:52
@renovate
renovate Bot force-pushed the renovate/graphqlcodegenerator-monorepo branch 2 times, most recently from 6ccea6f to 098f57a Compare October 24, 2026 13:40
@renovate
renovate Bot force-pushed the renovate/graphqlcodegenerator-monorepo branch from 098f57a to d50ec09 Compare October 26, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies This updates dependency files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant