Update graphql to the latest version 馃殌
Created by: greenkeeper[bot]
Version 14.0.0 of graphql was just published.
Dependency | graphql |
---|---|
Current Version | 0.13.2 |
Type | dependency |
The version 14.0.0 is not covered by your current version range.
If you don鈥檛 accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of graphql.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don鈥檛 have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v14.0.0Breaking:
- 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, andProvidedNonNullArguments
becameProvidedRequiredArguments
(#1274) - Stricter coercion of Scalar Types (#1382)
- Removes deprecated Introspection fields
onOperation
,onFragment
, andonField
(#1385, #1429) -
GraphQL*Config
are now exact types (#1391, #1443) - "Schema Change" keys in
BreakingChangeType
andDangerousChangeType
for detecting adding args and input fields changed name (#1492) -
formatError
API 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:
- Parse new schema extensions (#1314, #1323)
- Export SDL AST types (#1315)
-
extendSchema
extended with spec-compliant SDL extensions (#1373, #1392, #1441) -
symbol.toStringTag
support (#1297) - Expose
getOperationRootType(schema, operationAST)
(#1345) - Package is marked as side-effect free (#1312)
-
validateSchema
works with Schema extensions (#1410) -
validate
works on SDL definitions (#1438, #1383) - directives can be added to variable definitions, behind
experimentalVariableDefinitionDirectives
flag (#1437, #1454) - ASTNode predicates, like
isDefinitionNode
andisTypeSystemDefinitionNode
(#1459) -
isRequiredArgument
andisRequiredInputField
predicates (#1463)
Fixed:
- Fixes for custom enum types
- Prettier, Flow and eslint upgrades (#1304, #1319)
- Babel 7 upgrade (#1350)
- Introspection query perf improved (#1329)
-
introspectionFromSchema
has default options (#1408) -
buildSchema
memory leaks and infinite recursion fixed (#1417, #1427) -
watch
command fixed (#1449) - Benchmarking for
validation
(#1471)
Deprecated:
These will be removed in v15
FAQ and help
There is a collection of frequently asked questions. If those don鈥檛 help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot