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

Update to Flow from 0.97 to 0.122 #25204

Merged
merged 4 commits into from
Sep 8, 2022
Merged

Update to Flow from 0.97 to 0.122 #25204

merged 4 commits into from
Sep 8, 2022

Conversation

kassens
Copy link
Member

@kassens kassens commented Sep 7, 2022

Lots of things have improved over the last years in Flow. This is an incremental update from 0.97 (April, 2019) to 0.122 (April, 2020).

This version offers some extra options and seemed like a decent incremental stop towards the recent version.

The largest impact seems to be that Flow is now aware of the symbol primitive type. Maybe there could be follow-ups to fix the FixMes.

@kassens kassens changed the title Update to flow from 0.97 to 0.122 Update to Flow from 0.97 to 0.122 Sep 7, 2022
@sizebot
Copy link

sizebot commented Sep 7, 2022

Comparing: 79e2671...27ad39f

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 134.97 kB 134.97 kB = 43.23 kB 43.23 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 141.69 kB 141.69 kB = 45.23 kB 45.23 kB
facebook-www/ReactDOM-prod.classic.js = 486.24 kB 486.24 kB = 86.55 kB 86.55 kB
facebook-www/ReactDOM-prod.modern.js = 471.52 kB 471.52 kB = 84.32 kB 84.32 kB
facebook-www/ReactDOMForked-prod.classic.js = 486.24 kB 486.24 kB = 86.55 kB 86.55 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-fetch/cjs/react-fetch.node.development.js +1.07% 5.04 kB 5.09 kB +2.39% 1.59 kB 1.63 kB
oss-stable-semver/react-fetch/cjs/react-fetch.node.development.js +1.07% 5.04 kB 5.09 kB +2.39% 1.59 kB 1.63 kB
oss-stable/react-fetch/cjs/react-fetch.node.development.js +1.07% 5.04 kB 5.09 kB +2.39% 1.59 kB 1.63 kB
facebook-www/ReactTestUtils-dev.modern.js +1.07% 49.53 kB 50.06 kB +0.54% 13.85 kB 13.93 kB
facebook-www/ReactTestUtils-dev.classic.js +1.07% 49.53 kB 50.06 kB +0.55% 13.85 kB 13.92 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.development.js +0.90% 55.07 kB 55.57 kB +0.58% 15.99 kB 16.08 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.development.js +0.90% 55.07 kB 55.57 kB +0.58% 15.99 kB 16.08 kB
oss-stable/react-dom/cjs/react-dom-test-utils.development.js +0.90% 55.07 kB 55.57 kB +0.58% 15.99 kB 16.08 kB
oss-experimental/react-dom/umd/react-dom-test-utils.development.js +0.89% 58.15 kB 58.67 kB +0.45% 16.25 kB 16.32 kB
oss-stable-semver/react-dom/umd/react-dom-test-utils.development.js +0.89% 58.15 kB 58.67 kB +0.45% 16.25 kB 16.32 kB
oss-stable/react-dom/umd/react-dom-test-utils.development.js +0.89% 58.15 kB 58.67 kB +0.45% 16.25 kB 16.32 kB
oss-stable-semver/react-server/cjs/react-server-flight.development.js +0.79% 45.19 kB 45.55 kB +0.76% 11.59 kB 11.68 kB
oss-stable/react-server/cjs/react-server-flight.development.js +0.79% 45.19 kB 45.55 kB +0.76% 11.59 kB 11.68 kB
oss-experimental/react-server/cjs/react-server-flight.development.js +0.73% 48.91 kB 49.27 kB +0.69% 12.54 kB 12.62 kB
oss-experimental/jest-react/cjs/jest-react.development.js +0.55% 10.56 kB 10.61 kB +0.46% 3.73 kB 3.75 kB
oss-stable-semver/jest-react/cjs/jest-react.development.js +0.55% 10.56 kB 10.61 kB +0.46% 3.73 kB 3.75 kB
oss-stable/jest-react/cjs/jest-react.development.js +0.55% 10.56 kB 10.61 kB +0.46% 3.73 kB 3.75 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js +0.51% 69.66 kB 70.01 kB +0.49% 18.09 kB 18.18 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js +0.51% 69.66 kB 70.01 kB +0.49% 18.09 kB 18.18 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js +0.50% 71.06 kB 71.42 kB +0.49% 18.19 kB 18.28 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js +0.50% 71.06 kB 71.42 kB +0.49% 18.19 kB 18.28 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js +0.50% 73.21 kB 73.57 kB +0.44% 18.32 kB 18.40 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js +0.50% 73.21 kB 73.57 kB +0.44% 18.32 kB 18.40 kB
oss-experimental/react-client/cjs/react-client-flight.development.js +0.50% 14.12 kB 14.19 kB +0.87% 4.14 kB 4.18 kB
oss-stable-semver/react-client/cjs/react-client-flight.development.js +0.50% 14.12 kB 14.19 kB +0.87% 4.14 kB 4.18 kB
oss-stable/react-client/cjs/react-client-flight.development.js +0.50% 14.12 kB 14.19 kB +0.87% 4.14 kB 4.18 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js +0.49% 73.43 kB 73.79 kB +0.44% 19.05 kB 19.13 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js +0.48% 74.83 kB 75.19 kB +0.43% 19.15 kB 19.23 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js +0.47% 77.17 kB 77.53 kB +0.43% 19.28 kB 19.36 kB
facebook-relay/flight/ReactFlightNativeRelayServer-dev.js +0.45% 44.32 kB 44.52 kB +0.52% 11.41 kB 11.47 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js +0.39% 18.18 kB 18.25 kB +0.68% 5.12 kB 5.15 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js +0.39% 18.18 kB 18.25 kB +0.68% 5.12 kB 5.15 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js +0.39% 18.18 kB 18.25 kB +0.68% 5.12 kB 5.15 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack.development.js +0.37% 19.49 kB 19.57 kB +0.63% 5.25 kB 5.28 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack.development.js +0.37% 19.49 kB 19.57 kB +0.63% 5.25 kB 5.28 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack.development.js +0.37% 19.49 kB 19.57 kB +0.63% 5.25 kB 5.28 kB
facebook-www/ReactFlightDOMRelayServer-dev.classic.js +0.32% 62.45 kB 62.65 kB +0.33% 16.17 kB 16.22 kB
facebook-www/ReactFlightDOMRelayServer-dev.modern.js +0.32% 62.50 kB 62.70 kB +0.33% 16.19 kB 16.24 kB
oss-experimental/react-debug-tools/cjs/react-debug-tools.development.js +0.22% 22.51 kB 22.56 kB +0.18% 5.98 kB 5.99 kB
oss-stable-semver/react-debug-tools/cjs/react-debug-tools.development.js +0.22% 22.51 kB 22.56 kB +0.18% 5.98 kB 5.99 kB
oss-stable/react-debug-tools/cjs/react-debug-tools.development.js +0.22% 22.51 kB 22.56 kB +0.18% 5.98 kB 5.99 kB

