From d354dafb5c46de51b947be632aed9ab8acc361c3 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Mon, 6 Jan 2020 13:13:16 +0700 Subject: [PATCH] Update Flow to v0.115 --- .flowconfig | 4 ++-- package.json | 2 +- src/utilities/extendSchema.js | 4 ---- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.flowconfig b/.flowconfig index 81056bf643..ef827b3151 100644 --- a/.flowconfig +++ b/.flowconfig @@ -30,13 +30,13 @@ signature-verification-failure=error implicit-inexact-object=error ambiguous-object-type=error uninitialized-instance-property=error -non-array-spread=error [options] include_warnings=true module.use_strict=true +babel_loose_array_spread=true suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$DisableFlowOnNegativeTest [version] -^0.114.0 +^0.115.0 diff --git a/package.json b/package.json index a503e9fa35..b241cbe9d8 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "dtslint": "2.0.2", "eslint": "6.8.0", "eslint-plugin-flowtype": "4.5.2", - "flow-bin": "0.114.0", + "flow-bin": "0.115.0", "mocha": "6.2.2", "nyc": "15.0.0", "prettier": "1.19.1" diff --git a/src/utilities/extendSchema.js b/src/utilities/extendSchema.js index 73daa31ab5..c4b6d700f9 100644 --- a/src/utilities/extendSchema.js +++ b/src/utilities/extendSchema.js @@ -302,7 +302,6 @@ export function extendSchemaImpl( ...field, type: replaceType(field.type), })), - // $FlowFixMe Bug in Flow, see https://github.com/facebook/flow/issues/8178 ...buildInputFieldMap(extensions), }), extensionASTNodes: concatMaybeArrays( @@ -320,7 +319,6 @@ export function extendSchemaImpl( ...config, values: { ...config.values, - // $FlowFixMe Bug in Flow, see https://github.com/facebook/flow/issues/8178 ...buildEnumValueMap(extensions), }, extensionASTNodes: concatMaybeArrays( @@ -355,7 +353,6 @@ export function extendSchemaImpl( ], fields: () => ({ ...mapValue(config.fields, extendField), - // $FlowFixMe Bug in Flow, see https://github.com/facebook/flow/issues/8178 ...buildFieldMap(extensions), }), extensionASTNodes: concatMaybeArrays( @@ -379,7 +376,6 @@ export function extendSchemaImpl( ], fields: () => ({ ...mapValue(config.fields, extendField), - // $FlowFixMe Bug in Flow, see https://github.com/facebook/flow/issues/8178 ...buildFieldMap(extensions), }), extensionASTNodes: concatMaybeArrays( diff --git a/yarn.lock b/yarn.lock index 6e02f44882..d19f7d6d5f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1913,10 +1913,10 @@ flatted@^2.0.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08" integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg== -flow-bin@0.114.0: - version "0.114.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.114.0.tgz#9079c5fcdf08fab4db91616f38994e9b7d035842" - integrity sha512-hewufX0nbnhemQn5XtJ97nEFNqoBclPBAZ54aY3jKuZJnLpwqB7Doaplet3M26TOh2NchBsU0+lUkM8oVna2VA== +flow-bin@0.115.0: + version "0.115.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.115.0.tgz#22e3ad9e5c7198967de80138ba8a9154ff387960" + integrity sha512-xW+U2SrBaAr0EeLvKmXAmsdnrH6x0Io17P6yRJTNgrrV42G8KXhBAD00s6oGbTTqRyHD0nP47kyuU34zljZpaQ== foreground-child@^2.0.0: version "2.0.0"