graphql
17.1.0 · 4 Nov 2026MIT74.5M / weekRepositorynpmAtom feed
14.7.0 is the newest release of 14.x.
In short
6 new5 fixed24 changed35 internal
Release note
New Feature
Limits errors in getVariableValues() (@IvanGoncharov)
Add "onError" option to allow for custom error handling behavior when performing validation (@skevy)
Add TS typings. All credits goes to original authors of '*.d.ts' files:
@TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet @IvanGoncharov @DxCx @rportugal @tgriesser @dyst5422 @adnsio @divyenduz @bradzacher @clayne11 @JCMais @langpavel @mc0 @martijnwalraven @jedmao
Bug Fix
coerceValues: Correctly handle NaN and similar values (@IvanGoncharov)
inspect: Correctly handle custom objects without class name (@IvanGoncharov)
definitions: Make constructed fields non-optional (@IvanGoncharov)
Switch all 'for..of' loops to assume they iterating only arrays (@IvanGoncharov)
Polish
42 PRs were merged
Fix build after #1467 (@IvanGoncharov)
Flow: Remove some of the 'existential type' usages (@IvanGoncharov)
parser: Simplify 'many' utility function (@IvanGoncharov)
parser: Remove unnecessary export on internal function (@IvanGoncharov)
Flow: Remove unnecessary type annotations (@IvanGoncharov)
Parser: Group internal methods into a class to share lexer & options (@IvanGoncharov)
Add tests for parseValue & parseLiteral of std scalars (@IvanGoncharov)
Remove useless check since args are always array (can be empty) (@IvanGoncharov)
Simplify coercion algorithm in getVariableValues/getArgumentValues (@IvanGoncharov)
Make getArgumentValues/getVariableValues algorithm linear (@IvanGoncharov)
coerceValue: Simplify path printing (@IvanGoncharov)
jsutils: Add generic Path implementation (@IvanGoncharov)
buildExecutionContext: Simplify errors handling (@IvanGoncharov)
flow: Enable 'uninitialized-instance-property' lint (@IvanGoncharov)
invariant: Improve code that babel outputs (@IvanGoncharov)
Use 'invariant' only for real invariants, add 'devAssert' for the rest (@IvanGoncharov)
parser: Extract 'optionalMany' utility function (@IvanGoncharov)
parser: Inline 'parseExecutableDefinition' to simplify code (@IvanGoncharov)
Simplify parser, avoid extra function call (@Cito)
coverage: Remove not essential 'istanbul ignore's (@IvanGoncharov)
validation-test: Remove unneeded 'specifiedRules' (@IvanGoncharov)
getVariableValues: Improve coverage of 'maxErrors' (@IvanGoncharov)
GraphQLSchema: Remove unneeded recursion during type collection (@IvanGoncharov)
starWarsIntrospection-test: Cleanup + add explanation comment (@IvanGoncharov)
GraphQLSchema: Simplify
getPossibleTypes&isPossibleType(@IvanGoncharov)definition: Replace object spread with explicit assignments (@IvanGoncharov)
Type definitions: Use consistent order for public fields (@IvanGoncharov)
extendSchema-test: Replace 'GraphQL*' types with SDL (@IvanGoncharov)
Internal
14 PRs were merged
Dependency
7 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.