Skip to content

Commit

Permalink
Rename fork ReactSharedInternals -> ReactSharedInternalsClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Pope committed Nov 30, 2023
1 parent 60ad369 commit aca27d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ReactCurrentBatchConfig from '../ReactCurrentBatchConfig';
import {enableServerContext} from 'shared/ReactFeatureFlags';
import {ContextRegistry} from '../ReactServerContextRegistry';

const ReactSharedInternals = {
const ReactSharedInternalsClient = {
ReactCurrentDispatcher,
ReactCurrentCache,
ReactCurrentOwner,
Expand All @@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/rollup/forks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aca27d7

Please sign in to comment.