mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Flow upgrade to 0.182
ghstack-source-id: b9bb8c1560
Pull Request resolved: https://github.com/facebook/react/pull/25419
This commit is contained in:
parent
72593f008e
commit
f02a5f5c79
|
|
@ -63,7 +63,7 @@
|
|||
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
|
||||
"fbjs-scripts": "1.2.0",
|
||||
"filesize": "^6.0.1",
|
||||
"flow-bin": "^0.176.0",
|
||||
"flow-bin": "^0.182.0",
|
||||
"glob": "^7.1.6",
|
||||
"glob-stream": "^6.1.0",
|
||||
"google-closure-compiler": "^20200517.0.0",
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ export function activate(
|
|||
bridge,
|
||||
}: {
|
||||
bridge?: BackendBridge,
|
||||
// $FlowFixMe[incompatible-exact]
|
||||
} = {},
|
||||
): void {
|
||||
if (bridge == null) {
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ export function initialize(
|
|||
}: {
|
||||
bridge?: FrontendBridge,
|
||||
store?: Store,
|
||||
// $FlowFixMe[incompatible-exact]
|
||||
} = {},
|
||||
): React.AbstractComponent<Props, mixed> {
|
||||
if (bridge == null) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,5 @@ export const enableProfilerComponentTree = true;
|
|||
import typeof * as FeatureFlagsType from './DevToolsFeatureFlags.default';
|
||||
import typeof * as ExportsType from './DevToolsFeatureFlags.core-fb';
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,5 @@ export const enableProfilerComponentTree = true;
|
|||
import typeof * as FeatureFlagsType from './DevToolsFeatureFlags.default';
|
||||
import typeof * as ExportsType from './DevToolsFeatureFlags.core-oss';
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,5 @@ export const enableProfilerComponentTree = true;
|
|||
import typeof * as FeatureFlagsType from './DevToolsFeatureFlags.default';
|
||||
import typeof * as ExportsType from './DevToolsFeatureFlags.extension-fb';
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,5 @@ export const enableProfilerComponentTree = true;
|
|||
import typeof * as FeatureFlagsType from './DevToolsFeatureFlags.default';
|
||||
import typeof * as ExportsType from './DevToolsFeatureFlags.extension-oss';
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ function SettingsModalImpl(_: {}) {
|
|||
case 'components':
|
||||
view = <ComponentsSettings />;
|
||||
break;
|
||||
// $FlowFixMe[incompatible-type] is this missing in TabID?
|
||||
case 'debugging':
|
||||
view = <DebuggingSettings />;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -657,6 +657,7 @@ function acquireStyleResource(resource: StyleResource): Instance {
|
|||
}
|
||||
}
|
||||
resource.count++;
|
||||
// $FlowFixMe[incompatible-return] found when upgrading Flow
|
||||
return resource.instance;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,4 @@ export function removeEventListener(
|
|||
}
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<EventListenerShimType, EventListenerType>);
|
||||
((((null: any): EventListenerType): EventListenerShimType): EventListenerType);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,9 @@ export function startTransition(
|
|||
|
||||
if (enableTransitionTracing) {
|
||||
if (options !== undefined && options.name !== undefined) {
|
||||
// $FlowFixMe[incompatible-use] found when upgrading Flow
|
||||
ReactCurrentBatchConfig.transition.name = options.name;
|
||||
// $FlowFixMe[incompatible-use] found when upgrading Flow
|
||||
ReactCurrentBatchConfig.transition.startTime = -1;
|
||||
}
|
||||
}
|
||||
|
|
@ -46,6 +48,7 @@ export function startTransition(
|
|||
'Otherwise concurrent mode guarantees are off the table.',
|
||||
);
|
||||
}
|
||||
// $FlowFixMe[incompatible-use] found when upgrading Flow
|
||||
currentTransition._updatedFibers.clear();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,4 @@
|
|||
// update the test configuration.
|
||||
|
||||
// // Flow magic to verify the exports of this file match the original version.
|
||||
// // eslint-disable-next-line no-unused-vars
|
||||
// type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// // eslint-disable-next-line no-unused-expressions
|
||||
// (null: Check<ExportsType, DynamicFlagsType>);
|
||||
// ((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -86,8 +86,6 @@ export const enableTransitionTracing = false;
|
|||
export const enableFloat = false;
|
||||
|
||||
export const useModernStrictMode = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -75,8 +75,6 @@ export const enableTransitionTracing = false;
|
|||
export const enableFloat = false;
|
||||
|
||||
export const useModernStrictMode = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -75,8 +75,6 @@ export const enableTransitionTracing = false;
|
|||
export const enableFloat = false;
|
||||
|
||||
export const useModernStrictMode = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -73,8 +73,6 @@ export const enableTransitionTracing = false;
|
|||
export const enableFloat = false;
|
||||
|
||||
export const useModernStrictMode = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -77,8 +77,6 @@ export const enableTransitionTracing = false;
|
|||
export const enableFloat = false;
|
||||
|
||||
export const useModernStrictMode = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -75,8 +75,6 @@ export const enableTransitionTracing = false;
|
|||
export const enableFloat = false;
|
||||
|
||||
export const useModernStrictMode = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -76,8 +76,6 @@ export const enableTransitionTracing = false;
|
|||
export const enableFloat = false;
|
||||
|
||||
export const useModernStrictMode = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -112,8 +112,6 @@ export const enableUseMutableSource = true;
|
|||
export const enableCustomElementPropertySupport = __EXPERIMENTAL__;
|
||||
|
||||
export const useModernStrictMode = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
(null: Check<ExportsType, FeatureFlagsType>);
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
|
|
|||
|
|
@ -48,4 +48,4 @@ munge_underscores=false
|
|||
%REACT_RENDERER_FLOW_OPTIONS%
|
||||
|
||||
[version]
|
||||
^0.176.0
|
||||
^0.182.0
|
||||
|
|
|
|||
|
|
@ -7912,10 +7912,10 @@ flatted@^2.0.0:
|
|||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
|
||||
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
|
||||
|
||||
flow-bin@^0.176.0:
|
||||
version "0.176.3"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.176.3.tgz#d32de04e044ab474afe543b9fd245608bb6a6ac8"
|
||||
integrity sha512-lbNqgjr2GlGLAEVp5+dhG4LdnFE7ekbvVNifAdlvTx58/nE8GrCOMiUwEQy4dLnfL2NIRMk2dbEVTrugeQJ3mA==
|
||||
flow-bin@^0.182.0:
|
||||
version "0.182.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.182.0.tgz#1dacbd72465743670412ada015d3182deda6f966"
|
||||
integrity sha512-Ux90c2sMfoV/VVjOEFT2OHFJFnyfoIbTK/5AKAMnU4Skfru1G+FyS5YLu3XxQl0R6mpA9+rrFlPfYZq/5B+J3w==
|
||||
|
||||
fluent-syntax@0.13.0:
|
||||
version "0.13.0"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user