unstale

npm / @graphql-tools/utils

@graphql-tools/utils

What changed in @graphql-tools/utils 8 to 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-25.

48 breaking3 security1 deprecations20 new APIs and options2 performance8 behavior and defaults23 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

@graphql-tools/utils 1342 changes

Breaking changes 22

  • createStub returns graphql-js specified scalars for String, ID, Int, Float, and Boolean instead of building an object or input with that name.

    13.2.0release notes

  • Configuration is consolidated into a single .yml file, replacing CLI flags, gql-gen.json, and environment variables.

    13.0.0upgrade guide

  • Removed along with graphqlJSCompat; use graphql@16+ APIs such as getArgumentValues.

    13.0.0release notes

  • Removed along with createDeferredPromise; use Promise.withResolvers().

    13.0.0release notes

  • Removed along with createDeferred; use Promise.withResolvers().

    13.0.0release notes

  • Removed; construct errors with GraphQLError from graphql instead.

    13.0.0release notes

  • Removed along with debugTimerStart; use your own timing or console.time if needed.

    13.0.0release notes

  • Removed along with debugTimerEnd; use your own timing or console.time if needed.

    13.0.0release notes

  • Node.js >=22.18.0 is now required.

    13.0.0release notes

  • Removed along with registerAbortSignalListener; use AbortSignal APIs.

    13.0.0release notes

  • Removed from @graphql-tools/utils; import it from graphql instead.

    13.0.0release notes

  • Removed along with the cancellation helpers; handle cancellation on the iterator's return() or transport abort path.

    13.0.0release notes

  • The graphql peer range is now ^16.0.0 || ^17.0.0; GraphQL v14 and v15 are no longer supported.

    13.0.0release notes

  • Update NPM scripts to run graphql-codegen without CLI flags, using codegen.yml for configuration.

    13.0.0upgrade guide

  • Replace the deprecated graphql-codegen-typescript-template package with this plugins package.

    13.0.0upgrade guide

  • Removed along with coerceInputs; use graphql@16+ APIs such as getArgumentValues.

    13.0.0release notes

  • Removed from @graphql-tools/utils; import promise helpers from @whatwg-node/promise-helpers.

    13.0.0release notes

  • Removed; use handleMaybePromise from @whatwg-node/promise-helpers.

    13.0.0release notes

  • Removed from @graphql-tools/utils; use the helper from @whatwg-node/promise-helpers.

    13.0.0release notes

  • The exported type was removed; use the built-in PromiseWithResolvers<T> or the return type of Promise.withResolvers().

    13.0.0release notes

  • Removed along with getAbortPromise; use AbortSignal APIs.

    13.0.0release notes

  • Removed along with the async-iterable cancellation helpers; handle cancellation on the iterator's return() or transport abort path.

    13.0.0release notes

New APIs and options 10

  • loadDocuments, loadTypedefs, GraphQLFileLoader, and CodeFileLoader accept errorHandling: throw, aggregate, or return, letting callers choose how load and parse failures are handled.

    13.2.0release notes

  • Source has an optional error field, allowing failed sources returned with errorHandling: 'return' to expose the failure without a document.

    13.2.0release notes

  • A helper for getting the default incremental delivery spec.

    13.1.1release notes

  • A helper for getting incremental spec parameter names.

    13.1.1release notes

  • A helper for getting the multipart content type.

    13.1.1release notes

  • Provides a shared HTTP contract mapping Accept and Content-Type parameters to executor payload IDs, so servers can look up spec strings instead of hardcoding them.

    13.1.1release notes

  • A helper for looking up an incremental delivery spec.

    13.1.1release notes

  • Pass incrementalSpec as 'v0.1' or 'v0.2' on execute, subscribe, normalizedExecutor, or ExecutionRequest to select the incremental delivery payload format; 'v0.1' remains the default.

    13.1.0release notes

  • Adds a helper for GraphQL 16/17 VariableValues compatibility when calling getArgumentValues.

    13.0.2release notes

  • Adds a helper to normalize getVariableValues results for GraphQL 16/17 VariableValues compatibility.

    13.0.2release notes

Performance 2

  • Results are cached across executions when the document has no variable-conditional @skip, @include, or @defer, omitting variableValues from the cache key.

    13.2.1release notes

  • rewireTypes rebuilds only types that reference a replaced type; unaffected types keep the same JavaScript object.

    13.2.0release notes

