unstale

npm / graphql

graphql

What changed in graphql 14 to 17, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

86 breaking15 deprecations29 new APIs and options2 performance12 behavior and defaults1 tooling49 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

graphql 1730 changes

Breaking changes 1

  • Renames maxTokens to maxLexicalTokens; update parser option usage accordingly.

    17.1.0release notes

New APIs and options 5

Behavior and default changes 2

  • GraphQL now allows empty selection sets.

    17.1.0release notes

  • Directives on directive definitions are graduated, allowing them to be used without experimental status.

    17.0.0release notes

Fixes and other changes 22

  • Skips suggestions for disabled arguments.

    17.1.0release notes

  • Passes parser options through buildSchema.

    17.1.0release notes

  • Keeps collected fields separate by parent type during validation.

    17.1.0release notes

  • Field collection skips deferred fragments only when the same directive is used.

    17.1.0release notes

  • Handles fragment cycles during defer/stream directive validation on root fields.

    17.1.0release notes

  • References ESM source maps from every emitted module and identifies ESM modules in source map metadata.

    17.1.0release notes

  • Keeps argument defaults inside fragments during validation.

    17.1.0release notes

  • Prevents error completions for fragments that were not announced.

    17.1.0release notes

  • Prevents successful shared results from being lost or delayed.

    17.1.0release notes

  • Bounds shared fragment traversal during introspection validation.

    15.11.0, 16.15.0, 17.1.0release notesrelease notesrelease notes

  • Aligns source locations at chunk boundaries and keeps EOF carets after the final character.

    17.1.0release notes

  • Avoids inherited variable getters when reading nested literal values.

    17.1.0release notes

  • Requires matching variable definitions when checking whether fields overlap.

    17.1.0release notes

  • Initializes variables used in subscription validation.

    17.1.0release notes

  • Allows fragments with variables to appear before operations.

    17.1.0release notes

  • Default-value changes on input object fields are now detected.

    17.0.2release notes

  • Fixes the context for the schema argument mapper.

    17.0.2release notes

  • Emits asyncStart after promise settlement to match native tracePromise behavior.

    17.0.1release notes

  • Directives are applied when SDL contains both type definitions and extensions with directives.

    17.0.0release notes

  • Invalid fragment variables now raise a request error.

    17.0.0release notes

  • Directive locations for input field arguments in extensions are corrected.

    17.0.0release notes

  • OneOf inhabitability is addressed.

    17.0.0release notes

graphql 1690 changes

