Skip to content

Commit 627e1be

Browse files
committed
Remove renderToStaticNodeStream (#28873)
Stacked on #28872 renderToStaticNodeStream was not originally deprecated when renderToNodeStream was deprecated because it did not yet have a clear analog in the modern streaming implementation for SSR. In React 19 we have already removed renderToNodeStream. This change removes renderToStaticNodeStream as well because you can replicate it's semantics using renderToPipeableStream with onAllReady or renderToReadableStream with await stream.allready. DiffTrain build for [33a3244](33a3244)
1 parent 11b41e0 commit 627e1be

File tree

6 files changed

+5
-28
lines changed

6 files changed

+5
-28
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d329ff9d9e87f3f909f98cf63701ef3795cf2584
1+
33a32441e991e126e5e874f831bd3afc237a3ecf

compiled/facebook-www/ReactDOMServer-dev.classic.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
2121

22-
var ReactVersion = "19.0.0-www-classic-477ccba7";
22+
var ReactVersion = "19.0.0-www-classic-09d610a8";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");
@@ -14736,15 +14736,7 @@ if (__DEV__) {
1473614736
);
1473714737
}
1473814738

14739-
function renderToStaticNodeStream() {
14740-
throw new Error(
14741-
"ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available " +
14742-
"in the browser. Use ReactDOMServer.renderToStaticMarkup() instead."
14743-
);
14744-
}
14745-
1474614739
exports.renderToStaticMarkup = renderToStaticMarkup;
14747-
exports.renderToStaticNodeStream = renderToStaticNodeStream;
1474814740
exports.renderToString = renderToString;
1474914741
exports.version = ReactVersion;
1475014742
})();

compiled/facebook-www/ReactDOMServer-dev.modern.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
2121

22-
var ReactVersion = "19.0.0-www-modern-d1bfd9cd";
22+
var ReactVersion = "19.0.0-www-modern-a9bcdef2";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");
@@ -14641,15 +14641,7 @@ if (__DEV__) {
1464114641
);
1464214642
}
1464314643

14644-
function renderToStaticNodeStream() {
14645-
throw new Error(
14646-
"ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available " +
14647-
"in the browser. Use ReactDOMServer.renderToStaticMarkup() instead."
14648-
);
14649-
}
14650-
1465114644
exports.renderToStaticMarkup = renderToStaticMarkup;
14652-
exports.renderToStaticNodeStream = renderToStaticNodeStream;
1465314645
exports.renderToString = renderToString;
1465414646
exports.version = ReactVersion;
1465514647
})();

compiled/facebook-www/ReactDOMServer-prod.classic.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5676,9 +5676,6 @@ exports.renderToStaticMarkup = function (children, options) {
56765676
'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
56775677
);
56785678
};
5679-
exports.renderToStaticNodeStream = function () {
5680-
throw Error(formatProdErrorMessage(208));
5681-
};
56825679
exports.renderToString = function (children, options) {
56835680
return renderToStringImpl(
56845681
children,
@@ -5687,4 +5684,4 @@ exports.renderToString = function (children, options) {
56875684
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
56885685
);
56895686
};
5690-
exports.version = "19.0.0-www-classic-77d529ff";
5687+
exports.version = "19.0.0-www-classic-c3826905";

compiled/facebook-www/ReactDOMServer-prod.modern.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5654,9 +5654,6 @@ exports.renderToStaticMarkup = function (children, options) {
56545654
'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
56555655
);
56565656
};
5657-
exports.renderToStaticNodeStream = function () {
5658-
throw Error(formatProdErrorMessage(208));
5659-
};
56605657
exports.renderToString = function (children, options) {
56615658
return renderToStringImpl(
56625659
children,
@@ -5665,4 +5662,4 @@ exports.renderToString = function (children, options) {
56655662
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
56665663
);
56675664
};
5668-
exports.version = "19.0.0-www-modern-322b4431";
5665+
exports.version = "19.0.0-www-modern-f02d17e5";

compiled/facebook-www/__test_utils__/ReactAllWarnings.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)