Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Flight Relay DOM/Native #26828

Merged
merged 5 commits into from
May 18, 2023
Merged

Conversation

sebmarkbage
Copy link
Collaborator

The bindings upstream in Relay has been removed so we don't need these builds anymore. The idea is to revisit an FB integration of Flight but it wouldn't use the Relay specific bindings. It's a bit unclear how it would look but likely more like the OSS version so not worth keeping these around.

The dom-relay name also included the FB specific Fizz implementation of the streaming config so I renamed that to dom-fb. There's no Fizz implementation for Native yet so I just removed native-relay.

We created a configurable fork for how to encode the output of Flight and the Relay implementation encoded it as JSON objects instead of strings/streams. The new implementation would likely be more stream-like and just encode it directly as string/binary chunks. So I removed those indirections so that this can just be declared inline in ReactFlightServer/Client.

@sebmarkbage sebmarkbage requested review from kassens and gnoff May 17, 2023 23:48
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels May 17, 2023
@react-sizebot
Copy link

react-sizebot commented May 17, 2023

Comparing: d7a98a5...a3bb9ef

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 164.23 kB 164.23 kB = 51.77 kB 51.77 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 171.59 kB 171.59 kB = 53.98 kB 53.98 kB
facebook-www/ReactDOM-prod.classic.js = 570.55 kB 570.55 kB = 100.66 kB 100.66 kB
facebook-www/ReactDOM-prod.modern.js = 554.29 kB 554.29 kB = 97.84 kB 97.84 kB
facebook-relay/flight/ReactFlightNativeRelayClient-dev.js Deleted 42.77 kB 0.00 kB Deleted 10.61 kB 0.00 kB
facebook-relay/flight/ReactFlightNativeRelayClient-prod.js Deleted 17.30 kB 0.00 kB Deleted 4.45 kB 0.00 kB
facebook-relay/flight/ReactFlightNativeRelayServer-dev.js Deleted 62.26 kB 0.00 kB Deleted 15.14 kB 0.00 kB
facebook-relay/flight/ReactFlightNativeRelayServer-prod.js Deleted 32.17 kB 0.00 kB Deleted 7.67 kB 0.00 kB
facebook-www/ReactFlightDOMRelayClient-dev.classic.js Deleted 44.27 kB 0.00 kB Deleted 10.72 kB 0.00 kB
facebook-www/ReactFlightDOMRelayClient-dev.modern.js Deleted 44.27 kB 0.00 kB Deleted 10.72 kB 0.00 kB
facebook-www/ReactFlightDOMRelayClient-prod.classic.js Deleted 18.38 kB 0.00 kB Deleted 4.60 kB 0.00 kB
facebook-www/ReactFlightDOMRelayClient-prod.modern.js Deleted 18.38 kB 0.00 kB Deleted 4.60 kB 0.00 kB
facebook-www/ReactFlightDOMRelayServer-dev.classic.js Deleted 65.91 kB 0.00 kB Deleted 15.71 kB 0.00 kB
facebook-www/ReactFlightDOMRelayServer-dev.modern.js Deleted 65.91 kB 0.00 kB Deleted 15.71 kB 0.00 kB
facebook-www/ReactFlightDOMRelayServer-prod.classic.js Deleted 34.89 kB 0.00 kB Deleted 8.05 kB 0.00 kB
facebook-www/ReactFlightDOMRelayServer-prod.modern.js Deleted 34.89 kB 0.00 kB Deleted 8.05 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-client/cjs/react-client-flight.production.min.js +0.68% 8.44 kB 8.50 kB +0.12% 3.35 kB 3.36 kB
oss-stable-semver/react-client/cjs/react-client-flight.production.min.js +0.68% 8.44 kB 8.50 kB +0.12% 3.35 kB 3.36 kB
oss-stable/react-client/cjs/react-client-flight.production.min.js +0.68% 8.44 kB 8.50 kB +0.12% 3.35 kB 3.36 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +0.34% 9.68 kB 9.71 kB +0.21% 3.80 kB 3.81 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +0.34% 9.68 kB 9.71 kB +0.21% 3.80 kB 3.81 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +0.34% 9.68 kB 9.71 kB +0.21% 3.80 kB 3.81 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +0.33% 10.06 kB 10.09 kB +0.28% 3.98 kB 4.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +0.33% 10.06 kB 10.09 kB +0.28% 3.98 kB 4.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +0.33% 10.06 kB 10.09 kB +0.28% 3.98 kB 4.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +0.33% 10.14 kB 10.17 kB +0.25% 4.03 kB 4.04 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +0.33% 10.14 kB 10.17 kB +0.25% 4.03 kB 4.04 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +0.33% 10.14 kB 10.17 kB +0.25% 4.03 kB 4.04 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.production.min.js +0.30% 10.87 kB 10.90 kB +0.07% 4.26 kB 4.27 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.production.min.js +0.30% 10.87 kB 10.90 kB +0.07% 4.26 kB 4.27 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.production.min.js +0.30% 10.87 kB 10.90 kB +0.07% 4.26 kB 4.27 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js +0.30% 10.61 kB 10.64 kB +0.22% 4.15 kB 4.16 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js +0.30% 10.61 kB 10.64 kB +0.22% 4.15 kB 4.16 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js +0.30% 10.61 kB 10.64 kB +0.22% 4.15 kB 4.16 kB
oss-experimental/react-server/cjs/react-server-flight.production.min.js = 16.07 kB 16.04 kB = 5.80 kB 5.77 kB
oss-stable-semver/react-server/cjs/react-server-flight.production.min.js = 16.07 kB 16.04 kB = 5.80 kB 5.77 kB
oss-stable/react-server/cjs/react-server-flight.production.min.js = 16.07 kB 16.04 kB = 5.80 kB 5.77 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js = 54.34 kB 54.06 kB = 12.88 kB 12.77 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js = 54.34 kB 54.06 kB = 12.88 kB 12.77 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js = 54.34 kB 54.06 kB = 12.88 kB 12.77 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js = 51.13 kB 50.85 kB = 12.67 kB 12.55 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js = 51.13 kB 50.85 kB = 12.67 kB 12.55 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js = 51.13 kB 50.85 kB = 12.67 kB 12.55 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js = 49.63 kB 49.35 kB = 12.45 kB 12.33 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js = 49.63 kB 49.35 kB = 12.45 kB 12.33 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js = 49.63 kB 49.35 kB = 12.45 kB 12.33 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js = 49.41 kB 49.14 kB = 12.37 kB 12.25 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js = 49.41 kB 49.14 kB = 12.37 kB 12.25 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js = 49.41 kB 49.14 kB = 12.37 kB 12.25 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js = 47.88 kB 47.60 kB = 11.91 kB 11.80 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js = 47.88 kB 47.60 kB = 11.91 kB 11.80 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js = 47.88 kB 47.60 kB = 11.91 kB 11.80 kB
oss-experimental/react-client/cjs/react-client-flight.development.js = 44.42 kB 44.16 kB = 11.25 kB 11.16 kB
oss-stable-semver/react-client/cjs/react-client-flight.development.js = 44.42 kB 44.16 kB = 11.25 kB 11.16 kB
oss-stable/react-client/cjs/react-client-flight.development.js = 44.42 kB 44.16 kB = 11.25 kB 11.16 kB
facebook-relay/flight/ReactFlightNativeRelayClient-dev.js Deleted 42.77 kB 0.00 kB Deleted 10.61 kB 0.00 kB
facebook-relay/flight/ReactFlightNativeRelayClient-prod.js Deleted 17.30 kB 0.00 kB Deleted 4.45 kB 0.00 kB
facebook-relay/flight/ReactFlightNativeRelayServer-dev.js Deleted 62.26 kB 0.00 kB Deleted 15.14 kB 0.00 kB
facebook-relay/flight/ReactFlightNativeRelayServer-prod.js Deleted 32.17 kB 0.00 kB Deleted 7.67 kB 0.00 kB
facebook-www/ReactFlightDOMRelayClient-dev.classic.js Deleted 44.27 kB 0.00 kB Deleted 10.72 kB 0.00 kB
facebook-www/ReactFlightDOMRelayClient-dev.modern.js Deleted 44.27 kB 0.00 kB Deleted 10.72 kB 0.00 kB
facebook-www/ReactFlightDOMRelayClient-prod.classic.js Deleted 18.38 kB 0.00 kB Deleted 4.60 kB 0.00 kB
facebook-www/ReactFlightDOMRelayClient-prod.modern.js Deleted 18.38 kB 0.00 kB Deleted 4.60 kB 0.00 kB
facebook-www/ReactFlightDOMRelayServer-dev.classic.js Deleted 65.91 kB 0.00 kB Deleted 15.71 kB 0.00 kB
facebook-www/ReactFlightDOMRelayServer-dev.modern.js Deleted 65.91 kB 0.00 kB Deleted 15.71 kB 0.00 kB
facebook-www/ReactFlightDOMRelayServer-prod.classic.js Deleted 34.89 kB 0.00 kB Deleted 8.05 kB 0.00 kB
facebook-www/ReactFlightDOMRelayServer-prod.modern.js Deleted 34.89 kB 0.00 kB Deleted 8.05 kB 0.00 kB

Generated by 🚫 dangerJS against a3bb9ef

Copy link
Contributor

@josephsavona josephsavona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is fine to remove. Our earlier approach of integrating at leaf components with Relay/GraphQL as the coordination layer was temporary, so it was really helpful to have built this. But longer term we intend to incorporate Server Components the "right" way where it's more at the routing/orchestration level.

@sebmarkbage sebmarkbage force-pushed the rmflightrelay branch 3 times, most recently from 1c1e0dd to 2206dfc Compare May 18, 2023 00:12
The bindings upstream in Relay has been removed so we don't need this
mechanism anymore.
This started out as a Relay specific fork of Flight but later was added
an FB specific Fizz, which is only thing remaining. This really just
represents the FB specific server environment (HaaS).
Since all builds are now "Streams" we don't need to fork this config.
We can just inline it in the client.
@sebmarkbage sebmarkbage merged commit 5309f10 into facebook:main May 18, 2023
github-actions bot pushed a commit that referenced this pull request May 18, 2023
The bindings upstream in Relay has been removed so we don't need these
builds anymore. The idea is to revisit an FB integration of Flight but
it wouldn't use the Relay specific bindings. It's a bit unclear how it
would look but likely more like the OSS version so not worth keeping
these around.

The `dom-relay` name also included the FB specific Fizz implementation
of the streaming config so I renamed that to `dom-fb`. There's no Fizz
implementation for Native yet so I just removed `native-relay`.

We created a configurable fork for how to encode the output of Flight
and the Relay implementation encoded it as JSON objects instead of
strings/streams. The new implementation would likely be more stream-like
and just encode it directly as string/binary chunks. So I removed those
indirections so that this can just be declared inline in
ReactFlightServer/Client.

DiffTrain build for [5309f10](5309f10)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
The bindings upstream in Relay has been removed so we don't need these
builds anymore. The idea is to revisit an FB integration of Flight but
it wouldn't use the Relay specific bindings. It's a bit unclear how it
would look but likely more like the OSS version so not worth keeping
these around.

The `dom-relay` name also included the FB specific Fizz implementation
of the streaming config so I renamed that to `dom-fb`. There's no Fizz
implementation for Native yet so I just removed `native-relay`.

We created a configurable fork for how to encode the output of Flight
and the Relay implementation encoded it as JSON objects instead of
strings/streams. The new implementation would likely be more stream-like
and just encode it directly as string/binary chunks. So I removed those
indirections so that this can just be declared inline in
ReactFlightServer/Client.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
The bindings upstream in Relay has been removed so we don't need these
builds anymore. The idea is to revisit an FB integration of Flight but
it wouldn't use the Relay specific bindings. It's a bit unclear how it
would look but likely more like the OSS version so not worth keeping
these around.

The `dom-relay` name also included the FB specific Fizz implementation
of the streaming config so I renamed that to `dom-fb`. There's no Fizz
implementation for Native yet so I just removed `native-relay`.

We created a configurable fork for how to encode the output of Flight
and the Relay implementation encoded it as JSON objects instead of
strings/streams. The new implementation would likely be more stream-like
and just encode it directly as string/binary chunks. So I removed those
indirections so that this can just be declared inline in
ReactFlightServer/Client.

DiffTrain build for commit 5309f10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants