Skip to content

Commit 44db16a

Browse files
authored
Normalize ReactFlightServerConfig and related files (#26589)
First part of #26571 merging separately to help with git history with a lot of file renames
1 parent 451736b commit 44db16a

File tree

50 files changed

+114
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+114
-102
lines changed

packages/react-client/src/ReactFlightClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ import type {
1616
UninitializedModel,
1717
Response,
1818
SSRManifest,
19-
} from './ReactFlightClientHostConfig';
19+
} from './ReactFlightClientConfig';
2020

2121
import {
2222
resolveClientReference,
2323
preloadModule,
2424
requireModule,
2525
parseModel,
26-
} from './ReactFlightClientHostConfig';
26+
} from './ReactFlightClientConfig';
2727

2828
import {knownServerReferences} from './ReactFlightServerReferenceRegistry';
2929

packages/react-client/src/ReactFlightClientHostConfigStream.js renamed to packages/react-client/src/ReactFlightClientConfigStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
import type {ResponseBase} from './ReactFlightClient';
11-
import type {StringDecoder} from './ReactFlightClientHostConfig';
11+
import type {StringDecoder} from './ReactFlightClientConfig';
1212

1313
export type Response = ResponseBase & {
1414
_partialRow: string,

packages/react-client/src/ReactFlightClientStream.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
*/
99

1010
import type {CallServerCallback} from './ReactFlightClient';
11-
import type {Response} from './ReactFlightClientHostConfigStream';
12-
import type {SSRManifest} from './ReactFlightClientHostConfig';
11+
import type {Response} from './ReactFlightClientConfigStream';
12+
import type {SSRManifest} from './ReactFlightClientConfig';
1313

1414
import {
1515
resolveModule,
@@ -26,7 +26,7 @@ import {
2626
readFinalStringChunk,
2727
supportsBinaryStreams,
2828
createStringDecoder,
29-
} from './ReactFlightClientHostConfig';
29+
} from './ReactFlightClientConfig';
3030

3131
export type {Response};
3232

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
export * from 'react-client/src/ReactFlightClientConfigBrowser';
11+
export * from 'react-client/src/ReactFlightClientConfigStream';
12+
export * from 'react-server-dom-webpack/src/ReactFlightClientConfigWebpackBundler';

packages/react-client/src/forks/ReactFlightClientHostConfig.dom-bun.js renamed to packages/react-client/src/forks/ReactFlightClientConfig.dom-bun.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* @flow
88
*/
99

10-
export * from 'react-client/src/ReactFlightClientHostConfigBrowser';
11-
export * from 'react-client/src/ReactFlightClientHostConfigStream';
10+
export * from 'react-client/src/ReactFlightClientConfigBrowser';
11+
export * from 'react-client/src/ReactFlightClientConfigStream';
1212

1313
export type Response = any;
1414
export opaque type SSRManifest = mixed;

0 commit comments

Comments
 (0)