Skip to content

Commit

Permalink
Deploy Flow v0.146.0
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal]

Reviewed By: mroch

Differential Revision: D26835439

fbshipit-source-id: 2607c3185485c8bd2c7e868dd2e3e0c06866f1f9
  • Loading branch information
Hans Halverson authored and facebook-github-bot committed Mar 6, 2021
1 parent 8e2fa86 commit d477f80
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ untyped-import
untyped-type-import

[version]
^0.145.0
^0.146.0
2 changes: 1 addition & 1 deletion .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ untyped-import
untyped-type-import

[version]
^0.145.0
^0.146.0
3 changes: 3 additions & 0 deletions Libraries/Core/Timers/JSTimers.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ const JSTimers = {
}

if (errors) {
// $FlowFixMe[incompatible-use]
const errorCount = errors.length;
if (errorCount > 1) {
// Throw all the other errors in a setTimeout, which will throw each
Expand All @@ -359,11 +360,13 @@ const JSTimers = {
JSTimers.setTimeout(
(error => {
throw error;
// $FlowFixMe[incompatible-use]
}).bind(null, errors[ii]),
0,
);
}
}
// $FlowFixMe[incompatible-use]
throw errors[0];
}
},
Expand Down
1 change: 1 addition & 0 deletions Libraries/EventEmitter/NativeEventEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default class NativeEventEmitter<TEventToArgsMap: {...}>
remove: () => {
if (subscription != null) {
this._nativeModule?.removeListeners(1);
// $FlowFixMe[incompatible-use]
subscription.remove();
subscription = null;
}
Expand Down
5 changes: 5 additions & 0 deletions Libraries/Image/Image.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ let Image = (props: ImagePropsType, forwardedRef) => {
}
}

// $FlowFixMe[incompatible-use]
// $FlowFixMe[incompatible-type]
const resizeMode = props.resizeMode || style.resizeMode || 'cover';
// $FlowFixMe[prop-missing]
// $FlowFixMe[incompatible-use]
const tintColor = style.tintColor;

if (props.src != null) {
Expand All @@ -148,6 +152,7 @@ let Image = (props: ImagePropsType, forwardedRef) => {
{...props}
ref={forwardedRef}
style={style}
// $FlowFixMe[incompatible-type]
resizeMode={resizeMode}
tintColor={tintColor}
source={sources}
Expand Down
2 changes: 2 additions & 0 deletions Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
} else if (this.props.onViewableItemsChanged) {
this._viewabilityTuples.push({
viewabilityHelper: new ViewabilityHelper(this.props.viewabilityConfig),
// $FlowFixMe[incompatible-call]
onViewableItemsChanged: this.props.onViewableItemsChanged,
});
}
Expand Down Expand Up @@ -1744,6 +1745,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
}
}
if (someChildHasMore) {
// $FlowFixMe[incompatible-use]
newState.last = ii;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"ws": "^6.1.4"
},
"devDependencies": {
"flow-bin": "^0.145.0",
"flow-bin": "^0.146.0",
"react": "17.0.1"
},
"detox": {
Expand Down
10 changes: 10 additions & 0 deletions packages/normalize-color/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ function normalizeColorBase(color: ?string | number): null | number {
return (
// b
((parse255(match[1]) << 24) | // r
// $FlowFixMe[incompatible-use]
(parse255(match[2]) << 16) | // g
// $FlowFixMe[incompatible-use]
(parse255(match[3]) << 8) |
0x000000ff) >>> // a
0
Expand All @@ -51,8 +53,11 @@ function normalizeColorBase(color: ?string | number): null | number {
return (
// b
((parse255(match[1]) << 24) | // r
// $FlowFixMe[incompatible-use]
(parse255(match[2]) << 16) | // g
// $FlowFixMe[incompatible-use]
(parse255(match[3]) << 8) |
// $FlowFixMe[incompatible-use]
parse1(match[4])) >>> // a
0
);
Expand Down Expand Up @@ -98,7 +103,9 @@ function normalizeColorBase(color: ?string | number): null | number {
return (
(hslToRgb(
parse360(match[1]), // h
// $FlowFixMe[incompatible-use]
parsePercentage(match[2]), // s
// $FlowFixMe[incompatible-use]
parsePercentage(match[3]), // l
) |
0x000000ff) >>> // a
Expand All @@ -110,9 +117,12 @@ function normalizeColorBase(color: ?string | number): null | number {
return (
(hslToRgb(
parse360(match[1]), // h
// $FlowFixMe[incompatible-use]
parsePercentage(match[2]), // s
// $FlowFixMe[incompatible-use]
parsePercentage(match[3]), // l
) |
// $FlowFixMe[incompatible-use]
parse1(match[4])) >>> // a
0
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ class TokenizedTextExample extends React.Component<
index = 1;
}
parts.push(_text.substr(0, index));
// $FlowFixMe[incompatible-use]
parts.push(token[0]);
// $FlowFixMe[incompatible-use]
index = index + token[0].length;
_text = _text.slice(index);
}
Expand Down
2 changes: 1 addition & 1 deletion repo-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react-native": "3.10.0",
"eslint-plugin-relay": "1.8.1",
"flow-bin": "^0.145.0",
"flow-bin": "^0.146.0",
"jest": "^26.5.2",
"jest-junit": "^10.0.0",
"jscodeshift": "^0.11.0",
Expand Down
2 changes: 1 addition & 1 deletion template/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ untyped-import
untyped-type-import

[version]
^0.145.0
^0.146.0
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3032,10 +3032,10 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==

flow-bin@^0.145.0:
version "0.145.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.145.0.tgz#922f7c3568caaa5eb64621ec536deb56b24d1795"
integrity sha512-+9fi9BMxRBtSWC1x0hWggWTb8Vih+AC7wyvLAX5wR1m6u2lF2HLtixXqy2GX8bWgaynSEJR5lmPxYYC4wMI8cA==
flow-bin@^0.146.0:
version "0.146.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.146.0.tgz#fafa002663a0e13bf3c08c3972dd93d68289ccc6"
integrity sha512-TP8eCwltqc7fo6ad5klgsrZ2veZIK2qM1vHf1A/cnXTStPh8hLAz1cOXmlQIFZR/7fjSMI39TS3CgF6M/HUhAw==

flow-parser@0.*, flow-parser@^0.121.0:
version "0.121.0"
Expand Down

0 comments on commit d477f80

Please sign in to comment.