Breaking changes 48

  • Sibling errors are no longer added after propagation, changing how errors are reported.

    16.13.0release notes

  • The Array.from polyfill has been dropped.

    16.0.0release notes

  • Non-iteratable ArrayLike objects are no longer supported.

    16.0.0release notes

  • The printer no longer adds indentation inside block strings.

    16.0.0release notes

  • Support for long-deprecated comments as descriptions has been dropped.

    16.0.0release notes

  • Default exports were replaced with named exports.

    16.0.0release notes

  • Deprecated rule aliases have been removed; use the non-deprecated rule names.

    16.0.0release notes

  • The strings true, false, and null are disallowed as enum values.

    16.0.0release notes

  • Error extension types now use named interfaces instead of an anonymous Record.

    16.0.0release notes

  • Schema type extensions are no longer optional.

    16.0.0release notes

  • The find polyfill has been removed.

    16.0.0release notes

  • The previously deprecated function has been removed.

    16.0.0release notes

  • Name validation now occurs in GraphQL constructors.

    16.0.0release notes

  • The execute and subscribe functions no longer accept positional arguments.

    16.0.0release notes

  • The template argument was dropped from GraphQLFormattedError.

    16.0.0release notes

  • The previously deprecated method has been removed.

    16.0.0release notes

  • An interfaces thunk may no longer return null or undefined.

    16.0.0release notes

  • The deprecated isDeprecated properties on GraphQLEnumValue and GraphQLField have been removed.

    16.0.0release notes

  • The isFinite polyfill has been removed.

    16.0.0release notes

  • The isInteger polyfill has been removed.

    16.0.0release notes

  • isNode checks the exact value of a node's kind.

    16.0.0release notes

  • The parser no longer supports legacy syntax.

    16.0.0release notes

  • The Node custom inspect function has been removed.

    16.0.0release notes

  • Support for Node 10 was dropped.

    16.0.0release notes

  • Support for Node v15 was dropped.

    16.0.0release notes

  • The Object.entries polyfill has been removed.

    16.0.0release notes

  • The Object.values polyfill has been removed.

    16.0.0release notes

  • Support for older browsers has been dropped.

    16.0.0release notes

  • OperationTypeNode is now an enum.

    16.0.0release notes

  • Printed schema output no longer has a trailing newline.

    16.0.0release notes

  • Schema types now use ReadonlyArrays.

    16.0.0release notes

  • resolveType no longer supports returning a GraphQLObjectType.

    16.0.0release notes

  • A serialize function may no longer return null.

    16.0.0release notes

  • Use specifiedBy instead of specifiedByUrl.

    16.0.0release notes

  • introspectionFromSchema enables specifiedByUrl by default.

    16.0.0release notes

  • subscribe no longer maps errors from AsyncIterable values.

    16.0.0release notes

  • A subscription field cannot be an introspection field.

    16.0.0release notes

  • Symbol polyfills have been removed.

    16.0.0release notes

  • Thunk types were split into ThunkArray and ThunkObjMap.

    16.0.0release notes

  • Thunks are restricted to support only ObjMap and Array.

    16.0.0release notes

  • Support for TypeScript versions before 3.7 was dropped.

    16.0.0release notes

  • Support for TypeScript 3.7 was dropped.

    16.0.0release notes

  • TypeScript uses unknown for Flow's mixed type.

    16.0.0release notes

  • Validation now limits the maximum number of errors to 100 by default.

    16.0.0release notes

  • visit no longer accepts template arguments for possible nodes.

    16.0.0release notes

  • visitInParallel is faster by dropping support for unknown nodes.

    16.0.0release notes

  • The fourth form of visitor has been removed.

    16.0.0release notes

  • The visitor function no longer accepts the visitorKeys argument.

    16.0.0release notes

Deprecations 11

  • A deprecated note was added to assertValidExecutionArguments.

    16.13.0release notes

  • ASTKindToNode is deprecated.

    16.0.0release notes

  • ExecutionArgs was broadened.

    16.0.0release notes

  • formatError is deprecated; GraphQLError.toJSON was added instead.

    16.0.0release notes

  • Fragments with variables are deprecated, and naming was changed to reflect that.

    16.0.0release notes

  • getOperationRootType is deprecated in favor of GraphQLSchema.getRootType.

    16.0.0release notes

  • graphql/subscriptions is deprecated; its code has moved to execution.

    16.0.0release notes

  • GraphQLError.toJSON was added as the replacement for deprecated formatError.

    16.0.0release notes

  • The printError function is deprecated.

    16.0.0release notes

  • SubscriptionArgs is deprecated and ExecutionArgs was broadened.

    16.0.0release notes

  • The getFieldDefFn argument is deprecated and has been moved to the last position.

    16.0.0release notes

New APIs and options 12

  • Backports the maxLexicalTokens parser option to v16.

    16.15.0release notes

  • Adds experimental support for directives on directive definitions.

    16.14.0release notes

  • Allows configuring the introspection depth for ofType references.

    16.14.0release notes

  • Adds support for schema coordinates.

    16.12.0release notes

  • The introspection field __Directive.args now has the includeDeprecated argument.

    16.0.0release notes

  • TResult was added to the GraphQLFieldResolver signature.

    16.0.0release notes

  • Type parameters were added to GraphQLScalar.

    16.0.0release notes

  • GraphQLSchema.getRootType was added.

    16.0.0release notes

  • OperationTypeNode is exported as a value.

    16.0.0release notes

  • Symbol.toStringTag was added to every publicly exported class.

    16.0.0release notes

  • TypeKind is exported as a value.

    16.0.0release notes

  • A validation rule for unique argument definition names was added.

    16.0.0release notes

