Skip to content

Commit e7358eb

Browse files
committed
Remove enableFlightReadableStream (facebook#31766)
Base: facebook#31765 Landed everywhere DiffTrain build for [1520802](facebook@1520802)
1 parent 455c5c3 commit e7358eb

25 files changed

+1886
-2148
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.1.0-native-fb-fb12845d-20241213
1+
19.1.0-native-fb-15208027-20241213

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<1d24c956383007ef2228a8063ebe8934>>
10+
* @generated SignedSource<<1b56f9b5a7232e45d2edb544e4a3f007>>
1111
*/
1212

1313
"use strict";
@@ -420,5 +420,5 @@ __DEV__ &&
420420
exports.useFormStatus = function () {
421421
return resolveDispatcher().useHostTransitionStatus();
422422
};
423-
exports.version = "19.1.0-native-fb-fb12845d-20241213";
423+
exports.version = "19.1.0-native-fb-15208027-20241213";
424424
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<2c9770f2de058ad6be1ceaede0107193>>
10+
* @generated SignedSource<<e5745ed2685e0a3d42d32ab25a6fe9a3>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-fb12845d-20241213";
206+
exports.version = "19.1.0-native-fb-15208027-20241213";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<2c9770f2de058ad6be1ceaede0107193>>
10+
* @generated SignedSource<<e5745ed2685e0a3d42d32ab25a6fe9a3>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-fb12845d-20241213";
206+
exports.version = "19.1.0-native-fb-15208027-20241213";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 330 additions & 382 deletions
Large diffs are not rendered by default.

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 88 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<0bb11a7986a8960e72017b34885fe6ae>>
10+
* @generated SignedSource<<fdcdea3344eac0384906d2150e8a0678>>
1111
*/
1212

1313
/*
@@ -352,13 +352,11 @@ function describeFiber(fiber) {
352352
return describeBuiltInComponentFrame("SuspenseList");
353353
case 0:
354354
case 15:
355-
return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber;
355+
return describeNativeComponentFrame(fiber.type, !1);
356356
case 11:
357-
return (
358-
(fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber
359-
);
357+
return describeNativeComponentFrame(fiber.type.render, !1);
360358
case 1:
361-
return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber;
359+
return describeNativeComponentFrame(fiber.type, !0);
362360
default:
363361
return "";
364362
}
@@ -2112,19 +2110,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
21122110
}
21132111
var isInputEventSupported = !1;
21142112
if (canUseDOM) {
2115-
var JSCompiler_inline_result$jscomp$295;
2113+
var JSCompiler_inline_result$jscomp$292;
21162114
if (canUseDOM) {
2117-
var isSupported$jscomp$inline_428 = "oninput" in document;
2118-
if (!isSupported$jscomp$inline_428) {
2119-
var element$jscomp$inline_429 = document.createElement("div");
2120-
element$jscomp$inline_429.setAttribute("oninput", "return;");
2121-
isSupported$jscomp$inline_428 =
2122-
"function" === typeof element$jscomp$inline_429.oninput;
2115+
var isSupported$jscomp$inline_419 = "oninput" in document;
2116+
if (!isSupported$jscomp$inline_419) {
2117+
var element$jscomp$inline_420 = document.createElement("div");
2118+
element$jscomp$inline_420.setAttribute("oninput", "return;");
2119+
isSupported$jscomp$inline_419 =
2120+
"function" === typeof element$jscomp$inline_420.oninput;
21232121
}
2124-
JSCompiler_inline_result$jscomp$295 = isSupported$jscomp$inline_428;
2125-
} else JSCompiler_inline_result$jscomp$295 = !1;
2122+
JSCompiler_inline_result$jscomp$292 = isSupported$jscomp$inline_419;
2123+
} else JSCompiler_inline_result$jscomp$292 = !1;
21262124
isInputEventSupported =
2127-
JSCompiler_inline_result$jscomp$295 &&
2125+
JSCompiler_inline_result$jscomp$292 &&
21282126
(!document.documentMode || 9 < document.documentMode);
21292127
}
21302128
function stopWatchingForValueChange() {
@@ -4294,16 +4292,16 @@ var ContextOnlyDispatcher = {
42944292
useDeferredValue: throwInvalidHookError,
42954293
useTransition: throwInvalidHookError,
42964294
useSyncExternalStore: throwInvalidHookError,
4297-
useId: throwInvalidHookError
4295+
useId: throwInvalidHookError,
4296+
useHostTransitionStatus: throwInvalidHookError,
4297+
useFormState: throwInvalidHookError,
4298+
useActionState: throwInvalidHookError,
4299+
useOptimistic: throwInvalidHookError
42984300
};
42994301
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
43004302
ContextOnlyDispatcher.useMemoCache = throwInvalidHookError;
43014303
enableUseResourceEffectHook &&
43024304
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
4303-
ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError;
4304-
ContextOnlyDispatcher.useFormState = throwInvalidHookError;
4305-
ContextOnlyDispatcher.useActionState = throwInvalidHookError;
4306-
ContextOnlyDispatcher.useOptimistic = throwInvalidHookError;
43074305
var HooksDispatcherOnMount = {
43084306
readContext: readContext,
43094307
use: use,
@@ -4464,6 +4462,29 @@ var HooksDispatcherOnMount = {
44644462
":");
44654463
return (hook.memoizedState = identifierPrefix);
44664464
},
4465+
useHostTransitionStatus: useHostTransitionStatus,
4466+
useFormState: mountActionState,
4467+
useActionState: mountActionState,
4468+
useOptimistic: function (passthrough) {
4469+
var hook = mountWorkInProgressHook();
4470+
hook.memoizedState = hook.baseState = passthrough;
4471+
var queue = {
4472+
pending: null,
4473+
lanes: 0,
4474+
dispatch: null,
4475+
lastRenderedReducer: null,
4476+
lastRenderedState: null
4477+
};
4478+
hook.queue = queue;
4479+
hook = dispatchOptimisticSetState.bind(
4480+
null,
4481+
currentlyRenderingFiber$1,
4482+
!0,
4483+
queue
4484+
);
4485+
queue.dispatch = hook;
4486+
return [passthrough, hook];
4487+
},
44674488
useCacheRefresh: function () {
44684489
return (mountWorkInProgressHook().memoizedState = refreshCache.bind(
44694490
null,
@@ -4474,29 +4495,6 @@ var HooksDispatcherOnMount = {
44744495
HooksDispatcherOnMount.useMemoCache = useMemoCache;
44754496
enableUseResourceEffectHook &&
44764497
(HooksDispatcherOnMount.useResourceEffect = mountResourceEffect);
4477-
HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus;
4478-
HooksDispatcherOnMount.useFormState = mountActionState;
4479-
HooksDispatcherOnMount.useActionState = mountActionState;
4480-
HooksDispatcherOnMount.useOptimistic = function (passthrough) {
4481-
var hook = mountWorkInProgressHook();
4482-
hook.memoizedState = hook.baseState = passthrough;
4483-
var queue = {
4484-
pending: null,
4485-
lanes: 0,
4486-
dispatch: null,
4487-
lastRenderedReducer: null,
4488-
lastRenderedState: null
4489-
};
4490-
hook.queue = queue;
4491-
hook = dispatchOptimisticSetState.bind(
4492-
null,
4493-
currentlyRenderingFiber$1,
4494-
!0,
4495-
queue
4496-
);
4497-
queue.dispatch = hook;
4498-
return [passthrough, hook];
4499-
};
45004498
var HooksDispatcherOnUpdate = {
45014499
readContext: readContext,
45024500
use: use,
@@ -4533,19 +4531,19 @@ var HooksDispatcherOnUpdate = {
45334531
];
45344532
},
45354533
useSyncExternalStore: updateSyncExternalStore,
4536-
useId: updateId
4534+
useId: updateId,
4535+
useHostTransitionStatus: useHostTransitionStatus,
4536+
useFormState: updateActionState,
4537+
useActionState: updateActionState,
4538+
useOptimistic: function (passthrough, reducer) {
4539+
var hook = updateWorkInProgressHook();
4540+
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
4541+
}
45374542
};
45384543
HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;
45394544
HooksDispatcherOnUpdate.useMemoCache = useMemoCache;
45404545
enableUseResourceEffectHook &&
45414546
(HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect);
4542-
HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus;
4543-
HooksDispatcherOnUpdate.useFormState = updateActionState;
4544-
HooksDispatcherOnUpdate.useActionState = updateActionState;
4545-
HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) {
4546-
var hook = updateWorkInProgressHook();
4547-
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
4548-
};
45494547
var HooksDispatcherOnRerender = {
45504548
readContext: readContext,
45514549
use: use,
@@ -4584,22 +4582,22 @@ var HooksDispatcherOnRerender = {
45844582
];
45854583
},
45864584
useSyncExternalStore: updateSyncExternalStore,
4587-
useId: updateId
4585+
useId: updateId,
4586+
useHostTransitionStatus: useHostTransitionStatus,
4587+
useFormState: rerenderActionState,
4588+
useActionState: rerenderActionState,
4589+
useOptimistic: function (passthrough, reducer) {
4590+
var hook = updateWorkInProgressHook();
4591+
if (null !== currentHook)
4592+
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
4593+
hook.baseState = passthrough;
4594+
return [passthrough, hook.queue.dispatch];
4595+
}
45884596
};
45894597
HooksDispatcherOnRerender.useCacheRefresh = updateRefresh;
45904598
HooksDispatcherOnRerender.useMemoCache = useMemoCache;
45914599
enableUseResourceEffectHook &&
45924600
(HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect);
4593-
HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus;
4594-
HooksDispatcherOnRerender.useFormState = rerenderActionState;
4595-
HooksDispatcherOnRerender.useActionState = rerenderActionState;
4596-
HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) {
4597-
var hook = updateWorkInProgressHook();
4598-
if (null !== currentHook)
4599-
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
4600-
hook.baseState = passthrough;
4601-
return [passthrough, hook.queue.dispatch];
4602-
};
46034601
var thenableState = null,
46044602
thenableIndexCounter = 0;
46054603
function unwrapThenable(thenable) {
@@ -12363,20 +12361,20 @@ function extractEvents$1(
1236312361
}
1236412362
}
1236512363
for (
12366-
var i$jscomp$inline_1488 = 0;
12367-
i$jscomp$inline_1488 < simpleEventPluginEvents.length;
12368-
i$jscomp$inline_1488++
12364+
var i$jscomp$inline_1479 = 0;
12365+
i$jscomp$inline_1479 < simpleEventPluginEvents.length;
12366+
i$jscomp$inline_1479++
1236912367
) {
12370-
var eventName$jscomp$inline_1489 =
12371-
simpleEventPluginEvents[i$jscomp$inline_1488],
12372-
domEventName$jscomp$inline_1490 =
12373-
eventName$jscomp$inline_1489.toLowerCase(),
12374-
capitalizedEvent$jscomp$inline_1491 =
12375-
eventName$jscomp$inline_1489[0].toUpperCase() +
12376-
eventName$jscomp$inline_1489.slice(1);
12368+
var eventName$jscomp$inline_1480 =
12369+
simpleEventPluginEvents[i$jscomp$inline_1479],
12370+
domEventName$jscomp$inline_1481 =
12371+
eventName$jscomp$inline_1480.toLowerCase(),
12372+
capitalizedEvent$jscomp$inline_1482 =
12373+
eventName$jscomp$inline_1480[0].toUpperCase() +
12374+
eventName$jscomp$inline_1480.slice(1);
1237712375
registerSimpleEvent(
12378-
domEventName$jscomp$inline_1490,
12379-
"on" + capitalizedEvent$jscomp$inline_1491
12376+
domEventName$jscomp$inline_1481,
12377+
"on" + capitalizedEvent$jscomp$inline_1482
1238012378
);
1238112379
}
1238212380
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15869,16 +15867,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1586915867
0 === i && attemptExplicitHydrationTarget(target);
1587015868
}
1587115869
};
15872-
var isomorphicReactPackageVersion$jscomp$inline_1731 = React.version;
15870+
var isomorphicReactPackageVersion$jscomp$inline_1722 = React.version;
1587315871
if (
15874-
"19.1.0-native-fb-fb12845d-20241213" !==
15875-
isomorphicReactPackageVersion$jscomp$inline_1731
15872+
"19.1.0-native-fb-15208027-20241213" !==
15873+
isomorphicReactPackageVersion$jscomp$inline_1722
1587615874
)
1587715875
throw Error(
1587815876
formatProdErrorMessage(
1587915877
527,
15880-
isomorphicReactPackageVersion$jscomp$inline_1731,
15881-
"19.1.0-native-fb-fb12845d-20241213"
15878+
isomorphicReactPackageVersion$jscomp$inline_1722,
15879+
"19.1.0-native-fb-15208027-20241213"
1588215880
)
1588315881
);
1588415882
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15898,24 +15896,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1589815896
null === componentOrElement ? null : componentOrElement.stateNode;
1589915897
return componentOrElement;
1590015898
};
15901-
var internals$jscomp$inline_2186 = {
15899+
var internals$jscomp$inline_2177 = {
1590215900
bundleType: 0,
15903-
version: "19.1.0-native-fb-fb12845d-20241213",
15901+
version: "19.1.0-native-fb-15208027-20241213",
1590415902
rendererPackageName: "react-dom",
1590515903
currentDispatcherRef: ReactSharedInternals,
15906-
reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213"
15904+
reconcilerVersion: "19.1.0-native-fb-15208027-20241213"
1590715905
};
1590815906
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15909-
var hook$jscomp$inline_2187 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15907+
var hook$jscomp$inline_2178 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
1591015908
if (
15911-
!hook$jscomp$inline_2187.isDisabled &&
15912-
hook$jscomp$inline_2187.supportsFiber
15909+
!hook$jscomp$inline_2178.isDisabled &&
15910+
hook$jscomp$inline_2178.supportsFiber
1591315911
)
1591415912
try {
15915-
(rendererID = hook$jscomp$inline_2187.inject(
15916-
internals$jscomp$inline_2186
15913+
(rendererID = hook$jscomp$inline_2178.inject(
15914+
internals$jscomp$inline_2177
1591715915
)),
15918-
(injectedHook = hook$jscomp$inline_2187);
15916+
(injectedHook = hook$jscomp$inline_2178);
1591915917
} catch (err) {}
1592015918
}
1592115919
exports.createRoot = function (container, options) {
@@ -16009,4 +16007,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1600916007
listenToAllSupportedEvents(container);
1601016008
return new ReactDOMHydrationRoot(initialChildren);
1601116009
};
16012-
exports.version = "19.1.0-native-fb-fb12845d-20241213";
16010+
exports.version = "19.1.0-native-fb-15208027-20241213";

0 commit comments

Comments
 (0)