Skip to content

Commit 46d40f3

Browse files
committed
Flow upgrade to 0.175
ghstack-source-id: 99008118ef76d850eb1c460e07b1db1392c55806 Pull Request resolved: #25417
1 parent 1089faf commit 46d40f3

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

package.json

+1-1
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.155.0",
66+
"flow-bin": "^0.175.0",
6767
"glob": "^7.1.6",
6868
"glob-stream": "^6.1.0",
6969
"google-closure-compiler": "^20200517.0.0",

packages/react-server-dom-webpack/src/ReactFlightWebpackNodeRegister.js

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ module.exports = function register() {
9292
},
9393
};
9494

95+
// $FlowFixMe[prop-missing] found when upgrading Flow
9596
Module._extensions['.client.js'] = function(module, path) {
9697
const moduleId = url.pathToFileURL(path).href;
9798
const moduleReference: {[string]: any, ...} = {
@@ -103,8 +104,10 @@ module.exports = function register() {
103104
module.exports = new Proxy(moduleReference, proxyHandlers);
104105
};
105106

107+
// $FlowFixMe[prop-missing] found when upgrading Flow
106108
const originalResolveFilename = Module._resolveFilename;
107109

110+
// $FlowFixMe[prop-missing] found when upgrading Flow
108111
Module._resolveFilename = function(request, parent, isMain, options) {
109112
const resolved = originalResolveFilename.apply(this, arguments);
110113
if (resolved.endsWith('.server.js')) {

scripts/flow/config/flowconfig

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
.*/node_modules/devtools-timeline-model/.*
1515
.*/node_modules/create-react-class/.*
1616
.*/node_modules/react-native-web/.*
17+
.*/node_modules/fbjs/lib/keyMirrorRecursive.js.flow
1718
.*/__mocks__/.*
1819
.*/__tests__/.*
1920

@@ -47,4 +48,4 @@ munge_underscores=false
4748
%REACT_RENDERER_FLOW_OPTIONS%
4849

4950
[version]
50-
^0.155.0
51+
^0.175.0

yarn.lock

+4-4
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.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==
79197919

79207920
79217921
version "0.13.0"

0 commit comments

Comments
 (0)