Skip to content

Commit 8bc95bb

Browse files
committed
Flow upgrade to 0.154
ghstack-source-id: d840249 Pull Request resolved: #25413
1 parent 9f8a98a commit 8bc95bb

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
6464
"fbjs-scripts": "1.2.0",
6565
"filesize": "^6.0.1",
66-
"flow-bin": "^0.153.0",
66+
"flow-bin": "^0.154.0",
6767
"glob": "^7.1.6",
6868
"glob-stream": "^6.1.0",
6969
"google-closure-compiler": "^20200517.0.0",

packages/react-devtools-shared/src/devtools/views/Components/KeyValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ export default function KeyValue({
411411
const hasChildren = entries.length > 0 || canEditValues;
412412
const displayName = getMetaValueLabel(value);
413413

414-
children = entries.map<ReactElement<any>>(([key, keyValue]) => (
414+
children = entries.map(([key, keyValue]): ReactElement<any> => (
415415
<KeyValue
416416
key={key}
417417
alphaSort={alphaSort}

packages/react-devtools-shared/src/devtools/views/Profiler/Updaters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function Updaters({commitTree, updaters}: Props): React.Node {
2626

2727
const children =
2828
updaters.length > 0 ? (
29-
updaters.map<React$Node>((serializedElement: SerializedElement) => {
29+
updaters.map((serializedElement: SerializedElement): React$Node => {
3030
const {displayName, id, key, type} = serializedElement;
3131
const isVisibleInTree =
3232
commitTree.nodes.has(id) && type !== ElementTypeRoot;

packages/react-native-renderer/src/ReactFabricHostConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ class ReactFabricHostComponent {
317317

318318
// eslint-disable-next-line no-unused-expressions
319319
// $FlowFixMe[class-object-subtyping] found when upgrading Flow
320+
// $FlowFixMe[method-unbinding] found when upgrading Flow
320321
(ReactFabricHostComponent.prototype: $ReadOnly<{...NativeMethods, ...}>);
321322

322323
export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMutation';

packages/react-native-renderer/src/ReactNativeFiberHostComponent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class ReactNativeFiberHostComponent {
128128

129129
// eslint-disable-next-line no-unused-expressions
130130
// $FlowFixMe[class-object-subtyping] found when upgrading Flow
131+
// $FlowFixMe[method-unbinding] found when upgrading Flow
131132
(ReactNativeFiberHostComponent.prototype: $ReadOnly<{...NativeMethods, ...}>);
132133

133134
export default ReactNativeFiberHostComponent;

packages/shared/objectIs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function is(x: any, y: any) {
1818
}
1919

2020
const objectIs: (x: any, y: any) => boolean =
21+
// $FlowFixMe[method-unbinding]
2122
typeof Object.is === 'function' ? Object.is : is;
2223

2324
export default objectIs;

scripts/flow/config/flowconfig

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

4949
[version]
50-
^0.153.0
50+
^0.154.0

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7912,10 +7912,10 @@ flatted@^2.0.0:
79127912
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
79137913
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
79147914

7915-
flow-bin@^0.153.0:
7916-
version "0.153.0"
7917-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.153.0.tgz#44d941acaf5ef977fa26d1b4b5dc3cf56b68eefc"
7918-
integrity sha512-sxP9nfXnoyCUT6hjAO+zDyHLO3dZcWg0h+4HttHs/5wg/2oAkTDwmsWbj095IQsEmwTicq2TfqWq5QRuLxynlQ==
7915+
flow-bin@^0.154.0:
7916+
version "0.154.0"
7917+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.154.0.tgz#e086964398e671daa8f56ed8663d7876337f77e5"
7918+
integrity sha512-I6u2ETdkAyard+8C5na6bfZp4EM0zIMB7O5zH4GKzBLv9/y8/NYRTxEXQe5T0hvj9R9DxFBUoPsFK76ziweUFw==
79197919

79207920
79217921
version "0.13.0"

0 commit comments

Comments
 (0)