Skip to content

Commit 6261224

Browse files
committed
Upgrade to Flow 0.196.3 (#25974)
After the previous changes these upgrade are easy. - removes config options that were removed - object index access now requires an indexer key in the type, this cause a handful of errors that were fixed - undefined keys error in all places, this needed a few extra suppressions for repeated undefined identifiers. Flow's [CHANGELOG.md](https://github.com/facebook/flow/blob/main/Changelog.md). DiffTrain build for [34464fb](34464fb) [View git log for this commit](https://github.com/facebook/react/commits/34464fb16c2aec8202dab868eb381da0e807d771)
1 parent 7fdc64c commit 6261224

28 files changed

+74
-74
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e2424f33b3ad727321fc12e75c5e94838e84c2b5
1+
34464fb16c2aec8202dab868eb381da0e807d771
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e2424f33b3ad727321fc12e75c5e94838e84c2b5
1+
34464fb16c2aec8202dab868eb381da0e807d771

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-classic-e2424f33b-20230109";
30+
var ReactVersion = "18.3.0-www-classic-34464fb16-20230109";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-modern-e2424f33b-20230109";
30+
var ReactVersion = "18.3.0-www-modern-34464fb16-20230109";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,4 +643,4 @@ exports.useSyncExternalStore = function(
643643
);
644644
};
645645
exports.useTransition = useTransition;
646-
exports.version = "18.3.0-www-classic-e2424f33b-20230109";
646+
exports.version = "18.3.0-www-classic-34464fb16-20230109";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,4 +635,4 @@ exports.useSyncExternalStore = function(
635635
);
636636
};
637637
exports.useTransition = useTransition;
638-
exports.version = "18.3.0-www-modern-e2424f33b-20230109";
638+
exports.version = "18.3.0-www-modern-34464fb16-20230109";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ exports.useSyncExternalStore = function(
654654
);
655655
};
656656
exports.useTransition = useTransition;
657-
exports.version = "18.3.0-www-classic-e2424f33b-20230109";
657+
exports.version = "18.3.0-www-classic-34464fb16-20230109";
658658

659659
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
660660
if (

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ exports.useSyncExternalStore = function(
646646
);
647647
};
648648
exports.useTransition = useTransition;
649-
exports.version = "18.3.0-www-modern-e2424f33b-20230109";
649+
exports.version = "18.3.0-www-modern-34464fb16-20230109";
650650

651651
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
652652
if (

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-classic-e2424f33b-20230109";
72+
var ReactVersion = "18.3.0-www-classic-34464fb16-20230109";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;
@@ -22942,17 +22942,17 @@ function isLegacyActEnvironment(fiber) {
2294222942
// act environment whenever `jest` is defined, but you can still turn off
2294322943
// spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
2294422944
// to false.
22945-
var isReactActEnvironmentGlobal = // $FlowFixMe Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
22946-
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
22945+
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
22946+
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
2294722947
? IS_REACT_ACT_ENVIRONMENT
2294822948
: undefined; // $FlowFixMe - Flow doesn't know about jest
2294922949
return warnsIfNotActing;
2295022950
}
2295122951
}
2295222952
function isConcurrentActEnvironment() {
2295322953
{
22954-
var isReactActEnvironmentGlobal =
22955-
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
22954+
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
22955+
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
2295622956
? IS_REACT_ACT_ENVIRONMENT
2295722957
: undefined;
2295822958

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-modern-e2424f33b-20230109";
72+
var ReactVersion = "18.3.0-www-modern-34464fb16-20230109";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;
@@ -22631,17 +22631,17 @@ function isLegacyActEnvironment(fiber) {
2263122631
// act environment whenever `jest` is defined, but you can still turn off
2263222632
// spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
2263322633
// to false.
22634-
var isReactActEnvironmentGlobal = // $FlowFixMe Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
22635-
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
22634+
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
22635+
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
2263622636
? IS_REACT_ACT_ENVIRONMENT
2263722637
: undefined; // $FlowFixMe - Flow doesn't know about jest
2263822638
return warnsIfNotActing;
2263922639
}
2264022640
}
2264122641
function isConcurrentActEnvironment() {
2264222642
{
22643-
var isReactActEnvironmentGlobal =
22644-
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
22643+
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
22644+
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
2264522645
? IS_REACT_ACT_ENVIRONMENT
2264622646
: undefined;
2264722647

0 commit comments

Comments
 (0)