Flow upgrade to 0.175
ghstack-source-id: 99008118ef76d850eb1c460e07b1db1392c55806 Pull Request resolved: https://github.com/facebook/react/pull/25417
Jan Kassens committed
Oct 4, 2022 at 13:25 UTC
46d40f306ad5fb5c868d9022ce848f49fc5c1ac0
4 files changed
+10
-6
package.json
+1
-1
@@ -63,7 +63,7 @@
63
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
64
"fbjs-scripts": "1.2.0",
65
"filesize": "^6.0.1",
66
- "flow-bin": "^0.155.0",
66
+ "flow-bin": "^0.175.0",
67
"glob": "^7.1.6",
68
"glob-stream": "^6.1.0",
69
"google-closure-compiler": "^20200517.0.0",
packages/react-server-dom-webpack/src/ReactFlightWebpackNodeRegister.js
+3
@@ -92,6 +92,7 @@ module.exports = function register() {
92
},
93
};
94
95
+ // $FlowFixMe[prop-missing] found when upgrading Flow
96
Module._extensions['.client.js'] = function(module, path) {
97
const moduleId = url.pathToFileURL(path).href;
98
const moduleReference: {[string]: any, ...} = {
@@ -103,8 +104,10 @@ module.exports = function register() {
104
module.exports = new Proxy(moduleReference, proxyHandlers);
105
};
106
107
+ // $FlowFixMe[prop-missing] found when upgrading Flow
108
const originalResolveFilename = Module._resolveFilename;
109
110
+ // $FlowFixMe[prop-missing] found when upgrading Flow
111
Module._resolveFilename = function(request, parent, isMain, options) {
112
const resolved = originalResolveFilename.apply(this, arguments);
113
if (resolved.endsWith('.server.js')) {
scripts/flow/config/flowconfig
+2
-1
@@ -14,6 +14,7 @@
14
.*/node_modules/devtools-timeline-model/.*
15
.*/node_modules/create-react-class/.*
16
.*/node_modules/react-native-web/.*
17
+.*/node_modules/fbjs/lib/keyMirrorRecursive.js.flow
18
.*/__mocks__/.*
19
.*/__tests__/.*
20
@@ -47,4 +48,4 @@ munge_underscores=false
48
%REACT_RENDERER_FLOW_OPTIONS%
49
50
[version]
50
-^0.155.0
51
+^0.175.0
yarn.lock
+4
-4
@@ -7912,10 +7912,10 @@ flatted@^2.0.0:
7912
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
7913
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
7914
7915
-flow-bin@^0.155.0:
7916
- version "0.155.1"
7917
- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.155.1.tgz#1263ee3e0f42d11cb13ba56c3851a096213ce5f7"
7918
- integrity sha512-qy2eXkgngR6u+MYA1ydzPnclhos21BZlpkJ50Y9YOZ4eTMq6txswB3X+gUsg8XUyCteLoMeo7n30k7aY2no2Yw==
7915
+flow-bin@^0.175.0:
7916
+ version "0.175.1"
7917
+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.175.1.tgz#72237070ba4f293f9e04113481e18929c1de50df"
7918
+ integrity sha512-zMCP0BPa9BrfBSR7QTcyT/XBwzUbyLdNG0eXvBuNxfHCbMRkUzSceRoOaEZIw+R+GH0UHjVfUvPJ30hXxz1Nfw==
7919
7920
fluent-syntax@0.13.0:
7921
version "0.13.0"