Packages

graphql

17.1.0 · 4 Nov 2026MIT74.5M / weekRepositorynpmAtom feed

Your version

14.0.0

major30 Aug 2018Where it was published

14.7.0 is the newest release of 14.x.

npm marks 14.0.0 as deprecated: No longer supported; please update to a newer version. Details: github.com/graphql/graphql-js

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, and onField (#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)

  • Reject invalid scalar value coercion (#1365, #1336)

  • Removes VariablesDefaultValueAllowed validation rule, and ProvidedNonNullArguments became ProvidedRequiredArguments

  • Stricter coercion of Scalar Types

  • Removed

    Removes deprecated Introspection fields onOperation, onFragment, and onField (#1385, #1429)

  • GraphQL*Config are now exact types (#1391, #1443)

  • "Schema Change" keys in BreakingChangeType and DangerousChangeType for detecting adding args and input fields changed name

  • formatError API changed for error message extensions. To upgrade without changing existing server responses, wrap graphql's formatError:

import { formatError as baseFormatError, /* ... */ } from 'graphql';

{
  // other options
  formatError(error) {
    const { extensions, ...rest } = baseFormatError(error);
    return { ...extensions, ...rest };
  },
}

New:

  • Parse new schema extensions (#1314, #1323)

  • Export SDL AST types

  • extendSchema extended with spec-compliant SDL extensions (#1373, #1392, #1441)

  • symbol.toStringTag support

  • Expose getOperationRootType(schema, operationAST)

  • Package is marked as side-effect free

  • validateSchema works with Schema extensions

  • validate works on SDL definitions (#1438, #1383)

  • Directives can be added to variable definitions, behind experimentalVariableDefinitionDirectives flag (#1437, #1454)

  • ASTNode predicates, like isDefinitionNode and isTypeSystemDefinitionNode

  • isRequiredArgument and isRequiredInputField predicates

Fixed:

  • Fixes for custom enum types

  • Prettier, Flow and eslint upgrades (#1304, #1319)

  • Babel 7 upgrade

  • Introspection query perf improved

  • introspectionFromSchema has default options

  • buildSchema memory leaks and infinite recursion fixed (#1417, #1427)

  • watch command fixed

  • Benchmarking for validation

Deprecated:

These will be removed in v15

  • introspectionQuery, use getIntrospectionQuery

  • getDescription, use the schema AST node to get descriptions

  • isValidJSValue, use coerceValue

  • isValidLiteralValue, 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.