Skip to content

Commit 2ef2414

Browse files
authored
[flow] upgrade to 0.199.0 (#26096)
`flow-remove-types` was also upgraded to the latest version.
1 parent 922dd7b commit 2ef2414

File tree

4 files changed

+21
-23
lines changed

4 files changed

+21
-23
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
6161
"fbjs-scripts": "1.2.0",
6262
"filesize": "^6.0.1",
63-
"flow-bin": "^0.196.3",
64-
"flow-remove-types": "^2.196.1",
63+
"flow-bin": "^0.199.0",
64+
"flow-remove-types": "^2.198.2",
6565
"glob": "^7.1.6",
6666
"glob-stream": "^6.1.0",
6767
"google-closure-compiler": "^20200517.0.0",

packages/react/src/ReactChildren.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,8 @@ function mapIntoArray(
138138
// $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
139139
(mappedChild.key && (!child || child.key !== mappedChild.key)
140140
? escapeUserProvidedKey(
141-
// eslint-disable-next-line react-internal/safe-string-coercion
142-
'' +
143-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
144-
mappedChild.key,
141+
// $FlowFixMe[unsafe-addition]
142+
'' + mappedChild.key, // eslint-disable-line react-internal/safe-string-coercion
145143
) + '/'
146144
: '') +
147145
childKey,

scripts/flow/config/flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ munge_underscores=false
4848
%REACT_RENDERER_FLOW_OPTIONS%
4949

5050
[version]
51-
^0.196.3
51+
^0.199.0

yarn.lock

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8044,22 +8044,22 @@ flatted@^3.1.0:
80448044
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
80458045
integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==
80468046

8047-
flow-bin@^0.196.3:
8048-
version "0.196.3"
8049-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.196.3.tgz#b6df48986a2629f2c6a26fb79d73fc07c8056af0"
8050-
integrity sha512-pmvjlksi1CvkSnDHpcfhDFj/KC3hwSgE2OpzvugW57dfgqfHzqX1UfZIcScGWM5AmP/IeOsQCW383k3zIbEnrA==
8051-
8052-
flow-parser@^0.196.1:
8053-
version "0.196.1"
8054-
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.196.1.tgz#3c31f102454518f0c68eeb99f57501c2a0c9bff0"
8055-
integrity sha512-V3yaKHyBWhl+LF6sxgbfqxMlwoFKs8UKh2DYTrGj1AHi9ST7Zyp+9ToF4l9eoL6l/DxdFwCNF3MAJ1vCVrgJmw==
8056-
8057-
flow-remove-types@^2.196.1:
8058-
version "2.196.1"
8059-
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.196.1.tgz#c77ab53679beb1b1ba420c16865cea714a67defc"
8060-
integrity sha512-pAEe2B/fKtV96MVGWQgmjP5Z1nLeFFe++r83ql1Zj86+p+3IujsbvwxiXCiF/SS6ObbB6TmciCxxd+FsOUyY3Q==
8061-
dependencies:
8062-
flow-parser "^0.196.1"
8047+
flow-bin@^0.199.0:
8048+
version "0.199.0"
8049+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.199.0.tgz#e710c0834d4e1032529a633e0cf32d89a102fcfb"
8050+
integrity sha512-8N8jn59ghgtDSogFoy1Ld1P8NlfdlVUcXSRADDf8WyX3SMMA6b1SbqraTRXxJDNn0F3WdVBHKdufdUg73y4Nhw==
8051+
8052+
flow-parser@^0.198.2:
8053+
version "0.198.2"
8054+
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.198.2.tgz#4c225995896b6be75943e9358e606a4fd86c87d9"
8055+
integrity sha512-tCQzqXbRAz0ZadIhAXGwdp/xsusADo8IK9idgc/2qCK5RmazbKDGedyykfRtzWgy7Klt4f4NZxq0o/wFUg6plQ==
8056+
8057+
flow-remove-types@^2.198.2:
8058+
version "2.198.2"
8059+
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.198.2.tgz#1b9e0e32eead4554f0d325391bbeb0c7a2a2993f"
8060+
integrity sha512-l7ua9FnZwI0HUUUu2Khj3pYnGSlkY5vOE60bgG1ajPJ9P+KzRgXIjpCaS4iTbUEpu6olzRrAVJtJ5N8kxmvpiQ==
8061+
dependencies:
8062+
flow-parser "^0.198.2"
80638063
pirates "^3.0.2"
80648064
vlq "^0.2.1"
80658065

0 commit comments

Comments
 (0)