Skip to content

Commit

Permalink
Rename SECRET INTERNALS to `__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USE…
Browse files Browse the repository at this point in the history
…RS_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 f613165.
  • Loading branch information
sebmarkbage committed Apr 9, 2024
1 parent 7ea335a commit dc45676
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<adb9aab2e8546b87933aac3aac47e82d>>
* @generated SignedSource<<fdd11cfd0a9f56383a8f5fff2c50fc9e>>
*/

"use strict";
Expand All @@ -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.
//
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<87f2bb9cd01d048068daf2853de59b90>>
* @generated SignedSource<<cf5a6e176e0f69c2bc9ded42a2ef0d63>>
*/

"use strict";
Expand All @@ -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"),
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<144679f7b56e93b28582f8c11b73acdb>>
* @generated SignedSource<<ec92ba0d6674d69f102b6b07bcc607e9>>
*/

"use strict";
Expand All @@ -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"),
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a9007ecc9044c458313f7ebb83810ab6>>
* @generated SignedSource<<6d9fbd7e5536fb8d847f12abfabf7e26>>
*/

"use strict";
Expand Down Expand Up @@ -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) {
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b379d10e7a911819a4c1157692e442ed>>
* @generated SignedSource<<b0adad8af834c70d2628ac4126f5d774>>
*/

"use strict";
Expand Down Expand Up @@ -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) {
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6a9bb0dff181629a2d212a3aa8871904>>
* @generated SignedSource<<b4bf34965feaa60392dd96103e5ba9fc>>
*/

"use strict";
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6a9bb0dff181629a2d212a3aa8871904>>
* @generated SignedSource<<b4bf34965feaa60392dd96103e5ba9fc>>
*/

"use strict";
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<1ca38f577582e221f06ba8c0f86a202c>>
* @generated SignedSource<<178370112fe2dafc2dbee6f0ef4ab3c2>>
*/

"use strict";
Expand All @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<87e5d01f9dfe9dfb349c364fc2fdafbf>>
* @generated SignedSource<<087f252fe5b0c9dfa8cf8dc95115b992>>
*/

"use strict";
Expand Down Expand Up @@ -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.");
Expand Down Expand Up @@ -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";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4a9b3767e8f6d17ecebea9050a477787>>
* @generated SignedSource<<29cc74f6affd7f9736126f6a72ea5315>>
*/

"use strict";
Expand Down Expand Up @@ -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.");
Expand Down Expand Up @@ -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 &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9644d206e8d92d0e31a9252d78933a48c62eb427
f6131653570bbbf62d642ba9343b9cd0ab1ae97c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f6597e9005c61ca92bee97c0ac29c4ba>>
* @generated SignedSource<<494d27c89fdf2fb47e01cb552bf35a07>>
*/

"use strict";
Expand All @@ -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) {
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2aece110942a0616726b0f38c6fd0861>>
* @generated SignedSource<<16efbcb0da2cbd078a40efb1a0552fe8>>
*/

"use strict";
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2f6df52d0f4a771089641b8f6aacfd39>>
* @generated SignedSource<<a3c25968a30f5f8cd268a3314ac130fe>>
*/

"use strict";
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<37233a4ad08d9bcf021f585ac680bdb6>>
* @generated SignedSource<<24fee48abc3bddda74443b28d17bbc3e>>
*/

"use strict";
Expand All @@ -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) {
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit dc45676

Please sign in to comment.