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@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.
This function is removed.
Versions below 22.18.0 are no longer supported.
The package no longer exports this function; use importExtension ?? '' instead.
The function now returns ConfiguredOutput[] instead of a single ConfiguredOutput.
A plugin's validate function now receives an info object as its fourth argument; custom plugins must destructure outputFile, allPlugins, or pluginContext from it.
Fixes and other changes 1
The info argument of PluginFunction is typed with PluginInfo, giving plugin and validate a shared definition.
@graphql-codegen/plugin-helpers 721 changes
Breaking changes 5
Federation directives missing their fields argument now throw a descriptive error.
Operations whose root type is missing from the schema now throw a descriptive error.
Types the return value instead of returning any: DocumentNode results use OldVisitDocumentResult, and other roots return unknown unless TResult is provided.
Node 22 makes it easier to integrate ES modules into applications, so it is safe to start using ESM-only packages.
Node 20 support is dropped; users need to upgrade to Node 22.
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.
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.
Adds clear() to start a new profiler trace.
Adds outputName to provide the filename for the current trace; it is null for the noop profiler.
The overwrite object can set removeStaleFiles to control removal of stale files separately, including in watch mode.
The overwrite object can set updateExistingFiles to control updates to existing files separately.
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.
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.
Reference selection sets are typed recursively to match nested selections produced by @key, @requires, and @provides.
Accepts null and undefined and returns an empty array.
The visitor parameter is typed as OldVisitor, with enter and leave callbacks receiving typed AST nodes and graphql traversal context.
The cat property is optional, matching the Trace Event format and Profiler.run.
The append field now accepts null items, which core already skipped.
The prepend field now accepts null items, which core already skipped.
Fixes preset-based generates outputs so their overwrite setting is honored, preventing generated files from being deleted as stale when overwrite disables that behavior.
FederationTypes now has typesPrefix and typesSuffix applied.
@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.
The generate function now accepts a GraphQLSchema directly as the schema value.
Adds the importExtension configuration option.
@graphql-codegen/plugin-helpers 41 changes
Breaking changes 1
Support for Node.js 12 was dropped.
@graphql-codegen/plugin-helpers 21 changes
Breaking changes 1
Node 10 is no longer supported by graphql-tools or Codegen packages.