Behavior and default changes 1

  • Supports merging v0.2 payloads by tracking pending ids, placing deferred data and streamed items, and folding completed errors into errors.

    13.1.0release notes

Fixes and other changes 7

  • Prints argument and input field defaults configured with the deprecated defaultValue on graphql 17, where default is undefined.

    13.2.2release notes

  • Preserves falsy singleton values when GraphQL coerces them into a list, rather than turning them into an empty list.

    13.2.0release notes

  • Published types preserve a reference to TypeScript's esnext.disposable lib, avoiding missing Disposable names for consumers without skipLibCheck or a full esnext lib.

    13.1.3release notes

  • Walks directive arguments too, so makeExecutableSchema enum resolvers get the same result.

    13.1.3release notes

  • Remaps directive argument defaults using the source type before parsing with the remapped type, preserving the intended internal value.

    13.1.3release notes

  • Preserves original directive argument AST nodes, so unquoted enum-value literals remain unquoted in printed SDL, including nested list and input-object values.

    13.1.2release notes

  • Flattens nested deferred patches so result visiting sees fields under a child @defer.

    13.1.0release notes

@graphql-tools/utils 1223 changes

Breaking changes 3

  • Now requires a VariableValues object instead of Record<string, any> for the variableValues argument.

    12.0.0release notes

  • Now returns { variableValues } on success, with variableValues as a VariableValues object, and { errors } on failure.

    12.0.0release notes

  • Aligns variableValues with the GraphQL version: GraphQL v17 and above use the wrapped shape, while v16 and below retain a flat map.

    12.0.0release notes

Security 3

  • Incremental path keys are also compared to __proto__ at property access, in addition to the existing isSafeObjectKey check.

    12.0.3release notes

  • GraphQL Tools: Prototype pollution in mergeIncrementalResult via non-primitive path segments

    12.0.2security advisoryrelease notes

  • GraphQL Tools has prototype pollution in well-established utility function mergeDeep

    12.0.1security advisoryrelease notes

Deprecations 1

  • The old positional boolean arguments remain supported but are deprecated in favor of the options object.

    12.1.0release notes

New APIs and options 4

  • Resolver map field extensions and type __extensions use Record<string | symbol, any>, allowing symbol-keyed resolver extensions to type-check under GraphQL.js v17+.

    12.1.0release notes

  • Accepts an options object with respectPrototype, respectArrays, respectArrayLength, and respectSymbols settings.

    12.1.0release notes

  • Exports a shared helper used by the path walker and other package call sites.

    12.0.2release notes

  • Adds getAsyncHelpers to GraphQLResolveInfo; its track method is used whenever waitUntil is available.

    12.0.0release notes

Behavior and default changes 2

  • Adds GraphQL v17 support and aligns the existing executor implementation with the latest GraphQL v17 API changes.

    12.0.0release notes

  • In GraphQL v17, custom scalar resolvers defining __serialize and __parseValue are automatically mapped to coerceOutputValue and coerceInputValue.

    12.0.0release notes

Fixes and other changes 10

  • Pruning retains argument types for defined directives, so unused directives keep their full definitions.

    12.1.0release notes

  • Coerces GraphQL 17 argument defaults using local input coercion, including defaults, missing variables, and nested sources.

    12.1.0release notes

  • Schema extension merging and extraction, and resolver merging, preserve enumerable and non-enumerable symbol keys.

    12.1.0release notes

  • Empty and whitespace-only description values are skipped by getDescriptionNode and printSchemaWithDirectives, preventing empty descriptions from appearing in printed SDL.

    12.0.4release notes

  • Prefers runtime description values over stale astNode descriptions.

    12.0.1release notes

  • Allows % in paths checked by the function, including directories from URL-encoded repo names.

    12.0.1release notes

  • Cleans up queues and unsubscribes when the observable completes, preventing iterators from retaining references after done.

    12.0.1release notes

  • Omits mutation and subscription from printed schemas when those root types are no longer present, such as after pruneSchema.

    12.0.1release notes

  • Adds getAbortSignal to GraphQLResolveInfo, matching behavior already available in this executor implementation.

    12.0.0release notes

  • Normalizes ExecutionRequest.variables into a VariableValues-compatible shape before traversing selections.

    12.0.0release notes