Behavior and default changes 6

  • Implements changes for executable descriptions, allowing developers to use descriptions with executable definitions.

    16.12.0release notes

  • Error.toStringTag now returns GraphQLError instead of Object.

    16.0.0release notes

  • The lexer supports full Unicode.

    16.0.0release notes

  • getNamedType was refined for input and output types.

    16.0.0release notes

  • GraphQLList is now a proper class.

    16.0.0release notes

  • GraphQLNonNull is now a proper class.

    16.0.0release notes

Fixes and other changes 13

  • Backports changes to OverlappingFieldsCanMerge in v16.

    16.15.0release notes

  • Fixes variable own-property checks when converting values from an AST.

    16.14.0release notes

  • Uses Object.create(null) instead of {} to avoid prototype issues.

    16.13.2release notes

  • This is the first 16.x.x release with trusted publishing and provenance, which developers can consider when evaluating package authenticity.

    16.13.1release notes

  • Fixes incorrect validation errors when variable descriptions are used.

    16.13.0release notes

  • Catches unhandled exceptions in abstract resolution.

    16.12.0release notes

  • Removes oneof validation from values of the correct type.

    16.12.0release notes

  • Parsing and AST representation were refined to represent ConstValue.

    16.0.0release notes

  • Introspection now supports deprecated input values.

    16.0.0release notes

  • extensionASTNodes is always populated with an empty array when there are no extension nodes.

    16.0.0release notes

  • GraphQLError.extensions is always present.

    16.0.0release notes

  • deprecationReason is preserved on GraphQLInputField instances.

    16.0.0release notes

  • visitorKeys was brought back.

    16.0.0release notes

graphql 1542 changes

Breaking changes 26

  • AST node types are now exact objects.

    15.0.0release notes

  • Non-finite numbers are now rejected.

    15.0.0release notes

  • The deprecated coerceValue function was removed.

    15.0.0release notes

  • Enum parsing and serialization methods now throw on invalid values.

    15.0.0release notes

  • The TypeScript-specific TData type parameter was removed.

    15.0.0release notes

  • toConfig now always returns extensionASTNodes as an array.

    15.0.0release notes

  • Non-standard properties were removed from field objects.

    15.0.0release notes

  • graphql no longer has a runtime dependency on iterall.

    15.0.0release notes

  • description is now undefined by default.

    15.0.0release notes

  • Default values were removed for required fields in GraphQL*Config types.

    15.0.0release notes

  • Custom enum values can no longer be undefined.

    15.0.0release notes

  • Scalar errors are converted from TypeError to GraphQLError.

    15.0.0release notes

  • The deprecated allowedLegacyNames property was removed.

    15.0.0release notes

  • The deprecated introspectionQuery constant was removed.

    15.0.0release notes

  • isSpecified* and isIntrospectionType now accept only correct types.

    15.0.0release notes

  • The deprecated isValidJSValue function was removed.

    15.0.0release notes

  • The deprecated isValidLiteralValue function was removed.

    15.0.0release notes

  • The node argument was removed.

    15.0.0release notes

  • Lexer is now a proper class; createLexer and passthrough options were removed.

    15.0.0release notes

  • Support for Node 6 and Node 8 was dropped.

    15.0.0release notes

  • Providing an empty string as operationName now produces an error.

    15.0.0release notes

  • Built-in scalars’ parseLiteral methods now throw TypeError.

    15.0.0release notes

  • The schema now always validates basic config structure.

    15.0.0release notes

  • The TypeScript-specific TArgs type parameter was removed.

    15.0.0release notes

  • The Rule suffix was added to all validation rule names.

    15.0.0release notes

  • The deprecated getErrors method was removed.

    15.0.0release notes

