Skip to content

Commit

Permalink
Upgrade to Flow 0.196.3 (#25974)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
kassens committed Jan 9, 2023
1 parent 7fdc64c commit 6261224
Show file tree
Hide file tree
Showing 28 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e2424f33b3ad727321fc12e75c5e94838e84c2b5
34464fb16c2aec8202dab868eb381da0e807d771
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e2424f33b3ad727321fc12e75c5e94838e84c2b5
34464fb16c2aec8202dab868eb381da0e807d771
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

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

// ATTENTION
// When adding new symbols to this file,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

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

// ATTENTION
// When adding new symbols to this file,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,4 +643,4 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-e2424f33b-20230109";
exports.version = "18.3.0-www-classic-34464fb16-20230109";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-e2424f33b-20230109";
exports.version = "18.3.0-www-modern-34464fb16-20230109";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-e2424f33b-20230109";
exports.version = "18.3.0-www-classic-34464fb16-20230109";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-e2424f33b-20230109";
exports.version = "18.3.0-www-modern-34464fb16-20230109";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}

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

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -22942,17 +22942,17 @@ function isLegacyActEnvironment(fiber) {
// act environment whenever `jest` is defined, but you can still turn off
// spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
// to false.
var isReactActEnvironmentGlobal = // $FlowFixMe Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined; // $FlowFixMe - Flow doesn't know about jest
return warnsIfNotActing;
}
}
function isConcurrentActEnvironment() {
{
var isReactActEnvironmentGlobal =
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined;

Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}

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

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -22631,17 +22631,17 @@ function isLegacyActEnvironment(fiber) {
// act environment whenever `jest` is defined, but you can still turn off
// spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
// to false.
var isReactActEnvironmentGlobal = // $FlowFixMe Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined; // $FlowFixMe - Flow doesn't know about jest
return warnsIfNotActing;
}
}
function isConcurrentActEnvironment() {
{
var isReactActEnvironmentGlobal =
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined;

Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactART-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9804,7 +9804,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-classic-e2424f33b-20230109",
version: "18.3.0-www-classic-34464fb16-20230109",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1319 = {
Expand Down Expand Up @@ -9835,7 +9835,7 @@ var internals$jscomp$inline_1319 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-e2424f33b-20230109"
reconcilerVersion: "18.3.0-next-34464fb16-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1320 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -9471,7 +9471,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-modern-e2424f33b-20230109",
version: "18.3.0-www-modern-34464fb16-20230109",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1310 = {
Expand Down Expand Up @@ -9502,7 +9502,7 @@ var internals$jscomp$inline_1310 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-e2424f33b-20230109"
reconcilerVersion: "18.3.0-next-34464fb16-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1311 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -37839,8 +37839,8 @@ function isLegacyActEnvironment(fiber) {
// act environment whenever `jest` is defined, but you can still turn off
// spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
// to false.
var isReactActEnvironmentGlobal = // $FlowFixMe Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined; // $FlowFixMe - Flow doesn't know about jest

Expand All @@ -37850,8 +37850,8 @@ function isLegacyActEnvironment(fiber) {
}
function isConcurrentActEnvironment() {
{
var isReactActEnvironmentGlobal =
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined;

Expand Down Expand Up @@ -42707,7 +42707,7 @@ function createFiberRoot(
return root;
}

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

function createPortal(
children,
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -37563,8 +37563,8 @@ function isLegacyActEnvironment(fiber) {
// act environment whenever `jest` is defined, but you can still turn off
// spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
// to false.
var isReactActEnvironmentGlobal = // $FlowFixMe Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined; // $FlowFixMe - Flow doesn't know about jest

Expand All @@ -37574,8 +37574,8 @@ function isLegacyActEnvironment(fiber) {
}
function isConcurrentActEnvironment() {
{
var isReactActEnvironmentGlobal =
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined;

Expand Down Expand Up @@ -42431,7 +42431,7 @@ function createFiberRoot(
return root;
}

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

function createPortal(
children,
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15554,7 +15554,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1751 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-e2424f33b-20230109",
version: "18.3.0-www-classic-34464fb16-20230109",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2135 = {
Expand Down Expand Up @@ -15584,7 +15584,7 @@ var internals$jscomp$inline_2135 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-e2424f33b-20230109"
reconcilerVersion: "18.3.0-next-34464fb16-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2136 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15826,4 +15826,4 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-e2424f33b-20230109";
exports.version = "18.3.0-next-34464fb16-20230109";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15115,7 +15115,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1719 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-e2424f33b-20230109",
version: "18.3.0-www-modern-34464fb16-20230109",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2110 = {
Expand Down Expand Up @@ -15146,7 +15146,7 @@ var internals$jscomp$inline_2110 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-e2424f33b-20230109"
reconcilerVersion: "18.3.0-next-34464fb16-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2111 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15334,4 +15334,4 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-e2424f33b-20230109";
exports.version = "18.3.0-next-34464fb16-20230109";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16324,7 +16324,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1825 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-e2424f33b-20230109",
version: "18.3.0-www-classic-34464fb16-20230109",
rendererPackageName: "react-dom"
};
(function(internals) {
Expand Down Expand Up @@ -16368,7 +16368,7 @@ var devToolsConfig$jscomp$inline_1825 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-e2424f33b-20230109"
reconcilerVersion: "18.3.0-next-34464fb16-20230109"
});
assign(Internals, {
ReactBrowserEventEmitter: {
Expand Down Expand Up @@ -16597,7 +16597,7 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-e2424f33b-20230109";
exports.version = "18.3.0-next-34464fb16-20230109";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15875,7 +15875,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1793 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-e2424f33b-20230109",
version: "18.3.0-www-modern-34464fb16-20230109",
rendererPackageName: "react-dom"
};
(function(internals) {
Expand Down Expand Up @@ -15920,7 +15920,7 @@ var devToolsConfig$jscomp$inline_1793 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-e2424f33b-20230109"
reconcilerVersion: "18.3.0-next-34464fb16-20230109"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = function(children, container) {
Expand Down Expand Up @@ -16095,7 +16095,7 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-e2424f33b-20230109";
exports.version = "18.3.0-next-34464fb16-20230109";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");

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

// This refers to a WWW module.
var warningWWW = require("warning");
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");

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

// This refers to a WWW module.
var warningWWW = require("warning");
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -3633,4 +3633,4 @@ exports.renderToString = function(children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "18.3.0-www-classic-e2424f33b-20230109";
exports.version = "18.3.0-www-classic-34464fb16-20230109";
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -3546,4 +3546,4 @@ exports.renderToString = function(children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "18.3.0-www-modern-e2424f33b-20230109";
exports.version = "18.3.0-www-modern-34464fb16-20230109";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOMTesting-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27172,8 +27172,8 @@ function isLegacyActEnvironment(fiber) {
// act environment whenever `jest` is defined, but you can still turn off
// spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
// to false.
var isReactActEnvironmentGlobal = // $FlowFixMe Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined; // $FlowFixMe - Flow doesn't know about jest

Expand All @@ -27183,8 +27183,8 @@ function isLegacyActEnvironment(fiber) {
}
function isConcurrentActEnvironment() {
{
var isReactActEnvironmentGlobal =
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined"
var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name]
? IS_REACT_ACT_ENVIRONMENT
: undefined;

Expand Down Expand Up @@ -31205,7 +31205,7 @@ function createFiberRoot(
return root;
}

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

function createPortal(
children,
Expand Down
Loading

0 comments on commit 6261224

Please sign in to comment.