mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Change to content hash for RN canary VERSION strings (#28582)
With this change, the different files in RN will have *different* hashes. This replaces the git hash and means that the file content (including version) is only updated when the rest of the file content actually changes. This should remove "noop" changes that need to be synced that only update the version string. A difference to the www implementation here is (and I'd be looking at updating www as well if this lands well) that each file has an individual hash instead of a combined content hash. This further reduces the number of updated files and I couldn't find a reason we need to have these in sync. The best I can gather is that this hash is used so folks don't directly compare version string and make future updates harder. DiffTrain build for commit https://github.com/facebook/react/commit/cb076b593cec3a92338958f58468cce19cb8f0d9.
This commit is contained in:
+1
-1
@@ -25454,7 +25454,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-canary-9c75cd5e8-20240318";
|
||||
var ReactVersion = "18.3.0-canary-92eb08bf";
|
||||
|
||||
// Might add PROFILE later.
|
||||
|
||||
|
||||
+2
-2
@@ -9175,7 +9175,7 @@ var devToolsConfig$jscomp$inline_1016 = {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-9c75cd5e8-20240318",
|
||||
version: "18.3.0-canary-cb076b593-20240319",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1194 = {
|
||||
@@ -9206,7 +9206,7 @@ var internals$jscomp$inline_1194 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-9c75cd5e8-20240318"
|
||||
reconcilerVersion: "18.3.0-canary-cb076b593-20240319"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1195 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+2
-2
@@ -9603,7 +9603,7 @@ var devToolsConfig$jscomp$inline_1058 = {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-9c75cd5e8-20240318",
|
||||
version: "18.3.0-canary-cb076b593-20240319",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1235 = {
|
||||
@@ -9634,7 +9634,7 @@ var internals$jscomp$inline_1235 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-9c75cd5e8-20240318"
|
||||
reconcilerVersion: "18.3.0-canary-cb076b593-20240319"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1236 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ if (__DEV__) {
|
||||
}
|
||||
var dynamicFlags = require("ReactNativeInternalFeatureFlags");
|
||||
|
||||
var ReactVersion = "18.3.0-canary-9c75cd5e8-20240318";
|
||||
var ReactVersion = "18.3.0-canary-71c3a245";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
|
||||
+1
-1
@@ -628,4 +628,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-canary-9c75cd5e8-20240318";
|
||||
exports.version = "18.3.0-canary-20925769";
|
||||
|
||||
+1
-1
@@ -624,7 +624,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-canary-9c75cd5e8-20240318";
|
||||
exports.version = "18.3.0-canary-cb076b593-20240319";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
9c75cd5e84c4c524f42e65027cfd3dce746d6916
|
||||
cb076b593cec3a92338958f58468cce19cb8f0d9
|
||||
|
||||
Reference in New Issue
Block a user