unstale

npm / @graphql-codegen/plugin-helpers

@graphql-codegen/plugin-helpers

What changed in @graphql-codegen/plugin-helpers 2 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

13 breaking9 new APIs and options1 behavior and defaults10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

@graphql-codegen/plugin-helpers 87 changes

Breaking changes 6

  • GraphQL 14 and 15 are no longer supported; the graphql peer dependency now requires version 16 or 17.

    8.0.0release notes

  • This function is removed.

    8.0.0release notes

  • Versions below 22.18.0 are no longer supported.

    8.0.0release notes

  • The package no longer exports this function; use importExtension ?? '' instead.

    8.0.0release notes

  • The function now returns ConfiguredOutput[] instead of a single ConfiguredOutput.

    8.0.0release notes

  • A plugin's validate function now receives an info object as its fourth argument; custom plugins must destructure outputFile, allPlugins, or pluginContext from it.

    8.0.0release notes

Fixes and other changes 1

  • The info argument of PluginFunction is typed with PluginInfo, giving plugin and validate a shared definition.

    8.0.0release notes

@graphql-codegen/plugin-helpers 721 changes

Breaking changes 5

  • Federation directives missing their fields argument now throw a descriptive error.

    7.4.1release notes

  • Operations whose root type is missing from the schema now throw a descriptive error.

    7.4.1release notes

  • Types the return value instead of returning any: DocumentNode results use OldVisitDocumentResult, and other roots return unknown unless TResult is provided.

    7.4.0release notes

  • Node 22 makes it easier to integrate ES modules into applications, so it is safe to start using ESM-only packages.

    7.0.0release notes

  • Node 20 support is dropped; users need to upgrade to Node 22.

    7.0.0release notes

New APIs and options 6

  • The loader type now accepts a CustomSchemaLoaderFn as well as a path string, allowing imported loader functions without a type cast.

    7.4.1release notes

  • Adds a setting to compare generated content with either the in-memory cache or the file on disk in watch mode; preset values take precedence over output configuration.

    7.3.0release notes

  • Adds clear() to start a new profiler trace.

    7.2.1release notes

  • Adds outputName to provide the filename for the current trace; it is null for the noop profiler.

    7.2.1release notes

  • The overwrite object can set removeStaleFiles to control removal of stale files separately, including in watch mode.

    7.2.0release notes

  • The overwrite object can set updateExistingFiles to control updates to existing files separately.

    7.2.0release notes

Behavior and default changes 1

  • Profiler output in watch mode now writes a fresh trace after the initial run and every rebuild; failed rebuilds produce no trace and their events are discarded.

    7.2.1release notes

Fixes and other changes 9

  • @graphql-codegen/cli unwraps AggregateError so schema and document syntax errors continue to print the native GraphQLError with its file location.

    7.4.2release notes

  • Reference selection sets are typed recursively to match nested selections produced by @key, @requires, and @provides.

    7.4.1release notes

  • Accepts null and undefined and returns an empty array.

    7.4.1release notes

  • The visitor parameter is typed as OldVisitor, with enter and leave callbacks receiving typed AST nodes and graphql traversal context.

    7.4.1release notes

  • The cat property is optional, matching the Trace Event format and Profiler.run.

    7.4.1release notes

  • The append field now accepts null items, which core already skipped.

    7.4.1release notes

  • The prepend field now accepts null items, which core already skipped.

    7.4.1release notes

  • Fixes preset-based generates outputs so their overwrite setting is honored, preventing generated files from being deleted as stale when overwrite disables that behavior.

    7.3.0release notes

  • FederationTypes now has typesPrefix and typesSuffix applied.

    7.0.1release notes

@graphql-codegen/plugin-helpers 63 changes

New APIs and options 3

  • Declares GraphQL documents to read without generating type files for them; plugins can use them for type resolution, such as fragment types.

    6.3.0release notes

  • The generate function now accepts a GraphQLSchema directly as the schema value.

    6.2.0release notes

  • Adds the importExtension configuration option.

    6.1.0release notes

@graphql-codegen/plugin-helpers 41 changes

Breaking changes 1

@graphql-codegen/plugin-helpers 21 changes

Breaking changes 1

  • Node 10 is no longer supported by graphql-tools or Codegen packages.

    2.0.0release notes