Skip to content

Commit bdc5cc4

Browse files
authored
Add Relay Flight Build (#18242)
* Rename to clarify that it's client-only * Rename FizzStreamer to FizzServer for consistency * Rename react-flight to react-client/flight For consistency with react-server. Currently this just includes flight but it could be expanded to include the whole reconciler. * Add Relay Flight Build * Rename ReactServerHostConfig to ReactServerStreamConfig This will be the config specifically for streaming purposes. There will be other configs for other purposes.
1 parent 7a1691c commit bdc5cc4

Some content is hidden

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

45 files changed

+311
-48
lines changed

packages/react-flight/README.md renamed to packages/react-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-flight
1+
# react-client
22

33
This is an experimental package for consuming custom React streaming models.
44

File renamed without changes.

packages/react-client/npm/flight.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
if (process.env.NODE_ENV === 'production') {
4+
module.exports = require('./cjs/react-client-flight.production.min.js');
5+
} else {
6+
module.exports = require('./cjs/react-client-flight.development.js');
7+
}

packages/react-flight/package.json renamed to packages/react-client/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-flight",
2+
"name": "react-client",
33
"description": "React package for consuming streaming models.",
44
"version": "0.1.0",
55
"private": true,
@@ -12,14 +12,13 @@
1212
"files": [
1313
"LICENSE",
1414
"README.md",
15-
"index.js",
15+
"flight.js",
1616
"cjs/"
1717
],
18-
"main": "index.js",
1918
"repository": {
2019
"type" : "git",
2120
"url" : "https://github.com/facebook/react.git",
22-
"directory": "packages/react-flight"
21+
"directory": "packages/react-client"
2322
},
2423
"engines": {
2524
"node": ">=0.10.0"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its 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/ReactFlightClientHostConfigBrowser';

0 commit comments

Comments
 (0)