Generated by 🚫 dangerJS against 27ad39f

@kassens kassens merged commit a473d08 into facebook:main Sep 8, 2022
@kassens kassens deleted the flow-122 branch September 8, 2022 15:46
sammy-SC pushed a commit that referenced this pull request Sep 11, 2022
* flow 0.122
* update ReactModel type
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Sep 12, 2022
Summary:
This sync includes the following changes:
- **[c28f313e6](facebook/react@c28f313e6 )**: experimental_use(promise) for SSR ([#25214](facebook/react#25214)) //<Andrew Clark>//
- **[d6f9628a8](facebook/react@d6f9628a8 )**: Remove some RSC subset entry points that were removed in the main entry point ([#25209](facebook/react#25209)) //<Sebastian Markbåge>//
- **[a473d08fc](facebook/react@a473d08fc )**: Update to Flow from 0.97 to 0.122 ([#25204](facebook/react#25204)) //<Jan Kassens>//
- **[7028ce745](facebook/react@7028ce745 )**: experimental_use(promise) for Server Components ([#25207](facebook/react#25207)) //<Andrew Clark>//
- **[bfb65681e](facebook/react@bfb65681e )**: experimental_use(context)([#25202](facebook/react#25202)) //<mofeiZ>//
- **[f0efa1164](facebook/react@f0efa1164 )**: [flow] remove custom suppress comment config ([#25170](facebook/react#25170)) //<Jan Kassens>//
- **[2e7f422fe](facebook/react@2e7f422fe )**: Refactor: its type is Container ([#25153](facebook/react#25153)) //<bubucuo>//
- **[2c2d9a1df](facebook/react@2c2d9a1df )**: [eslint-plugin-react-hooks] only allow capitalized component names ([#25162](facebook/react#25162)) //<Jan Kassens>//
- **[36c908a6c](facebook/react@36c908a6c )**: Don't use the Flight terminology in public error messages ([#25166](facebook/react#25166)) //<Sebastian Markbåge>//
- **[8d1b057ec](facebook/react@8d1b057ec )**: [Flight] Minor error handling fixes ([#25151](facebook/react#25151)) //<Sebastian Markbåge>//
- **[9ff738f53](facebook/react@9ff738f53 )**: [devtools][easy] Fix flow type ([#25147](facebook/react#25147)) //<Tianyu Yao>//
- **[0de3ddf56](facebook/react@0de3ddf56 )**: Remove Symbol Polyfill (again) ([#25144](facebook/react#25144)) //<Ricky>//
- **[b36f72235](facebook/react@b36f72235 )**: Remove ReactFiberFlags MountLayoutDev and MountPassiveDev ([#25091](facebook/react#25091)) //<Samuel Susla>//
- **[b6978bc38](facebook/react@b6978bc38 )**: experimental_use(promise) ([#25084](facebook/react#25084)) //<Andrew Clark>//
- **[11ed7010c](facebook/react@11ed7010c )**: [Transition Tracing] onMarkerIncomplete - Tracing Marker/Suspense Boundary Deletions ([#24885](facebook/react#24885)) //<Luna Ruan>//
- **[b79894259](facebook/react@b79894259 )**: [Flight] Add support for Webpack Async Modules ([#25138](facebook/react#25138)) //<Sebastian Markbåge>//
- **[c8b778b7f](facebook/react@c8b778b7f )**: Fix typo: supportsMicrotask -> supportsMicrotasks ([#25142](facebook/react#25142)) //<kwzr>//
- **[d0f396651](facebook/react@d0f396651 )**: Allow functions to be used as module references ([#25137](facebook/react#25137)) //<Sebastian Markbåge>//
- **[38c5d8a03](facebook/react@38c5d8a03 )**: Test the node-register hooks in unit tests ([#25132](facebook/react#25132)) //<Sebastian Markbåge>//
- **[3f70e68ce](facebook/react@3f70e68ce )**: Return closestInstance in `getInspectorDataForViewAtPoint` ([#25118](facebook/react#25118)) //<Tianyu Yao>//
- **[3d443cad7](facebook/react@3d443cad7 )**: Update fixtures/flight to webpack 5 ([#25115](facebook/react#25115)) //<Tim Neutkens>//
- **[5d1ce6513](facebook/react@5d1ce6513 )**: Align StrictMode behaviour with production ([#25049](facebook/react#25049)) //<Samuel Susla>//
- **[9e67e7a31](facebook/react@9e67e7a31 )**: Scaffolding for useMemoCache hook ([#25123](facebook/react#25123)) //<Joseph Savona>//
- **[19e9a4c68](facebook/react@19e9a4c68 )**: Add missing createServerContext for experimental shared subset ([#25114](facebook/react#25114)) //<Jiachi Liu>//
- **[6ef466c68](facebook/react@6ef466c68 )**: make preamble and postamble types explicit and fix typo ([#25102](facebook/react#25102)) //<Josh Story>//
- **[796d31809](facebook/react@796d31809 )**: Implement basic stylesheet Resources for react-dom ([#25060](facebook/react#25060)) //<Josh Story>//
- **[32baab38f](facebook/react@32baab38f )**: [Transition Tracing] Add Tag Field to Marker Instance ([#25085](facebook/react#25085)) //<Luna Ruan>//
- **[8ef3a7c08](facebook/react@8ef3a7c08 )**: Resume immediately pinged fiber without unwinding ([#25074](facebook/react#25074)) //<Andrew Clark>//
- **[7bcc68772](facebook/react@7bcc68772 )**: Remove argument committedLanes from reappearLayoutEffects and recursivelyTraverseReappearLayoutEffects ([#25080](facebook/react#25080)) //<Samuel Susla>//
- **[ca990e9a7](facebook/react@ca990e9a7 )**: Add API to force Scheduler to yield for macrotask ([#25044](facebook/react#25044)) //<Andrew Clark>//
- **[b4204ede6](facebook/react@b4204ede6 )**: Clean up unused Deletion flag ([#24992](facebook/react#24992)) //<Andrew Clark>//
- **[e193be87e](facebook/react@e193be87e )**: [Transition Tracing] Add Offscreen Test ([#25035](facebook/react#25035)) //<Luna Ruan>//
- **[9fcaf88d5](facebook/react@9fcaf88d5 )**: Remove rootContainerInstance from unnecessary places ([#25024](facebook/react#25024)) //<Sebastian Markbåge>//
- **[80f3d8819](facebook/react@80f3d8819 )**: Mount/unmount passive effects when Offscreen visibility changes ([#24977](facebook/react#24977)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions 4ea064e...c28f313

Reviewed By: rickhanlonii

Differential Revision: D39384898

fbshipit-source-id: 20b080a53851d6dd9d522c8468dd02aab9ba76db
rickhanlonii pushed a commit that referenced this pull request Oct 5, 2022
* flow 0.122
* update ReactModel type
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
This sync includes the following changes:
- **[c28f313e6](facebook/react@c28f313e6 )**: experimental_use(promise) for SSR ([facebook#25214](facebook/react#25214)) //<Andrew Clark>//
- **[d6f9628a8](facebook/react@d6f9628a8 )**: Remove some RSC subset entry points that were removed in the main entry point ([facebook#25209](facebook/react#25209)) //<Sebastian Markbåge>//
- **[a473d08fc](facebook/react@a473d08fc )**: Update to Flow from 0.97 to 0.122 ([facebook#25204](facebook/react#25204)) //<Jan Kassens>//
- **[7028ce745](facebook/react@7028ce745 )**: experimental_use(promise) for Server Components ([facebook#25207](facebook/react#25207)) //<Andrew Clark>//
- **[bfb65681e](facebook/react@bfb65681e )**: experimental_use(context)([facebook#25202](facebook/react#25202)) //<mofeiZ>//
- **[f0efa1164](facebook/react@f0efa1164 )**: [flow] remove custom suppress comment config ([facebook#25170](facebook/react#25170)) //<Jan Kassens>//
- **[2e7f422fe](facebook/react@2e7f422fe )**: Refactor: its type is Container ([facebook#25153](facebook/react#25153)) //<bubucuo>//
- **[2c2d9a1df](facebook/react@2c2d9a1df )**: [eslint-plugin-react-hooks] only allow capitalized component names ([facebook#25162](facebook/react#25162)) //<Jan Kassens>//
- **[36c908a6c](facebook/react@36c908a6c )**: Don't use the Flight terminology in public error messages ([facebook#25166](facebook/react#25166)) //<Sebastian Markbåge>//
- **[8d1b057ec](facebook/react@8d1b057ec )**: [Flight] Minor error handling fixes ([facebook#25151](facebook/react#25151)) //<Sebastian Markbåge>//
- **[9ff738f53](facebook/react@9ff738f53 )**: [devtools][easy] Fix flow type ([facebook#25147](facebook/react#25147)) //<Tianyu Yao>//
- **[0de3ddf56](facebook/react@0de3ddf56 )**: Remove Symbol Polyfill (again) ([facebook#25144](facebook/react#25144)) //<Ricky>//
- **[b36f72235](facebook/react@b36f72235 )**: Remove ReactFiberFlags MountLayoutDev and MountPassiveDev ([facebook#25091](facebook/react#25091)) //<Samuel Susla>//
- **[b6978bc38](facebook/react@b6978bc38 )**: experimental_use(promise) ([facebook#25084](facebook/react#25084)) //<Andrew Clark>//
- **[11ed7010c](facebook/react@11ed7010c )**: [Transition Tracing] onMarkerIncomplete - Tracing Marker/Suspense Boundary Deletions ([facebook#24885](facebook/react#24885)) //<Luna Ruan>//
- **[b79894259](facebook/react@b79894259 )**: [Flight] Add support for Webpack Async Modules ([facebook#25138](facebook/react#25138)) //<Sebastian Markbåge>//
- **[c8b778b7f](facebook/react@c8b778b7f )**: Fix typo: supportsMicrotask -> supportsMicrotasks ([facebook#25142](facebook/react#25142)) //<kwzr>//
- **[d0f396651](facebook/react@d0f396651 )**: Allow functions to be used as module references ([facebook#25137](facebook/react#25137)) //<Sebastian Markbåge>//
- **[38c5d8a03](facebook/react@38c5d8a03 )**: Test the node-register hooks in unit tests ([facebook#25132](facebook/react#25132)) //<Sebastian Markbåge>//
- **[3f70e68ce](facebook/react@3f70e68ce )**: Return closestInstance in `getInspectorDataForViewAtPoint` ([facebook#25118](facebook/react#25118)) //<Tianyu Yao>//
- **[3d443cad7](facebook/react@3d443cad7 )**: Update fixtures/flight to webpack 5 ([facebook#25115](facebook/react#25115)) //<Tim Neutkens>//
- **[5d1ce6513](facebook/react@5d1ce6513 )**: Align StrictMode behaviour with production ([facebook#25049](facebook/react#25049)) //<Samuel Susla>//
- **[9e67e7a31](facebook/react@9e67e7a31 )**: Scaffolding for useMemoCache hook ([facebook#25123](facebook/react#25123)) //<Joseph Savona>//
- **[19e9a4c68](facebook/react@19e9a4c68 )**: Add missing createServerContext for experimental shared subset ([facebook#25114](facebook/react#25114)) //<Jiachi Liu>//
- **[6ef466c68](facebook/react@6ef466c68 )**: make preamble and postamble types explicit and fix typo ([facebook#25102](facebook/react#25102)) //<Josh Story>//
- **[796d31809](facebook/react@796d31809 )**: Implement basic stylesheet Resources for react-dom ([facebook#25060](facebook/react#25060)) //<Josh Story>//
- **[32baab38f](facebook/react@32baab38f )**: [Transition Tracing] Add Tag Field to Marker Instance ([facebook#25085](facebook/react#25085)) //<Luna Ruan>//
- **[8ef3a7c08](facebook/react@8ef3a7c08 )**: Resume immediately pinged fiber without unwinding ([facebook#25074](facebook/react#25074)) //<Andrew Clark>//
- **[7bcc68772](facebook/react@7bcc68772 )**: Remove argument committedLanes from reappearLayoutEffects and recursivelyTraverseReappearLayoutEffects ([facebook#25080](facebook/react#25080)) //<Samuel Susla>//
- **[ca990e9a7](facebook/react@ca990e9a7 )**: Add API to force Scheduler to yield for macrotask ([facebook#25044](facebook/react#25044)) //<Andrew Clark>//
- **[b4204ede6](facebook/react@b4204ede6 )**: Clean up unused Deletion flag ([facebook#24992](facebook/react#24992)) //<Andrew Clark>//
- **[e193be87e](facebook/react@e193be87e )**: [Transition Tracing] Add Offscreen Test ([facebook#25035](facebook/react#25035)) //<Luna Ruan>//
- **[9fcaf88d5](facebook/react@9fcaf88d5 )**: Remove rootContainerInstance from unnecessary places ([facebook#25024](facebook/react#25024)) //<Sebastian Markbåge>//
- **[80f3d8819](facebook/react@80f3d8819 )**: Mount/unmount passive effects when Offscreen visibility changes ([facebook#24977](facebook/react#24977)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions 4ea064e...c28f313

Reviewed By: rickhanlonii

Differential Revision: D39384898

fbshipit-source-id: 20b080a53851d6dd9d522c8468dd02aab9ba76db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants