Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Update graphql to the latest version 🚀 #1674

Closed
wants to merge 1 commit into from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Aug 30, 2018

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’t 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’t 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.0

Breaking:

  • 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 (#1274)
  • Stricter coercion of Scalar Types (#1382)
  • 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 (#1492)
  • 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 (#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 and isTypeSystemDefinitionNode (#1459)
  • isRequiredArgument and isRequiredInputField 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

  • introspectionQuery, use getIntrospectionQuery (#1386)
  • getDescription, use the schema AST node to get descriptions (#1396)
  • isValidJSValue, use coerceValue (#1386)
  • isValidLiteralValue, use validation (#1386)
FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 80.153% when pulling 0568323 on greenkeeper/graphql-14.0.0 into 5cefdf0 on master.

1 similar comment
@coveralls

This comment has been minimized.

greenkeeper bot added a commit that referenced this pull request Sep 6, 2018
@greenkeeper

This comment has been minimized.

greenkeeper bot added a commit that referenced this pull request Sep 6, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Sep 6, 2018

Version 14.0.2 just got published.

Update to this version instead 🚀

Release Notes v14.0.2

Fixes:

  • No longer presents warnings when used with node v7 and v9 (#1508)
  • Added keywords to the NPM package (#1501)
  • ValidationRule flow type is now exported (#1505)
  • Improved schema validation reports directives without locations (#1507)
  • Fixed potential infinite loop during introspection of some schema (#1509)
Commits

The new version differs by commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jan 15, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jan 15, 2019

  • The dependency graphql was updated from 0.13.2 to 14.1.0.

Update to this version instead 🚀

Release Notes for v14.1.0

New:

  • Added assertSchema and assertDirective (#1580)
  • Adds additional type extension validation (#1643)

Fixes:

  • Improves flow type definitions
  • Adds back in support for node 9, and tests for node 11. node >= 6 is currently supported.
  • Allows custom node inspect (#1605)
  • Correctly handles newlines in block strings (#1637)
Commits

The new version differs by 109 commits.

  • da61380 14.1.0
  • 4de99f7 Merge branch 'OneCyrus-feat_listTypeForError'
  • 0a731a5 Prettier and fix tests
  • a6676dc Merge branch 'feat_listTypeForError' of https://github.com/OneCyrus/graphql-js into OneCyrus-feat_listTypeForError
  • 37c022d buildClientSchema: add missing tests for introspection validations (#1666)
  • 3fef0d4 Enable Flow on buildClientSchema tests (#1665)
  • 6876587 Move $DisableFlowOnNegativeTest to more precise locations (#1664)
  • b747bb4 changed type error message
  • 8d7a5fd Merge schema validation tests with other schema tests (#1663)
  • 6741ac2 Add tests for GraphQLDirective (#1662)
  • d48e481 Move isInputType & isOutputType test to rest of predicates test (#1661)
  • 4cdc8e2 Update Flow to 0.90.0 (#1660)
  • 9f85d51 Remove excessive invariants (#1658)
  • 0818c18 ignore .nyc_output dir (#1657)
  • 9e40465 Move polyfills into separate dir and exclude them from coverage (#1656)

There are 109 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jan 16, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jan 16, 2019

  • The dependency graphql was updated from 0.13.2 to 14.1.1.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • 7dd2b2b 14.1.1
  • 51c67dc Update travis api_key for npm deploys (#1667)
  • 7fe9985 Remove usage of Flow placeholder argument + cleanup (#1669)

See the full diff

@greenkeeper greenkeeper bot closed this Feb 26, 2019
@greenkeeper greenkeeper bot deleted the greenkeeper/graphql-14.0.0 branch February 26, 2019 14:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant