Skip to content

Commit

Permalink
Enable prettier for some blocklisted fixtures with invalid GraphQL (f…
Browse files Browse the repository at this point in the history
…acebook#30425)

The invalid GraphQL in these fixtures somehow causes an unhandled
promise rejection error when running `yarn prettier-all`. This fixes
that issue by making the GraphQL valid.

DiffTrain build for commit facebook@41ecbad.
  • Loading branch information
surenpoghosian committed Jul 30, 2024
1 parent 23cc6bc commit 9a7dd61
Show file tree
Hide file tree
Showing 14 changed files with 306 additions and 290 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-d17e9d1c-20240726
19.0.0-native-fb-41ecbada-20240730
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<36b511e2b28c843493a91e6d81225e38>>
* @generated SignedSource<<d7680037bf932eb129aa730cc89f12be>>
*/

"use strict";
__DEV__ &&
(function () {
function JSCompiler_object_inline_createNodeMock_1096() {
function JSCompiler_object_inline_createNodeMock_1093() {
return null;
}
function findHook(fiber, id) {
Expand Down Expand Up @@ -683,16 +683,6 @@ __DEV__ &&
throw Error("Unable to find node on an unmounted component.");
return a.stateNode.current === a ? fiber : alternate;
}
function findCurrentHostFiberImpl(node) {
var tag = node.tag;
if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;
for (node = node.child; null !== node; ) {
tag = findCurrentHostFiberImpl(node);
if (null !== tag) return tag;
node = node.sibling;
}
return null;
}
function injectInternals(internals) {
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -12837,11 +12827,6 @@ __DEV__ &&
(scheduleUpdateOnFiber(element, rootFiber, lane),
entangleTransitions(element, rootFiber, lane));
}
function findHostInstanceByFiber(fiber) {
fiber = findCurrentFiberUsingSlowPath(fiber);
fiber = null !== fiber ? findCurrentHostFiberImpl(fiber) : null;
return null === fiber ? null : fiber.stateNode;
}
function emptyFindFiberByHostInstance() {
return null;
}
Expand Down Expand Up @@ -15109,7 +15094,6 @@ __DEV__ &&
setSuspenseHandler: setSuspenseHandler,
scheduleUpdate: scheduleUpdate,
currentDispatcherRef: ReactSharedInternals,
findHostInstanceByFiber: findHostInstanceByFiber,
findFiberByHostInstance:
devToolsConfig.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
Expand All @@ -15118,20 +15102,20 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-d17e9d1c-20240726"
reconcilerVersion: "19.0.0-native-fb-41ecbada-20240730"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-native-fb-d17e9d1c-20240726",
version: "19.0.0-native-fb-41ecbada-20240730",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
exports.act = act;
exports.create = function (element, options) {
var createNodeMock = JSCompiler_object_inline_createNodeMock_1096,
var createNodeMock = JSCompiler_object_inline_createNodeMock_1093,
isConcurrent = !1,
isStrictMode = !1;
"object" === typeof options &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<241ecbfa55ec69ba04b30f8dc0e25642>>
* @generated SignedSource<<3ec132e94d2bcf1a70e23032cb3fd149>>
*/

"use strict";
Expand Down Expand Up @@ -448,16 +448,6 @@ function findCurrentFiberUsingSlowPath(fiber) {
throw Error("Unable to find node on an unmounted component.");
return a.stateNode.current === a ? fiber : alternate;
}
function findCurrentHostFiberImpl(node) {
var tag = node.tag;
if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;
for (node = node.child; null !== node; ) {
tag = findCurrentHostFiberImpl(node);
if (null !== tag) return tag;
node = node.sibling;
}
return null;
}
var isArrayImpl = Array.isArray,
scheduleCallback$3 = Scheduler$1.unstable_scheduleCallback,
cancelCallback$1 = Scheduler$1.unstable_cancelCallback,
Expand Down Expand Up @@ -9323,19 +9313,19 @@ function wrapFiber(fiber) {
fiberToWrapper.set(fiber, wrapper));
return wrapper;
}
var devToolsConfig$jscomp$inline_1035 = {
var devToolsConfig$jscomp$inline_1031 = {
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-d17e9d1c-20240726",
version: "19.0.0-native-fb-41ecbada-20240730",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1211 = {
bundleType: devToolsConfig$jscomp$inline_1035.bundleType,
version: devToolsConfig$jscomp$inline_1035.version,
rendererPackageName: devToolsConfig$jscomp$inline_1035.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1035.rendererConfig,
var internals$jscomp$inline_1207 = {
bundleType: devToolsConfig$jscomp$inline_1031.bundleType,
version: devToolsConfig$jscomp$inline_1031.version,
rendererPackageName: devToolsConfig$jscomp$inline_1031.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1031.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
Expand All @@ -9346,32 +9336,27 @@ var internals$jscomp$inline_1211 = {
setSuspenseHandler: null,
scheduleUpdate: null,
currentDispatcherRef: ReactSharedInternals,
findHostInstanceByFiber: function (fiber) {
fiber = findCurrentFiberUsingSlowPath(fiber);
fiber = null !== fiber ? findCurrentHostFiberImpl(fiber) : null;
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1035.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1031.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-d17e9d1c-20240726"
reconcilerVersion: "19.0.0-native-fb-41ecbada-20240730"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1212 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1208 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1212.isDisabled &&
hook$jscomp$inline_1212.supportsFiber
!hook$jscomp$inline_1208.isDisabled &&
hook$jscomp$inline_1208.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1212.inject(
internals$jscomp$inline_1211
(rendererID = hook$jscomp$inline_1208.inject(
internals$jscomp$inline_1207
)),
(injectedHook = hook$jscomp$inline_1212);
(injectedHook = hook$jscomp$inline_1208);
} catch (err) {}
}
exports._Scheduler = Scheduler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f3d390859be27488bf08423cd3897485>>
* @generated SignedSource<<a1038fa53db13fb89ef86793abb4f1e1>>
*/

"use strict";
Expand Down Expand Up @@ -448,16 +448,6 @@ function findCurrentFiberUsingSlowPath(fiber) {
throw Error("Unable to find node on an unmounted component.");
return a.stateNode.current === a ? fiber : alternate;
}
function findCurrentHostFiberImpl(node) {
var tag = node.tag;
if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;
for (node = node.child; null !== node; ) {
tag = findCurrentHostFiberImpl(node);
if (null !== tag) return tag;
node = node.sibling;
}
return null;
}
var isArrayImpl = Array.isArray,
scheduleCallback$3 = Scheduler$1.unstable_scheduleCallback,
cancelCallback$1 = Scheduler$1.unstable_cancelCallback,
Expand Down Expand Up @@ -9947,12 +9937,12 @@ function wrapFiber(fiber) {
fiberToWrapper.set(fiber, wrapper));
return wrapper;
}
var devToolsConfig$jscomp$inline_1119 = {
var devToolsConfig$jscomp$inline_1115 = {
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-d17e9d1c-20240726",
version: "19.0.0-native-fb-41ecbada-20240730",
rendererPackageName: "react-test-renderer"
};
(function (internals) {
Expand All @@ -9969,10 +9959,10 @@ var devToolsConfig$jscomp$inline_1119 = {
} catch (err) {}
return hook.checkDCE ? !0 : !1;
})({
bundleType: devToolsConfig$jscomp$inline_1119.bundleType,
version: devToolsConfig$jscomp$inline_1119.version,
rendererPackageName: devToolsConfig$jscomp$inline_1119.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1119.rendererConfig,
bundleType: devToolsConfig$jscomp$inline_1115.bundleType,
version: devToolsConfig$jscomp$inline_1115.version,
rendererPackageName: devToolsConfig$jscomp$inline_1115.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1115.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
Expand All @@ -9983,20 +9973,15 @@ var devToolsConfig$jscomp$inline_1119 = {
setSuspenseHandler: null,
scheduleUpdate: null,
currentDispatcherRef: ReactSharedInternals,
findHostInstanceByFiber: function (fiber) {
fiber = findCurrentFiberUsingSlowPath(fiber);
fiber = null !== fiber ? findCurrentHostFiberImpl(fiber) : null;
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1119.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1115.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-d17e9d1c-20240726"
reconcilerVersion: "19.0.0-native-fb-41ecbada-20240730"
});
exports._Scheduler = Scheduler;
exports.act = act;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6a831b96458fe2cebd2bc0e64b3a1198>>
* @generated SignedSource<<809266b953a4e943ce5fc446467d9d31>>
*/

"use strict";
Expand Down Expand Up @@ -1704,7 +1704,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-native-fb-d17e9d1c-20240726";
exports.version = "19.0.0-native-fb-41ecbada-20240730";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c67e84006fb2ba76598777d2fbc7a508>>
* @generated SignedSource<<ae827731cd706d118f9a139d355c38fe>>
*/

"use strict";
Expand Down Expand Up @@ -579,4 +579,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-d17e9d1c-20240726";
exports.version = "19.0.0-native-fb-41ecbada-20240730";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f16803ef4dfe99f641fb38ef48218ce6>>
* @generated SignedSource<<2105d60eea1b5d86be924759c6017a80>>
*/

"use strict";
Expand Down Expand Up @@ -583,7 +583,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-d17e9d1c-20240726";
exports.version = "19.0.0-native-fb-41ecbada-20240730";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d17e9d1ce566276fc54a8ea27f4e9ea1fa434e62
41ecbada0e05f1dd40f8b94c6fa98dbdaabca211
Loading

0 comments on commit 9a7dd61

Please sign in to comment.