New APIs and options 5

  • Adds the maxComments parser option in v15.

    15.11.0release notes

  • Adds the maxLexicalTokens parser option in v15.

    15.11.0release notes

  • Schemas can define interfaces that implement other interfaces.

    15.0.0release notes

  • Introspection now supports repeatable directives.

    15.0.0release notes

  • A description can now be added to a schema.

    15.0.0release notes

Behavior and default changes 2

  • buildSchema and extendSchema now support schema extensions.

    15.0.0release notes

  • Serialization for Int, Float and Boolean now works with objects.

    15.0.0release notes

Tooling 1

  • Breaking-change detection now checks for removing repeatable from a directive.

    15.0.0release notes

Fixes and other changes 8

  • Backports changes to overlapping-fields validation in v15.

    15.11.0release notes

  • An empty string is now a valid deprecationReason.

    15.0.0release notes

  • Introspection now exposes fields and values with an empty deprecationReason.

    15.0.0release notes

  • Schema printing now supports empty descriptions and does not break description lines.

    15.0.0release notes

  • NaN values are now checked inside scalar serialize methods.

    15.0.0release notes

  • Missing validation rule exports were added, including legacy names for rules missing in versions before 14.6.0.

    15.0.0release notes

  • Null variables are now coerced correctly for non-nullable types.

    15.0.0release notes

  • Fixed variable values of non-null type with a default value.

    15.0.0release notes

graphql 1432 changes

Breaking changes 11

  • The “Schema Change” keys used to detect added arguments and input fields change names.

    14.0.0release notes

  • The “Schema Change” keys used to detect added arguments and input fields change names.

    14.0.0release notes

  • The API changes how error message extensions are formatted; wrapping graphql's formatError preserves existing server responses.

    14.0.0release notes

  • GraphQL*Config types are now exact types.

    14.0.0release notes

  • Node v4 and v9 are no longer supported; Node v10 is supported.

    14.0.0release notes

  • The deprecated Introspection field onField is removed.

    14.0.0release notes

  • The deprecated Introspection field onFragment is removed.

    14.0.0release notes

  • The deprecated Introspection field onOperation is removed.

    14.0.0release notes

  • ProvidedNonNullArguments is renamed to ProvidedRequiredArguments.

    14.0.0release notes

  • Invalid scalar value coercion is rejected, with stricter coercion of scalar types.

    14.0.0release notes

  • The VariablesDefaultValueAllowed validation rule is removed.

    14.0.0release notes

Deprecations 4

  • getDescription is deprecated; use the schema AST node to get descriptions.

    14.0.0release notes

  • introspectionQuery is deprecated; use getIntrospectionQuery.

    14.0.0release notes

  • isValidJSValue is deprecated; use coerceValue.

    14.0.0release notes

  • isValidLiteralValue is deprecated; use validation.

    14.0.0release notes

New APIs and options 7

  • Directives can be added to variable definitions behind the experimentalVariableDefinitionDirectives flag.

    14.0.0release notes

  • getOperationRootType(schema, operationAST) is exposed.

    14.0.0release notes

  • AST node predicate is added.

    14.0.0release notes

  • Predicate is added to test whether an argument is required.

    14.0.0release notes

  • Predicate is added to test whether an input field is required.

    14.0.0release notes

  • SDL AST types are exported.

    14.0.0release notes

  • Support is added for symbol.toStringTag.

    14.0.0release notes

Performance 2

  • Introspection query performance is improved.

    14.0.0release notes

  • The package is marked as side-effect free, which bundlers can use when optimizing imports.

    14.0.0release notes

Behavior and default changes 2

Fixes and other changes 6

  • Memory leaks and infinite recursion in buildSchema are fixed.

    14.0.0release notes

  • Fixes are made for custom enum types.

    14.0.0release notes

  • extendSchema supports spec-compliant SDL extensions.

    14.0.0release notes

  • Parsing supports new schema extensions, and extendSchema supports spec-compliant SDL extensions.

    14.0.0release notes

  • validateSchema works with schema extensions.

    14.0.0release notes

  • The watch command is fixed.

    14.0.0release notes