Skip to content

Commit 1c05d71

Browse files
committed
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 [f613165](f613165)
1 parent 3c7d51c commit 1c05d71

40 files changed

+132
-122
lines changed

compiled/facebook-www/JSXDEVRuntime-dev.classic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (__DEV__) {
8484
var React = require("react");
8585

8686
var ReactSharedInternals =
87-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Defensive in case this is fired before React is initialized.
87+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
8888

8989
if (ReactSharedInternals != null) {
9090
var stack = ReactSharedInternals.getStackAddendum();
@@ -244,7 +244,7 @@ if (__DEV__) {
244244
}
245245

246246
var ReactSharedInternals =
247-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
247+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
248248

249249
// $FlowFixMe[method-unbinding]
250250
var hasOwnProperty = Object.prototype.hasOwnProperty;

compiled/facebook-www/JSXDEVRuntime-dev.modern.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (__DEV__) {
8484
var React = require("react");
8585

8686
var ReactSharedInternals =
87-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Defensive in case this is fired before React is initialized.
87+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
8888

8989
if (ReactSharedInternals != null) {
9090
var stack = ReactSharedInternals.getStackAddendum();
@@ -244,7 +244,7 @@ if (__DEV__) {
244244
}
245245

246246
var ReactSharedInternals =
247-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
247+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
248248

249249
// $FlowFixMe[method-unbinding]
250250
var hasOwnProperty = Object.prototype.hasOwnProperty;

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9644d206e8d92d0e31a9252d78933a48c62eb427
1+
f6131653570bbbf62d642ba9343b9cd0ab1ae97c

compiled/facebook-www/React-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (__DEV__) {
2424
) {
2525
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2626
}
27-
var ReactVersion = "19.0.0-www-classic-16596e68";
27+
var ReactVersion = "19.0.0-www-classic-e729f4fd";
2828

2929
// ATTENTION
3030
// When adding new symbols to this file,
@@ -109,7 +109,7 @@ if (__DEV__) {
109109
var React = require("react");
110110

111111
var ReactSharedInternals =
112-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Defensive in case this is fired before React is initialized.
112+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
113113

114114
if (ReactSharedInternals != null) {
115115
var stack = ReactSharedInternals.getStackAddendum();
@@ -3874,7 +3874,7 @@ if (__DEV__) {
38743874
exports.PureComponent = PureComponent;
38753875
exports.StrictMode = REACT_STRICT_MODE_TYPE;
38763876
exports.Suspense = REACT_SUSPENSE_TYPE;
3877-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
3877+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
38783878
ReactSharedInternals;
38793879
exports.act = act;
38803880
exports.cache = cache;

compiled/facebook-www/React-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (__DEV__) {
2424
) {
2525
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2626
}
27-
var ReactVersion = "19.0.0-www-modern-4ab6e189";
27+
var ReactVersion = "19.0.0-www-modern-e655a09b";
2828

2929
// ATTENTION
3030
// When adding new symbols to this file,
@@ -109,7 +109,7 @@ if (__DEV__) {
109109
var React = require("react");
110110

111111
var ReactSharedInternals =
112-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Defensive in case this is fired before React is initialized.
112+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
113113

114114
if (ReactSharedInternals != null) {
115115
var stack = ReactSharedInternals.getStackAddendum();
@@ -3861,7 +3861,7 @@ if (__DEV__) {
38613861
exports.PureComponent = PureComponent;
38623862
exports.StrictMode = REACT_STRICT_MODE_TYPE;
38633863
exports.Suspense = REACT_SUSPENSE_TYPE;
3864-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
3864+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
38653865
ReactSharedInternals;
38663866
exports.act = act;
38673867
exports.cache = cache;

compiled/facebook-www/React-prod.classic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ exports.Profiler = REACT_PROFILER_TYPE;
436436
exports.PureComponent = PureComponent;
437437
exports.StrictMode = REACT_STRICT_MODE_TYPE;
438438
exports.Suspense = REACT_SUSPENSE_TYPE;
439-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
439+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
440440
ReactSharedInternals;
441441
exports.act = function () {
442442
throw Error("act(...) is not supported in production builds of React.");
@@ -690,4 +690,4 @@ exports.useSyncExternalStore = function (
690690
exports.useTransition = function () {
691691
return ReactSharedInternals.H.useTransition();
692692
};
693-
exports.version = "19.0.0-www-classic-a06f4067";
693+
exports.version = "19.0.0-www-classic-4b82ed06";

compiled/facebook-www/React-prod.modern.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ exports.Profiler = REACT_PROFILER_TYPE;
436436
exports.PureComponent = PureComponent;
437437
exports.StrictMode = REACT_STRICT_MODE_TYPE;
438438
exports.Suspense = REACT_SUSPENSE_TYPE;
439-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
439+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
440440
ReactSharedInternals;
441441
exports.act = function () {
442442
throw Error("act(...) is not supported in production builds of React.");
@@ -690,4 +690,4 @@ exports.useSyncExternalStore = function (
690690
exports.useTransition = function () {
691691
return ReactSharedInternals.H.useTransition();
692692
};
693-
exports.version = "19.0.0-www-modern-a06f4067";
693+
exports.version = "19.0.0-www-modern-4b82ed06";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ exports.Profiler = REACT_PROFILER_TYPE;
440440
exports.PureComponent = PureComponent;
441441
exports.StrictMode = REACT_STRICT_MODE_TYPE;
442442
exports.Suspense = REACT_SUSPENSE_TYPE;
443-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
443+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
444444
ReactSharedInternals;
445445
exports.act = function () {
446446
throw Error("act(...) is not supported in production builds of React.");
@@ -694,7 +694,7 @@ exports.useSyncExternalStore = function (
694694
exports.useTransition = function () {
695695
return ReactSharedInternals.H.useTransition();
696696
};
697-
exports.version = "19.0.0-www-classic-8ec1e334";
697+
exports.version = "19.0.0-www-classic-1e341207";
698698
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
699699
"function" ===
700700
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ exports.Profiler = REACT_PROFILER_TYPE;
440440
exports.PureComponent = PureComponent;
441441
exports.StrictMode = REACT_STRICT_MODE_TYPE;
442442
exports.Suspense = REACT_SUSPENSE_TYPE;
443-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
443+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
444444
ReactSharedInternals;
445445
exports.act = function () {
446446
throw Error("act(...) is not supported in production builds of React.");
@@ -694,7 +694,7 @@ exports.useSyncExternalStore = function (
694694
exports.useTransition = function () {
695695
return ReactSharedInternals.H.useTransition();
696696
};
697-
exports.version = "19.0.0-www-modern-8ec1e334";
697+
exports.version = "19.0.0-www-modern-1e341207";
698698
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
699699
"function" ===
700700
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (__DEV__) {
6666
return self;
6767
}
6868

69-
var ReactVersion = "19.0.0-www-classic-8d7149a6";
69+
var ReactVersion = "19.0.0-www-classic-8ce767ac";
7070

7171
var LegacyRoot = 0;
7272
var ConcurrentRoot = 1;
@@ -120,7 +120,7 @@ if (__DEV__) {
120120
var React = require("react");
121121

122122
var ReactSharedInternals =
123-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Defensive in case this is fired before React is initialized.
123+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
124124

125125
if (ReactSharedInternals != null) {
126126
var stack = ReactSharedInternals.getStackAddendum();
@@ -156,7 +156,7 @@ if (__DEV__) {
156156
}
157157

158158
var ReactSharedInternals =
159-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
159+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
160160

161161
// Re-export dynamic flags from the www version.
162162
var dynamicFeatureFlags = require("ReactFeatureFlags");

0 commit comments

Comments
 (0)