From aca27d7c28c76f50e604240b4325cbf846b6091d Mon Sep 17 00:00:00 2001 From: Jack Pope Date: Thu, 30 Nov 2023 16:31:26 -0500 Subject: [PATCH] Rename fork ReactSharedInternals -> ReactSharedInternalsClient --- ...ernals.umd.js => ReactSharedInternalsClient.umd.js} | 10 +++++----- .../src/__tests__/SchedulerUMDBundle-test.internal.js | 2 +- scripts/rollup/forks.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename packages/react/src/forks/{ReactSharedInternals.umd.js => ReactSharedInternalsClient.umd.js} (80%) diff --git a/packages/react/src/forks/ReactSharedInternals.umd.js b/packages/react/src/forks/ReactSharedInternalsClient.umd.js similarity index 80% rename from packages/react/src/forks/ReactSharedInternals.umd.js rename to packages/react/src/forks/ReactSharedInternalsClient.umd.js index 61b78c4316bfa..84d4356319853 100644 --- a/packages/react/src/forks/ReactSharedInternals.umd.js +++ b/packages/react/src/forks/ReactSharedInternalsClient.umd.js @@ -15,7 +15,7 @@ import ReactCurrentBatchConfig from '../ReactCurrentBatchConfig'; import {enableServerContext} from 'shared/ReactFeatureFlags'; import {ContextRegistry} from '../ReactServerContextRegistry'; -const ReactSharedInternals = { +const ReactSharedInternalsClient = { ReactCurrentDispatcher, ReactCurrentCache, ReactCurrentOwner, @@ -30,12 +30,12 @@ const ReactSharedInternals = { }; if (__DEV__) { - ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; - ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; + ReactSharedInternalsClient.ReactCurrentActQueue = ReactCurrentActQueue; + ReactSharedInternalsClient.ReactDebugCurrentFrame = ReactDebugCurrentFrame; } if (enableServerContext) { - ReactSharedInternals.ContextRegistry = ContextRegistry; + ReactSharedInternalsClient.ContextRegistry = ContextRegistry; } -export default ReactSharedInternals; +export default ReactSharedInternalsClient; diff --git a/packages/scheduler/src/__tests__/SchedulerUMDBundle-test.internal.js b/packages/scheduler/src/__tests__/SchedulerUMDBundle-test.internal.js index 2909a5895ab7b..8515c2da63000 100644 --- a/packages/scheduler/src/__tests__/SchedulerUMDBundle-test.internal.js +++ b/packages/scheduler/src/__tests__/SchedulerUMDBundle-test.internal.js @@ -43,7 +43,7 @@ describe('Scheduling UMD bundle', () => { const umdAPIProd = require('../../npm/umd/scheduler.production.min'); const umdAPIProfiling = require('../../npm/umd/scheduler.profiling.min'); const secretAPI = - require('react/src/forks/ReactSharedInternals.umd').default; + require('react/src/forks/ReactSharedInternalsClient.umd').default; validateForwardedAPIs(api, [ umdAPIDev, umdAPIProd, diff --git a/scripts/rollup/forks.js b/scripts/rollup/forks.js index 24ba7c2a86a24..916e857d57631 100644 --- a/scripts/rollup/forks.js +++ b/scripts/rollup/forks.js @@ -225,7 +225,7 @@ const forks = Object.freeze({ case UMD_DEV: case UMD_PROD: case UMD_PROFILING: - return './packages/react/src/forks/ReactSharedInternals.umd.js'; + return './packages/react/src/forks/ReactSharedInternalsClient.umd.js'; default: return null; }