Skip to content

Commit f846612

Browse files
committed
[compiler] Refactor validations to return Result and log where appropriate
Updates ~all of our validations to return a Result, and then updates callers to either unwrap() if they should bailout or else just log. ghstack-source-id: 418b5f5 Pull Request resolved: #32688 DiffTrain build for [e3c0642](e3c0642)
1 parent ddb820e commit f846612

35 files changed

+317
-243
lines changed

compiled/eslint-plugin-react-hooks/index.js

Lines changed: 231 additions & 157 deletions
Large diffs are not rendered by default.

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ff8f6f21f756c81fba284557357eb6e6ce765149
1+
e3c06424ae1162319d786a76371d649dee412c29
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ff8f6f21f756c81fba284557357eb6e6ce765149
1+
e3c06424ae1162319d786a76371d649dee412c29

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ __DEV__ &&
15341534
exports.useTransition = function () {
15351535
return resolveDispatcher().useTransition();
15361536
};
1537-
exports.version = "19.1.0-www-classic-ff8f6f21-20250319";
1537+
exports.version = "19.1.0-www-classic-e3c06424-20250320";
15381538
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15391539
"function" ===
15401540
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ __DEV__ &&
15341534
exports.useTransition = function () {
15351535
return resolveDispatcher().useTransition();
15361536
};
1537-
exports.version = "19.1.0-www-modern-ff8f6f21-20250319";
1537+
exports.version = "19.1.0-www-modern-e3c06424-20250320";
15381538
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15391539
"function" ===
15401540
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
641641
exports.useTransition = function () {
642642
return ReactSharedInternals.H.useTransition();
643643
};
644-
exports.version = "19.1.0-www-classic-ff8f6f21-20250319";
644+
exports.version = "19.1.0-www-classic-e3c06424-20250320";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
641641
exports.useTransition = function () {
642642
return ReactSharedInternals.H.useTransition();
643643
};
644-
exports.version = "19.1.0-www-modern-ff8f6f21-20250319";
644+
exports.version = "19.1.0-www-modern-e3c06424-20250320";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
645645
exports.useTransition = function () {
646646
return ReactSharedInternals.H.useTransition();
647647
};
648-
exports.version = "19.1.0-www-classic-ff8f6f21-20250319";
648+
exports.version = "19.1.0-www-classic-e3c06424-20250320";
649649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
650650
"function" ===
651651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
645645
exports.useTransition = function () {
646646
return ReactSharedInternals.H.useTransition();
647647
};
648-
exports.version = "19.1.0-www-modern-ff8f6f21-20250319";
648+
exports.version = "19.1.0-www-modern-e3c06424-20250320";
649649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
650650
"function" ===
651651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18529,10 +18529,10 @@ __DEV__ &&
1852918529
(function () {
1853018530
var internals = {
1853118531
bundleType: 1,
18532-
version: "19.1.0-www-classic-ff8f6f21-20250319",
18532+
version: "19.1.0-www-classic-e3c06424-20250320",
1853318533
rendererPackageName: "react-art",
1853418534
currentDispatcherRef: ReactSharedInternals,
18535-
reconcilerVersion: "19.1.0-www-classic-ff8f6f21-20250319"
18535+
reconcilerVersion: "19.1.0-www-classic-e3c06424-20250320"
1853618536
};
1853718537
internals.overrideHookState = overrideHookState;
1853818538
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18566,7 +18566,7 @@ __DEV__ &&
1856618566
exports.Shape = Shape;
1856718567
exports.Surface = Surface;
1856818568
exports.Text = Text;
18569-
exports.version = "19.1.0-www-classic-ff8f6f21-20250319";
18569+
exports.version = "19.1.0-www-classic-e3c06424-20250320";
1857018570
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1857118571
"function" ===
1857218572
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)