Skip to content

Commit

Permalink
Use internal ReactCompilerRuntime in react/compiler-runtime entry…
Browse files Browse the repository at this point in the history
…point (#32054)

DiffTrain build for [6099351](6099351)
  • Loading branch information
eps1lon committed Jan 13, 2025
1 parent 8d924f7 commit 3019ae7
Show file tree
Hide file tree
Showing 34 changed files with 98 additions and 92 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
540efebcc34357c98412a96805bfd9244d6aa678
6099351c768670246e8b47e702545d03ddc97320
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
540efebcc34357c98412a96805bfd9244d6aa678
6099351c768670246e8b47e702545d03ddc97320
7 changes: 5 additions & 2 deletions compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,10 @@ __DEV__ &&
});
}
: enqueueTask,
ReactCompilerRuntime = { c: useMemoCache },
ReactCompilerRuntime = Object.freeze({
__proto__: null,
c: useMemoCache
}),
Children = {
map: mapChildren,
forEach: function (children, forEachFunc, forEachContext) {
Expand Down Expand Up @@ -1944,7 +1947,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-540efebc-20250112";
exports.version = "19.1.0-www-classic-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
7 changes: 5 additions & 2 deletions compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,10 @@ __DEV__ &&
});
}
: enqueueTask,
ReactCompilerRuntime = { c: useMemoCache },
ReactCompilerRuntime = Object.freeze({
__proto__: null,
c: useMemoCache
}),
Children = {
map: mapChildren,
forEach: function (children, forEachFunc, forEachContext) {
Expand Down Expand Up @@ -1944,7 +1947,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-540efebc-20250112";
exports.version = "19.1.0-www-modern-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ var reportGlobalError =
console.error(error);
};
function noop() {}
var ReactCompilerRuntime = { c: useMemoCache },
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
experimental_useResourceEffect = enableUseResourceEffectHook
? useResourceEffect
: void 0;
Expand Down Expand Up @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-540efebc-20250112";
exports.version = "19.1.0-www-classic-6099351c-20250113";
4 changes: 2 additions & 2 deletions compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ var reportGlobalError =
console.error(error);
};
function noop() {}
var ReactCompilerRuntime = { c: useMemoCache },
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
experimental_useResourceEffect = enableUseResourceEffectHook
? useResourceEffect
: void 0;
Expand Down Expand Up @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-540efebc-20250112";
exports.version = "19.1.0-www-modern-6099351c-20250113";
4 changes: 2 additions & 2 deletions compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ var reportGlobalError =
console.error(error);
};
function noop() {}
var ReactCompilerRuntime = { c: useMemoCache },
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
experimental_useResourceEffect = enableUseResourceEffectHook
? useResourceEffect
: void 0;
Expand Down Expand Up @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-540efebc-20250112";
exports.version = "19.1.0-www-classic-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ var reportGlobalError =
console.error(error);
};
function noop() {}
var ReactCompilerRuntime = { c: useMemoCache },
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
experimental_useResourceEffect = enableUseResourceEffectHook
? useResourceEffect
: void 0;
Expand Down Expand Up @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-540efebc-20250112";
exports.version = "19.1.0-www-modern-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16945,10 +16945,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-540efebc-20250112",
version: "19.1.0-www-classic-6099351c-20250113",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-540efebc-20250112"
reconcilerVersion: "19.1.0-www-classic-6099351c-20250113"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16982,7 +16982,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-540efebc-20250112";
exports.version = "19.1.0-www-classic-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -16717,10 +16717,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-540efebc-20250112",
version: "19.1.0-www-modern-6099351c-20250113",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-540efebc-20250112"
reconcilerVersion: "19.1.0-www-modern-6099351c-20250113"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16754,7 +16754,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-540efebc-20250112";
exports.version = "19.1.0-www-modern-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10830,10 +10830,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1514 = {
bundleType: 0,
version: "19.1.0-www-classic-540efebc-20250112",
version: "19.1.0-www-classic-6099351c-20250113",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-540efebc-20250112"
reconcilerVersion: "19.1.0-www-classic-6099351c-20250113"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1515 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10859,4 +10859,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-540efebc-20250112";
exports.version = "19.1.0-www-classic-6099351c-20250113";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -10550,10 +10550,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1487 = {
bundleType: 0,
version: "19.1.0-www-modern-540efebc-20250112",
version: "19.1.0-www-modern-6099351c-20250113",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-540efebc-20250112"
reconcilerVersion: "19.1.0-www-modern-6099351c-20250113"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1488 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10579,4 +10579,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-540efebc-20250112";
exports.version = "19.1.0-www-modern-6099351c-20250113";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27431,11 +27431,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-classic-540efebc-20250112" !== isomorphicReactPackageVersion)
if ("19.1.0-www-classic-6099351c-20250113" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-www-classic-540efebc-20250112\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-classic-6099351c-20250113\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27478,10 +27478,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-540efebc-20250112",
version: "19.1.0-www-classic-6099351c-20250113",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-540efebc-20250112"
reconcilerVersion: "19.1.0-www-classic-6099351c-20250113"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -28079,7 +28079,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-540efebc-20250112";
exports.version = "19.1.0-www-classic-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -27217,11 +27217,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-modern-540efebc-20250112" !== isomorphicReactPackageVersion)
if ("19.1.0-www-modern-6099351c-20250113" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-www-modern-540efebc-20250112\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-modern-6099351c-20250113\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27264,10 +27264,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-540efebc-20250112",
version: "19.1.0-www-modern-6099351c-20250113",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-540efebc-20250112"
reconcilerVersion: "19.1.0-www-modern-6099351c-20250113"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -27865,7 +27865,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-540efebc-20250112";
exports.version = "19.1.0-www-modern-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17308,14 +17308,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1798 = React.version;
if (
"19.1.0-www-classic-540efebc-20250112" !==
"19.1.0-www-classic-6099351c-20250113" !==
isomorphicReactPackageVersion$jscomp$inline_1798
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1798,
"19.1.0-www-classic-540efebc-20250112"
"19.1.0-www-classic-6099351c-20250113"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17333,10 +17333,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2330 = {
bundleType: 0,
version: "19.1.0-www-classic-540efebc-20250112",
version: "19.1.0-www-classic-6099351c-20250113",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-540efebc-20250112"
reconcilerVersion: "19.1.0-www-classic-6099351c-20250113"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2331 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17700,4 +17700,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-540efebc-20250112";
exports.version = "19.1.0-www-classic-6099351c-20250113";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -17044,14 +17044,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1788 = React.version;
if (
"19.1.0-www-modern-540efebc-20250112" !==
"19.1.0-www-modern-6099351c-20250113" !==
isomorphicReactPackageVersion$jscomp$inline_1788
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1788,
"19.1.0-www-modern-540efebc-20250112"
"19.1.0-www-modern-6099351c-20250113"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17069,10 +17069,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2312 = {
bundleType: 0,
version: "19.1.0-www-modern-540efebc-20250112",
version: "19.1.0-www-modern-6099351c-20250113",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-540efebc-20250112"
reconcilerVersion: "19.1.0-www-modern-6099351c-20250113"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2313 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17436,4 +17436,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-540efebc-20250112";
exports.version = "19.1.0-www-modern-6099351c-20250113";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17995,14 +17995,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1895 = React.version;
if (
"19.1.0-www-classic-540efebc-20250112" !==
"19.1.0-www-classic-6099351c-20250113" !==
isomorphicReactPackageVersion$jscomp$inline_1895
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1895,
"19.1.0-www-classic-540efebc-20250112"
"19.1.0-www-classic-6099351c-20250113"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -18020,10 +18020,10 @@ Internals.Events = [
];
var internals$jscomp$inline_1897 = {
bundleType: 0,
version: "19.1.0-www-classic-540efebc-20250112",
version: "19.1.0-www-classic-6099351c-20250113",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-540efebc-20250112"
reconcilerVersion: "19.1.0-www-classic-6099351c-20250113"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1897.getLaneLabelMap = getLaneLabelMap),
Expand Down Expand Up @@ -18390,7 +18390,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-540efebc-20250112";
exports.version = "19.1.0-www-classic-6099351c-20250113";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit 3019ae7

Please sign in to comment.