Rename SECRET INTERNALS to __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE (#28789)

Follow up to #28783 and #28786.

Since we've changed the implementations of these we can rename them to
something a bit more descriptive while we're at it, since anyone
depending on them will need to upgrade their code anyway.

"react" with no condition:
`__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`
"react" with "react-server" condition:
`__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`
"react-dom":
`__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`

DiffTrain build for commit https://github.com/facebook/react/commit/f6131653570bbbf62d642ba9343b9cd0ab1ae97c.
This commit is contained in:
sebmarkbage
2024-04-09 16:26:10 +00:00
parent 7ea335a4c8
commit dc456760c5
17 changed files with 51 additions and 51 deletions
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<adb9aab2e8546b87933aac3aac47e82d>>
* @generated SignedSource<<fdd11cfd0a9f56383a8f5fff2c50fc9e>>
*/
"use strict";
@@ -21,7 +21,7 @@ if (__DEV__) {
var Scheduler$1 = require("scheduler");
var ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
// by calls to these methods by a Babel plugin.
//
@@ -26590,7 +26590,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-canary-8e2720f2";
var ReactVersion = "19.0.0-canary-27752dcf";
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<87f2bb9cd01d048068daf2853de59b90>>
* @generated SignedSource<<cf5a6e176e0f69c2bc9ded42a2ef0d63>>
*/
"use strict";
@@ -30,7 +30,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
var assign = Object.assign,
ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
@@ -9141,7 +9141,7 @@ var devToolsConfig$jscomp$inline_1000 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-canary-3a10429d",
version: "19.0.0-canary-13c476bc",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1221 = {
@@ -9172,7 +9172,7 @@ var internals$jscomp$inline_1221 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-canary-3a10429d"
reconcilerVersion: "19.0.0-canary-13c476bc"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1222 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<144679f7b56e93b28582f8c11b73acdb>>
* @generated SignedSource<<ec92ba0d6674d69f102b6b07bcc607e9>>
*/
"use strict";
@@ -30,7 +30,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
var assign = Object.assign,
ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
@@ -9757,7 +9757,7 @@ var devToolsConfig$jscomp$inline_1082 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-canary-3f0332e8",
version: "19.0.0-canary-09ccb82c",
rendererPackageName: "react-test-renderer"
};
(function (internals) {
@@ -9801,7 +9801,7 @@ var devToolsConfig$jscomp$inline_1082 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-canary-3f0332e8"
reconcilerVersion: "19.0.0-canary-09ccb82c"
});
exports._Scheduler = Scheduler;
exports.act = act;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a9007ecc9044c458313f7ebb83810ab6>>
* @generated SignedSource<<6d9fbd7e5536fb8d847f12abfabf7e26>>
*/
"use strict";
@@ -57,7 +57,7 @@ if (__DEV__) {
}
var ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function error(format) {
{
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b379d10e7a911819a4c1157692e442ed>>
* @generated SignedSource<<b0adad8af834c70d2628ac4126f5d774>>
*/
"use strict";
@@ -57,7 +57,7 @@ if (__DEV__) {
}
var ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function error(format) {
{
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6a9bb0dff181629a2d212a3aa8871904>>
* @generated SignedSource<<b4bf34965feaa60392dd96103e5ba9fc>>
*/
"use strict";
@@ -33,7 +33,7 @@ function formatProdErrorMessage(code) {
var disableDefaultPropsExceptForClasses =
dynamicFlagsUntyped.disableDefaultPropsExceptForClasses,
ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function jsxProd(type, config, maybeKey) {
var key = null,
ref = null;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6a9bb0dff181629a2d212a3aa8871904>>
* @generated SignedSource<<b4bf34965feaa60392dd96103e5ba9fc>>
*/
"use strict";
@@ -33,7 +33,7 @@ function formatProdErrorMessage(code) {
var disableDefaultPropsExceptForClasses =
dynamicFlagsUntyped.disableDefaultPropsExceptForClasses,
ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function jsxProd(type, config, maybeKey) {
var key = null,
ref = null;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<1ca38f577582e221f06ba8c0f86a202c>>
* @generated SignedSource<<178370112fe2dafc2dbee6f0ef4ab3c2>>
*/
"use strict";
@@ -26,7 +26,7 @@ if (__DEV__) {
}
var dynamicFlagsUntyped = require("ReactNativeInternalFeatureFlags");
var ReactVersion = "19.0.0-canary-700d733d";
var ReactVersion = "19.0.0-canary-70dcf491";
// ATTENTION
// When adding new symbols to this file,
@@ -3789,7 +3789,7 @@ if (__DEV__) {
exports.PureComponent = PureComponent;
exports.StrictMode = REACT_STRICT_MODE_TYPE;
exports.Suspense = REACT_SUSPENSE_TYPE;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
ReactSharedInternals;
exports.act = act;
exports.cache = cache;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<87e5d01f9dfe9dfb349c364fc2fdafbf>>
* @generated SignedSource<<087f252fe5b0c9dfa8cf8dc95115b992>>
*/
"use strict";
@@ -426,7 +426,7 @@ exports.Profiler = REACT_PROFILER_TYPE;
exports.PureComponent = PureComponent;
exports.StrictMode = REACT_STRICT_MODE_TYPE;
exports.Suspense = REACT_SUSPENSE_TYPE;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
ReactSharedInternals;
exports.act = function () {
throw Error("act(...) is not supported in production builds of React.");
@@ -675,4 +675,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-canary-fb236a46";
exports.version = "19.0.0-canary-d8f6321d";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4a9b3767e8f6d17ecebea9050a477787>>
* @generated SignedSource<<29cc74f6affd7f9736126f6a72ea5315>>
*/
"use strict";
@@ -430,7 +430,7 @@ exports.Profiler = REACT_PROFILER_TYPE;
exports.PureComponent = PureComponent;
exports.StrictMode = REACT_STRICT_MODE_TYPE;
exports.Suspense = REACT_SUSPENSE_TYPE;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
ReactSharedInternals;
exports.act = function () {
throw Error("act(...) is not supported in production builds of React.");
@@ -679,7 +679,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-canary-7ccf7b86";
exports.version = "19.0.0-canary-c8b45fd3";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
9644d206e8d92d0e31a9252d78933a48c62eb427
f6131653570bbbf62d642ba9343b9cd0ab1ae97c
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f6597e9005c61ca92bee97c0ac29c4ba>>
* @generated SignedSource<<494d27c89fdf2fb47e01cb552bf35a07>>
*/
"use strict";
@@ -31,7 +31,7 @@ if (__DEV__) {
var Scheduler = require("scheduler");
var ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
var suppressWarning = false;
function setSuppressWarning(newSuppressWarning) {
@@ -30237,7 +30237,7 @@ to return true:wantsResponderID| |
return root;
}
var ReactVersion = "19.0.0-canary-0c451732";
var ReactVersion = "19.0.0-canary-d3b8f5e2";
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2aece110942a0616726b0f38c6fd0861>>
* @generated SignedSource<<16efbcb0da2cbd078a40efb1a0552fe8>>
*/
"use strict";
@@ -1292,7 +1292,7 @@ var alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries,
log$1 = Scheduler.log,
unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue,
ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
rendererID = null,
injectedHook = null;
function onCommitRoot(root) {
@@ -10572,7 +10572,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1099 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "19.0.0-canary-aab30f5e",
version: "19.0.0-canary-120922b5",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10615,7 +10615,7 @@ var internals$jscomp$inline_1366 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-canary-aab30f5e"
reconcilerVersion: "19.0.0-canary-120922b5"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1367 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2f6df52d0f4a771089641b8f6aacfd39>>
* @generated SignedSource<<a3c25968a30f5f8cd268a3314ac130fe>>
*/
"use strict";
@@ -1296,7 +1296,7 @@ var alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries,
log$1 = Scheduler.log,
unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue,
ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
rendererID = null,
injectedHook = null,
injectedProfilingHooks = null,
@@ -11277,7 +11277,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1179 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "19.0.0-canary-c33d2f1a",
version: "19.0.0-canary-7ffb2ad4",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -11333,7 +11333,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-canary-c33d2f1a"
reconcilerVersion: "19.0.0-canary-7ffb2ad4"
});
exports.createPortal = function (children, containerTag) {
return createPortal$1(
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<37233a4ad08d9bcf021f585ac680bdb6>>
* @generated SignedSource<<24fee48abc3bddda74443b28d17bbc3e>>
*/
"use strict";
@@ -31,7 +31,7 @@ if (__DEV__) {
var Scheduler = require("scheduler");
var ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
var suppressWarning = false;
function setSuppressWarning(newSuppressWarning) {
@@ -30677,7 +30677,7 @@ to return true:wantsResponderID| |
return root;
}
var ReactVersion = "19.0.0-canary-94b5e823";
var ReactVersion = "19.0.0-canary-ae39878d";
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ed2a27856da7ce11cb4315344604be39>>
* @generated SignedSource<<9314995819fee277c04cd34d21bec2c4>>
*/
"use strict";
@@ -1111,7 +1111,7 @@ ResponderEventPlugin.injection.injectGlobalResponderHandler({
}
});
var ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries,
consoleManagedByDevToolsDuringStrictMode =
dynamicFlagsUntyped.consoleManagedByDevToolsDuringStrictMode,
@@ -10791,7 +10791,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1168 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "19.0.0-canary-426576e1",
version: "19.0.0-canary-da7bd93e",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10834,7 +10834,7 @@ var internals$jscomp$inline_1452 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-canary-426576e1"
reconcilerVersion: "19.0.0-canary-da7bd93e"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1453 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2934352e960aa81c300ffcd8ccccd03f>>
* @generated SignedSource<<fd734202c65fd13f05652a451948b4df>>
*/
"use strict";
@@ -1115,7 +1115,7 @@ ResponderEventPlugin.injection.injectGlobalResponderHandler({
}
});
var ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries,
consoleManagedByDevToolsDuringStrictMode =
dynamicFlagsUntyped.consoleManagedByDevToolsDuringStrictMode,
@@ -11497,7 +11497,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1248 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "19.0.0-canary-4c230c9b",
version: "19.0.0-canary-2571bd6c",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -11553,7 +11553,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-canary-4c230c9b"
reconcilerVersion: "19.0.0-canary-2571bd6c"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
computeComponentStackForErrorReporting: function (reactTag) {