graphql
17.1.0 · 4 Nov 2026MIT74.5M / weekRepositorynpmAtom feed
14.7.0 is the newest release of 14.x.
In short
2 removed1 new1 fixed27 changed
- Removed
Drops support for node v4 and v9, makes sure node v10 is supported (#1338, #1445)
- Removed
Removes deprecated Introspection fields
onOperation,onFragment, andonField(#1385, #1429)
Release note
Thanks to all contributors for the hard work put into this release, which complies with the latest June 2018 version of the GraphQL Spec
Breaking:
- Removed
Drops support for node v4 and v9, makes sure node v10 is supported (#1338, #1445)
Removes
VariablesDefaultValueAllowedvalidation rule, andProvidedNonNullArgumentsbecameProvidedRequiredArgumentsStricter coercion of Scalar Types
- Removed
Removes deprecated Introspection fields
onOperation,onFragment, andonField(#1385, #1429) "Schema Change" keys in
BreakingChangeTypeandDangerousChangeTypefor detecting adding args and input fields changed nameformatErrorAPI changed for error message extensions. To upgrade without changing existing server responses, wrapgraphql'sformatError:
import { formatError as baseFormatError, /* ... */ } from 'graphql';
{
// other options
formatError(error) {
const { extensions, ...rest } = baseFormatError(error);
return { ...extensions, ...rest };
},
}New:
Export SDL AST types
extendSchemaextended with spec-compliant SDL extensions (#1373, #1392, #1441)symbol.toStringTagsupportExpose
getOperationRootType(schema, operationAST)Package is marked as side-effect free
validateSchemaworks with Schema extensionsDirectives can be added to variable definitions, behind
experimentalVariableDefinitionDirectivesflag (#1437, #1454)ASTNode predicates, like
isDefinitionNodeandisTypeSystemDefinitionNodeisRequiredArgumentandisRequiredInputFieldpredicates
Fixed:
Fixes for custom enum types
Babel 7 upgrade
Introspection query perf improved
introspectionFromSchemahas default optionsbuildSchemamemory leaks and infinite recursion fixed (#1417, #1427)watchcommand fixedBenchmarking for
validation
Deprecated:
These will be removed in v15
introspectionQuery, usegetIntrospectionQuerygetDescription, use the schema AST node to get descriptionsisValidJSValue, usecoerceValueisValidLiteralValue, use validation
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.