Skip to content

Commit

Permalink
Remove enableFlightReadableStream (facebook#31766)
Browse files Browse the repository at this point in the history
Base: facebook#31765

Landed everywhere

DiffTrain build for [1520802](facebook@1520802)
  • Loading branch information
pull[bot] committed Dec 14, 2024
1 parent 455c5c3 commit e7358eb
Show file tree
Hide file tree
Showing 25 changed files with 1,886 additions and 2,148 deletions.
2 changes: 1 addition & 1 deletion compiled-rn/VERSION_NATIVE_FB
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.1.0-native-fb-fb12845d-20241213
19.1.0-native-fb-15208027-20241213
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<1d24c956383007ef2228a8063ebe8934>>
* @generated SignedSource<<1b56f9b5a7232e45d2edb544e4a3f007>>
*/

"use strict";
Expand Down Expand Up @@ -420,5 +420,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-fb12845d-20241213";
exports.version = "19.1.0-native-fb-15208027-20241213";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2c9770f2de058ad6be1ceaede0107193>>
* @generated SignedSource<<e5745ed2685e0a3d42d32ab25a6fe9a3>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-fb12845d-20241213";
exports.version = "19.1.0-native-fb-15208027-20241213";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2c9770f2de058ad6be1ceaede0107193>>
* @generated SignedSource<<e5745ed2685e0a3d42d32ab25a6fe9a3>>
*/

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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0bb11a7986a8960e72017b34885fe6ae>>
* @generated SignedSource<<fdcdea3344eac0384906d2150e8a0678>>
*/

/*
Expand Down Expand Up @@ -352,13 +352,11 @@ function describeFiber(fiber) {
return describeBuiltInComponentFrame("SuspenseList");
case 0:
case 15:
return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber;
return describeNativeComponentFrame(fiber.type, !1);
case 11:
return (
(fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber
);
return describeNativeComponentFrame(fiber.type.render, !1);
case 1:
return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber;
return describeNativeComponentFrame(fiber.type, !0);
default:
return "";
}
Expand Down Expand Up @@ -2112,19 +2110,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
}
var isInputEventSupported = !1;
if (canUseDOM) {
var JSCompiler_inline_result$jscomp$295;
var JSCompiler_inline_result$jscomp$292;
if (canUseDOM) {
var isSupported$jscomp$inline_428 = "oninput" in document;
if (!isSupported$jscomp$inline_428) {
var element$jscomp$inline_429 = document.createElement("div");
element$jscomp$inline_429.setAttribute("oninput", "return;");
isSupported$jscomp$inline_428 =
"function" === typeof element$jscomp$inline_429.oninput;
var isSupported$jscomp$inline_419 = "oninput" in document;
if (!isSupported$jscomp$inline_419) {
var element$jscomp$inline_420 = document.createElement("div");
element$jscomp$inline_420.setAttribute("oninput", "return;");
isSupported$jscomp$inline_419 =
"function" === typeof element$jscomp$inline_420.oninput;
}
JSCompiler_inline_result$jscomp$295 = isSupported$jscomp$inline_428;
} else JSCompiler_inline_result$jscomp$295 = !1;
JSCompiler_inline_result$jscomp$292 = isSupported$jscomp$inline_419;
} else JSCompiler_inline_result$jscomp$292 = !1;
isInputEventSupported =
JSCompiler_inline_result$jscomp$295 &&
JSCompiler_inline_result$jscomp$292 &&
(!document.documentMode || 9 < document.documentMode);
}
function stopWatchingForValueChange() {
Expand Down Expand Up @@ -4294,16 +4292,16 @@ var ContextOnlyDispatcher = {
useDeferredValue: throwInvalidHookError,
useTransition: throwInvalidHookError,
useSyncExternalStore: throwInvalidHookError,
useId: throwInvalidHookError
useId: throwInvalidHookError,
useHostTransitionStatus: throwInvalidHookError,
useFormState: throwInvalidHookError,
useActionState: throwInvalidHookError,
useOptimistic: throwInvalidHookError
};
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
ContextOnlyDispatcher.useMemoCache = throwInvalidHookError;
enableUseResourceEffectHook &&
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError;
ContextOnlyDispatcher.useFormState = throwInvalidHookError;
ContextOnlyDispatcher.useActionState = throwInvalidHookError;
ContextOnlyDispatcher.useOptimistic = throwInvalidHookError;
var HooksDispatcherOnMount = {
readContext: readContext,
use: use,
Expand Down Expand Up @@ -4464,6 +4462,29 @@ var HooksDispatcherOnMount = {
":");
return (hook.memoizedState = identifierPrefix);
},
useHostTransitionStatus: useHostTransitionStatus,
useFormState: mountActionState,
useActionState: mountActionState,
useOptimistic: function (passthrough) {
var hook = mountWorkInProgressHook();
hook.memoizedState = hook.baseState = passthrough;
var queue = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: null,
lastRenderedState: null
};
hook.queue = queue;
hook = dispatchOptimisticSetState.bind(
null,
currentlyRenderingFiber$1,
!0,
queue
);
queue.dispatch = hook;
return [passthrough, hook];
},
useCacheRefresh: function () {
return (mountWorkInProgressHook().memoizedState = refreshCache.bind(
null,
Expand All @@ -4474,29 +4495,6 @@ var HooksDispatcherOnMount = {
HooksDispatcherOnMount.useMemoCache = useMemoCache;
enableUseResourceEffectHook &&
(HooksDispatcherOnMount.useResourceEffect = mountResourceEffect);
HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus;
HooksDispatcherOnMount.useFormState = mountActionState;
HooksDispatcherOnMount.useActionState = mountActionState;
HooksDispatcherOnMount.useOptimistic = function (passthrough) {
var hook = mountWorkInProgressHook();
hook.memoizedState = hook.baseState = passthrough;
var queue = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: null,
lastRenderedState: null
};
hook.queue = queue;
hook = dispatchOptimisticSetState.bind(
null,
currentlyRenderingFiber$1,
!0,
queue
);
queue.dispatch = hook;
return [passthrough, hook];
};
var HooksDispatcherOnUpdate = {
readContext: readContext,
use: use,
Expand Down Expand Up @@ -4533,19 +4531,19 @@ var HooksDispatcherOnUpdate = {
];
},
useSyncExternalStore: updateSyncExternalStore,
useId: updateId
useId: updateId,
useHostTransitionStatus: useHostTransitionStatus,
useFormState: updateActionState,
useActionState: updateActionState,
useOptimistic: function (passthrough, reducer) {
var hook = updateWorkInProgressHook();
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
}
};
HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;
HooksDispatcherOnUpdate.useMemoCache = useMemoCache;
enableUseResourceEffectHook &&
(HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect);
HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus;
HooksDispatcherOnUpdate.useFormState = updateActionState;
HooksDispatcherOnUpdate.useActionState = updateActionState;
HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) {
var hook = updateWorkInProgressHook();
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
};
var HooksDispatcherOnRerender = {
readContext: readContext,
use: use,
Expand Down Expand Up @@ -4584,22 +4582,22 @@ var HooksDispatcherOnRerender = {
];
},
useSyncExternalStore: updateSyncExternalStore,
useId: updateId
useId: updateId,
useHostTransitionStatus: useHostTransitionStatus,
useFormState: rerenderActionState,
useActionState: rerenderActionState,
useOptimistic: function (passthrough, reducer) {
var hook = updateWorkInProgressHook();
if (null !== currentHook)
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
hook.baseState = passthrough;
return [passthrough, hook.queue.dispatch];
}
};
HooksDispatcherOnRerender.useCacheRefresh = updateRefresh;
HooksDispatcherOnRerender.useMemoCache = useMemoCache;
enableUseResourceEffectHook &&
(HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect);
HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus;
HooksDispatcherOnRerender.useFormState = rerenderActionState;
HooksDispatcherOnRerender.useActionState = rerenderActionState;
HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) {
var hook = updateWorkInProgressHook();
if (null !== currentHook)
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
hook.baseState = passthrough;
return [passthrough, hook.queue.dispatch];
};
var thenableState = null,
thenableIndexCounter = 0;
function unwrapThenable(thenable) {
Expand Down Expand Up @@ -12363,20 +12361,20 @@ function extractEvents$1(
}
}
for (
var i$jscomp$inline_1488 = 0;
i$jscomp$inline_1488 < simpleEventPluginEvents.length;
i$jscomp$inline_1488++
var i$jscomp$inline_1479 = 0;
i$jscomp$inline_1479 < simpleEventPluginEvents.length;
i$jscomp$inline_1479++
) {
var eventName$jscomp$inline_1489 =
simpleEventPluginEvents[i$jscomp$inline_1488],
domEventName$jscomp$inline_1490 =
eventName$jscomp$inline_1489.toLowerCase(),
capitalizedEvent$jscomp$inline_1491 =
eventName$jscomp$inline_1489[0].toUpperCase() +
eventName$jscomp$inline_1489.slice(1);
var eventName$jscomp$inline_1480 =
simpleEventPluginEvents[i$jscomp$inline_1479],
domEventName$jscomp$inline_1481 =
eventName$jscomp$inline_1480.toLowerCase(),
capitalizedEvent$jscomp$inline_1482 =
eventName$jscomp$inline_1480[0].toUpperCase() +
eventName$jscomp$inline_1480.slice(1);
registerSimpleEvent(
domEventName$jscomp$inline_1490,
"on" + capitalizedEvent$jscomp$inline_1491
domEventName$jscomp$inline_1481,
"on" + capitalizedEvent$jscomp$inline_1482
);
}
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
Expand Down Expand Up @@ -15869,16 +15867,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
0 === i && attemptExplicitHydrationTarget(target);
}
};
var isomorphicReactPackageVersion$jscomp$inline_1731 = React.version;
var isomorphicReactPackageVersion$jscomp$inline_1722 = React.version;
if (
"19.1.0-native-fb-fb12845d-20241213" !==
isomorphicReactPackageVersion$jscomp$inline_1731
"19.1.0-native-fb-15208027-20241213" !==
isomorphicReactPackageVersion$jscomp$inline_1722
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1731,
"19.1.0-native-fb-fb12845d-20241213"
isomorphicReactPackageVersion$jscomp$inline_1722,
"19.1.0-native-fb-15208027-20241213"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15898,24 +15896,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
null === componentOrElement ? null : componentOrElement.stateNode;
return componentOrElement;
};
var internals$jscomp$inline_2186 = {
var internals$jscomp$inline_2177 = {
bundleType: 0,
version: "19.1.0-native-fb-fb12845d-20241213",
version: "19.1.0-native-fb-15208027-20241213",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213"
reconcilerVersion: "19.1.0-native-fb-15208027-20241213"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2187 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_2178 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_2187.isDisabled &&
hook$jscomp$inline_2187.supportsFiber
!hook$jscomp$inline_2178.isDisabled &&
hook$jscomp$inline_2178.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_2187.inject(
internals$jscomp$inline_2186
(rendererID = hook$jscomp$inline_2178.inject(
internals$jscomp$inline_2177
)),
(injectedHook = hook$jscomp$inline_2187);
(injectedHook = hook$jscomp$inline_2178);
} catch (err) {}
}
exports.createRoot = function (container, options) {
Expand Down Expand Up @@ -16009,4 +16007,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-fb12845d-20241213";
exports.version = "19.1.0-native-fb-15208027-20241213";
Loading

0 comments on commit e7358eb

Please sign in to comment.