Packages

graphql

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

Your version

16.0.0

major28 Oct 2021Where it was published

16.15.0 is the newest release of 16.x.

In short

34 breaking1 removed3 deprecated27 new24 fixed73 changed119 internal

  • Breaking

    Remove 'GraphQLSchema::isPossibleType' that was previously deprecated (@IvanGoncharov)

  • Breaking

    Remove deprecated {GraphQLEnumValue, GraphQLField}::isDeprecated (@IvanGoncharov)

  • Breaking

    Remove support for positional args in graphql/execute/subscribe func (@IvanGoncharov)

  • Breaking

    resolveType: Remove support for returning GraphQLObjectType (@IvanGoncharov)

  • Breaking

    Remove 'isFinite' & 'isInteger' polyfills (@IvanGoncharov)

  • Breaking

    Drop support for TS before 3.7 (@IvanGoncharov)

  • Breaking

    Replace default exports with named exports (@IvanGoncharov)

  • Breaking

    Remove polyfills for 'Object.values' & 'Object.entries' (@IvanGoncharov)

Release note

Breaking Change

  • Breaking

    Remove 'GraphQLSchema::isPossibleType' that was previously deprecated (@IvanGoncharov)

  • Breaking

    Remove deprecated {GraphQLEnumValue, GraphQLField}::isDeprecated (@IvanGoncharov)

  • Breaking

    Remove support for positional args in graphql/execute/subscribe func (@IvanGoncharov)

  • Breaking

    resolveType: Remove support for returning GraphQLObjectType (@IvanGoncharov)

  • Breaking

    Remove 'isFinite' & 'isInteger' polyfills (@IvanGoncharov)

  • Breaking

    Drop support for TS before 3.7 (@IvanGoncharov)

  • Breaking

    Replace default exports with named exports (@IvanGoncharov)

  • Breaking

    Remove polyfills for 'Object.values' & 'Object.entries' (@IvanGoncharov)

  • Breaking

    Drop support for Node10 (@IvanGoncharov)

  • Breaking

    visitor: Remove visitorKeys argument (@IvanGoncharov)

  • Breaking

    visit: Remove template arguments for possible nodes (@IvanGoncharov)

  • Breaking

    Forbid null & undefined as return value of 'interfaces' thunk (@IvanGoncharov)

  • Breaking

    Convert Thunk to ThunkArray and ThunkObjMap (@saihaj)

  • Breaking

    visitor: Remove 4th form of visitor (@IvanGoncharov)

  • Breaking

    print/printSchema: Remove trailing new line (@IvanGoncharov)

  • Breaking

    TS: Use unknown (TS) for mixed (flow) (@saihaj)

  • Breaking

    ts: Switch extension values to unknown to match Flow types (@IvanGoncharov)

  • Breaking

    subscribe: Drop mapping of AsyncIterable errors (@IvanGoncharov)

  • Breaking

    Drop Node v15 (@IvanGoncharov)

  • Breaking

    Drop support for TS 3.7 (@IvanGoncharov)

  • Breaking

    TS: Drop template argument from GraphQLFormattedError (@IvanGoncharov)

  • Breaking

    Synchronise *.d.ts with sources converted to TS (@IvanGoncharov)

  • Breaking

    execute: Forbid to return null from serialize function (@IvanGoncharov)

  • Breaking

    execute: Forbid to return null from serialize function (@IvanGoncharov)

  • Breaking

    Bring visitorKeys back (@ardatan)

  • Breaking

    Error.toStringTag change return string from 'Object' to 'GraphQLError' (@IvanGoncharov)

  • Breaking

    visitor: Speed up visitInParallel by dropping support for unknown nodes (@IvanGoncharov)

  • Breaking

    isNode: Check exact value of node's kind (@IvanGoncharov)

  • Breaking

    validation: Restrict maximum number of errors to 100 by default (@IvanGoncharov)

  • Breaking

    Move validation of names into GraphQL* constructors (@IvanGoncharov)

  • Breaking

    GraphQLError: Use enumerable properties (@IvanGoncharov)

  • Breaking

    Convert const "enum-like" maps to TS enums (@IvanGoncharov)

  • Breaking

    Add message that we only support TS >= 4.1.0 (@IvanGoncharov)

  • Breaking

    GraphQLError: Enumerate only spec prescribed properties (@IvanGoncharov)

  • Breaking

    GraphQLField: Relax default value of TArgs to any (@IvanGoncharov)

Deprecation

  • Deprecated

    Deprecate 'graphql/subscriptions' and move code to 'execution' (@yaacovCR)

New Feature

  • print: Remove indentation inside of block strings (@IvanGoncharov)

  • extensionASTNodes: Always populate with empty array (@IvanGoncharov)

  • Refine getNamedType() for Input and Output types (@leebyron)

  • RFC: Support full Unicode in lexer (@leebyron)

  • parser: Add specialized error for extension with descriptions (@IvanGoncharov)

  • Deprecated

    Deprecate 'formatError' and added 'GraphQLError.toJSON' instead (@IvanGoncharov)

  • collectFields/collectSubfields cleanup prototype (@IvanGoncharov)

  • Deprecated

    Added 'GraphQLSchema.getRootType' and deprecate getOperationRootType (@IvanGoncharov)

  • language: Change OperationTypeNode to enum (@lekoaf)

  • GraphQLError: Keep extensions always present (@IvanGoncharov)

  • Change type of error extensions from anonymous Record to named interfaces (@IvanGoncharov)

Bug Fix

  • introspectionFromSchema: Enable 'specifiedByUrl' by default (@IvanGoncharov)

  • introspection: Add missing support for deprecated input values (@IvanGoncharov)

  • separateOperations: Distinguish query and fragment names (@IvanGoncharov)

  • RFC: Assert subscription field is not introspection. (@benjie)

  • ASTVisitor: Use type intersection instead of type union (@IvanGoncharov)

  • Synchronise TS typings for graphql.js/execute.js/subscribe.js (@IvanGoncharov)

  • Update introspection types (@saihaj)

  • Discrepancies between Flow and TS types (@saihaj)

  • TS: Use proper type for async generator (@saihaj)

  • definition.d.ts: Correct types (@IvanGoncharov)

  • Disallow "true", "false", and "null" as enum values (@Yogu)

  • Parser: Allow classes that extend Parser to access the instance attributes (@n1ru4l)

  • Preserve deprecationReason on GraphQLInputFields (@trevor-scheer)

  • type/introspection: Add missing __Directive.args(includeDeprecated:) (@IvanGoncharov)

  • lexer: Fix expression to decode surrogate pairs (@Cito)

  • execute: Correctly report missing root type error (@IvanGoncharov)

  • GraphQLError: Fix empty locations if error got nodes without locations (@IvanGoncharov)

  • version: Force proper typing on version literals (@IvanGoncharov)

Docs

5 PRs were merged

Polish

119 PRs were merged

Internal

59 PRs were merged

  • Removed

    Remove deprecated rmdirSync usage from internal scripts (@IvanGoncharov)

  • Add .d.ts for jsutils (@saihaj)

  • Broken link to prettier rules (@saihaj)

Dependency

20 PRs were merged

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.