Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Flow to 0.221.0 #27689

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
"fbjs-scripts": "^3.0.1",
"filesize": "^6.0.1",
"flow-bin": "^0.220.1",
"flow-remove-types": "^2.220.1",
"flow-bin": "^0.221.0",
"flow-remove-types": "^2.221.0",
"glob": "^7.1.6",
"glob-stream": "^6.1.0",
"google-closure-compiler": "^20230206.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,12 @@ export function findNodeHandle(componentOrHandle: any): ?number {
}

if (hostInstance == null) {
// $FlowFixMe[incompatible-return] Flow limitation in refining an opaque type
return hostInstance;
}

// $FlowFixMe[incompatible-type] For compatibility with legacy renderer instances
if (hostInstance._nativeTag != null) {
// $FlowFixMe[incompatible-return] For compatibility with legacy renderer instances
return hostInstance._nativeTag;
}

Expand Down
1 change: 1 addition & 0 deletions packages/react/src/ReactChildren.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ function mapChildren(
context: mixed,
): ?Array<React$Node> {
if (children == null) {
// $FlowFixMe limitation refining abstract types in Flow
return children;
}
const result: Array<React$Node> = [];
Expand Down
27 changes: 11 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7878,22 +7878,17 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==

flow-bin@^0.220.1:
version "0.220.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.220.1.tgz#637d522e43ed5c0d4319e8fe51f4e0a708e56bb1"
integrity sha512-p25Ga+f3yWG0/Nlua6jGary2ptR4vHWt6cWh6MXGLR41NFlOwtrZtDtEjLpSWgOLUphTN4tEQjqoaruU72JObg==

flow-parser@^0.220.0:
version "0.220.1"
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.220.1.tgz#8302ef224e2efb549cccb69fcfb8fb8fb2346668"
integrity sha512-RoM3ARqVYvxnwtkM36RjQFzo5Z9p22jUqtuMrN8gzA/8fU6iMLFE3cXkdSFPyfHRXLU8ILH8TCtSFADk1ACPCg==

flow-remove-types@^2.220.1:
version "2.220.1"
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.220.1.tgz#c5c44bc40976bbfdd48ca694ec30105b0c0e0e22"
integrity sha512-XtJKOdJY1Im35z4YwKzDCbAkt62Blu+EMneigTW0BmIZ+CdDAKvkyrAOl+3Cbnw2leyuyOFnq+h2Z/7dv2nL4Q==
dependencies:
flow-parser "^0.220.0"
flow-bin@^0.221.0:
version "0.221.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.221.0.tgz#ebf2cef7301ce330dee53a4e8c3e817a9daf5dc0"
integrity sha512-ozjD7cMb7tY6NuRqf6THALc4CDmiuodePYYVj1CS4vkepU9C3qx7/Q6jlieE7SBUN4CkWzlbt4LSMsWFu5a1eQ==

flow-remove-types@^2.221.0:
version "2.221.0"
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.221.0.tgz#98da76051cadcb641afc9bf16a1fa8eabf16d591"
integrity sha512-mQ/rmIy9jEYZtbXMn+avJCHUyINy3wAX50CEYlkJ2kwlkJi9EjmyzgkyHkA+1fraxnbh70J2GV/mXyk3PhbFew==
dependencies:
hermes-parser "0.17.1"
pirates "^3.0.2"
vlq "^0.2.1"

Expand Down