Upgrade flow in fbsource (#58655)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/58655

X-link: https://github.com/react/metro/pull/1964

Changelog: [Internal]

Reviewed By: gkz

Differential Revision: D121416054

fbshipit-source-id: 451ecdfea111919e24bdbd274d00622bb66b50bc
This commit is contained in:
Sam Zhou
2026-09-23 11:57:54 -07:00
committed by meta-codesync[bot]
parent b935e74ad5
commit 18f5ddb6bb
6 changed files with 144 additions and 140 deletions
+7 -5
View File
@@ -78,12 +78,14 @@ export class URLSearchParams {
this._searchParams.set(name, [value]);
}
keys(): Iterator<string> {
keys(): IteratorObject<string> {
return this._searchParams.keys();
}
values(): Iterator<string> {
function* generateValues(params: Map<string, string[]>): Iterator<string> {
values(): IteratorObject<string> {
function* generateValues(
params: Map<string, string[]>,
): IteratorObject<string> {
for (const valueArray of params.values()) {
for (const value of valueArray) {
yield value;
@@ -96,7 +98,7 @@ export class URLSearchParams {
entries(): Iterator<[string, string]> {
function* generateEntries(
params: Map<string, string[]>,
): Iterator<[string, string]> {
): IteratorObject<[string, string]> {
for (const [key, values] of params) {
for (const value of values) {
yield [key, value];
@@ -124,7 +126,7 @@ export class URLSearchParams {
}
// $FlowFixMe[unsupported-syntax]
[Symbol.iterator](): Iterator<[string, string]> {
[Symbol.iterator](): IteratorObject<[string, string]> {
const entries: [string, string][] = [];
for (const [key, values] of this._searchParams) {
@@ -21,9 +21,9 @@ declare export class URLSearchParams {
has(name: string): boolean;
set(name: string, value: string): void;
sort(): void;
@@iterator(): Iterator<[string, string]>;
@@iterator(): IteratorObject<[string, string]>;
toString(): string;
keys(): Iterator<string>;
values(): Iterator<string>;
entries(): Iterator<[string, string]>;
keys(): IteratorObject<string>;
values(): IteratorObject<string>;
entries(): IteratorObject<[string, string]>;
}
+123 -123
View File
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<739253e7b90afea5959c264e1ac3d91a>>
* @generated SignedSource<<2e80ab7a8c4c5de55dc0f7cd7a7be0ed>>
*
* This file was generated by scripts/js-api/build-types/index.js.
*/
@@ -3244,7 +3244,7 @@ declare type Node = symbol & {
declare class NodeList_default<T> implements Iterable<T>, ArrayLike_2<T> {
[index: number]: T
readonly length: number
entries(): Iterator<[number, T]>
entries(): IteratorObject<[number, T]>
forEach<ThisType>(
callbackFn: (
value: T,
@@ -3254,9 +3254,9 @@ declare class NodeList_default<T> implements Iterable<T>, ArrayLike_2<T> {
thisArg?: ThisType,
): void
item(index: number): null | T
keys(): Iterator<number>
values(): Iterator<T>
[Symbol.iterator](): Iterator<T>
keys(): IteratorObject<number>
values(): IteratorObject<T>
[Symbol.iterator](): IteratorObject<T>
}
declare type NonAnimatedNodeObject<TStyleProp> =
TStyleProp extends AnimatedNode_default ? never : TStyleProp
@@ -5753,25 +5753,25 @@ declare type WrapperComponentProvider = (
appKey?: string,
) => React.ComponentType<any>
export {
AccessibilityActionEvent, // a0d4daa0
AccessibilityActionEvent, // ca0e86fd
AccessibilityActionInfo, // db47a917
AccessibilityInfo, // 23a3aa9b
AccessibilityInfo, // d92c5eae
AccessibilityProps, // b703f8d9
AccessibilityRole, // f2f2e066
AccessibilityState, // b0c2b3f7
AccessibilityValue, // cf8bcb74
ActionSheetIOS, // b558559e
ActionSheetIOSOptions, // 1756eb5a
ActivityIndicator, // 7bb76795
ActivityIndicatorInstance, // a82dd4e7
ActivityIndicatorProps, // e3c81e37
ActivityIndicator, // b277b353
ActivityIndicatorInstance, // 1b5e0dd5
ActivityIndicatorProps, // 96fccd3d
Alert, // a398a509
AlertButton, // bf1a3b60
AlertButtonStyle, // ec9fb242
AlertOptions, // 8a116d2a
AlertType, // 5ab91217
AndroidKeyboardEvent, // e03becc8
Animated, // c2791b45
Animated, // 181759d3
AppConfig, // 35c0ca70
AppRegistry, // 8ea6b37b
AppState, // 12012be5
@@ -5783,13 +5783,13 @@ export {
AutoCapitalize, // c0e857a0
BackHandler, // f139fc69
BackPressEventName, // 4620fb76
BlurEvent, // 4ba4f941
BlurEvent, // d5e68e96
BoxShadowValue, // b679703f
Button, // 40df8d12
ButtonInstance, // 76310bdd
ButtonProps, // 21c5780c
Button, // c7c9c20d
ButtonInstance, // 1ac1695e
ButtonProps, // 0fd1315d
Clipboard, // 41addb89
CodegenTypes, // ab4986cc
CodegenTypes, // 9067fd06
ColorSchemeName, // 6615edd6
ColorValue, // 98989a8f
ComponentProvider, // bf78f91b
@@ -5805,10 +5805,10 @@ export {
DimensionsPayload, // 653bc26c
DisplayMetrics, // 1dc35cef
DisplayMetricsAndroid, // 872e62eb
DrawerLayoutAndroid, // 10f3ab23
DrawerLayoutAndroid, // 2f354039
DrawerLayoutAndroidInstance, // aa243cbf
DrawerLayoutAndroidProps, // 8144971b
DrawerSlideEvent, // c4ab8fba
DrawerLayoutAndroidProps, // bfafa682
DrawerSlideEvent, // 38213685
DropShadowValue, // e9df2606
DynamicColorIOS, // d96c228c
DynamicColorIOSTuple, // 023ce58e
@@ -5823,31 +5823,31 @@ export {
EventSubscription, // b8d084aa
ExtendedExceptionData, // 5a6ccf5a
FilterFunction, // bf24c0e3
FlatList, // ce8451f1
FlatListInstance, // 9e0c1443
FlatListProps, // 19fa3c9e
FocusEvent, // 850f1517
FlatList, // 8bf12d5f
FlatListInstance, // 2c17602d
FlatListProps, // 18c0f269
FocusEvent, // f2e4363d
FontVariant, // 7c7558bb
GestureResponderEvent, // 14d3e77a
GestureResponderHandlers, // b540de80
HostComponent, // a611806a
HostInstance, // f78dcaf8
GestureResponderEvent, // 5cd2a663
GestureResponderHandlers, // c67c25e0
HostComponent, // 22c9ea3d
HostInstance, // 17bb0a55
I18nManager, // f9870e00
IEventEmitter, // fbef6131
IOSKeyboardEvent, // e67bfe3a
IgnorePattern, // ec6f6ece
Image, // 70beaf51
ImageBackground, // 125f114f
ImageBackgroundInstance, // b32a44b1
ImageBackgroundProps, // 58c484ed
ImageErrorEvent, // 978933f4
ImageInstance, // 9a100753
ImageLoadEvent, // 77f0b718
ImageProgressEventIOS, // 445331a4
ImageProps, // 0b057370
Image, // f9f3a813
ImageBackground, // e022e047
ImageBackgroundInstance, // 73a121ea
ImageBackgroundProps, // e4243adc
ImageErrorEvent, // b6227714
ImageInstance, // df709524
ImageLoadEvent, // 31709c38
ImageProgressEventIOS, // 9243d460
ImageProps, // 3b7b8f9f
ImagePropsAndroid, // ee00e1d5
ImagePropsBase, // 360c2972
ImagePropsIOS, // 9e19c85d
ImagePropsBase, // ad67039c
ImagePropsIOS, // 1998f91a
ImageRequireSource, // 681d683b
ImageResizeMode, // d51106e2
ImageResolvedAssetSource, // f3060931
@@ -5860,13 +5860,13 @@ export {
InputAccessoryViewProps, // 6c4ba417
InputModeOptions, // 4e8581b9
Insets, // e7fe432a
KeyDownEvent, // 5b147614
KeyDownEvent, // a12d46ea
KeyEvent, // 20fa4267
KeyUpEvent, // 57f832c5
KeyUpEvent, // 0b5d0144
Keyboard, // 49414c97
KeyboardAvoidingView, // 86ce3237
KeyboardAvoidingViewInstance, // 39e5e0cb
KeyboardAvoidingViewProps, // 5ea2df10
KeyboardAvoidingView, // b67ff677
KeyboardAvoidingViewInstance, // 55c2ec96
KeyboardAvoidingViewProps, // 5619c852
KeyboardEvent, // c3f895d4
KeyboardEventEasing, // af4091c8
KeyboardEventName, // 59299ad6
@@ -5879,7 +5879,7 @@ export {
LayoutAnimationProperty, // 52995f01
LayoutAnimationType, // 2da0a29b
LayoutAnimationTypes, // 081b3bde
LayoutChangeEvent, // 98960b70
LayoutChangeEvent, // 9e7d74fd
LayoutConformanceProps, // 055f03b8
LayoutRectangle, // 6601b294
Linking, // 9a6a174d
@@ -5891,33 +5891,33 @@ export {
MeasureInWindowOnSuccessCallback, // a285f598
MeasureLayoutOnSuccessCallback, // 3592502a
MeasureOnSuccessCallback, // 82824e59
Modal, // ddb43746
ModalBaseProps, // c294cc46
ModalInstance, // d466ce77
ModalProps, // a073d560
Modal, // 04a7e37e
ModalBaseProps, // 46299375
ModalInstance, // 0f04c1bf
ModalProps, // 2a8d1149
ModalPropsAndroid, // 515fb173
ModalPropsIOS, // 664ecb7e
ModeChangeEvent, // f64bf69d
MouseEvent, // d1f889fd
ModalPropsIOS, // a65a8f5c
ModeChangeEvent, // ccf30dc4
MouseEvent, // ac7f3af7
NativeAppEventEmitter, // 08d4c47d
NativeColorValue, // d2094c29
NativeComponentRegistry, // c8fc2fb5
NativeComponentRegistry, // 3f499295
NativeEventEmitter, // 27f97c1a
NativeEventSubscription, // de3942e7
NativeModules, // 4597cd36
NativeMouseEvent, // 16c856a5
NativePointerEvent, // 64ff2151
NativeMouseEvent, // 35158274
NativePointerEvent, // dd1165e1
NativeScrollEvent, // caad7f53
NativeSyntheticEvent, // 534aaa92
NativeSyntheticEvent, // e201ef20
NativeTouchEvent, // 59b676df
NativeUIEvent, // 44ac26ac
Networking, // 2baeacec
OpaqueColorValue, // 25f3fa5b
PackagerAsset, // d1c88cf4
PanResponder, // e4df325a
PanResponderCallbacks, // c3dafe87
PanResponder, // bd82bf2d
PanResponderCallbacks, // 8f0a8183
PanResponderGestureState, // 54baf558
PanResponderInstance, // 8ccc05bf
PanResponderInstance, // 7231229d
Permission, // 08f1c82f
PermissionStatus, // 4b7de97b
PermissionsAndroid, // 8a0bc8d8
@@ -5927,32 +5927,32 @@ export {
PlatformOSType, // 0a17561e
PlatformSelectSpec, // 09ed7758
PointValue, // 69db075f
PointerEvent, // ff599afe
PressabilityConfig, // fea539a5
PressabilityEventHandlers, // c222648b
Pressable, // 73cbe498
PointerEvent, // a506d9d7
PressabilityConfig, // 0fd655fe
PressabilityEventHandlers, // be359ba3
Pressable, // b3d7b392
PressableAndroidRippleConfig, // ee32eaca
PressableInstance, // eebfe911
PressableProps, // 573ac60a
PressableInstance, // ed26f040
PressableProps, // 106095be
PressableStateCallbackType, // 5e0cfa78
ProcessedColorValue, // 33f74304
ProgressBarAndroid, // db8f6a6b
ProgressBarAndroidInstance, // ab545ef1
ProgressBarAndroidProps, // 6484d368
ProgressBarAndroid, // 1215fada
ProgressBarAndroidInstance, // f17242be
ProgressBarAndroidProps, // bd874609
PublicRootInstance, // 8040afd7
PublicTextInstance, // 16c26204
PublicTextInstance, // f9adf69a
PushNotificationEventName, // 84e7e150
PushNotificationIOS, // b4d1fe78
PushNotificationPermissions, // c2e7ae4f
Rationale, // 5df1b1c1
ReactNativeVersion, // abd76827
RefreshControl, // 1fc5c032
RefreshControlInstance, // 7cef228c
RefreshControlProps, // c03c6dd3
RefreshControl, // 8eede12e
RefreshControlInstance, // 8ed314f0
RefreshControlProps, // 52ce277e
RefreshControlPropsAndroid, // 8ac931ca
RefreshControlPropsIOS, // 72a36381
Registry, // 6c39216d
ResponderSyntheticEvent, // ebfa7f48
ResponderSyntheticEvent, // f5da3211
ReturnKeyTypeOptions, // afd47ba3
Role, // af7b889d
RootTag, // 3cd10504
@@ -5960,24 +5960,24 @@ export {
RootViewStyleProvider, // a29fccf7
Runnable, // 594dd93a
Runnables, // 4367c557
SafeAreaView, // 2a5620cd
SafeAreaViewInstance, // 21dba39c
SafeAreaView, // f9d41d3c
SafeAreaViewInstance, // 2b5d4391
ScaledSize, // 07e417c7
ScrollEvent, // d7abdd0a
ScrollResponderType, // 4fb54e25
ScrollEvent, // 956fdb27
ScrollResponderType, // 4fd56fba
ScrollToLocationParamsType, // d7ecdad1
ScrollView, // ab126b6d
ScrollViewImperativeMethods, // 308dd401
ScrollViewInstance, // b86e49e8
ScrollViewProps, // c0c366f5
ScrollView, // 51147fd2
ScrollViewImperativeMethods, // 05376b0c
ScrollViewInstance, // aa968f57
ScrollViewProps, // 5617710e
ScrollViewPropsAndroid, // 02f3df2e
ScrollViewPropsIOS, // 807cb4f6
ScrollViewPropsIOS, // c378379b
ScrollViewScrollToOptions, // 3313411e
SectionBase, // 9f13db00
SectionList, // 7598284f
SectionList, // d0494ce2
SectionListData, // 1a4de01a
SectionListInstance, // 6fd92b7f
SectionListProps, // c467eaa7
SectionListInstance, // ee88eca2
SectionListProps, // 8c9eaa98
SectionListRenderItem, // 715b2086
SectionListRenderItemInfo, // 4a48a922
Separators, // 6a45f7e3
@@ -5996,55 +5996,55 @@ export {
StyleProp, // fa0e9b4a
StyleSheet, // 5fbab16f
SubmitBehavior, // c4ddf490
Switch, // cf0d6ce5
SwitchChangeEvent, // 899635b1
SwitchInstance, // 3c50eec5
SwitchProps, // 9efb522c
Switch, // 50489cd1
SwitchChangeEvent, // 3b472666
SwitchInstance, // 73dce99f
SwitchProps, // a6f8389f
Systrace, // 626d178c
TVViewPropsIOS, // 330ce7b5
TargetedEvent, // 16e98910
TaskProvider, // 266dedf2
Text, // 3ccd8020
Text, // d023b11d
TextContentType, // 239b3ecc
TextInput, // 89af456b
TextInput, // 0aec86ba
TextInputAndroidProps, // 9ebbc103
TextInputBlurEvent, // b77af40e
TextInputChangeEvent, // f55eef98
TextInputContentSizeChangeEvent, // a27cd32a
TextInputEndEditingEvent, // e690b56b
TextInputFocusEvent, // 19851a88
TextInputBlurEvent, // b4c7a58c
TextInputChangeEvent, // 92363e10
TextInputContentSizeChangeEvent, // 1fe0e260
TextInputEndEditingEvent, // 7aa9093a
TextInputFocusEvent, // ef604040
TextInputIOSProps, // fb3c9327
TextInputInstance, // 5a0c0e0d
TextInputKeyPressEvent, // 546c5d07
TextInputProps, // a93c2e69
TextInputSelectionChangeEvent, // e58f2abc
TextInputSubmitEditingEvent, // 6bcb2aa5
TextInstance, // 05463a96
TextLayoutEvent, // 3f54186f
TextProps, // 2e3336ca
TextInputInstance, // 53fe7b73
TextInputKeyPressEvent, // cbbc322a
TextInputProps, // 88ef6be8
TextInputSelectionChangeEvent, // 4a8f10c2
TextInputSubmitEditingEvent, // e811fdbd
TextInstance, // 7c7e2069
TextLayoutEvent, // 1a21e24a
TextProps, // c24f3189
TextStyle, // d7678842
ToastAndroid, // 88a8969a
TouchableHighlight, // edab1b07
TouchableHighlightInstance, // b510c0eb
TouchableHighlightProps, // 08cd59e1
TouchableNativeFeedback, // e2791ad5
TouchableNativeFeedbackInstance, // ce1ad7e9
TouchableNativeFeedbackProps, // ffc9c1d4
TouchableOpacity, // c62caed3
TouchableOpacityInstance, // b186055b
TouchableOpacityProps, // d3c970ad
TouchableWithoutFeedback, // da544b16
TouchableWithoutFeedbackProps, // a14626e7
TouchableHighlight, // 29899b1e
TouchableHighlightInstance, // 811af7ca
TouchableHighlightProps, // 676efc95
TouchableNativeFeedback, // 2b44a237
TouchableNativeFeedbackInstance, // ef9df700
TouchableNativeFeedbackProps, // f203c5e2
TouchableOpacity, // f7e6d799
TouchableOpacityInstance, // 0cd8a347
TouchableOpacityProps, // 4d4f3eba
TouchableWithoutFeedback, // d8af50d6
TouchableWithoutFeedbackProps, // da2851a4
TransformsStyle, // 65e70f18
TurboModule, // dfe29706
TurboModuleRegistry, // 4ace6db2
UIManager, // 6a18fc05
UTFSequence, // ad625158
Vibration, // 31e4bbf8
View, // 14779d0c
ViewInstance, // ffde5573
ViewProps, // 46cb2061
ViewPropsAndroid, // 55e81851
View, // c1c2f3b1
ViewInstance, // 0283d2fc
ViewProps, // f7fa56c4
ViewPropsAndroid, // 46410bb6
ViewPropsIOS, // 58ee19bf
ViewStyle, // e75eec1e
ViewabilityConfig, // eb3f7ed8
@@ -6052,21 +6052,21 @@ export {
VirtualViewMode, // 6be59722
VirtualizedList, // 68c7345e
VirtualizedListInstance, // 423ee7c0
VirtualizedListProps, // 92e5c586
VirtualizedListProps, // b1c5167b
VirtualizedSectionList, // 9fd9cd61
VirtualizedSectionListInstance, // 12b706d5
VirtualizedSectionListProps, // f7e337d7
VirtualizedSectionListProps, // cc206896
WrapperComponentProvider, // 9b4247f6
codegenNativeCommands, // 322f3f4e
codegenNativeComponent, // 520daa94
codegenNativeComponent, // e8334853
findNodeHandle, // 93f80214
processColor, // 6e877698
registerCallableModule, // 839c8cfe
requireNativeComponent, // aa36a6dd
requireNativeComponent, // da1880ff
useAnimatedColor, // 1faf88ce
useAnimatedValue, // dc9d6f5c
useAnimatedValueXY, // dc9057ea
useColorScheme, // d585efdb
usePressability, // 782138ed
usePressability, // af291ad3
useWindowDimensions, // bb4b683f
}
@@ -18,14 +18,14 @@ declare export default class NodeList<T> implements Iterable<T>, ArrayLike<T> {
readonly length: number;
item(index: number): T | null;
// $FlowFixMe[incompatible-variance]
entries(): Iterator<[number, T]>;
entries(): IteratorObject<[number, T]>;
forEach<ThisType>(
callbackFn: (value: T, index: number, array: NodeList<T>) => unknown,
thisArg?: ThisType,
): void;
keys(): Iterator<number>;
values(): Iterator<T>;
@@iterator(): Iterator<T>;
keys(): IteratorObject<number>;
values(): IteratorObject<T>;
@@iterator(): IteratorObject<T>;
}
declare export function createNodeList<T>(
@@ -119,7 +119,7 @@ export class EventCounts {
return getCachedEventCounts().size;
}
entries(): Iterator<[string, number]> {
entries(): IteratorObject<[string, number]> {
return getCachedEventCounts().entries();
}
@@ -23,7 +23,9 @@ export interface ArrayLike<T> extends Iterable<T> {
readonly length: number;
}
export function* createValueIterator<T>(arrayLike: ArrayLike<T>): Iterator<T> {
export function* createValueIterator<T>(
arrayLike: ArrayLike<T>,
): IteratorObject<T> {
for (let i = 0; i < arrayLike.length; i++) {
yield arrayLike[i];
}
@@ -31,7 +33,7 @@ export function* createValueIterator<T>(arrayLike: ArrayLike<T>): Iterator<T> {
export function* createKeyIterator<T>(
arrayLike: ArrayLike<T>,
): Iterator<number> {
): IteratorObject<number> {
for (let i = 0; i < arrayLike.length; i++) {
yield i;
}
@@ -39,7 +41,7 @@ export function* createKeyIterator<T>(
export function* createEntriesIterator<T>(
arrayLike: ArrayLike<T>,
): Iterator<[number, T]> {
): IteratorObject<[number, T]> {
for (let i = 0; i < arrayLike.length; i++) {
yield [i, arrayLike[i]];
}