@graphql-tools/utils 117 changes

Breaking changes 2

  • mergeDeep treats explicit undefined property values as overrides rather than skipping them, distinguishing them from absent properties.

    11.2.2release notes

  • Treats null property values as explicit overrides rather than skipping them.

    11.2.1release notes

Behavior and default changes 1

  • Supports federation/subgraph-style schemas without defined operation types by printing the schema definition as an extension.

    10.10.2, 11.0.0release notesrelease notes

Fixes and other changes 4

  • Supports argument defaultValue when used with graphql@17.

    11.2.0release notes

  • Merging two or more empty objects now returns {} instead of undefined, preventing empty-object values from being dropped during nested merges.

    11.1.1release notes

  • Deep merge now preserves non-enumerable symbols.

    11.1.0release notes

  • Handles enum values correctly when they are arguments of directives defined in extensions.

    11.0.1release notes

@graphql-tools/utils 105 changes

Breaking changes 2

  • Builtin scalars are no longer mapped.

    10.10.0release notes

  • Nullish values are ignored, and calls with no sources return undefined.

    10.10.0release notes

New APIs and options 1

  • Opt in to adding schema coordinates to GraphQL error extensions so tracing or monitoring tools can identify the source of an error. The coordinate exposes schema information.

    10.11.0release notes

Behavior and default changes 1

  • Generated operations now include schema argument default values in their variable definitions.

    10.10.0release notes

Fixes and other changes 1

  • Schema extension nodes are always converted to schema definition nodes, avoiding the unexpected breaking changes introduced by the reverted change.

    10.10.3release notes

@graphql-tools/utils 96 changes

Breaking changes 1

New APIs and options 3

Behavior and default changes 2

  • Supports collecting deferred values.

    9.0.0release notes

  • Now accepts DocumentNode[] and throws the original GraphQLError instances with the correct stack trace.

    9.0.0release notes

@graphql-tools/utils 822 changes

Breaking changes 18

  • Uses the native AggregateError implementation; individual errors are available under the errors property instead of through Symbol.iterator.

    8.0.0release notes

  • No longer applies the camelCase naming convention.

    8.0.0release notes

  • The cloneSchema export was removed.

    8.0.0release notes

  • Returns different Source objects for each found SDL code block.

    8.0.0release notes

  • The package no longer exports debugLog; it uses console.log directly only if DEBUG is available under process.env.

    8.0.0release notes

  • Directive Resolvers were removed; the notes point to a new method for schema directives.

    8.0.0release notes

  • ExecutionParams was replaced by Request, then renamed to ExecutionRequest; it requires operationType, and context is supplied to createRequest and createRequestInfo instead of delegateToSchema.

    8.0.0release notes

  • This export was removed; use the .toConfig method instead.

    8.0.0release notes

  • Always returns an array of individual DirectiveAnnotation objects with name and args properties, preserving order around repeatable directives.

    8.0.0release notes

  • Respects code locations and returns graphql-js Source objects for each found code block.

    8.0.0release notes

  • Legacy Schema Directives were removed; the notes point to a new method for schema directives.

    8.0.0release notes

  • Each loader handles glob patterns internally and returns an array of Source objects instead of a single Source.

    8.0.0release notes

  • Optional methods were removed from the Loader interface.

    8.0.0release notes

  • Takes an array of sources instead of separate source arguments and accepts an additional flag to enable prototype merging.

    8.0.0release notes

  • SchemaVisitor is no longer exported; use mapSchema instead.

    8.0.0release notes

  • Subscriber was removed in favor of Executor.

    8.0.0release notes

  • visitSchema is no longer exported; use mapSchema instead.

    8.0.0release notes

  • VisitSchemaKind is no longer exported; use mapSchema instead.

    8.0.0release notes

New APIs and options 2

  • Returns an array of objects representing the args for each use of a directive, including an empty object when a use has no arguments.

    8.0.0release notes

  • rootValue is part of the request and can be passed to delegateToSchema as a named option, included in subschemaConfig, or inferred from the originating schema when using the default executor.

    8.0.0release notes

Behavior and default changes 1

  • Can receive AsyncIterable and handles subscriptions, preparing for defer, stream, and live queries.

    8.0.0release notes

Fixes and other changes 1

  • ExecutionParams respects operationName and rootValue.

    8.0.0release notes