Skip to content

Commit 5613aa8

Browse files
mrochfacebook-github-bot
authored andcommitted
flow v0.95
Summary: 0.95 has a more accurate definition of JSON.stringify which could return void. Reviewed By: dsainati1 Differential Revision: D14494286 fbshipit-source-id: 6cf9cb5889b4078548665bc66fe899a266c689ce
1 parent d6ee448 commit 5613aa8

6 files changed

Lines changed: 12 additions & 28 deletions

File tree

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ untyped-import
101101
untyped-type-import
102102

103103
[version]
104-
^0.94.0
104+
^0.95.0

.flowconfig.android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ untyped-import
101101
untyped-type-import
102102

103103
[version]
104-
^0.94.0
104+
^0.95.0

RNTester/js/LayoutEventsExample.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ class LayoutEventExample extends React.Component<Props, State> {
9898
/>
9999
<Text>
100100
ViewLayout:{' '}
101-
{JSON.stringify(this.state.viewLayout, null, ' ') + '\n\n'}
101+
{/* $FlowFixMe(>=0.95.0 site=react_native_fb) This comment
102+
* suppresses an error found when Flow v0.95 was deployed. To see
103+
* the error, delete this comment and run Flow. */
104+
JSON.stringify(this.state.viewLayout, null, ' ') + '\n\n'}
102105
</Text>
103106
<Text ref="txt" onLayout={this.onTextLayout} style={styles.text}>
104107
A simple piece of text.{this.state.extraText}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"eslint-plugin-react": "7.8.2",
126126
"eslint-plugin-react-hooks": "^1.0.1",
127127
"eslint-plugin-react-native": "3.5.0",
128-
"flow-bin": "^0.94.0",
128+
"flow-bin": "^0.95.0",
129129
"flow-remove-types": "1.2.3",
130130
"jest": "24.5.0",
131131
"jest-junit": "6.3.0",

template/_flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
6666
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
6767

6868
[version]
69-
^0.94.0
69+
^0.95.0

yarn.lock

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2594,13 +2594,6 @@ eslint-plugin-react@7.8.2:
25942594
jsx-ast-utils "^2.0.1"
25952595
prop-types "^15.6.0"
25962596

2597-
eslint-plugin-relay@0.0.28:
2598-
version "0.0.28"
2599-
resolved "https://registry.yarnpkg.com/eslint-plugin-relay/-/eslint-plugin-relay-0.0.28.tgz#dd9ba7dc03fd21f3a30e053d21d90e5bf2ecff34"
2600-
integrity sha512-CvyT/WxEQmcUKE4lVqjxgioTj3zSvHnT9bvR4cISgs9j2z4J5Ojsurjcv/kWe4I6gf6L+lV6zcVuZ2LkiRIO6g==
2601-
dependencies:
2602-
graphql "^14.0.0"
2603-
26042597
eslint-rule-composer@^0.3.0:
26052598
version "0.3.0"
26062599
resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9"
@@ -3082,10 +3075,10 @@ flat-cache@^1.2.1:
30823075
graceful-fs "^4.1.2"
30833076
write "^0.2.1"
30843077

3085-
flow-bin@^0.94.0:
3086-
version "0.94.0"
3087-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.94.0.tgz#b5d58fe7559705b73a18229f97edfc3ab6ffffcb"
3088-
integrity sha512-DYF7r9CJ/AksfmmB4+q+TyLMoeQPRnqtF1Pk7KY3zgfkB/nVuA3nXyzqgsIPIvnMSiFEXQcFK4z+iPxSLckZhQ==
3078+
flow-bin@^0.95.0:
3079+
version "0.95.1"
3080+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.95.1.tgz#633113831ccff4b7ee70a2730f63fc43b69ba85f"
3081+
integrity sha512-06IOC/pqPMNRYtC6AMZEWYR9Fi6UdBC7gImGinPuNUpPZFnP5E9/0cBCl3DWrH4zz/gSM2HdDilU7vPGpYIr2w==
30893082

30903083
flow-parser@0.*:
30913084
version "0.89.0"
@@ -3320,13 +3313,6 @@ graceful-fs@^4.1.15:
33203313
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00"
33213314
integrity sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==
33223315

3323-
graphql@^14.0.0:
3324-
version "14.1.1"
3325-
resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.1.1.tgz#d5d77df4b19ef41538d7215d1e7a28834619fac0"
3326-
integrity sha512-C5zDzLqvfPAgTtP8AUPIt9keDabrdRAqSWjj2OPRKrKxI9Fb65I36s1uCs1UUBFnSWTdO7hyHi7z1ZbwKMKF6Q==
3327-
dependencies:
3328-
iterall "^1.2.2"
3329-
33303316
"growl@~> 1.10.0":
33313317
version "1.10.5"
33323318
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
@@ -3911,11 +3897,6 @@ istanbul-reports@^2.1.1:
39113897
dependencies:
39123898
handlebars "^4.1.0"
39133899

3914-
iterall@^1.2.2:
3915-
version "1.2.2"
3916-
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.2.2.tgz#92d70deb8028e0c39ff3164fdbf4d8b088130cd7"
3917-
integrity sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA==
3918-
39193900
jest-changed-files@^24.5.0:
39203901
version "24.5.0"
39213902
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-24.5.0.tgz#4075269ee115d87194fd5822e642af22133cf705"

0 commit comments

Comments
 (0)