From e21231305d3dcd53fad147dcc7bed6fd216faf69 Mon Sep 17 00:00:00 2001 From: kassens Date: Tue, 10 Jan 2023 15:40:37 +0000 Subject: [PATCH] Remove unused Flow suppressions (#25977) These suppressions are no longer required. Generated using: ```sh flow/tool update-suppressions . ``` followed by adding back 1 or 2 suppressions that were only triggered in some configurations. DiffTrain build for [c49131669ba23500b8b071a5ca6ef189a28aa83e](https://github.com/facebook/react/commit/c49131669ba23500b8b071a5ca6ef189a28aa83e) [View git log for this commit](https://github.com/facebook/react/commits/c49131669ba23500b8b071a5ca6ef189a28aa83e) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 6 ++---- compiled/facebook-www/React-dev.modern.js | 6 ++---- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 16 ++++++---------- compiled/facebook-www/ReactART-dev.modern.js | 14 +++++--------- .../facebook-www/ReactART-prod.classic.js | 4 ++-- compiled/facebook-www/ReactART-prod.modern.js | 4 ++-- compiled/facebook-www/ReactDOM-dev.classic.js | 19 +++++++------------ compiled/facebook-www/ReactDOM-dev.modern.js | 17 ++++++----------- .../facebook-www/ReactDOM-prod.classic.js | 6 +++--- compiled/facebook-www/ReactDOM-prod.modern.js | 6 +++--- .../ReactDOM-profiling.classic.js | 6 +++--- .../facebook-www/ReactDOM-profiling.modern.js | 6 +++--- .../ReactDOMServer-dev.classic.js | 8 +++----- .../facebook-www/ReactDOMServer-dev.modern.js | 6 ++---- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMServerStreaming-dev.modern.js | 4 +--- .../ReactDOMTesting-dev.classic.js | 19 +++++++------------ .../ReactDOMTesting-dev.modern.js | 17 ++++++----------- .../ReactDOMTesting-prod.classic.js | 6 +++--- .../ReactDOMTesting-prod.modern.js | 6 +++--- .../ReactFlightDOMRelayServer-dev.classic.js | 6 ++---- .../ReactFlightDOMRelayServer-dev.modern.js | 6 ++---- .../ReactTestRenderer-dev.classic.js | 16 ++++++---------- .../ReactTestRenderer-dev.modern.js | 16 ++++++---------- 31 files changed, 93 insertions(+), 143 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 6e40dabda1..414e7181c6 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -afe6521e134178920f0523ede4c715942d8f0564 +c49131669ba23500b8b071a5ca6ef189a28aa83e diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 6e40dabda1..414e7181c6 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -afe6521e134178920f0523ede4c715942d8f0564 +c49131669ba23500b8b071a5ca6ef189a28aa83e diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 69b44d1d16..1d3d59794c 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-classic-c49131669-20230110"; // ATTENTION // When adding new symbols to this file, @@ -2179,9 +2179,7 @@ var ReactCurrentActQueue = { didUsePromise: false }; -var ReactDebugCurrentFrame = - // $FlowFixMe[incompatible-exact] - {}; +var ReactDebugCurrentFrame = {}; var currentExtraStackFrame = null; function setExtraStackFrame(stack) { { diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 017e7a4775..484e681c19 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-modern-c49131669-20230110"; // ATTENTION // When adding new symbols to this file, @@ -2179,9 +2179,7 @@ var ReactCurrentActQueue = { didUsePromise: false }; -var ReactDebugCurrentFrame = - // $FlowFixMe[incompatible-exact] - {}; +var ReactDebugCurrentFrame = {}; var currentExtraStackFrame = null; function setExtraStackFrame(stack) { { diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 741ac841b0..dff7e8ad11 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -643,4 +643,4 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-afe6521e1-20230109"; +exports.version = "18.3.0-www-classic-c49131669-20230110"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index f29ad5d7b1..d61e72df3a 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-afe6521e1-20230109"; +exports.version = "18.3.0-www-modern-c49131669-20230110"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index eb52031c23..3790f0670f 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -654,7 +654,7 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-afe6521e1-20230109"; +exports.version = "18.3.0-www-classic-c49131669-20230110"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index d626be94aa..5c3cab3646 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -646,7 +646,7 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-afe6521e1-20230109"; +exports.version = "18.3.0-www-modern-c49131669-20230110"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 44cd3b2dad..253ce1a06e 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-classic-c49131669-20230110"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -3352,7 +3352,7 @@ var warnedAboutMissingGetChildContext; { warnedAboutMissingGetChildContext = {}; -} // $FlowFixMe[incompatible-exact] +} var emptyContextObject = {}; @@ -13113,7 +13113,6 @@ function updateSimpleMemoComponent( try { outerMemoType = init(payload); } catch (x) { - // $FlowFixMe[incompatible-type] found when upgrading Flow outerMemoType = null; } // Inner propTypes will be validated in the function component path. @@ -20863,12 +20862,10 @@ function getRetryCache(finishedWork) { } case OffscreenComponent: { - var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow - - var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow + var instance = finishedWork.stateNode; + var _retryCache = instance._retryCache; if (_retryCache === null) { - // $FlowFixMe[incompatible-type] _retryCache = instance._retryCache = new PossiblyWeakSet(); } @@ -24305,7 +24302,7 @@ function handleThrow(root, thrownValue) { // This is a regular error. var isWakeable = thrownValue !== null && - typeof thrownValue === "object" && // $FlowFixMe[method-unbinding] + typeof thrownValue === "object" && typeof thrownValue.then === "function"; workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation. ? // This has slightly different behavior than suspending with `use`. @@ -25877,8 +25874,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { break; case OffscreenComponent: { - var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow - + var instance = boundaryFiber.stateNode; retryCache = instance._retryCache; break; } diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 10461cb402..5ea90653e3 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-modern-c49131669-20230110"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -12841,7 +12841,6 @@ function updateSimpleMemoComponent( try { outerMemoType = init(payload); } catch (x) { - // $FlowFixMe[incompatible-type] found when upgrading Flow outerMemoType = null; } // Inner propTypes will be validated in the function component path. @@ -20552,12 +20551,10 @@ function getRetryCache(finishedWork) { } case OffscreenComponent: { - var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow - - var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow + var instance = finishedWork.stateNode; + var _retryCache = instance._retryCache; if (_retryCache === null) { - // $FlowFixMe[incompatible-type] _retryCache = instance._retryCache = new PossiblyWeakSet(); } @@ -23994,7 +23991,7 @@ function handleThrow(root, thrownValue) { // This is a regular error. var isWakeable = thrownValue !== null && - typeof thrownValue === "object" && // $FlowFixMe[method-unbinding] + typeof thrownValue === "object" && typeof thrownValue.then === "function"; workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation. ? // This has slightly different behavior than suspending with `use`. @@ -25566,8 +25563,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { break; case OffscreenComponent: { - var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow - + var instance = boundaryFiber.stateNode; retryCache = instance._retryCache; break; } diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index d9581bc7f6..09e7574052 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -9804,7 +9804,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-classic-afe6521e1-20230109", + version: "18.3.0-www-classic-c49131669-20230110", rendererPackageName: "react-art" }; var internals$jscomp$inline_1318 = { @@ -9835,7 +9835,7 @@ var internals$jscomp$inline_1318 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-afe6521e1-20230109" + reconcilerVersion: "18.3.0-next-c49131669-20230110" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1319 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 8fe4a8c2c0..b63200ba90 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -9471,7 +9471,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-modern-afe6521e1-20230109", + version: "18.3.0-www-modern-c49131669-20230110", rendererPackageName: "react-art" }; var internals$jscomp$inline_1309 = { @@ -9502,7 +9502,7 @@ var internals$jscomp$inline_1309 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-afe6521e1-20230109" + reconcilerVersion: "18.3.0-next-c49131669-20230110" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1310 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index afe624c4ab..fc99d9507a 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -9793,8 +9793,7 @@ function getRootNode(container) { } function getCurrentResourceRoot() { - var currentContainer = getCurrentRootHostContainer(); // $FlowFixMe flow should know currentContainer is a Node and has getRootNode - + var currentContainer = getCurrentRootHostContainer(); return currentContainer ? getRootNode(currentContainer) : null; } // This resource type constraint can be loosened. It really is everything except PreloadResource // because that is the only one that does not have an optional instance type. Expand as needed. @@ -17221,7 +17220,7 @@ var warnedAboutMissingGetChildContext; { warnedAboutMissingGetChildContext = {}; -} // $FlowFixMe[incompatible-exact] +} var emptyContextObject = {}; @@ -27479,7 +27478,6 @@ function updateSimpleMemoComponent( try { outerMemoType = init(payload); } catch (x) { - // $FlowFixMe[incompatible-type] found when upgrading Flow outerMemoType = null; } // Inner propTypes will be validated in the function component path. @@ -35679,12 +35677,10 @@ function getRetryCache(finishedWork) { } case OffscreenComponent: { - var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow - - var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow + var instance = finishedWork.stateNode; + var _retryCache = instance._retryCache; if (_retryCache === null) { - // $FlowFixMe[incompatible-type] _retryCache = instance._retryCache = new PossiblyWeakSet(); } @@ -39332,7 +39328,7 @@ function handleThrow(root, thrownValue) { // This is a regular error. var isWakeable = thrownValue !== null && - typeof thrownValue === "object" && // $FlowFixMe[method-unbinding] + typeof thrownValue === "object" && typeof thrownValue.then === "function"; workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation. ? // This has slightly different behavior than suspending with `use`. @@ -40935,8 +40931,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { break; case OffscreenComponent: { - var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow - + var instance = boundaryFiber.stateNode; retryCache = instance._retryCache; break; } @@ -42707,7 +42702,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-classic-c49131669-20230110"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index c43729f8a1..6ee95f891a 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -14301,8 +14301,7 @@ function getRootNode(container) { } function getCurrentResourceRoot() { - var currentContainer = getCurrentRootHostContainer(); // $FlowFixMe flow should know currentContainer is a Node and has getRootNode - + var currentContainer = getCurrentRootHostContainer(); return currentContainer ? getRootNode(currentContainer) : null; } // This resource type constraint can be loosened. It really is everything except PreloadResource // because that is the only one that does not have an optional instance type. Expand as needed. @@ -27242,7 +27241,6 @@ function updateSimpleMemoComponent( try { outerMemoType = init(payload); } catch (x) { - // $FlowFixMe[incompatible-type] found when upgrading Flow outerMemoType = null; } // Inner propTypes will be validated in the function component path. @@ -35403,12 +35401,10 @@ function getRetryCache(finishedWork) { } case OffscreenComponent: { - var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow - - var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow + var instance = finishedWork.stateNode; + var _retryCache = instance._retryCache; if (_retryCache === null) { - // $FlowFixMe[incompatible-type] _retryCache = instance._retryCache = new PossiblyWeakSet(); } @@ -39056,7 +39052,7 @@ function handleThrow(root, thrownValue) { // This is a regular error. var isWakeable = thrownValue !== null && - typeof thrownValue === "object" && // $FlowFixMe[method-unbinding] + typeof thrownValue === "object" && typeof thrownValue.then === "function"; workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation. ? // This has slightly different behavior than suspending with `use`. @@ -40659,8 +40655,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { break; case OffscreenComponent: { - var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow - + var instance = boundaryFiber.stateNode; retryCache = instance._retryCache; break; } @@ -42431,7 +42426,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-modern-c49131669-20230110"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 35cd4a3376..5e4ba03e8a 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -15554,7 +15554,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1750 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-afe6521e1-20230109", + version: "18.3.0-www-classic-c49131669-20230110", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2134 = { @@ -15584,7 +15584,7 @@ var internals$jscomp$inline_2134 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-afe6521e1-20230109" + reconcilerVersion: "18.3.0-next-c49131669-20230110" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2135 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15826,4 +15826,4 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-afe6521e1-20230109"; +exports.version = "18.3.0-next-c49131669-20230110"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index a48a64b818..474fd440ee 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -15115,7 +15115,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1718 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-afe6521e1-20230109", + version: "18.3.0-www-modern-c49131669-20230110", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2109 = { @@ -15146,7 +15146,7 @@ var internals$jscomp$inline_2109 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-afe6521e1-20230109" + reconcilerVersion: "18.3.0-next-c49131669-20230110" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2110 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15334,4 +15334,4 @@ exports.unstable_flushControlled = function(fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-afe6521e1-20230109"; +exports.version = "18.3.0-next-c49131669-20230110"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 6c75417d77..9abbb42493 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -16324,7 +16324,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1824 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-afe6521e1-20230109", + version: "18.3.0-www-classic-c49131669-20230110", rendererPackageName: "react-dom" }; (function(internals) { @@ -16368,7 +16368,7 @@ var devToolsConfig$jscomp$inline_1824 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-afe6521e1-20230109" + reconcilerVersion: "18.3.0-next-c49131669-20230110" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -16597,7 +16597,7 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-afe6521e1-20230109"; +exports.version = "18.3.0-next-c49131669-20230110"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 51fe1faf32..0cf3e0263d 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -15875,7 +15875,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1792 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-afe6521e1-20230109", + version: "18.3.0-www-modern-c49131669-20230110", rendererPackageName: "react-dom" }; (function(internals) { @@ -15920,7 +15920,7 @@ var devToolsConfig$jscomp$inline_1792 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-afe6521e1-20230109" + reconcilerVersion: "18.3.0-next-c49131669-20230110" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function(children, container) { @@ -16095,7 +16095,7 @@ exports.unstable_flushControlled = function(fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-afe6521e1-20230109"; +exports.version = "18.3.0-next-c49131669-20230110"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 9c33e7d042..ddd9eb8aab 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-classic-c49131669-20230110"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -3371,13 +3371,12 @@ function resourcesFromLink(props) { // client { validateLinkPropsForStyleResource(props); - } // $FlowFixMe[incompatible-use] found when upgrading Flow + } var preloadResource = resources.preloadsMap.get(href); if (!preloadResource) { preloadResource = createPreloadResource( - // $FlowFixMe[incompatible-call] found when upgrading Flow resources, href, "style", @@ -3549,7 +3548,6 @@ function resourcesFromScript(props) { if (!preloadResource) { preloadResource = createPreloadResource( - // $FlowFixMe[incompatible-call] found when upgrading Flow resources, src, "script", @@ -7483,7 +7481,7 @@ var warnedAboutMissingGetChildContext; { warnedAboutMissingGetChildContext = {}; -} // $FlowFixMe[incompatible-exact] +} var emptyContextObject = {}; diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index b4f86c9d55..f01de01bd0 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-modern-c49131669-20230110"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -3375,13 +3375,12 @@ function resourcesFromLink(props) { // client { validateLinkPropsForStyleResource(props); - } // $FlowFixMe[incompatible-use] found when upgrading Flow + } var preloadResource = resources.preloadsMap.get(href); if (!preloadResource) { preloadResource = createPreloadResource( - // $FlowFixMe[incompatible-call] found when upgrading Flow resources, href, "style", @@ -3553,7 +3552,6 @@ function resourcesFromScript(props) { if (!preloadResource) { preloadResource = createPreloadResource( - // $FlowFixMe[incompatible-call] found when upgrading Flow resources, src, "script", diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index a869fcd33a..6fa593b749 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -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-afe6521e1-20230109"; +exports.version = "18.3.0-www-classic-c49131669-20230110"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 215a7db7f5..162d2032ef 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -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-afe6521e1-20230109"; +exports.version = "18.3.0-www-modern-c49131669-20230110"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index 3f7ce27a2b..e10057d07a 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -3372,13 +3372,12 @@ function resourcesFromLink(props) { // client { validateLinkPropsForStyleResource(props); - } // $FlowFixMe[incompatible-use] found when upgrading Flow + } var preloadResource = resources.preloadsMap.get(href); if (!preloadResource) { preloadResource = createPreloadResource( - // $FlowFixMe[incompatible-call] found when upgrading Flow resources, href, "style", @@ -3550,7 +3549,6 @@ function resourcesFromScript(props) { if (!preloadResource) { preloadResource = createPreloadResource( - // $FlowFixMe[incompatible-call] found when upgrading Flow resources, src, "script", diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 35a1751454..ae5ad2411d 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -8620,7 +8620,7 @@ var warnedAboutMissingGetChildContext; { warnedAboutMissingGetChildContext = {}; -} // $FlowFixMe[incompatible-exact] +} var emptyContextObject = {}; @@ -17914,7 +17914,6 @@ function updateSimpleMemoComponent( try { outerMemoType = init(payload); } catch (x) { - // $FlowFixMe[incompatible-type] found when upgrading Flow outerMemoType = null; } // Inner propTypes will be validated in the function component path. @@ -24847,12 +24846,10 @@ function getRetryCache(finishedWork) { } case OffscreenComponent: { - var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow - - var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow + var instance = finishedWork.stateNode; + var _retryCache = instance._retryCache; if (_retryCache === null) { - // $FlowFixMe[incompatible-type] _retryCache = instance._retryCache = new PossiblyWeakSet(); } @@ -28429,7 +28426,7 @@ function handleThrow(root, thrownValue) { // This is a regular error. var isWakeable = thrownValue !== null && - typeof thrownValue === "object" && // $FlowFixMe[method-unbinding] + typeof thrownValue === "object" && typeof thrownValue.then === "function"; workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation. ? // This has slightly different behavior than suspending with `use`. @@ -29701,8 +29698,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { break; case OffscreenComponent: { - var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow - + var instance = boundaryFiber.stateNode; retryCache = instance._retryCache; break; } @@ -31205,7 +31201,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-classic-c49131669-20230110"; function createPortal( children, @@ -33666,8 +33662,7 @@ function getRootNode(container) { } function getCurrentResourceRoot() { - var currentContainer = getCurrentRootHostContainer(); // $FlowFixMe flow should know currentContainer is a Node and has getRootNode - + var currentContainer = getCurrentRootHostContainer(); return currentContainer ? getRootNode(currentContainer) : null; } // This resource type constraint can be loosened. It really is everything except PreloadResource // because that is the only one that does not have an optional instance type. Expand as needed. diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 42acf484da..f2c1fd1b06 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -13424,8 +13424,7 @@ function getRootNode(container) { } function getCurrentResourceRoot() { - var currentContainer = getCurrentRootHostContainer(); // $FlowFixMe flow should know currentContainer is a Node and has getRootNode - + var currentContainer = getCurrentRootHostContainer(); return currentContainer ? getRootNode(currentContainer) : null; } // This resource type constraint can be loosened. It really is everything except PreloadResource // because that is the only one that does not have an optional instance type. Expand as needed. @@ -25381,7 +25380,6 @@ function updateSimpleMemoComponent( try { outerMemoType = init(payload); } catch (x) { - // $FlowFixMe[incompatible-type] found when upgrading Flow outerMemoType = null; } // Inner propTypes will be validated in the function component path. @@ -32161,12 +32159,10 @@ function getRetryCache(finishedWork) { } case OffscreenComponent: { - var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow - - var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow + var instance = finishedWork.stateNode; + var _retryCache = instance._retryCache; if (_retryCache === null) { - // $FlowFixMe[incompatible-type] _retryCache = instance._retryCache = new PossiblyWeakSet(); } @@ -35743,7 +35739,7 @@ function handleThrow(root, thrownValue) { // This is a regular error. var isWakeable = thrownValue !== null && - typeof thrownValue === "object" && // $FlowFixMe[method-unbinding] + typeof thrownValue === "object" && typeof thrownValue.then === "function"; workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation. ? // This has slightly different behavior than suspending with `use`. @@ -37015,8 +37011,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { break; case OffscreenComponent: { - var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow - + var instance = boundaryFiber.stateNode; retryCache = instance._retryCache; break; } @@ -38519,7 +38514,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-modern-c49131669-20230110"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 338089fc2f..3e4c967589 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -11328,7 +11328,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1518 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-afe6521e1-20230109", + version: "18.3.0-www-classic-c49131669-20230110", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2047 = { @@ -11358,7 +11358,7 @@ var internals$jscomp$inline_2047 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-afe6521e1-20230109" + reconcilerVersion: "18.3.0-next-c49131669-20230110" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2048 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14847,4 +14847,4 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-afe6521e1-20230109"; +exports.version = "18.3.0-next-c49131669-20230110"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 0e89487c75..287dd5a83b 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -13967,7 +13967,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1673 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-afe6521e1-20230109", + version: "18.3.0-www-modern-c49131669-20230110", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2072 = { @@ -13998,7 +13998,7 @@ var internals$jscomp$inline_2072 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-afe6521e1-20230109" + reconcilerVersion: "18.3.0-next-c49131669-20230110" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2073 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14321,4 +14321,4 @@ exports.unstable_flushControlled = function(fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-afe6521e1-20230109"; +exports.version = "18.3.0-next-c49131669-20230110"; diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js index 58834286f7..cef30c9661 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js @@ -1194,8 +1194,7 @@ var DefaultCacheDispatcher = { var entry = cache.get(createSignal); if (entry === undefined) { - entry = createSignal(); // $FlowFixMe[incompatible-use] found when upgrading Flow - + entry = createSignal(); cache.set(createSignal, entry); } @@ -1207,7 +1206,6 @@ var DefaultCacheDispatcher = { if (entry === undefined) { entry = resourceType(); // TODO: Warn if undefined? - // $FlowFixMe[incompatible-use] found when upgrading Flow cache.set(resourceType, entry); } @@ -2167,7 +2165,7 @@ function resolveModelToJSON(request, parent, key, value) { emitSymbolChunk(request, symbolId, name); writtenSymbols.set(value, symbolId); return serializeByValueID(symbolId); - } // $FlowFixMe: bigint isn't added to Flow yet. + } if (typeof value === "bigint") { throw new Error( diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js index 383cd6ad95..9a4c68f3e8 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js @@ -1198,8 +1198,7 @@ var DefaultCacheDispatcher = { var entry = cache.get(createSignal); if (entry === undefined) { - entry = createSignal(); // $FlowFixMe[incompatible-use] found when upgrading Flow - + entry = createSignal(); cache.set(createSignal, entry); } @@ -1211,7 +1210,6 @@ var DefaultCacheDispatcher = { if (entry === undefined) { entry = resourceType(); // TODO: Warn if undefined? - // $FlowFixMe[incompatible-use] found when upgrading Flow cache.set(resourceType, entry); } @@ -2171,7 +2169,7 @@ function resolveModelToJSON(request, parent, key, value) { emitSymbolChunk(request, symbolId, name); writtenSymbols.set(value, symbolId); return serializeByValueID(symbolId); - } // $FlowFixMe: bigint isn't added to Flow yet. + } if (typeof value === "bigint") { throw new Error( diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 8bf683dc0a..35a88f3b62 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -2557,7 +2557,7 @@ var warnedAboutMissingGetChildContext; { warnedAboutMissingGetChildContext = {}; -} // $FlowFixMe[incompatible-exact] +} var emptyContextObject = {}; @@ -11368,7 +11368,6 @@ function updateSimpleMemoComponent( try { outerMemoType = init(payload); } catch (x) { - // $FlowFixMe[incompatible-type] found when upgrading Flow outerMemoType = null; } // Inner propTypes will be validated in the function component path. @@ -18027,12 +18026,10 @@ function getRetryCache(finishedWork) { } case OffscreenComponent: { - var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow - - var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow + var instance = finishedWork.stateNode; + var _retryCache = instance._retryCache; if (_retryCache === null) { - // $FlowFixMe[incompatible-type] _retryCache = instance._retryCache = new PossiblyWeakSet(); } @@ -21002,7 +20999,7 @@ function handleThrow(root, thrownValue) { // This is a regular error. var isWakeable = thrownValue !== null && - typeof thrownValue === "object" && // $FlowFixMe[method-unbinding] + typeof thrownValue === "object" && typeof thrownValue.then === "function"; workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation. ? // This has slightly different behavior than suspending with `use`. @@ -22347,8 +22344,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { break; case OffscreenComponent: { - var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow - + var instance = boundaryFiber.stateNode; retryCache = instance._retryCache; break; } @@ -23901,7 +23897,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-classic-c49131669-20230110"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 6a42b61a4d..84906ff417 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -2557,7 +2557,7 @@ var warnedAboutMissingGetChildContext; { warnedAboutMissingGetChildContext = {}; -} // $FlowFixMe[incompatible-exact] +} var emptyContextObject = {}; @@ -11368,7 +11368,6 @@ function updateSimpleMemoComponent( try { outerMemoType = init(payload); } catch (x) { - // $FlowFixMe[incompatible-type] found when upgrading Flow outerMemoType = null; } // Inner propTypes will be validated in the function component path. @@ -18027,12 +18026,10 @@ function getRetryCache(finishedWork) { } case OffscreenComponent: { - var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow - - var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow + var instance = finishedWork.stateNode; + var _retryCache = instance._retryCache; if (_retryCache === null) { - // $FlowFixMe[incompatible-type] _retryCache = instance._retryCache = new PossiblyWeakSet(); } @@ -21002,7 +20999,7 @@ function handleThrow(root, thrownValue) { // This is a regular error. var isWakeable = thrownValue !== null && - typeof thrownValue === "object" && // $FlowFixMe[method-unbinding] + typeof thrownValue === "object" && typeof thrownValue.then === "function"; workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation. ? // This has slightly different behavior than suspending with `use`. @@ -22347,8 +22344,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { break; case OffscreenComponent: { - var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow - + var instance = boundaryFiber.stateNode; retryCache = instance._retryCache; break; } @@ -23901,7 +23897,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109"; +var ReactVersion = "18.3.0-www-modern-c49131669-20230110"; // Might add PROFILE later.