Skip to content

Commit a0d5dab

Browse files
committed
[Fizz][Legacy] Remove renderToNodeStream (#28607)
Stacked on #28606 renderToNodeStream has been deprecated since React 18 with a warning indicating users should upgrade to renderToPipeableStream. This change removes renderToNodeStream DiffTrain build for [8436bcc](8436bcc)
1 parent 28afafe commit a0d5dab

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-
2b036d3f1f016fbe8b121d223d96f09e785b97e1
1+
8436bcca6287077a5409b3c9180f8af0361b16a5

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-86d66ddc";
22+
var ReactVersion = "19.0.0-www-classic-bde4686d";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");
@@ -14620,21 +14620,13 @@ if (__DEV__) {
1462014620
);
1462114621
}
1462214622

14623-
function renderToNodeStream() {
14624-
throw new Error(
14625-
"ReactDOMServer.renderToNodeStream(): The streaming API is not available " +
14626-
"in the browser. Use ReactDOMServer.renderToString() instead."
14627-
);
14628-
}
14629-
1463014623
function renderToStaticNodeStream() {
1463114624
throw new Error(
1463214625
"ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available " +
1463314626
"in the browser. Use ReactDOMServer.renderToStaticMarkup() instead."
1463414627
);
1463514628
}
1463614629

14637-
exports.renderToNodeStream = renderToNodeStream;
1463814630
exports.renderToStaticMarkup = renderToStaticMarkup;
1463914631
exports.renderToStaticNodeStream = renderToStaticNodeStream;
1464014632
exports.renderToString = renderToString;

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-194c6b4a";
22+
var ReactVersion = "19.0.0-www-modern-b335796c";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");
@@ -14530,21 +14530,13 @@ if (__DEV__) {
1453014530
);
1453114531
}
1453214532

14533-
function renderToNodeStream() {
14534-
throw new Error(
14535-
"ReactDOMServer.renderToNodeStream(): The streaming API is not available " +
14536-
"in the browser. Use ReactDOMServer.renderToString() instead."
14537-
);
14538-
}
14539-
1454014533
function renderToStaticNodeStream() {
1454114534
throw new Error(
1454214535
"ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available " +
1454314536
"in the browser. Use ReactDOMServer.renderToStaticMarkup() instead."
1454414537
);
1454514538
}
1454614539

14547-
exports.renderToNodeStream = renderToNodeStream;
1454814540
exports.renderToStaticMarkup = renderToStaticMarkup;
1454914541
exports.renderToStaticNodeStream = renderToStaticNodeStream;
1455014542
exports.renderToString = renderToString;

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5714,9 +5714,6 @@ function renderToStringImpl(
57145714
if (!readyToStream) throw Error(formatProdErrorMessage(426));
57155715
return result;
57165716
}
5717-
exports.renderToNodeStream = function () {
5718-
throw Error(formatProdErrorMessage(207));
5719-
};
57205717
exports.renderToStaticMarkup = function (children, options) {
57215718
return renderToStringImpl(
57225719
children,
@@ -5736,4 +5733,4 @@ exports.renderToString = function (children, options) {
57365733
'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'
57375734
);
57385735
};
5739-
exports.version = "19.0.0-www-classic-9752b79b";
5736+
exports.version = "19.0.0-www-classic-177f53ee";

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5655,9 +5655,6 @@ function renderToStringImpl(
56555655
if (!readyToStream) throw Error(formatProdErrorMessage(426));
56565656
return result;
56575657
}
5658-
exports.renderToNodeStream = function () {
5659-
throw Error(formatProdErrorMessage(207));
5660-
};
56615658
exports.renderToStaticMarkup = function (children, options) {
56625659
return renderToStringImpl(
56635660
children,
@@ -5677,4 +5674,4 @@ exports.renderToString = function (children, options) {
56775674
'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'
56785675
);
56795676
};
5680-
exports.version = "19.0.0-www-modern-2e2b8914";
5677+
exports.version = "19.0.0-www-modern-285dee2c";

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)