Flow upgrade to 0.175
ghstack-source-id: 99008118ef
Pull Request resolved: https://github.com/facebook/react/pull/25417
This commit is contained in:
parent
1089faf0d8
commit
46d40f306a
|
@ -63,7 +63,7 @@
|
||||||
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
|
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
|
||||||
"fbjs-scripts": "1.2.0",
|
"fbjs-scripts": "1.2.0",
|
||||||
"filesize": "^6.0.1",
|
"filesize": "^6.0.1",
|
||||||
"flow-bin": "^0.155.0",
|
"flow-bin": "^0.175.0",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"glob-stream": "^6.1.0",
|
"glob-stream": "^6.1.0",
|
||||||
"google-closure-compiler": "^20200517.0.0",
|
"google-closure-compiler": "^20200517.0.0",
|
||||||
|
|
|
@ -92,6 +92,7 @@ module.exports = function register() {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// $FlowFixMe[prop-missing] found when upgrading Flow
|
||||||
Module._extensions['.client.js'] = function(module, path) {
|
Module._extensions['.client.js'] = function(module, path) {
|
||||||
const moduleId = url.pathToFileURL(path).href;
|
const moduleId = url.pathToFileURL(path).href;
|
||||||
const moduleReference: {[string]: any, ...} = {
|
const moduleReference: {[string]: any, ...} = {
|
||||||
|
@ -103,8 +104,10 @@ module.exports = function register() {
|
||||||
module.exports = new Proxy(moduleReference, proxyHandlers);
|
module.exports = new Proxy(moduleReference, proxyHandlers);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// $FlowFixMe[prop-missing] found when upgrading Flow
|
||||||
const originalResolveFilename = Module._resolveFilename;
|
const originalResolveFilename = Module._resolveFilename;
|
||||||
|
|
||||||
|
// $FlowFixMe[prop-missing] found when upgrading Flow
|
||||||
Module._resolveFilename = function(request, parent, isMain, options) {
|
Module._resolveFilename = function(request, parent, isMain, options) {
|
||||||
const resolved = originalResolveFilename.apply(this, arguments);
|
const resolved = originalResolveFilename.apply(this, arguments);
|
||||||
if (resolved.endsWith('.server.js')) {
|
if (resolved.endsWith('.server.js')) {
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
.*/node_modules/devtools-timeline-model/.*
|
.*/node_modules/devtools-timeline-model/.*
|
||||||
.*/node_modules/create-react-class/.*
|
.*/node_modules/create-react-class/.*
|
||||||
.*/node_modules/react-native-web/.*
|
.*/node_modules/react-native-web/.*
|
||||||
|
.*/node_modules/fbjs/lib/keyMirrorRecursive.js.flow
|
||||||
.*/__mocks__/.*
|
.*/__mocks__/.*
|
||||||
.*/__tests__/.*
|
.*/__tests__/.*
|
||||||
|
|
||||||
|
@ -47,4 +48,4 @@ munge_underscores=false
|
||||||
%REACT_RENDERER_FLOW_OPTIONS%
|
%REACT_RENDERER_FLOW_OPTIONS%
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.155.0
|
^0.175.0
|
||||||
|
|
|
@ -7912,10 +7912,10 @@ flatted@^2.0.0:
|
||||||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
|
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
|
||||||
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
|
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
|
||||||
|
|
||||||
flow-bin@^0.155.0:
|
flow-bin@^0.175.0:
|
||||||
version "0.155.1"
|
version "0.175.1"
|
||||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.155.1.tgz#1263ee3e0f42d11cb13ba56c3851a096213ce5f7"
|
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.175.1.tgz#72237070ba4f293f9e04113481e18929c1de50df"
|
||||||
integrity sha512-qy2eXkgngR6u+MYA1ydzPnclhos21BZlpkJ50Y9YOZ4eTMq6txswB3X+gUsg8XUyCteLoMeo7n30k7aY2no2Yw==
|
integrity sha512-zMCP0BPa9BrfBSR7QTcyT/XBwzUbyLdNG0eXvBuNxfHCbMRkUzSceRoOaEZIw+R+GH0UHjVfUvPJ30hXxz1Nfw==
|
||||||
|
|
||||||
fluent-syntax@0.13.0:
|
fluent-syntax@0.13.0:
|
||||||
version "0.13.0"
|
version "0.13.0"
|
||||||
|
|
Loading…
Reference in New Issue