graphql
17.1.0 · 4 Nov 2026MIT74.5M / weekRepositorynpmAtom feed
15.11.0 is the newest release of 15.x.
In short
26 breaking3 removed19 new1 faster23 fixed45 changed104 internal
- Breaking
Update built-in scalar's parseLiteral method to throw TypeError (@danielrearden)
- Breaking
RFC: Allow interfaces to implement other interfaces (@mike-marcacci)
- Breaking
Drop Support for Node 6 (@IvanGoncharov)
- Breaking
Remove deprecated 'allowedLegacyNames' property of 'GraphQLSchema' (@IvanGoncharov)
- Breaking
ValidationContext: Remove deprecated 'getErrors' and make 'onError' r… (@IvanGoncharov)
- Breaking
GraphQLArgument: Make 'description' undefined by default (@IvanGoncharov)
- Breaking
GraphQLEnumType: Drop support for 'undefined' custom value (@IvanGoncharov)
- Breaking
RFC: Number lexer lookahead restriction (@leebyron)
Release note
Breaking Change
- Breaking
Update built-in scalar's parseLiteral method to throw TypeError (@danielrearden)
- Breaking
RFC: Allow interfaces to implement other interfaces (@mike-marcacci)
- Breaking
Drop Support for Node 6 (@IvanGoncharov)
- Breaking
Remove deprecated 'allowedLegacyNames' property of 'GraphQLSchema' (@IvanGoncharov)
- Breaking
ValidationContext: Remove deprecated 'getErrors' and make 'onError' r… (@IvanGoncharov)
- Breaking
GraphQLArgument: Make 'description' undefined by default (@IvanGoncharov)
- Breaking
GraphQLEnumType: Drop support for 'undefined' custom value (@IvanGoncharov)
- Breaking
RFC: Number lexer lookahead restriction (@leebyron)
- Breaking
toConfig: Allows 'extensionASTNodes' to be undefined (@IvanGoncharov)
- Breaking
Change 'isSpecified*' & 'isIntrospectionType' accept only correct types (@IvanGoncharov)
- Breaking
Lexer: Remove passthrough options (@IvanGoncharov)
- Breaking
Switch Lexer to be a proper class, remove 'createLexer' (@IvanGoncharov)
- Breaking
printSchema: Don't break description lines (@IvanGoncharov)
- Breaking
parser: Convert Location to be an ES6 class (@IvanGoncharov)
- Breaking
lexer: Convert Token to be an ES6 class (@IvanGoncharov)
- Breaking
buildSchema/extendSchema: Add support for extensions (@IvanGoncharov)
- Breaking
Resolve import cycle by moving 'visitWithTypeInfo' into 'TypeInfo.js' (@IvanGoncharov)
- Breaking
Drop Support for Node 8 (@IvanGoncharov)
- Breaking
Removes default values for required fields in GraphQL*Config types (@IvanGoncharov)
- Breaking
enum: 'parseLiteral/parseValue/serialize' now throw on invalid values (@IvanGoncharov)
- Breaking
introspection: Expose fields/values with empty deprecationReason (@IvanGoncharov)
- Breaking
schemaPrinter: Preserve order of types (@IvanGoncharov)
- Breaking
isValidNameError: Remove node argument (@IvanGoncharov)
- Breaking
NaN values should be checked inside scalar's
serializemethod (@IvanGoncharov) - Breaking
TS(definition): remove TS-specific TArgs (@IvanGoncharov)
- Breaking
TS: Remove TS-specific TData from ExecutionResult (@IvanGoncharov)
New Feature
Remove 'iterall' as dependency. 'graphql' becomes zero dependency lib 🎉 (@IvanGoncharov)
Change serialization for Int, Float and Boolean to work with objects (@alex-knyazev)
suggestionList: Lexicographically sort options with the same lexical distance (@IvanGoncharov)
FieldsOnCorrectType: Implement stable sort order for suggested types (@IvanGoncharov)
validation: Add missing rule exports (@IvanGoncharov)
schema: Always validate basic config structure (@IvanGoncharov)
Schema: Keep order of user provided types (@IvanGoncharov)
validation: Export rules missing in <14.6.0 using legacy names (@IvanGoncharov)
findBreakingChanges: Add check for removing repeatable from directive (@IvanGoncharov)
introspection: Add support for repeatable directives (@IvanGoncharov)
Change 'toConfig' to always return 'extensionASTNodes' as array (@IvanGoncharov)
Bug Fix
Validation: Unify error messages (@IvanGoncharov)
parser: Convert error messages to match common standard of this lib (@IvanGoncharov)
parser: Show empty strings in error messages (@IvanGoncharov)
printSchema: Support empty descriptions (@IvanGoncharov)
Scalars: Convert errors from 'TypeError' to 'GraphQLError' (@IvanGoncharov)
tstypes: Synchronise TS typings for
GraphQL*types (@IvanGoncharov)findBreakingChanges: Better message for removing standard scalar (@IvanGoncharov)
execute: Convert ExecutionResult to be an exact object (@IvanGoncharov)
TS:
introspectionTypesshould be array ofGraphQLNamedType(@pcarrier)Flow: Switch more types to be exact (@IvanGoncharov)
Flow: Add missing typings on exports (@IvanGoncharov)
valueFromAST: Fixed coercing of null variables on non-nullable type (@IvanGoncharov)
Fixing double 'Rule' suffix that was accidentally introduced in #2402 (@IvanGoncharov)
astFromValue: Reject non-finite numbers (@IvanGoncharov)
UniqueDirectivesPerLocation: Check for directive uniqueness in extensions (@IvanGoncharov)
TS: Add missing export on 'BuildSchemaOptions' type (@IvanGoncharov)
getNullableType: Fix TS signature (@IvanGoncharov)
isDeprecated: Make required on GraphQLField/GraphQLEnumValue (@IvanGoncharov)
TS: Fix typing for GraphQLField::deprecationReason (@IvanGoncharov)
schema: Fix error message when provided type has no name (@Cito)
Docs
7 PRs were merged
Polish
98 PRs were merged
validation: Simplify 'ValuesOfCorrectType' rule (@IvanGoncharov)
Validation: Remove internal functions for error messages (@IvanGoncharov)
didYouMean: Quote suggested values (@IvanGoncharov)
Use explicit comparisons instead of using
Booleanconstructor (@IvanGoncharov)Switch lexer and parser tests to exact match of error messages (@IvanGoncharov)
Remove unussed 'ABORT_VALIDATION' constant (@IvanGoncharov)
Synchronise 'GraphQLDirective' formatting with other definitions (@IvanGoncharov)
Document private functions with @internal tag (@craicoverflow)
Remove unused 'ABORT_VALIDATION' constant (@IvanGoncharov)
serialization-test: Don't use 'delete' on test objects (@IvanGoncharov)
buildSchema/extendSchema: Unify AST node processing (@IvanGoncharov)
buildASTSchema/extendSchema: Unify directive building (@IvanGoncharov)
grammar: 'falsey' => 'falsy' (@IvanGoncharov)
list-test: Remove 'argument' usage (@IvanGoncharov)
ESLint: Mark unused arguments with underscore (@IvanGoncharov)
Remove forgotten internal error message functions (#2159) (@Cito)
extendedSchema-test: Make tests self contained (@IvanGoncharov)
extendSchema: Remove dead check on number of directives (@IvanGoncharov)
buildSchema/extendSchema: Improve test coverage (@IvanGoncharov)
buildSchema: Change implementation to simply extending empty schema (@IvanGoncharov)
separateOperations: Simplify algorithm (@IvanGoncharov)
- Removed
validateSchema: Remove validation arguments uniqueness (@IvanGoncharov)
Extract 'formatError' tests into separate file + improve coverage (@IvanGoncharov)
coverage: Ignore uncovered branches caused by #2203 (@IvanGoncharov)
coverage: Mark ignore statements (@IvanGoncharov)
Simplify findDeprecatedUsages since "deprecationReason" is always present (@IvanGoncharov)
OverlappingFieldsCanBeMerged: Arguments always have value (@IvanGoncharov)
Unify arguments naming for parseValue/serialize methods (@IvanGoncharov)
valueFromAST-test: Improve readability (@IvanGoncharov)
valueFromAST-test: Improve coverage (@IvanGoncharov)
astFromValue-test: Improve coverage (@IvanGoncharov)
ValuesOfCorrectType: Improve coverage (@IvanGoncharov)
OverlappingFieldsCanBeMerged: Remove excessive caching (@IvanGoncharov)
mapAsyncIterator: Improve coverage (@IvanGoncharov)
Remove unused "asyncIteratorReject" utility method (@IvanGoncharov)
subscribe: Improve coverage (@IvanGoncharov)
Bring coverage to 100% 🎉 (@IvanGoncharov)
Use native "Symbol.asyncIterator" in tests (@IvanGoncharov)
eslint-plugin-import: Enable more checks (@IvanGoncharov)
GraphQLError: Convert to ES6 class (@IvanGoncharov)
Flow: Enable 'sketchy-null-bool' lint rule (@IvanGoncharov)
Restore coverage to 100% (@IvanGoncharov)
ESLint: Enable '@typescript-eslint/no-unused-vars' rule (@IvanGoncharov)
ESLint: Enable more rules for TS code (@IvanGoncharov)
ESLint: Require empty line between import groups (@IvanGoncharov)
ESLint: Forbid importing directories (@IvanGoncharov)
TS: Switch to 'Array<*>' style of array types (@IvanGoncharov)
ESLint: Enable bunch of TS lint rules (@IvanGoncharov)
buildClientSchema: Small code refactoring (@IvanGoncharov)
ESLint: Enable 'no-unnecessary-type-arguments' check (@IvanGoncharov)
FieldsOnCorrectType: Refactor error message (@IvanGoncharov)
FieldsOnCorrectTypeRule: Improve type coverage (@IvanGoncharov)
buildClientSchema-test: Remove dependency on order of types (@IvanGoncharov)
schema-parser-test: Fix description of a test case (@IvanGoncharov)
introspection: Use consistent naming for 'resolve' args (@IvanGoncharov)
buildASTSchema: Remove useless code (@IvanGoncharov)
parser: Simplify parsing of null, boolean and enum values (@IvanGoncharov)
Flow: Remove 'any's or improve their locality (@IvanGoncharov)
visitor-test: Use proper test name (@Cito)
TypeInfo-test: Use proper test name (@Cito)
validation: Fix names of internal SDL rules (@IvanGoncharov)
suggestionList: Speed up (@IvanGoncharov)
schema-test: Fix name of test (@Cito)
- Removed
TS: Remove TS-specific TSource argument for resolveFieldValueOrError (@IvanGoncharov)
Internal
29 PRs were merged
- Removed
ESLint: Remove options that match default ones (@IvanGoncharov)
Dependency
35 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.