Update graphql to the latest version π
Version 14.0.0-rc.1 of graphql was just published.
| Dependency |
graphql
|
|---|---|
| Current Version | 0.13.2 |
| Type | dependency |
The version 14.0.0-rc.1 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-rc.1NOTE
This is a pre-release. There is a high likelihood there will be more breaking changes introduced prior to the 14.0.0 release.
Breaking:
- Drops support for node v4, makes sure node v10 is supported (#1338)
- Reject invalid scalar value coercion (#1365, #1336)
- Removes
VariablesDefaultValueAllowedvalidation rule, andProvidedNonNullArgumentsbecameProvidedRequiredArguments(#1274)
New:
- Parse new schema extensions (#1314, #1323)
- Export SDL AST types (#1315)
extendSchemaextended with spec-compliant SDL extensions (#1373)symbol.toStringTagsupport (#1297)- Expose
getOperationRootType(schema, operationAST)(#1345) - Package is marked as side-effect free (#1312)
Fixed:
Commits
The new version differs by 56 commits.
84f41aa14.0.0-rc.1 (#1364)45ecb53Merge extendType functionality changes from #1322 (#1373)43c0d46fix imports (#1372)f9b0baeAdd simple test forinstanceOf. (#1370)ae23c90Handle NaN as input value (#1369)85971a2Add test for enum custom values as input args (#1267)3473ca5Reject Infinity supplied as Int or Float value (#1365)85b4f58__allowedLegacyNames: Use empty array instead of undefined properties (#1259)e79faaaAdd support for Symbol.toStringTag (#1297)10e80d0instanceOf: Check that one of the names in non-empty string (#1357)bc03768Upgrade babel and associated plugins to v7 (#1350)6857707Scalars: reject array serialization/coercion (#1336)ddb3ffcUpdated Flow, Prettier and other dependencies (#1362)eb8ef7aBabel 7 preparation: Switch babel config to JS (#1348)324768aErrors: fix how error messages represent arrays (#1333)
There are 56 commits in total.
See the full diff
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 :palm_tree:
Version 14.0.0-rc.2 just got published.
Update to this version instead π
Release Notes
v14.0.0-rc.2Breaking change reverted:
- Allows Interfaces to have no implementing Objects (#1376)
Version 14.0.0 just got published.
Update to this version instead π
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
VariablesDefaultValueAllowedvalidation rule, andProvidedNonNullArgumentsbecameProvidedRequiredArguments(#1274) - Stricter coercion of Scalar Types (#1382)
- Removes deprecated Introspection fields
onOperation,onFragment, andonField(#1385, #1429) GraphQL*Configare now exact types (#1391, #1443)- "Schema Change" keys in
BreakingChangeTypeandDangerousChangeTypefor detecting adding args and input fields changed name (#1492) formatErrorAPI 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)
extendSchemaextended with spec-compliant SDL extensions (#1373, #1392, #1441)symbol.toStringTagsupport (#1297)- Expose
getOperationRootType(schema, operationAST)(#1345) - Package is marked as side-effect free (#1312)
validateSchemaworks with Schema extensions (#1410)validateworks on SDL definitions (#1438, #1383)- directives can be added to variable definitions, behind
experimentalVariableDefinitionDirectivesflag (#1437, #1454) - ASTNode predicates, like
isDefinitionNodeandisTypeSystemDefinitionNode(#1459) isRequiredArgumentandisRequiredInputFieldpredicates (#1463)
Fixed:
- Fixes for custom enum types
- Prettier, Flow and eslint upgrades (#1304, #1319)
- Babel 7 upgrade (#1350)
- Introspection query perf improved (#1329)
introspectionFromSchemahas default options (#1408)buildSchemamemory leaks and infinite recursion fixed (#1417, #1427)watchcommand fixed (#1449)- Benchmarking for
validation(#1471)
Deprecated:
These will be removed in v15
Version 14.0.1 just got published.
Update to this version instead π
Release Notes
v14.0.1(Something went wrong during release, this version has been unpublished)
Version 14.0.2 just got published.
Update to this version instead π
Release Notes
v14.0.2Fixes:
- No longer presents warnings when used with node v7 and v9 (#1508)
- Added keywords to the NPM package (#1501)
ValidationRuleflow type is now exported (#1505)- Improved schema validation reports directives without locations (#1507)
- Fixed potential infinite loop during introspection of some schema (#1509)
- The
dependencygraphql was updated from0.13.2to14.1.0.
Update to this version instead π
Release Notes for v14.1.0
New:
Fixes:
Commits
The new version differs by 109 commits.
da6138014.1.04de99f7Merge branch 'OneCyrus-feat_listTypeForError'0a731a5Prettier and fix testsa6676dcMerge branch 'feat_listTypeForError' of https://github.com/OneCyrus/graphql-js into OneCyrus-feat_listTypeForError37c022dbuildClientSchema: add missing tests for introspection validations (#1666)3fef0d4Enable Flow on buildClientSchema tests (#1665)6876587Move $DisableFlowOnNegativeTest to more precise locations (#1664)b747bb4changed type error message8d7a5fdMerge schema validation tests with other schema tests (#1663)6741ac2Add tests for GraphQLDirective (#1662)d48e481Move isInputType & isOutputType test to rest of predicates test (#1661)4cdc8e2Update Flow to 0.90.0 (#1660)9f85d51Remove excessive invariants (#1658)0818c18ignore .nyc_output dir (#1657)9e40465Move polyfills into separate dir and exclude them from coverage (#1656)
There are 109 commits in total.
See the full diff
- The
dependencygraphql was updated from0.13.2to14.1.1.
- The
dependencygraphql was updated from0.13.2to14.2.0.
Update to this version instead π
Release Notes for v14.2.0
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 π
- #1331 Add 'toConfig' methods to all type system definitions objects (@IvanGoncharov)
Bug Fix π
- #1792 Duplicate fields in deep inputs not validated properly (#1791) (@Cito)
- #1724 Add missing toStringTag to GraphQLList and GraphQLNonNull (@IvanGoncharov)
- #1554 Improve error message for missing required argument in field or directive (@everdimension)
- #1707 printSchema: Fix printing of empty types (@IvanGoncharov)
- #1702 Add missing Flow typing for 'print' function (@IvanGoncharov)
- #1698 Fix missing schema's astNode when schema was defined inside extension (@IvanGoncharov)
- #1600 Inspect non-error types to produce helpful error messages for failing resolvers (@kommander)
Docs π
- #1679 Documentation for explicitly mentioning ObjectTypes (@buoyantair)
Polish π
42 PRs were merged
- #1798 Rename 'MaybePromise' to 'PromiseOrValue' (@IvanGoncharov)
- #1785 Fix test case description (@IvanGoncharov)
- #1670 Remove year from LICENSE headers (@IvanGoncharov)
- #1782 Fix grammar in error message (@Cito)
- #1781 Add directive predicates tests and fix test names (@Cito)
- #1778 Minor spelling errors in PossibleTpyeExtensions (@Cito)
- #1772 fix out of range return check for charCodeAt in lexer (NaN instead of null) (@superhawk610)
- #1767 Use non-capturing group inside RegExp (@IvanGoncharov)
- #1764 Minor code simplification in validation rules (@Cito)
- #1765 Fix validator test names (@Cito)
- #1763 Fix typos in UniqueOperationTypes test (@Cito)
- #1758 Tests: 'expect(...).to.eql' => 'expect(...).to.deep.equal' (@IvanGoncharov)
- #1757 GraphQLError: don't wrap single node in array (@IvanGoncharov)
- #1756 Speedup parser (~50%) by using 'slice' and 'charCodeAt' directly (@IvanGoncharov)
- #1736 Speedup visitor test on kitchenSinkQuery (@IvanGoncharov)
- #1735 Simplify checking of args inside visitor tests (@IvanGoncharov)
- #1734 Use AST abbreviation consistently (@IvanGoncharov)
- #1733 General cleanup of definition tests (@IvanGoncharov)
- #1730 Allow for long string literals inside tests (@IvanGoncharov)
- #1729 Remove useless positive isTypeOf tests, since this function is optional (@IvanGoncharov)
- #1728 Unwrap type definition tests (@IvanGoncharov)
- #1725 Group type definitions tests by type kind (@IvanGoncharov)
- #1723 Move 'Object.toString' tests to the appropriate files (@IvanGoncharov)
- #1722 Remove duplicating NonNull test (@IvanGoncharov)
- #1719 Move schema related test to "schema-test.js" + cleanup (@IvanGoncharov)
- #1718 Make all "not reachable" look and work the same (@IvanGoncharov)
- #1717 NonNull tests: Use SDL to create test schema (@IvanGoncharov)
- #1711 tests: remove useless parseLiteral & parseValue callbacks (@IvanGoncharov)
- #1710 Simplify "Type Map: includes input types only used in directives" test (@IvanGoncharov)
- #1709 Parser: use "any" util fn to parse object literal (@IvanGoncharov)
- #1708 buildASTSchema: test building of empty types (@IvanGoncharov)
- #1706 Cleanup unnecessary Query types from printSchema tests (@IvanGoncharov)
- #1705 Use isLeafType instead of isEnumType & isScalarType combo (@IvanGoncharov)
- #1697 Remove Flow workaround in buildASTSchema (@IvanGoncharov)
- #1673 Disable coverage on deprecated 'isValidJSValue' function (@IvanGoncharov)
- #1686 Add polyfill for 'flatMap' (@IvanGoncharov)
- #1684 extract flatMap function out of extendSchema implementation (@IvanGoncharov)
- #1681 Remove excessive cache inside lexicographicSortSchema (@IvanGoncharov)
- #1678 buildClientSchema: move inner functions to follow return (@IvanGoncharov)
- #1677 Remove excessive cache inside buildClientSchema (@IvanGoncharov)
- #1672 Remove useless if inside 'getAllSubNodes' function (@IvanGoncharov)
- #1547 Parser: Better names for parser util functions (@IvanGoncharov)
Internal π
17 PRs were merged
- #1795 Switch 'check-cover' to use Flow's 'batch-coverage' cmd (@IvanGoncharov)
- #1777 Prettier: normalize line ending to git standard (@IvanGoncharov)
- #1766 Update ESLint to 5.15 (@IvanGoncharov)
- #1750 Simplify benchmark by using more low-level API from 'benchmark.js' (@IvanGoncharov)
- #1748 Inline 'beautify-benchmark' + heavy refactoring (@IvanGoncharov)
- #1747 Use ESLint cache for local development (@IvanGoncharov)
- #1746 Use ESLint cache to speedup watch (@IvanGoncharov)
- #1745 Do not run duplicating parser step on watch (@IvanGoncharov)
- #1744 Remove 'yarn t' in favor of 'yarn mocha' or 'npm run mocha' (@IvanGoncharov)
- #1743 Move Mocha config into .mocharc.yml (@IvanGoncharov)
- #1739 Move list of supported targets into separate file (@IvanGoncharov)
- #1737 Remove custom mocha timeout (@IvanGoncharov)
- #1694 Make codecov less spammy (@IvanGoncharov)
- #1693 Move coverage upload to .travis.yml (@IvanGoncharov)
- #1692 Run full CI only on node LTS (@IvanGoncharov)
- #1689 Improve code coverage reporting (@IvanGoncharov)
- #1690 Temporary migrate tests from node 11.7 to 11.6 to fix codecov (@IvanGoncharov)
Committers: 7
- Aaron Ross (@superhawk610)
- Christoph Zwerschke (@Cito)
- Ivan Goncharov (@IvanGoncharov)
- Matt Mahoney (@mjmahone)
- Sebastian Herrlinger (@kommander)
- @everdimension
- buoyantair (@buoyantair)
Commits
The new version differs by 114 commits.
1321858v14.2.00b5e955Tiny simplification in the parser code (#1801)0d2c01dUpdate deps (#1800)329f357Rename 'MaybePromise' to 'PromiseOrValue' (#1798)84ea1c9Update to Babel 7.4.1 (#1797)fe0705fUpdate deps (#1796)c83412fSwitch 'check-cover' to use Flow's 'batch-coverage' cmd (#1795)26da75eUpdate Flow to v0.95 (#1794)ffccf3finspect: Add test for circular object as result of custom inspect1375776inspect: detect circular objects97a2e98inspect: Correctly handle custom inspect returningthisad35c41inspect: Limit maximum depth of printed objects68058b2inspect: move implementation intoformatValueb3d9a5cinspect: Limit maximum number of printed items to 10b699cfcUpdate deps (#1793)
There are 114 commits in total.
See the full diff
- The
dependencygraphql was updated from0.13.2to14.2.1.
Update to this version instead π
Release Notes for v14.2.1
14.2.1 (2019-03-31)
Bug Fix π
- #1808 buildClientSchema: Revert breaking change introduced in #1677 (@IvanGoncharov)
- The
dependencygraphql was updated from0.13.2to14.3.0.
Update to this version instead π
Commits
The new version differs by 37 commits.
4bd1a11v14.3.0972a150Update Flow to 0.98.1 (#1852)e90a5canyc: Switch config from JSON to YAML and move args from package.json (#1851)d69c533Add comment to make test better understandable (#1850)9ab5dfbUpdate deps (#1849)e0fbf90Remove Flow workaround for const arguments (#1848)ccbbb29isSpecifiedDirective should not assume Directive type (#1837)d6c973aAdapt benchmark to the new build script (#1845)316e24eCorrectly trap errors in shell scripts (#1844)22f0719Fix "npm run build" on Node 10 (#1843)ec206fcTerminate shell scripts if any subcomand terminated (#1842)c11ccbaMake single 'build.js' to handle NPM package build (#1841)1023264ESLint: enable 'arrow-body-style' rule (#1840)cd80f94ESLint: enable all low-hanging rules and mark rest as TODO (#1839)ce832eeMark all ESLint rules that conflict with Prettier (#1838)
There are 37 commits in total.
See the full diff