Skip to content

Commit

Permalink
[BE] upgrade prettier to 3.3.3 (#30420)
Browse files Browse the repository at this point in the history
Mostly just changes in ternary formatting.

DiffTrain build for commit b7e7f1a.
  • Loading branch information
kassens committed Jul 22, 2024
1 parent 24e446f commit 3e6614e
Show file tree
Hide file tree
Showing 16 changed files with 1,358 additions and 1,323 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.0.0-native-fb-d025ddd3-20240722
19.0.0-native-fb-b7e7f1a3-20240722

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<<3ace9ccd69b129cdf0dc2e8cf8a5d9d3>>
* @generated SignedSource<<29b5cf00b5d1dc9f0b1107e3d8d364a2>>
*/

"use strict";
Expand Down Expand Up @@ -180,8 +180,8 @@ function describeBuiltInComponentFrame(name) {
-1 < x.stack.indexOf("\n at")
? " (<anonymous>)"
: -1 < x.stack.indexOf("@")
? "@unknown:0:0"
: "";
? "@unknown:0:0"
: "";
}
return "\n" + prefix + name + suffix;
}
Expand Down Expand Up @@ -563,14 +563,14 @@ function getNextLanes(root, wipLanes) {
return 0 === nextLanes
? 0
: 0 !== wipLanes &&
wipLanes !== nextLanes &&
0 === (wipLanes & suspendedLanes) &&
((suspendedLanes = nextLanes & -nextLanes),
(root = wipLanes & -wipLanes),
suspendedLanes >= root ||
(32 === suspendedLanes && 0 !== (root & 4194176)))
? wipLanes
: nextLanes;
wipLanes !== nextLanes &&
0 === (wipLanes & suspendedLanes) &&
((suspendedLanes = nextLanes & -nextLanes),
(root = wipLanes & -wipLanes),
suspendedLanes >= root ||
(32 === suspendedLanes && 0 !== (root & 4194176)))
? wipLanes
: nextLanes;
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
Expand Down Expand Up @@ -3605,8 +3605,8 @@ function checkShouldComponentUpdate(
return "function" === typeof workInProgress.shouldComponentUpdate
? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)
: ctor.prototype && ctor.prototype.isPureReactComponent
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
: !0;
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
: !0;
}
function constructClassInstance(workInProgress, ctor, props) {
var isLegacyContextConsumer = !1,
Expand Down Expand Up @@ -4566,46 +4566,47 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
renderLanes
)))
: null !== workInProgress.memoizedState
? (reuseSuspenseHandlerOnStack(workInProgress),
(workInProgress.child = current.child),
(workInProgress.flags |= 128),
(workInProgress = null))
: (reuseSuspenseHandlerOnStack(workInProgress),
(nextPrimaryChildren = nextProps.fallback),
(showFallback = workInProgress.mode),
(nextProps = createFiberFromOffscreen(
{ mode: "visible", children: nextProps.children },
showFallback,
0,
null
)),
(nextPrimaryChildren = createFiberFromFragment(
nextPrimaryChildren,
showFallback,
renderLanes,
null
)),
(nextPrimaryChildren.flags |= 2),
(nextProps.return = workInProgress),
(nextPrimaryChildren.return = workInProgress),
(nextProps.sibling = nextPrimaryChildren),
(workInProgress.child = nextProps),
0 !== (workInProgress.mode & 1) &&
reconcileChildFibers(
workInProgress,
current.child,
null,
? (reuseSuspenseHandlerOnStack(workInProgress),
(workInProgress.child = current.child),
(workInProgress.flags |= 128),
(workInProgress = null))
: (reuseSuspenseHandlerOnStack(workInProgress),
(nextPrimaryChildren = nextProps.fallback),
(showFallback = workInProgress.mode),
(nextProps = createFiberFromOffscreen(
{ mode: "visible", children: nextProps.children },
showFallback,
0,
null
)),
(nextPrimaryChildren = createFiberFromFragment(
nextPrimaryChildren,
showFallback,
renderLanes,
null
)),
(nextPrimaryChildren.flags |= 2),
(nextProps.return = workInProgress),
(nextPrimaryChildren.return = workInProgress),
(nextProps.sibling = nextPrimaryChildren),
(workInProgress.child = nextProps),
0 !== (workInProgress.mode & 1) &&
reconcileChildFibers(
workInProgress,
current.child,
null,
renderLanes
),
(nextProps = workInProgress.child),
(nextProps.memoizedState =
mountSuspenseOffscreenState(renderLanes)),
(nextProps.childLanes = getRemainingWorkInPrimaryTree(
current,
JSCompiler_temp,
renderLanes
),
(nextProps = workInProgress.child),
(nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes)),
(nextProps.childLanes = getRemainingWorkInPrimaryTree(
current,
JSCompiler_temp,
renderLanes
)),
(workInProgress.memoizedState = SUSPENDED_MARKER),
(workInProgress = nextPrimaryChildren));
)),
(workInProgress.memoizedState = SUSPENDED_MARKER),
(workInProgress = nextPrimaryChildren));
else if ((pushPrimaryTreeSuspenseHandler(workInProgress), shim$1()))
(JSCompiler_temp = shim$1().digest),
(nextProps = Error(
Expand Down Expand Up @@ -7190,29 +7191,32 @@ function commitPassiveMountOnFiber(
committedTransitions
)
: finishedWork.mode & 1
? recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork)
: ((instance._visibility |= 4),
recursivelyTraversePassiveMountEffects(
? recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
finishedWork
)
: ((instance._visibility |= 4),
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
))
: instance._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
))
: instance._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
)
: ((instance._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
0 !== (finishedWork.subtreeFlags & 10256)
));
)
: ((instance._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
0 !== (finishedWork.subtreeFlags & 10256)
));
flags & 2048 &&
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
Expand Down Expand Up @@ -7280,18 +7284,18 @@ function recursivelyTraverseReconnectPassiveEffects(
includeWorkInProgressEffects
)
: finishedWork.mode & 1
? recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
finishedWork
)
: ((instance._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects
))
? recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
finishedWork
)
: ((instance._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects
))
: ((instance._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
Expand Down Expand Up @@ -8012,10 +8016,10 @@ function handleThrow(root, thrownValue) {
thrownValue === SelectiveHydrationException
? 8
: null !== thrownValue &&
"object" === typeof thrownValue &&
"function" === typeof thrownValue.then
? 6
: 1);
"object" === typeof thrownValue &&
"function" === typeof thrownValue.then
? 6
: 1);
workInProgressThrownValue = thrownValue;
null === workInProgress &&
((workInProgressRootExitStatus = 1),
Expand Down Expand Up @@ -9082,8 +9086,8 @@ function childrenToTree(node) {
return 0 === node.length
? null
: 1 === node.length
? toTree(node[0])
: flatten(node.map(toTree));
? toTree(node[0])
: flatten(node.map(toTree));
}
function nodeAndSiblingsArray(nodeWithSibling) {
for (var array = []; null != nodeWithSibling; )
Expand Down Expand Up @@ -9169,8 +9173,8 @@ function getChildren(parent) {
validWrapperTypes.has(node.tag)
? children.push(wrapFiber(node))
: 6 === node.tag
? children.push("" + node.memoizedProps)
: (descend = !0);
? children.push("" + node.memoizedProps)
: (descend = !0);
if (descend && null !== node.child)
(node.child.return = node), (node = node.child);
else {
Expand Down Expand Up @@ -9335,7 +9339,7 @@ var devToolsConfig$jscomp$inline_1034 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-d025ddd3-20240722",
version: "19.0.0-native-fb-b7e7f1a3-20240722",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1223 = {
Expand Down Expand Up @@ -9366,7 +9370,7 @@ var internals$jscomp$inline_1223 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-d025ddd3-20240722"
reconcilerVersion: "19.0.0-native-fb-b7e7f1a3-20240722"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1224 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Loading

0 comments on commit 3e6614e

Please sign in to comment.