Skip to content

Commit 3e6614e

Browse files
committed
[BE] upgrade prettier to 3.3.3 (#30420)
Mostly just changes in ternary formatting. DiffTrain build for commit b7e7f1a.
1 parent 24e446f commit 3e6614e

16 files changed

+1358
-1323
lines changed

compiled-rn/VERSION_NATIVE_FB

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.0.0-native-fb-d025ddd3-20240722
1+
19.0.0-native-fb-b7e7f1a3-20240722

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js

+152-150
Large diffs are not rendered by default.

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js

+97-93
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<3ace9ccd69b129cdf0dc2e8cf8a5d9d3>>
10+
* @generated SignedSource<<29b5cf00b5d1dc9f0b1107e3d8d364a2>>
1111
*/
1212

1313
"use strict";
@@ -180,8 +180,8 @@ function describeBuiltInComponentFrame(name) {
180180
-1 < x.stack.indexOf("\n at")
181181
? " (<anonymous>)"
182182
: -1 < x.stack.indexOf("@")
183-
? "@unknown:0:0"
184-
: "";
183+
? "@unknown:0:0"
184+
: "";
185185
}
186186
return "\n" + prefix + name + suffix;
187187
}
@@ -563,14 +563,14 @@ function getNextLanes(root, wipLanes) {
563563
return 0 === nextLanes
564564
? 0
565565
: 0 !== wipLanes &&
566-
wipLanes !== nextLanes &&
567-
0 === (wipLanes & suspendedLanes) &&
568-
((suspendedLanes = nextLanes & -nextLanes),
569-
(root = wipLanes & -wipLanes),
570-
suspendedLanes >= root ||
571-
(32 === suspendedLanes && 0 !== (root & 4194176)))
572-
? wipLanes
573-
: nextLanes;
566+
wipLanes !== nextLanes &&
567+
0 === (wipLanes & suspendedLanes) &&
568+
((suspendedLanes = nextLanes & -nextLanes),
569+
(root = wipLanes & -wipLanes),
570+
suspendedLanes >= root ||
571+
(32 === suspendedLanes && 0 !== (root & 4194176)))
572+
? wipLanes
573+
: nextLanes;
574574
}
575575
function computeExpirationTime(lane, currentTime) {
576576
switch (lane) {
@@ -3605,8 +3605,8 @@ function checkShouldComponentUpdate(
36053605
return "function" === typeof workInProgress.shouldComponentUpdate
36063606
? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)
36073607
: ctor.prototype && ctor.prototype.isPureReactComponent
3608-
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
3609-
: !0;
3608+
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
3609+
: !0;
36103610
}
36113611
function constructClassInstance(workInProgress, ctor, props) {
36123612
var isLegacyContextConsumer = !1,
@@ -4566,46 +4566,47 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
45664566
renderLanes
45674567
)))
45684568
: null !== workInProgress.memoizedState
4569-
? (reuseSuspenseHandlerOnStack(workInProgress),
4570-
(workInProgress.child = current.child),
4571-
(workInProgress.flags |= 128),
4572-
(workInProgress = null))
4573-
: (reuseSuspenseHandlerOnStack(workInProgress),
4574-
(nextPrimaryChildren = nextProps.fallback),
4575-
(showFallback = workInProgress.mode),
4576-
(nextProps = createFiberFromOffscreen(
4577-
{ mode: "visible", children: nextProps.children },
4578-
showFallback,
4579-
0,
4580-
null
4581-
)),
4582-
(nextPrimaryChildren = createFiberFromFragment(
4583-
nextPrimaryChildren,
4584-
showFallback,
4585-
renderLanes,
4586-
null
4587-
)),
4588-
(nextPrimaryChildren.flags |= 2),
4589-
(nextProps.return = workInProgress),
4590-
(nextPrimaryChildren.return = workInProgress),
4591-
(nextProps.sibling = nextPrimaryChildren),
4592-
(workInProgress.child = nextProps),
4593-
0 !== (workInProgress.mode & 1) &&
4594-
reconcileChildFibers(
4595-
workInProgress,
4596-
current.child,
4597-
null,
4569+
? (reuseSuspenseHandlerOnStack(workInProgress),
4570+
(workInProgress.child = current.child),
4571+
(workInProgress.flags |= 128),
4572+
(workInProgress = null))
4573+
: (reuseSuspenseHandlerOnStack(workInProgress),
4574+
(nextPrimaryChildren = nextProps.fallback),
4575+
(showFallback = workInProgress.mode),
4576+
(nextProps = createFiberFromOffscreen(
4577+
{ mode: "visible", children: nextProps.children },
4578+
showFallback,
4579+
0,
4580+
null
4581+
)),
4582+
(nextPrimaryChildren = createFiberFromFragment(
4583+
nextPrimaryChildren,
4584+
showFallback,
4585+
renderLanes,
4586+
null
4587+
)),
4588+
(nextPrimaryChildren.flags |= 2),
4589+
(nextProps.return = workInProgress),
4590+
(nextPrimaryChildren.return = workInProgress),
4591+
(nextProps.sibling = nextPrimaryChildren),
4592+
(workInProgress.child = nextProps),
4593+
0 !== (workInProgress.mode & 1) &&
4594+
reconcileChildFibers(
4595+
workInProgress,
4596+
current.child,
4597+
null,
4598+
renderLanes
4599+
),
4600+
(nextProps = workInProgress.child),
4601+
(nextProps.memoizedState =
4602+
mountSuspenseOffscreenState(renderLanes)),
4603+
(nextProps.childLanes = getRemainingWorkInPrimaryTree(
4604+
current,
4605+
JSCompiler_temp,
45984606
renderLanes
4599-
),
4600-
(nextProps = workInProgress.child),
4601-
(nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes)),
4602-
(nextProps.childLanes = getRemainingWorkInPrimaryTree(
4603-
current,
4604-
JSCompiler_temp,
4605-
renderLanes
4606-
)),
4607-
(workInProgress.memoizedState = SUSPENDED_MARKER),
4608-
(workInProgress = nextPrimaryChildren));
4607+
)),
4608+
(workInProgress.memoizedState = SUSPENDED_MARKER),
4609+
(workInProgress = nextPrimaryChildren));
46094610
else if ((pushPrimaryTreeSuspenseHandler(workInProgress), shim$1()))
46104611
(JSCompiler_temp = shim$1().digest),
46114612
(nextProps = Error(
@@ -7190,29 +7191,32 @@ function commitPassiveMountOnFiber(
71907191
committedTransitions
71917192
)
71927193
: finishedWork.mode & 1
7193-
? recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork)
7194-
: ((instance._visibility |= 4),
7195-
recursivelyTraversePassiveMountEffects(
7194+
? recursivelyTraverseAtomicPassiveEffects(
7195+
finishedRoot,
7196+
finishedWork
7197+
)
7198+
: ((instance._visibility |= 4),
7199+
recursivelyTraversePassiveMountEffects(
7200+
finishedRoot,
7201+
finishedWork,
7202+
committedLanes,
7203+
committedTransitions
7204+
))
7205+
: instance._visibility & 4
7206+
? recursivelyTraversePassiveMountEffects(
71967207
finishedRoot,
71977208
finishedWork,
71987209
committedLanes,
71997210
committedTransitions
7200-
))
7201-
: instance._visibility & 4
7202-
? recursivelyTraversePassiveMountEffects(
7203-
finishedRoot,
7204-
finishedWork,
7205-
committedLanes,
7206-
committedTransitions
7207-
)
7208-
: ((instance._visibility |= 4),
7209-
recursivelyTraverseReconnectPassiveEffects(
7210-
finishedRoot,
7211-
finishedWork,
7212-
committedLanes,
7213-
committedTransitions,
7214-
0 !== (finishedWork.subtreeFlags & 10256)
7215-
));
7211+
)
7212+
: ((instance._visibility |= 4),
7213+
recursivelyTraverseReconnectPassiveEffects(
7214+
finishedRoot,
7215+
finishedWork,
7216+
committedLanes,
7217+
committedTransitions,
7218+
0 !== (finishedWork.subtreeFlags & 10256)
7219+
));
72167220
flags & 2048 &&
72177221
commitOffscreenPassiveMountEffects(
72187222
finishedWork.alternate,
@@ -7280,18 +7284,18 @@ function recursivelyTraverseReconnectPassiveEffects(
72807284
includeWorkInProgressEffects
72817285
)
72827286
: finishedWork.mode & 1
7283-
? recursivelyTraverseAtomicPassiveEffects(
7284-
finishedRoot,
7285-
finishedWork
7286-
)
7287-
: ((instance._visibility |= 4),
7288-
recursivelyTraverseReconnectPassiveEffects(
7289-
finishedRoot,
7290-
finishedWork,
7291-
committedLanes,
7292-
committedTransitions,
7293-
includeWorkInProgressEffects
7294-
))
7287+
? recursivelyTraverseAtomicPassiveEffects(
7288+
finishedRoot,
7289+
finishedWork
7290+
)
7291+
: ((instance._visibility |= 4),
7292+
recursivelyTraverseReconnectPassiveEffects(
7293+
finishedRoot,
7294+
finishedWork,
7295+
committedLanes,
7296+
committedTransitions,
7297+
includeWorkInProgressEffects
7298+
))
72957299
: ((instance._visibility |= 4),
72967300
recursivelyTraverseReconnectPassiveEffects(
72977301
finishedRoot,
@@ -8012,10 +8016,10 @@ function handleThrow(root, thrownValue) {
80128016
thrownValue === SelectiveHydrationException
80138017
? 8
80148018
: null !== thrownValue &&
8015-
"object" === typeof thrownValue &&
8016-
"function" === typeof thrownValue.then
8017-
? 6
8018-
: 1);
8019+
"object" === typeof thrownValue &&
8020+
"function" === typeof thrownValue.then
8021+
? 6
8022+
: 1);
80198023
workInProgressThrownValue = thrownValue;
80208024
null === workInProgress &&
80218025
((workInProgressRootExitStatus = 1),
@@ -9082,8 +9086,8 @@ function childrenToTree(node) {
90829086
return 0 === node.length
90839087
? null
90849088
: 1 === node.length
9085-
? toTree(node[0])
9086-
: flatten(node.map(toTree));
9089+
? toTree(node[0])
9090+
: flatten(node.map(toTree));
90879091
}
90889092
function nodeAndSiblingsArray(nodeWithSibling) {
90899093
for (var array = []; null != nodeWithSibling; )
@@ -9169,8 +9173,8 @@ function getChildren(parent) {
91699173
validWrapperTypes.has(node.tag)
91709174
? children.push(wrapFiber(node))
91719175
: 6 === node.tag
9172-
? children.push("" + node.memoizedProps)
9173-
: (descend = !0);
9176+
? children.push("" + node.memoizedProps)
9177+
: (descend = !0);
91749178
if (descend && null !== node.child)
91759179
(node.child.return = node), (node = node.child);
91769180
else {
@@ -9335,7 +9339,7 @@ var devToolsConfig$jscomp$inline_1034 = {
93359339
throw Error("TestRenderer does not support findFiberByHostInstance()");
93369340
},
93379341
bundleType: 0,
9338-
version: "19.0.0-native-fb-d025ddd3-20240722",
9342+
version: "19.0.0-native-fb-b7e7f1a3-20240722",
93399343
rendererPackageName: "react-test-renderer"
93409344
};
93419345
var internals$jscomp$inline_1223 = {
@@ -9366,7 +9370,7 @@ var internals$jscomp$inline_1223 = {
93669370
scheduleRoot: null,
93679371
setRefreshHandler: null,
93689372
getCurrentFiber: null,
9369-
reconcilerVersion: "19.0.0-native-fb-d025ddd3-20240722"
9373+
reconcilerVersion: "19.0.0-native-fb-b7e7f1a3-20240722"
93709374
};
93719375
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
93729376
var hook$jscomp$inline_1224 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

0 commit comments

Comments
 (0)