Skip to content

Releases: graphql/graphql-js

v14.3.1

23 May 06:12
d414076
Compare
Choose a tag to compare

14.3.1 (2019-05-23)

Bug Fix 🐞

Polish 💅

19 PRs were merged

Internal 🏠

15 PRs were merged

Committers: 2

v14.3.0

07 May 11:41
4bd1a11
Compare
Choose a tag to compare

14.3.0 (2019-05-07)

New Feature 🚀

Bug Fix 🐞

  • #1837 isSpecifiedDirective should not assume Directive type (@Cito)
  • #1825 Add missing exports for createLexer, syntaxError and locatedError (@IvanGoncharov)

Polish 💅

8 PRs were merged

Internal 🏠

13 PRs were merged

Committers: 2

v14.2.1

31 Mar 12:09
d2ffd7c
Compare
Choose a tag to compare

14.2.1 (2019-03-31)

Bug Fix 🐞

v14.2.0

26 Mar 19:08
1321858
Compare
Choose a tag to compare

14.2.0 (2019-03-26)

Note: Updating to this release can cause new Flow errors since it adds Flow typing for print function that was missing in previous versions.

New Feature 🚀

Bug Fix 🐞

Docs 📝

Polish 💅

42 PRs were merged

Internal 🏠

17 PRs were merged
Read more

v14.1.1

16 Jan 19:24
Compare
Choose a tag to compare

Fixes:

v14.1.0

15 Jan 23:14
Compare
Choose a tag to compare

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)

v14.0.2

06 Sep 21:09
Compare
Choose a tag to compare

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)

v14.0.1

06 Sep 21:29
Compare
Choose a tag to compare

(Something went wrong during release, this version has been unpublished)

v14.0.0

30 Aug 15:56
Compare
Choose a tag to compare

Thanks to all contributors for the hard work put into this release, which complies with the latest June 2018 version of the GraphQL Spec

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)

v14.0.0-rc.2

08 Jun 20:58
9925e50
Compare
Choose a tag to compare
v14.0.0-rc.2 Pre-release
Pre-release

Breaking change reverted:

  • Allows Interfaces to have no implementing Objects (#1376)