Revert Build Versions from Content Hash to Commit Hash (#29663)

https://github.com/facebook/react/pull/29236 caused issues for internal
syncs at Meta, because we were computing version numbers using file
hashes (to eliminate "no-op" internal sync commits). The problem is that
since version numbers may not be consistent across synced files (e.g. if
some files have not changed in recent commits), the newly introduced
version mismatch check fails.

There's some more work that needs to be done here to restore the
benefits of file-specific hashing, but for now this simply reverts the
content hash changes from the following PRs:

- https://github.com/facebook/react/pull/28633
(95319ab5af)
- https://github.com/facebook/react/pull/28590
(37676aba76)
- https://github.com/facebook/react/pull/28582
(cb076b593c)
- https://github.com/facebook/react/pull/26734
(5dd90c5623)
- https://github.com/facebook/react/pull/26331
(3cad3a54ed)

DiffTrain build for [5bd4031226](https://github.com/facebook/react/commit/5bd403122645ef0f0924ac5466f56e670a8f5b8d)
This commit is contained in:
yungsters
2024-05-30 14:31:14 +00:00
parent 4bebe8e206
commit 0727c8aaf4
32 changed files with 76 additions and 57 deletions
+1 -1
View File
@@ -1 +1 @@
72644ef2f2ec7a274f79f6b32320d62757521329
5bd403122645ef0f0924ac5466f56e670a8f5b8d
@@ -0,0 +1 @@
5bd403122645ef0f0924ac5466f56e670a8f5b8d
+1 -1
View File
@@ -22,7 +22,7 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = '19.0.0-www-classic-f4a35977';
var ReactVersion = '19.0.0-www-classic-5bd4031226-20240530';
// Re-export dynamic flags from the www version.
var dynamicFeatureFlags = require('ReactFeatureFlags');
+1 -1
View File
@@ -22,7 +22,7 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = '19.0.0-www-modern-85c20051';
var ReactVersion = '19.0.0-www-modern-5bd4031226-20240530';
// Re-export dynamic flags from the www version.
var dynamicFeatureFlags = require('ReactFeatureFlags');
+1 -1
View File
@@ -684,4 +684,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-abbf2e79";
exports.version = "19.0.0-www-classic-5bd4031226-20240530";
+1 -1
View File
@@ -684,4 +684,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-abbf2e79";
exports.version = "19.0.0-www-modern-5bd4031226-20240530";
@@ -688,7 +688,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-d6ae41f2";
exports.version = "19.0.0-www-classic-5bd4031226-20240530";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -688,7 +688,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-d6ae41f2";
exports.version = "19.0.0-www-modern-5bd4031226-20240530";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = '19.0.0-www-classic-e2e1fbaf';
var ReactVersion = '19.0.0-www-classic-5bd4031226-20240530';
var LegacyRoot = 0;
var ConcurrentRoot = 1;
+1 -1
View File
@@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = '19.0.0-www-modern-05c03f69';
var ReactVersion = '19.0.0-www-modern-5bd4031226-20240530';
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -10640,7 +10640,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-classic-12951007",
version: "19.0.0-www-classic-5bd4031226-20240530",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1370 = {
@@ -10671,7 +10671,7 @@ var internals$jscomp$inline_1370 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-12951007"
reconcilerVersion: "19.0.0-www-classic-5bd4031226-20240530"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1371 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10115,7 +10115,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-modern-fc3d605e",
version: "19.0.0-www-modern-5bd4031226-20240530",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1356 = {
@@ -10146,7 +10146,7 @@ var internals$jscomp$inline_1356 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-fc3d605e"
reconcilerVersion: "19.0.0-www-modern-5bd4031226-20240530"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1357 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -31059,7 +31059,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-b0252694';
var ReactVersion = '19.0.0-www-classic-5bd4031226-20240530';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
+1 -1
View File
@@ -30236,7 +30236,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-4c2e3832';
var ReactVersion = '19.0.0-www-modern-5bd4031226-20240530';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -17045,12 +17045,15 @@ function getCrossOriginStringAs(as, input) {
return "use-credentials" === input ? input : "";
}
var isomorphicReactPackageVersion$jscomp$inline_1753 = React.version;
if ("19.0.0-www-classic-8bdf4305" !== isomorphicReactPackageVersion$jscomp$inline_1753)
if (
"19.0.0-www-classic-5bd4031226-20240530" !==
isomorphicReactPackageVersion$jscomp$inline_1753
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1753,
"19.0.0-www-classic-8bdf4305"
"19.0.0-www-classic-5bd4031226-20240530"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17069,7 +17072,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1760 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-8bdf4305",
version: "19.0.0-www-classic-5bd4031226-20240530",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2204 = {
@@ -17099,7 +17102,7 @@ var internals$jscomp$inline_2204 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-8bdf4305"
reconcilerVersion: "19.0.0-www-classic-5bd4031226-20240530"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2205 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17603,4 +17606,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-8bdf4305";
exports.version = "19.0.0-www-classic-5bd4031226-20240530";
@@ -16408,12 +16408,15 @@ function getCrossOriginStringAs(as, input) {
return "use-credentials" === input ? input : "";
}
var isomorphicReactPackageVersion$jscomp$inline_1724 = React.version;
if ("19.0.0-www-modern-cc8139fa" !== isomorphicReactPackageVersion$jscomp$inline_1724)
if (
"19.0.0-www-modern-5bd4031226-20240530" !==
isomorphicReactPackageVersion$jscomp$inline_1724
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1724,
"19.0.0-www-modern-cc8139fa"
"19.0.0-www-modern-5bd4031226-20240530"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16432,7 +16435,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1726 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-cc8139fa",
version: "19.0.0-www-modern-5bd4031226-20240530",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2195 = {
@@ -16462,7 +16465,7 @@ var internals$jscomp$inline_2195 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-cc8139fa"
reconcilerVersion: "19.0.0-www-modern-5bd4031226-20240530"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2196 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16836,4 +16839,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-cc8139fa";
exports.version = "19.0.0-www-modern-5bd4031226-20240530";
@@ -17814,12 +17814,15 @@ function getCrossOriginStringAs(as, input) {
return "use-credentials" === input ? input : "";
}
var isomorphicReactPackageVersion$jscomp$inline_1840 = React.version;
if ("19.0.0-www-classic-13942464" !== isomorphicReactPackageVersion$jscomp$inline_1840)
if (
"19.0.0-www-classic-5bd4031226-20240530" !==
isomorphicReactPackageVersion$jscomp$inline_1840
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1840,
"19.0.0-www-classic-13942464"
"19.0.0-www-classic-5bd4031226-20240530"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17838,7 +17841,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1847 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-13942464",
version: "19.0.0-www-classic-5bd4031226-20240530",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17882,7 +17885,7 @@ var devToolsConfig$jscomp$inline_1847 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-13942464"
reconcilerVersion: "19.0.0-www-classic-5bd4031226-20240530"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -18373,7 +18376,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-13942464";
exports.version = "19.0.0-www-classic-5bd4031226-20240530";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17160,12 +17160,15 @@ function getCrossOriginStringAs(as, input) {
return "use-credentials" === input ? input : "";
}
var isomorphicReactPackageVersion$jscomp$inline_1811 = React.version;
if ("19.0.0-www-modern-8f46966d" !== isomorphicReactPackageVersion$jscomp$inline_1811)
if (
"19.0.0-www-modern-5bd4031226-20240530" !==
isomorphicReactPackageVersion$jscomp$inline_1811
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1811,
"19.0.0-www-modern-8f46966d"
"19.0.0-www-modern-5bd4031226-20240530"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17184,7 +17187,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1813 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-8f46966d",
version: "19.0.0-www-modern-5bd4031226-20240530",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17228,7 +17231,7 @@ var devToolsConfig$jscomp$inline_1813 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-8f46966d"
reconcilerVersion: "19.0.0-www-modern-5bd4031226-20240530"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -17589,7 +17592,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-8f46966d";
exports.version = "19.0.0-www-modern-5bd4031226-20240530";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19,7 +19,7 @@ if (__DEV__) {
var React = require('react');
var ReactDOM = require('react-dom');
var ReactVersion = '19.0.0-www-classic-d677c24a';
var ReactVersion = '19.0.0-www-classic-5bd4031226-20240530';
// This refers to a WWW module.
var warningWWW = require('warning');
@@ -19,7 +19,7 @@ if (__DEV__) {
var React = require('react');
var ReactDOM = require('react-dom');
var ReactVersion = '19.0.0-www-modern-c13e0cef';
var ReactVersion = '19.0.0-www-modern-5bd4031226-20240530';
// This refers to a WWW module.
var warningWWW = require('warning');
@@ -5699,4 +5699,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-classic-444074d7";
exports.version = "19.0.0-www-classic-5bd4031226-20240530";
@@ -5677,4 +5677,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-modern-df91acfc";
exports.version = "19.0.0-www-modern-5bd4031226-20240530";
@@ -31625,7 +31625,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-897ea709';
var ReactVersion = '19.0.0-www-classic-5bd4031226-20240530';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -30802,7 +30802,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-8ac3e0b0';
var ReactVersion = '19.0.0-www-modern-5bd4031226-20240530';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -17374,12 +17374,15 @@ function getCrossOriginStringAs(as, input) {
return "use-credentials" === input ? input : "";
}
var isomorphicReactPackageVersion$jscomp$inline_1783 = React.version;
if ("19.0.0-www-classic-1dd981af" !== isomorphicReactPackageVersion$jscomp$inline_1783)
if (
"19.0.0-www-classic-5bd4031226-20240530" !==
isomorphicReactPackageVersion$jscomp$inline_1783
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1783,
"19.0.0-www-classic-1dd981af"
"19.0.0-www-classic-5bd4031226-20240530"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17398,7 +17401,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1790 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-1dd981af",
version: "19.0.0-www-classic-5bd4031226-20240530",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2239 = {
@@ -17428,7 +17431,7 @@ var internals$jscomp$inline_2239 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-1dd981af"
reconcilerVersion: "19.0.0-www-classic-5bd4031226-20240530"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2240 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18083,4 +18086,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-1dd981af";
exports.version = "19.0.0-www-classic-5bd4031226-20240530";
@@ -16796,12 +16796,15 @@ function getCrossOriginStringAs(as, input) {
return "use-credentials" === input ? input : "";
}
var isomorphicReactPackageVersion$jscomp$inline_1754 = React.version;
if ("19.0.0-www-modern-fb5a5297" !== isomorphicReactPackageVersion$jscomp$inline_1754)
if (
"19.0.0-www-modern-5bd4031226-20240530" !==
isomorphicReactPackageVersion$jscomp$inline_1754
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1754,
"19.0.0-www-modern-fb5a5297"
"19.0.0-www-modern-5bd4031226-20240530"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16820,7 +16823,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1756 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-fb5a5297",
version: "19.0.0-www-modern-5bd4031226-20240530",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2230 = {
@@ -16850,7 +16853,7 @@ var internals$jscomp$inline_2230 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-fb5a5297"
reconcilerVersion: "19.0.0-www-modern-5bd4031226-20240530"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17375,4 +17378,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-fb5a5297";
exports.version = "19.0.0-www-modern-5bd4031226-20240530";
@@ -28827,7 +28827,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-248d5d57';
var ReactVersion = '19.0.0-www-classic-5bd4031226-20240530';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -28095,7 +28095,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-95d7bd22';
var ReactVersion = '19.0.0-www-modern-5bd4031226-20240530';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -12636,7 +12636,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-c44a847d"
reconcilerVersion: "19.0.0-www-classic-5bd4031226-20240530"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -12149,7 +12149,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-2af71c41"
reconcilerVersion: "19.0.0-www-modern-5bd4031226-20240530"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -23313,7 +23313,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-dd5f1896';
var ReactVersion = '19.0.0-www-classic-5bd4031226-20240530';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -23313,7 +23313,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-dd5f1896';
var ReactVersion = '19.0.0-www-modern-5bd4031226-20240530';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol