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

Rename react-server-dom-webpack entry points to /client and /server #25504

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented Oct 18, 2022

We called entry points /writer instead of /server because "server" conflicted with the whole "react-server" naming convention. That was probably unnecessarily cute.

Since then we added the react-dom/client entry point.

I suspect we'll want to add a Hook or two that can be used by both server and client. E.g. useServerContextForRefetch. Which would go on index.

Since then we also got rid of the .server.js convention.

So I changed these:

react-server-dom-webpack/ -> react-server-dom-webpack/client
react-server-dom-webpack/writer -> react-server-dom-webpack/server

Added an empty placeholder for: react-server-dom-webpack

That way it lines up with the same convention in react-dom.

@sizebot
Copy link

sizebot commented Oct 18, 2022

Comparing: 71f2c8c...792b7d1

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 = 135.65 kB 135.65 kB = 43.47 kB 43.47 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 151.12 kB 151.12 kB = 48.14 kB 48.14 kB
facebook-www/ReactDOM-prod.classic.js = 492.47 kB 492.47 kB = 87.65 kB 87.65 kB
facebook-www/ReactDOM-prod.modern.js = 477.73 kB 477.73 kB = 85.45 kB 85.45 kB
facebook-www/ReactDOMForked-prod.classic.js = 492.47 kB 492.47 kB = 87.65 kB 87.65 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +∞% 0.00 kB 24.55 kB +∞% 0.00 kB 6.39 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.67 kB +∞% 0.00 kB 2.65 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 80.55 kB +∞% 0.00 kB 20.23 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 21.47 kB +∞% 0.00 kB 7.58 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +∞% 0.00 kB 81.98 kB +∞% 0.00 kB 20.34 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +∞% 0.00 kB 21.90 kB +∞% 0.00 kB 7.66 kB
oss-experimental/react-server-dom-webpack/client.js +∞% 0.00 kB 0.24 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-webpack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-webpack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-experimental/react-server-dom-webpack/server.node.js +∞% 0.00 kB 0.25 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +∞% 0.00 kB 26.22 kB +∞% 0.00 kB 6.52 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.88 kB +∞% 0.00 kB 2.76 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 84.63 kB +∞% 0.00 kB 20.48 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 21.67 kB +∞% 0.00 kB 7.64 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +∞% 0.00 kB 24.55 kB +∞% 0.00 kB 6.39 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.67 kB +∞% 0.00 kB 2.65 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 76.59 kB +∞% 0.00 kB 19.22 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 20.87 kB +∞% 0.00 kB 7.41 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +∞% 0.00 kB 78.02 kB +∞% 0.00 kB 19.34 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +∞% 0.00 kB 21.30 kB +∞% 0.00 kB 7.50 kB
oss-stable-semver/react-server-dom-webpack/client.js +∞% 0.00 kB 0.24 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-webpack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-webpack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-stable-semver/react-server-dom-webpack/server.node.js +∞% 0.00 kB 0.25 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +∞% 0.00 kB 26.22 kB +∞% 0.00 kB 6.52 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.88 kB +∞% 0.00 kB 2.76 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 80.48 kB +∞% 0.00 kB 19.49 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 21.08 kB +∞% 0.00 kB 7.47 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +∞% 0.00 kB 24.55 kB +∞% 0.00 kB 6.39 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.67 kB +∞% 0.00 kB 2.65 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 76.59 kB +∞% 0.00 kB 19.22 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 20.87 kB +∞% 0.00 kB 7.41 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +∞% 0.00 kB 78.02 kB +∞% 0.00 kB 19.34 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +∞% 0.00 kB 21.30 kB +∞% 0.00 kB 7.50 kB
oss-stable/react-server-dom-webpack/client.js +∞% 0.00 kB 0.24 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-webpack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-webpack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-stable/react-server-dom-webpack/server.node.js +∞% 0.00 kB 0.25 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +∞% 0.00 kB 26.22 kB +∞% 0.00 kB 6.52 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.88 kB +∞% 0.00 kB 2.76 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 80.48 kB +∞% 0.00 kB 19.49 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 21.08 kB +∞% 0.00 kB 7.47 kB
oss-experimental/react-server-dom-webpack/index.js +23.68% 0.23 kB 0.28 kB +38.13% 0.16 kB 0.22 kB
oss-stable-semver/react-server-dom-webpack/index.js +23.68% 0.23 kB 0.28 kB +38.13% 0.16 kB 0.22 kB
oss-stable/react-server-dom-webpack/index.js +23.68% 0.23 kB 0.28 kB +38.13% 0.16 kB 0.22 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js Deleted 80.56 kB 0.00 kB Deleted 20.23 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 21.48 kB 0.00 kB Deleted 7.58 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js Deleted 81.99 kB 0.00 kB Deleted 20.35 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js Deleted 21.90 kB 0.00 kB Deleted 7.66 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js Deleted 24.54 kB 0.00 kB Deleted 6.39 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js Deleted 6.66 kB 0.00 kB Deleted 2.65 kB 0.00 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js Deleted 84.64 kB 0.00 kB Deleted 20.49 kB 0.00 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 21.68 kB 0.00 kB Deleted 7.64 kB 0.00 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack.development.js Deleted 26.21 kB 0.00 kB Deleted 6.52 kB 0.00 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack.production.min.js Deleted 6.87 kB 0.00 kB Deleted 2.75 kB 0.00 kB
oss-experimental/react-server-dom-webpack/writer.browser.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-experimental/react-server-dom-webpack/writer.js Deleted 0.19 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-experimental/react-server-dom-webpack/writer.node.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js Deleted 76.60 kB 0.00 kB Deleted 19.23 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 20.88 kB 0.00 kB Deleted 7.41 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js Deleted 78.03 kB 0.00 kB Deleted 19.34 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js Deleted 21.30 kB 0.00 kB Deleted 7.50 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js Deleted 24.54 kB 0.00 kB Deleted 6.39 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js Deleted 6.66 kB 0.00 kB Deleted 2.65 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js Deleted 80.48 kB 0.00 kB Deleted 19.50 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 21.09 kB 0.00 kB Deleted 7.47 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack.development.js Deleted 26.21 kB 0.00 kB Deleted 6.52 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack.production.min.js Deleted 6.87 kB 0.00 kB Deleted 2.75 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/writer.browser.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/writer.js Deleted 0.19 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/writer.node.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js Deleted 76.60 kB 0.00 kB Deleted 19.23 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 20.88 kB 0.00 kB Deleted 7.41 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js Deleted 78.03 kB 0.00 kB Deleted 19.34 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js Deleted 21.30 kB 0.00 kB Deleted 7.50 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js Deleted 24.54 kB 0.00 kB Deleted 6.39 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js Deleted 6.66 kB 0.00 kB Deleted 2.65 kB 0.00 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js Deleted 80.48 kB 0.00 kB Deleted 19.50 kB 0.00 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 21.09 kB 0.00 kB Deleted 7.47 kB 0.00 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack.development.js Deleted 26.21 kB 0.00 kB Deleted 6.52 kB 0.00 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack.production.min.js Deleted 6.87 kB 0.00 kB Deleted 2.75 kB 0.00 kB
oss-stable/react-server-dom-webpack/writer.browser.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-stable/react-server-dom-webpack/writer.js Deleted 0.19 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-stable/react-server-dom-webpack/writer.node.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 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-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +∞% 0.00 kB 24.55 kB +∞% 0.00 kB 6.39 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.67 kB +∞% 0.00 kB 2.65 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 80.55 kB +∞% 0.00 kB 20.23 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 21.47 kB +∞% 0.00 kB 7.58 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +∞% 0.00 kB 81.98 kB +∞% 0.00 kB 20.34 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +∞% 0.00 kB 21.90 kB +∞% 0.00 kB 7.66 kB
oss-experimental/react-server-dom-webpack/client.js +∞% 0.00 kB 0.24 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-webpack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-webpack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-experimental/react-server-dom-webpack/server.node.js +∞% 0.00 kB 0.25 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +∞% 0.00 kB 26.22 kB +∞% 0.00 kB 6.52 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.88 kB +∞% 0.00 kB 2.76 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 84.63 kB +∞% 0.00 kB 20.48 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 21.67 kB +∞% 0.00 kB 7.64 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +∞% 0.00 kB 24.55 kB +∞% 0.00 kB 6.39 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.67 kB +∞% 0.00 kB 2.65 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 76.59 kB +∞% 0.00 kB 19.22 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 20.87 kB +∞% 0.00 kB 7.41 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +∞% 0.00 kB 78.02 kB +∞% 0.00 kB 19.34 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +∞% 0.00 kB 21.30 kB +∞% 0.00 kB 7.50 kB
oss-stable-semver/react-server-dom-webpack/client.js +∞% 0.00 kB 0.24 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-webpack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-webpack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-stable-semver/react-server-dom-webpack/server.node.js +∞% 0.00 kB 0.25 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +∞% 0.00 kB 26.22 kB +∞% 0.00 kB 6.52 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.88 kB +∞% 0.00 kB 2.76 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 80.48 kB +∞% 0.00 kB 19.49 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 21.08 kB +∞% 0.00 kB 7.47 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +∞% 0.00 kB 24.55 kB +∞% 0.00 kB 6.39 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.67 kB +∞% 0.00 kB 2.65 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 76.59 kB +∞% 0.00 kB 19.22 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 20.87 kB +∞% 0.00 kB 7.41 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +∞% 0.00 kB 78.02 kB +∞% 0.00 kB 19.34 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +∞% 0.00 kB 21.30 kB +∞% 0.00 kB 7.50 kB
oss-stable/react-server-dom-webpack/client.js +∞% 0.00 kB 0.24 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-webpack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-webpack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-stable/react-server-dom-webpack/server.node.js +∞% 0.00 kB 0.25 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +∞% 0.00 kB 26.22 kB +∞% 0.00 kB 6.52 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.production.min.js +∞% 0.00 kB 6.88 kB +∞% 0.00 kB 2.76 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +∞% 0.00 kB 80.48 kB +∞% 0.00 kB 19.49 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +∞% 0.00 kB 21.08 kB +∞% 0.00 kB 7.47 kB
oss-experimental/react-server-dom-webpack/index.js +23.68% 0.23 kB 0.28 kB +38.13% 0.16 kB 0.22 kB
oss-stable-semver/react-server-dom-webpack/index.js +23.68% 0.23 kB 0.28 kB +38.13% 0.16 kB 0.22 kB
oss-stable/react-server-dom-webpack/index.js +23.68% 0.23 kB 0.28 kB +38.13% 0.16 kB 0.22 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js Deleted 80.56 kB 0.00 kB Deleted 20.23 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 21.48 kB 0.00 kB Deleted 7.58 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js Deleted 81.99 kB 0.00 kB Deleted 20.35 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js Deleted 21.90 kB 0.00 kB Deleted 7.66 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js Deleted 24.54 kB 0.00 kB Deleted 6.39 kB 0.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js Deleted 6.66 kB 0.00 kB Deleted 2.65 kB 0.00 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js Deleted 84.64 kB 0.00 kB Deleted 20.49 kB 0.00 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 21.68 kB 0.00 kB Deleted 7.64 kB 0.00 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack.development.js Deleted 26.21 kB 0.00 kB Deleted 6.52 kB 0.00 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack.production.min.js Deleted 6.87 kB 0.00 kB Deleted 2.75 kB 0.00 kB
oss-experimental/react-server-dom-webpack/writer.browser.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-experimental/react-server-dom-webpack/writer.js Deleted 0.19 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-experimental/react-server-dom-webpack/writer.node.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js Deleted 76.60 kB 0.00 kB Deleted 19.23 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 20.88 kB 0.00 kB Deleted 7.41 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js Deleted 78.03 kB 0.00 kB Deleted 19.34 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js Deleted 21.30 kB 0.00 kB Deleted 7.50 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js Deleted 24.54 kB 0.00 kB Deleted 6.39 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js Deleted 6.66 kB 0.00 kB Deleted 2.65 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js Deleted 80.48 kB 0.00 kB Deleted 19.50 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 21.09 kB 0.00 kB Deleted 7.47 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack.development.js Deleted 26.21 kB 0.00 kB Deleted 6.52 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack.production.min.js Deleted 6.87 kB 0.00 kB Deleted 2.75 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/writer.browser.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/writer.js Deleted 0.19 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-stable-semver/react-server-dom-webpack/writer.node.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js Deleted 76.60 kB 0.00 kB Deleted 19.23 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 20.88 kB 0.00 kB Deleted 7.41 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js Deleted 78.03 kB 0.00 kB Deleted 19.34 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js Deleted 21.30 kB 0.00 kB Deleted 7.50 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js Deleted 24.54 kB 0.00 kB Deleted 6.39 kB 0.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js Deleted 6.66 kB 0.00 kB Deleted 2.65 kB 0.00 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.development.server.js Deleted 80.48 kB 0.00 kB Deleted 19.50 kB 0.00 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-writer.browser.production.min.server.js Deleted 21.09 kB 0.00 kB Deleted 7.47 kB 0.00 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack.development.js Deleted 26.21 kB 0.00 kB Deleted 6.52 kB 0.00 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack.production.min.js Deleted 6.87 kB 0.00 kB Deleted 2.75 kB 0.00 kB
oss-stable/react-server-dom-webpack/writer.browser.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB
oss-stable/react-server-dom-webpack/writer.js Deleted 0.19 kB 0.00 kB Deleted 0.16 kB 0.00 kB
oss-stable/react-server-dom-webpack/writer.node.server.js Deleted 0.27 kB 0.00 kB Deleted 0.17 kB 0.00 kB

Generated by 🚫 dangerJS against 792b7d1

Copy link
Collaborator

@gnoff gnoff left a comment

Choose a reason for hiding this comment

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

I don't understand the forks failure. Is it the failure on fixtures?

@sebmarkbage sebmarkbage merged commit 3bb71df into facebook:main Oct 18, 2022
@sebmarkbage
Copy link
Collaborator Author

Yea, any change to fixtures triggers a lint to run on it which it shouldn't. Haven't figured out where the config needs to go yet.

kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Oct 19, 2022
Upgrade `react-server-dom-webpack` for exports renaming purpose

x-ref: facebook/react#25504
Kikobeats pushed a commit to Kikobeats/next.js that referenced this pull request Oct 24, 2022
Upgrade `react-server-dom-webpack` for exports renaming purpose

x-ref: facebook/react#25504
gaearon pushed a commit that referenced this pull request Oct 24, 2022
<!--
  Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.

Before submitting a pull request, please make sure the following is
done:

1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
  2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open
`chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

In #25504,
`react-server-dom-webpack/` was deprecated in favor of
`react-server-dom-webpack/client`, but a remaining import wasn't
adjusted accordingly.

As a result, the remaining conditions within the file are no longer
firing appropriately, which I ran into while playing around with a fork
of
[server-components-demo](https://github.com/reactjs/server-components-demo).

The `index.js` file now contains a
[placeholder](https://github.com/facebook/react/blob/main/packages/react-server-dom-webpack/index.js)
and the actual logic of the client now sits in `/client`.

## How did you test this change?

I replaced `require.resolve('../')` with `require.resolve('../client')`
in the `react-server-dom-webpack` package in `node_modules` and
confirmed that the output of the build looked good again.
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Nov 1, 2022
Summary:
This sync includes the following changes:
- **[ab075a232](facebook/react@ab075a232 )**: Do not unmount layout effects on initial Offscreen mount ([#25592](facebook/react#25592)) //<Samuel Susla>//
- **[765805bf8](facebook/react@765805bf8 )**: Fix type check for null ([#25595](facebook/react#25595)) //<Sebastian Markbåge>//
- **[2ac77aab9](facebook/react@2ac77aab9 )**: Clean up vestige of useOpaqueIdentifier ([#25587](facebook/react#25587)) //<Andrew Clark>//
- **[bdd3d0807](facebook/react@bdd3d0807 )**: Extract logic for detecting bad fallback to helper //<Andrew Clark>//
- **[952dfff3f](facebook/react@952dfff3f )**: Split suspended work loop logic into separate functions //<Andrew Clark>//
- **[d2c0ab10d](facebook/react@d2c0ab10d )**: In work loop, add enum of reasons for suspending //<Andrew Clark>//
- **[5450dd409](facebook/react@5450dd409 )**: Strict Mode: Reuse memoized result from first pass ([#25583](facebook/react#25583)) //<Andrew Clark>//
- **[d2a0176a1](facebook/react@d2a0176a1 )**: Detect and warn if use(promise) is wrapped with try/catch block ([#25543](facebook/react#25543)) //<Andrew Clark>//
- **[cf3932be5](facebook/react@cf3932be5 )**: Remove old react-fetch, react-fs and react-pg libraries ([#25577](facebook/react#25577)) //<Sebastian Markbåge>//
- **[28a574ea8](facebook/react@28a574ea8 )**: Try assigning fetch to globalThis if global assignment fails ([#25571](facebook/react#25571)) //<Sebastian Markbåge>//
- **[09def5990](facebook/react@09def5990 )**: [Float] handle noscript context for Resources ([#25559](facebook/react#25559)) //<Josh Story>//
- **[17204056d](facebook/react@17204056d )**: [Float] fix coordination of resource identity and hydration ([#25569](facebook/react#25569)) //<Josh Story>//
- **[d925a8d0b](facebook/react@d925a8d0b )**: Flight client error stack ([#25560](facebook/react#25560)) //<Josh Story>//
- **[996b00b78](facebook/react@996b00b78 )**: [Tiny] Fixed incorrect import in `react-server-dom-webpack` ([#25554](facebook/react#25554)) //<Leo Lamprecht>//
- **[e7c5af45c](facebook/react@e7c5af45c )**: Update cache() and use() to the canary aka next channel ([#25502](facebook/react#25502)) //<Sebastian Markbåge>//
- **[fa77f52e7](facebook/react@fa77f52e7 )**: Unify promise switch statements //<Andrew Clark>//
- **[7572e4931](facebook/react@7572e4931 )**: Track thenable state in work loop //<Andrew Clark>//
- **[7fc3eefd8](facebook/react@7fc3eefd8 )**: Revert yieldy behavior for non-use Suspense (in Flight, too) //<Andrew Clark>//
- **[61f9b5e97](facebook/react@61f9b5e97 )**: [Float] support <base> as Resource ([#25546](facebook/react#25546)) //<Josh Story>//
- **[1d3fc9c9c](facebook/react@1d3fc9c9c )**: Bug fix when resolving cache ([#25545](facebook/react#25545)) //<Sebastian Markbåge>//
- **[cce18e350](facebook/react@cce18e350 )**: [Flight] Use AsyncLocalStorage to extend the scope of the cache to micro tasks ([#25542](facebook/react#25542)) //<Sebastian Markbåge>//
- **[caa84c8da](facebook/react@caa84c8da )**: Revert fetch instrumentation to only RSC ([#25540](facebook/react#25540)) //<Sebastian Markbåge>//
- **[0c11baa6a](facebook/react@0c11baa6a )**: add warnings for non-resources rendered outside body or head ([#25532](facebook/react#25532)) //<Josh Story>//
- **[9236abdb5](facebook/react@9236abdb5 )**: when float is enabled only push title and script as a single unit ([#25536](facebook/react#25536)) //<Josh Story>//
- **[dd5c20825](facebook/react@dd5c20825 )**: Revert yieldy behavior for non-use Suspense ([#25537](facebook/react#25537)) //<Andrew Clark>//
- **[934177598](facebook/react@934177598 )**: fix transposed escape functions ([#25534](facebook/react#25534)) //<Josh Story>//
- **[d1ced9fd5](facebook/react@d1ced9fd5 )**: [Float] support all links as Resources ([#25515](facebook/react#25515)) //<Josh Story>//
- **[973b90bdf](facebook/react@973b90bdf )**: [Float] support meta tags as Resources ([#25514](facebook/react#25514)) //<Josh Story>//
- **[79c582981](facebook/react@79c582981 )**: Let ReactDOM initialize in RSC ([#25503](facebook/react#25503)) //<Sebastian Markbåge>//
- **[1f7a2f577](facebook/react@1f7a2f577 )**: [Float] support title tags as Resources ([#25508](facebook/react#25508)) //<Josh Story>//
- **[c63580787](facebook/react@c63580787 )**: Support `use` in `act` testing API ([#25523](facebook/react#25523)) //<Andrew Clark>//
- **[65e32e58b](facebook/react@65e32e58b )**: Add fetch Instrumentation to Dedupe Fetches ([#25516](facebook/react#25516)) //<Sebastian Markbåge>//
- **[9336e29d9](facebook/react@9336e29d9 )**: [useEvent] Lint for presence of useEvent functions in dependency lists ([#25512](facebook/react#25512)) //<lauren>//
- **[3cc792bfb](facebook/react@3cc792bfb )**: [useEvent] Non-stable function identity ([#25473](facebook/react#25473)) //<lauren>//
- **[987292815](facebook/react@987292815 )**: Remove feature flag enableStrictEffects ([#25387](facebook/react#25387)) //<Samuel Susla>//
- **[8e2bde6f2](facebook/react@8e2bde6f2 )**: Add cache() API ([#25506](facebook/react#25506)) //<Sebastian Markbåge>//
- **[9cdf8a99e](facebook/react@9cdf8a99e )**: [Codemod] Update copyright header to Meta ([#25315](facebook/react#25315)) //<Andrew Clark>//
- **[e54015e26](facebook/react@e54015e26 )**: Refactor: fill in the flow missing type ([#25496](facebook/react#25496)) //<c0dedance>//
- **[3b1fd5767](facebook/react@3b1fd5767 )**: refactor: Flow: typing of Scheduler ([#25485](facebook/react#25485)) //<bubucuo>//
- **[14072ce64](facebook/react@14072ce64 )**: Add detach to Offscreen component ([#25265](facebook/react#25265)) //<Samuel Susla>//
- **[3bb71dfd4](facebook/react@3bb71dfd4 )**: Rename react-server-dom-webpack entry points to /client and /server ([#25504](facebook/react#25504)) //<Sebastian Markbåge>//
- **[71f2c8cf1](facebook/react@71f2c8cf1 )**: move resource acquisition to mutation phase ([#25500](facebook/react#25500)) //<Josh Story>//
- **[500bea532](facebook/react@500bea532 )**: Add option to load Fizz runtime from external file ([#25499](facebook/react#25499)) //<Andrew Clark>//
- **[4494f2a86](facebook/react@4494f2a86 )**: [Float] add support for scripts and other enhancements ([#25480](facebook/react#25480)) //<Josh Story>//
- **[9ecf84ed7](facebook/react@9ecf84ed7 )**: Bugfix: Suspending in shell during discrete update ([#25495](facebook/react#25495)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions 54f297a...ab075a2

jest_e2e[run_all_tests]

Reviewed By: kassens

Differential Revision: D40897093

fbshipit-source-id: 6a040315834dea5c0ab994ea94d91f5605b9d6b0
rickhanlonii pushed a commit that referenced this pull request Dec 3, 2022
<!--
  Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.

Before submitting a pull request, please make sure the following is
done:

1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
  2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open
`chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

In #25504,
`react-server-dom-webpack/` was deprecated in favor of
`react-server-dom-webpack/client`, but a remaining import wasn't
adjusted accordingly.

As a result, the remaining conditions within the file are no longer
firing appropriately, which I ran into while playing around with a fork
of
[server-components-demo](https://github.com/reactjs/server-components-demo).

The `index.js` file now contains a
[placeholder](https://github.com/facebook/react/blob/main/packages/react-server-dom-webpack/index.js)
and the actual logic of the client now sits in `/client`.

## How did you test this change?

I replaced `require.resolve('../')` with `require.resolve('../client')`
in the `react-server-dom-webpack` package in `node_modules` and
confirmed that the output of the build looked good again.
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
This sync includes the following changes:
- **[ab075a232](facebook/react@ab075a232 )**: Do not unmount layout effects on initial Offscreen mount ([facebook#25592](facebook/react#25592)) //<Samuel Susla>//
- **[765805bf8](facebook/react@765805bf8 )**: Fix type check for null ([facebook#25595](facebook/react#25595)) //<Sebastian Markbåge>//
- **[2ac77aab9](facebook/react@2ac77aab9 )**: Clean up vestige of useOpaqueIdentifier ([facebook#25587](facebook/react#25587)) //<Andrew Clark>//
- **[bdd3d0807](facebook/react@bdd3d0807 )**: Extract logic for detecting bad fallback to helper //<Andrew Clark>//
- **[952dfff3f](facebook/react@952dfff3f )**: Split suspended work loop logic into separate functions //<Andrew Clark>//
- **[d2c0ab10d](facebook/react@d2c0ab10d )**: In work loop, add enum of reasons for suspending //<Andrew Clark>//
- **[5450dd409](facebook/react@5450dd409 )**: Strict Mode: Reuse memoized result from first pass ([facebook#25583](facebook/react#25583)) //<Andrew Clark>//
- **[d2a0176a1](facebook/react@d2a0176a1 )**: Detect and warn if use(promise) is wrapped with try/catch block ([facebook#25543](facebook/react#25543)) //<Andrew Clark>//
- **[cf3932be5](facebook/react@cf3932be5 )**: Remove old react-fetch, react-fs and react-pg libraries ([facebook#25577](facebook/react#25577)) //<Sebastian Markbåge>//
- **[28a574ea8](facebook/react@28a574ea8 )**: Try assigning fetch to globalThis if global assignment fails ([facebook#25571](facebook/react#25571)) //<Sebastian Markbåge>//
- **[09def5990](facebook/react@09def5990 )**: [Float] handle noscript context for Resources ([facebook#25559](facebook/react#25559)) //<Josh Story>//
- **[17204056d](facebook/react@17204056d )**: [Float] fix coordination of resource identity and hydration ([facebook#25569](facebook/react#25569)) //<Josh Story>//
- **[d925a8d0b](facebook/react@d925a8d0b )**: Flight client error stack ([facebook#25560](facebook/react#25560)) //<Josh Story>//
- **[996b00b78](facebook/react@996b00b78 )**: [Tiny] Fixed incorrect import in `react-server-dom-webpack` ([facebook#25554](facebook/react#25554)) //<Leo Lamprecht>//
- **[e7c5af45c](facebook/react@e7c5af45c )**: Update cache() and use() to the canary aka next channel ([facebook#25502](facebook/react#25502)) //<Sebastian Markbåge>//
- **[fa77f52e7](facebook/react@fa77f52e7 )**: Unify promise switch statements //<Andrew Clark>//
- **[7572e4931](facebook/react@7572e4931 )**: Track thenable state in work loop //<Andrew Clark>//
- **[7fc3eefd8](facebook/react@7fc3eefd8 )**: Revert yieldy behavior for non-use Suspense (in Flight, too) //<Andrew Clark>//
- **[61f9b5e97](facebook/react@61f9b5e97 )**: [Float] support <base> as Resource ([facebook#25546](facebook/react#25546)) //<Josh Story>//
- **[1d3fc9c9c](facebook/react@1d3fc9c9c )**: Bug fix when resolving cache ([facebook#25545](facebook/react#25545)) //<Sebastian Markbåge>//
- **[cce18e350](facebook/react@cce18e350 )**: [Flight] Use AsyncLocalStorage to extend the scope of the cache to micro tasks ([facebook#25542](facebook/react#25542)) //<Sebastian Markbåge>//
- **[caa84c8da](facebook/react@caa84c8da )**: Revert fetch instrumentation to only RSC ([facebook#25540](facebook/react#25540)) //<Sebastian Markbåge>//
- **[0c11baa6a](facebook/react@0c11baa6a )**: add warnings for non-resources rendered outside body or head ([facebook#25532](facebook/react#25532)) //<Josh Story>//
- **[9236abdb5](facebook/react@9236abdb5 )**: when float is enabled only push title and script as a single unit ([facebook#25536](facebook/react#25536)) //<Josh Story>//
- **[dd5c20825](facebook/react@dd5c20825 )**: Revert yieldy behavior for non-use Suspense ([facebook#25537](facebook/react#25537)) //<Andrew Clark>//
- **[934177598](facebook/react@934177598 )**: fix transposed escape functions ([facebook#25534](facebook/react#25534)) //<Josh Story>//
- **[d1ced9fd5](facebook/react@d1ced9fd5 )**: [Float] support all links as Resources ([facebook#25515](facebook/react#25515)) //<Josh Story>//
- **[973b90bdf](facebook/react@973b90bdf )**: [Float] support meta tags as Resources ([facebook#25514](facebook/react#25514)) //<Josh Story>//
- **[79c582981](facebook/react@79c582981 )**: Let ReactDOM initialize in RSC ([facebook#25503](facebook/react#25503)) //<Sebastian Markbåge>//
- **[1f7a2f577](facebook/react@1f7a2f577 )**: [Float] support title tags as Resources ([facebook#25508](facebook/react#25508)) //<Josh Story>//
- **[c63580787](facebook/react@c63580787 )**: Support `use` in `act` testing API ([facebook#25523](facebook/react#25523)) //<Andrew Clark>//
- **[65e32e58b](facebook/react@65e32e58b )**: Add fetch Instrumentation to Dedupe Fetches ([facebook#25516](facebook/react#25516)) //<Sebastian Markbåge>//
- **[9336e29d9](facebook/react@9336e29d9 )**: [useEvent] Lint for presence of useEvent functions in dependency lists ([facebook#25512](facebook/react#25512)) //<lauren>//
- **[3cc792bfb](facebook/react@3cc792bfb )**: [useEvent] Non-stable function identity ([facebook#25473](facebook/react#25473)) //<lauren>//
- **[987292815](facebook/react@987292815 )**: Remove feature flag enableStrictEffects ([facebook#25387](facebook/react#25387)) //<Samuel Susla>//
- **[8e2bde6f2](facebook/react@8e2bde6f2 )**: Add cache() API ([facebook#25506](facebook/react#25506)) //<Sebastian Markbåge>//
- **[9cdf8a99e](facebook/react@9cdf8a99e )**: [Codemod] Update copyright header to Meta ([facebook#25315](facebook/react#25315)) //<Andrew Clark>//
- **[e54015e26](facebook/react@e54015e26 )**: Refactor: fill in the flow missing type ([facebook#25496](facebook/react#25496)) //<c0dedance>//
- **[3b1fd5767](facebook/react@3b1fd5767 )**: refactor: Flow: typing of Scheduler ([facebook#25485](facebook/react#25485)) //<bubucuo>//
- **[14072ce64](facebook/react@14072ce64 )**: Add detach to Offscreen component ([facebook#25265](facebook/react#25265)) //<Samuel Susla>//
- **[3bb71dfd4](facebook/react@3bb71dfd4 )**: Rename react-server-dom-webpack entry points to /client and /server ([facebook#25504](facebook/react#25504)) //<Sebastian Markbåge>//
- **[71f2c8cf1](facebook/react@71f2c8cf1 )**: move resource acquisition to mutation phase ([facebook#25500](facebook/react#25500)) //<Josh Story>//
- **[500bea532](facebook/react@500bea532 )**: Add option to load Fizz runtime from external file ([facebook#25499](facebook/react#25499)) //<Andrew Clark>//
- **[4494f2a86](facebook/react@4494f2a86 )**: [Float] add support for scripts and other enhancements ([facebook#25480](facebook/react#25480)) //<Josh Story>//
- **[9ecf84ed7](facebook/react@9ecf84ed7 )**: Bugfix: Suspending in shell during discrete update ([facebook#25495](facebook/react#25495)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions 54f297a...ab075a2

jest_e2e[run_all_tests]

Reviewed By: kassens

Differential Revision: D40897093

fbshipit-source-id: 6a040315834dea5c0ab994ea94d91f5605b9d6b0
jerrydev0927 added a commit to jerrydev0927/react that referenced this pull request Jan 5, 2024
<!--
  Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.

Before submitting a pull request, please make sure the following is
done:

1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
  2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open
`chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

In facebook/react#25504,
`react-server-dom-webpack/` was deprecated in favor of
`react-server-dom-webpack/client`, but a remaining import wasn't
adjusted accordingly.

As a result, the remaining conditions within the file are no longer
firing appropriately, which I ran into while playing around with a fork
of
[server-components-demo](https://github.com/reactjs/server-components-demo).

The `index.js` file now contains a
[placeholder](https://github.com/facebook/react/blob/main/packages/react-server-dom-webpack/index.js)
and the actual logic of the client now sits in `/client`.

## How did you test this change?

I replaced `require.resolve('../')` with `require.resolve('../client')`
in the `react-server-dom-webpack` package in `node_modules` and
confirmed that the output of the build looked good again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants