From f491d5c8c8cbf8671b4813946954ffd3516d1dc9 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Sat, 27 Jul 2019 19:34:57 +0300 Subject: [PATCH] Update Flow to 0.104 --- .flowconfig | 6 +++++- package.json | 2 +- src/polyfills/flatMap.js | 1 - yarn.lock | 8 ++++---- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.flowconfig b/.flowconfig index 8adf097ea4..e49ebedcf5 100644 --- a/.flowconfig +++ b/.flowconfig @@ -27,6 +27,9 @@ inexact-spread=error implicit-inexact-object=error unnecessary-optional-chain=error unnecessary-invariant=off +signature-verification-failure=error +uninitialized-instance-property=off +non-array-spread=error [options] include_warnings=true @@ -35,4 +38,5 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$DisableFlowOnNegativeTest [version] -^0.102.0 +^0.104.0 + diff --git a/package.json b/package.json index b6dfcb9a02..59ce34279d 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "chai": "4.2.0", "eslint": "5.16.0", "eslint-plugin-flowtype": "3.12.1", - "flow-bin": "0.102.0", + "flow-bin": "0.104.0", "mocha": "6.2.0", "nyc": "14.1.1", "prettier": "1.18.2" diff --git a/src/polyfills/flatMap.js b/src/polyfills/flatMap.js index 3dd212a101..ba198819d8 100644 --- a/src/polyfills/flatMap.js +++ b/src/polyfills/flatMap.js @@ -9,7 +9,6 @@ declare function flatMap( // $FlowFixMe const flatMap = Array.prototype.flatMap ? function(list, fn) { - // $FlowFixMe return Array.prototype.flatMap.call(list, fn); } : function(list, fn) { diff --git a/yarn.lock b/yarn.lock index cf705759de..bcbc309097 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1299,10 +1299,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.102.0: - version "0.102.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.102.0.tgz#3d5de44bcc26d26585e932b3201988b766f9b380" - integrity sha512-mYon6noeLO0Q5SbiWULLQeM1L96iuXnRtYMd47j3bEWXAwUW9EnwNWcn+cZg/jC/Dg4Wj/jnkdTDEuFtbeu1ww== +flow-bin@0.104.0: + version "0.104.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.104.0.tgz#ef5b3600dfd36abe191a87d19f66e481bad2e235" + integrity sha512-EZXRRmf7m7ET5Lcnwm/I/T8G3d427Bq34vmO3qIlRcPIYloGuVoqRCwjaeezLRDntHkdciagAKbhJ+NTbDjnkw== foreground-child@^1.5.6: version "1.5.6"