Unverified Commit 73e6565c authored by Vercel Release Bot's avatar Vercel Release Bot Committed by GitHub

Upgrade React from `c44e4a25-20250409` to `1d6c8168-20250411` (#78067)

parent 6f8dd7c4
...@@ -228,16 +228,16 @@ ...@@ -228,16 +228,16 @@
"pretty-ms": "7.0.0", "pretty-ms": "7.0.0",
"random-seed": "0.3.0", "random-seed": "0.3.0",
"react": "19.0.0", "react": "19.0.0",
"react-builtin": "npm:react@19.2.0-canary-c44e4a25-20250409", "react-builtin": "npm:react@19.2.0-canary-1d6c8168-20250411",
"react-dom": "19.0.0", "react-dom": "19.0.0",
"react-dom-builtin": "npm:react-dom@19.2.0-canary-c44e4a25-20250409", "react-dom-builtin": "npm:react-dom@19.2.0-canary-1d6c8168-20250411",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-c44e4a25-20250409", "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-1d6c8168-20250411",
"react-experimental-builtin": "npm:react@0.0.0-experimental-c44e4a25-20250409", "react-experimental-builtin": "npm:react@0.0.0-experimental-1d6c8168-20250411",
"react-is-builtin": "npm:react-is@19.2.0-canary-c44e4a25-20250409", "react-is-builtin": "npm:react-is@19.2.0-canary-1d6c8168-20250411",
"react-server-dom-turbopack": "19.2.0-canary-c44e4a25-20250409", "react-server-dom-turbopack": "19.2.0-canary-1d6c8168-20250411",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-c44e4a25-20250409", "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-1d6c8168-20250411",
"react-server-dom-webpack": "19.2.0-canary-c44e4a25-20250409", "react-server-dom-webpack": "19.2.0-canary-1d6c8168-20250411",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-c44e4a25-20250409", "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-1d6c8168-20250411",
"react-ssr-prepass": "1.0.8", "react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3", "react-virtualized": "9.22.3",
"relay-compiler": "13.0.2", "relay-compiler": "13.0.2",
...@@ -247,8 +247,8 @@ ...@@ -247,8 +247,8 @@
"resolve-from": "5.0.0", "resolve-from": "5.0.0",
"sass": "1.54.0", "sass": "1.54.0",
"satori": "0.12.2", "satori": "0.12.2",
"scheduler-builtin": "npm:scheduler@0.27.0-canary-c44e4a25-20250409", "scheduler-builtin": "npm:scheduler@0.27.0-canary-1d6c8168-20250411",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-c44e4a25-20250409", "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-1d6c8168-20250411",
"seedrandom": "3.0.5", "seedrandom": "3.0.5",
"semver": "7.3.7", "semver": "7.3.7",
"shell-quote": "1.7.3", "shell-quote": "1.7.3",
...@@ -290,10 +290,10 @@ ...@@ -290,10 +290,10 @@
"@types/react": "19.0.8", "@types/react": "19.0.8",
"@types/react-dom": "19.0.3", "@types/react-dom": "19.0.3",
"jest-snapshot": "30.0.0-alpha.6", "jest-snapshot": "30.0.0-alpha.6",
"react": "19.2.0-canary-c44e4a25-20250409", "react": "19.2.0-canary-1d6c8168-20250411",
"react-dom": "19.2.0-canary-c44e4a25-20250409", "react-dom": "19.2.0-canary-1d6c8168-20250411",
"react-is": "19.2.0-canary-c44e4a25-20250409", "react-is": "19.2.0-canary-1d6c8168-20250411",
"scheduler": "0.27.0-canary-c44e4a25-20250409" "scheduler": "0.27.0-canary-1d6c8168-20250411"
}, },
"patchedDependencies": { "patchedDependencies": {
"webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch", "webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch",
......
...@@ -779,12 +779,7 @@ ...@@ -779,12 +779,7 @@
}; };
} }
function createPreambleState() { function createPreambleState() {
return { return { htmlChunks: null, headChunks: null, bodyChunks: null };
htmlChunks: null,
headChunks: null,
bodyChunks: null,
contribution: NoContribution
};
} }
function createFormatContext(insertionMode, selectedValue, tagScope) { function createFormatContext(insertionMode, selectedValue, tagScope) {
return { return {
...@@ -2752,6 +2747,7 @@ ...@@ -2752,6 +2747,7 @@
var preamble = preambleState || renderState.preamble; var preamble = preambleState || renderState.preamble;
if (preamble.headChunks) if (preamble.headChunks)
throw Error("The `<head>` tag may only be rendered once."); throw Error("The `<head>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
preamble.headChunks = []; preamble.headChunks = [];
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
preamble.headChunks, preamble.headChunks,
...@@ -2770,6 +2766,7 @@ ...@@ -2770,6 +2766,7 @@
var preamble$jscomp$0 = preambleState || renderState.preamble; var preamble$jscomp$0 = preambleState || renderState.preamble;
if (preamble$jscomp$0.bodyChunks) if (preamble$jscomp$0.bodyChunks)
throw Error("The `<body>` tag may only be rendered once."); throw Error("The `<body>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
preamble$jscomp$0.bodyChunks = []; preamble$jscomp$0.bodyChunks = [];
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
preamble$jscomp$0.bodyChunks, preamble$jscomp$0.bodyChunks,
...@@ -2788,6 +2785,7 @@ ...@@ -2788,6 +2785,7 @@
var preamble$jscomp$1 = preambleState || renderState.preamble; var preamble$jscomp$1 = preambleState || renderState.preamble;
if (preamble$jscomp$1.htmlChunks) if (preamble$jscomp$1.htmlChunks)
throw Error("The `<html>` tag may only be rendered once."); throw Error("The `<html>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
preamble$jscomp$1.htmlChunks = [doctypeChunk]; preamble$jscomp$1.htmlChunks = [doctypeChunk];
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
preamble$jscomp$1.htmlChunks, preamble$jscomp$1.htmlChunks,
...@@ -2871,16 +2869,13 @@ ...@@ -2871,16 +2869,13 @@
renderState = renderState.preamble; renderState = renderState.preamble;
null === renderState.htmlChunks && null === renderState.htmlChunks &&
preambleState.htmlChunks && preambleState.htmlChunks &&
((renderState.htmlChunks = preambleState.htmlChunks), (renderState.htmlChunks = preambleState.htmlChunks);
(preambleState.contribution |= 1));
null === renderState.headChunks && null === renderState.headChunks &&
preambleState.headChunks && preambleState.headChunks &&
((renderState.headChunks = preambleState.headChunks), (renderState.headChunks = preambleState.headChunks);
(preambleState.contribution |= 4));
null === renderState.bodyChunks && null === renderState.bodyChunks &&
preambleState.bodyChunks && preambleState.bodyChunks &&
((renderState.bodyChunks = preambleState.bodyChunks), (renderState.bodyChunks = preambleState.bodyChunks);
(preambleState.contribution |= 2));
} }
function writeBootstrap(destination, renderState) { function writeBootstrap(destination, renderState) {
renderState = renderState.bootstrapChunks; renderState = renderState.bootstrapChunks;
...@@ -2901,13 +2896,6 @@ ...@@ -2901,13 +2896,6 @@
destination.push(renderState); destination.push(renderState);
return destination.push(startPendingSuspenseBoundary2); return destination.push(startPendingSuspenseBoundary2);
} }
function writePreambleContribution(destination, preambleState) {
preambleState = preambleState.contribution;
preambleState !== NoContribution &&
(destination.push(boundaryPreambleContributionChunkStart),
destination.push("" + preambleState),
destination.push(boundaryPreambleContributionChunkEnd));
}
function writeStartSegment(destination, renderState, formatContext, id) { function writeStartSegment(destination, renderState, formatContext, id) {
switch (formatContext.insertionMode) { switch (formatContext.insertionMode) {
case ROOT_HTML_MODE: case ROOT_HTML_MODE:
...@@ -5517,20 +5505,8 @@ ...@@ -5517,20 +5505,8 @@
renderNode(request, task, props.children, -1); renderNode(request, task, props.children, -1);
task.keyPath = _prevKeyPath3; task.keyPath = _prevKeyPath3;
} }
if (!request.renderState.generateStaticMarkup) { request.renderState.generateStaticMarkup ||
var target$jscomp$0 = segment$jscomp$0.chunks, segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
preambleState = task.blockedPreamble;
if (preambleState) {
var contribution = preambleState.contribution;
contribution !== NoContribution &&
target$jscomp$0.push(
boundaryPreambleContributionChunkStart,
"" + contribution,
boundaryPreambleContributionChunkEnd
);
}
target$jscomp$0.push("\x3c!--/&--\x3e");
}
segment$jscomp$0.lastPushedText = !1; segment$jscomp$0.lastPushedText = !1;
} }
return; return;
...@@ -7518,8 +7494,8 @@ ...@@ -7518,8 +7494,8 @@
if (!request.renderState.generateStaticMarkup) { if (!request.renderState.generateStaticMarkup) {
var errorDigest = boundary.errorDigest, var errorDigest = boundary.errorDigest,
errorMessage = boundary.errorMessage, errorMessage = boundary.errorMessage,
errorStack = boundary.errorStack, errorStack = boundary.errorStack;
errorComponentStack = boundary.errorComponentStack; boundary = boundary.errorComponentStack;
destination.push(startClientRenderedSuspenseBoundary); destination.push(startClientRenderedSuspenseBoundary);
destination.push(clientRenderedSuspenseBoundaryError1); destination.push(clientRenderedSuspenseBoundaryError1);
errorDigest && errorDigest &&
...@@ -7543,22 +7519,20 @@ ...@@ -7543,22 +7519,20 @@
destination.push( destination.push(
clientRenderedSuspenseBoundaryErrorAttrInterstitial clientRenderedSuspenseBoundaryErrorAttrInterstitial
)); ));
errorComponentStack && boundary &&
(destination.push(clientRenderedSuspenseBoundaryError1D), (destination.push(clientRenderedSuspenseBoundaryError1D),
(errorComponentStack = escapeTextForBrowser(errorComponentStack)), (errorStack = escapeTextForBrowser(boundary)),
destination.push(errorComponentStack), destination.push(errorStack),
destination.push( destination.push(
clientRenderedSuspenseBoundaryErrorAttrInterstitial clientRenderedSuspenseBoundaryErrorAttrInterstitial
)); ));
destination.push(clientRenderedSuspenseBoundaryError2); destination.push(clientRenderedSuspenseBoundaryError2);
} }
flushSubtree(request, destination, segment, hoistableState); flushSubtree(request, destination, segment, hoistableState);
request.renderState.generateStaticMarkup request = request.renderState.generateStaticMarkup
? (destination = !0) ? !0
: ((request = boundary.fallbackPreamble) && : destination.push(endSuspenseBoundary);
writePreambleContribution(destination, request), return request;
(destination = destination.push(endSuspenseBoundary)));
return destination;
} }
if (boundary.status !== COMPLETED) if (boundary.status !== COMPLETED)
return ( return (
...@@ -7572,9 +7546,12 @@ ...@@ -7572,9 +7546,12 @@
boundary.rootSegmentID boundary.rootSegmentID
), ),
hoistableState && hoistableState &&
((boundary = boundary.fallbackState), ((errorStack = boundary.fallbackState),
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState), errorStack.styles.forEach(
boundary.stylesheets.forEach( hoistStyleQueueDependency,
hoistableState
),
errorStack.stylesheets.forEach(
hoistStylesheetDependency, hoistStylesheetDependency,
hoistableState hoistableState
)), )),
...@@ -7605,12 +7582,10 @@ ...@@ -7605,12 +7582,10 @@
"A previously unvisited boundary must have exactly one root segment. This is a bug in React." "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
); );
flushSegment(request, destination, segment[0], hoistableState); flushSegment(request, destination, segment[0], hoistableState);
request.renderState.generateStaticMarkup request = request.renderState.generateStaticMarkup
? (destination = !0) ? !0
: ((request = boundary.contentPreamble) && : destination.push(endSuspenseBoundary);
writePreambleContribution(destination, request), return request;
(destination = destination.push(endSuspenseBoundary)));
return destination;
} }
function flushSegmentContainer( function flushSegmentContainer(
request, request,
...@@ -9297,8 +9272,7 @@ ...@@ -9297,8 +9272,7 @@
Object.freeze(PRELOAD_NO_CREDS); Object.freeze(PRELOAD_NO_CREDS);
var scriptRegex = /(<\/|<)(s)(cript)/gi; var scriptRegex = /(<\/|<)(s)(cript)/gi;
var didWarnForNewBooleanPropsWithEmptyValue = {}; var didWarnForNewBooleanPropsWithEmptyValue = {};
var NoContribution = 0, var ROOT_HTML_MODE = 0,
ROOT_HTML_MODE = 0,
HTML_HTML_MODE = 1, HTML_HTML_MODE = 1,
HTML_MODE = 2, HTML_MODE = 2,
HTML_HEAD_MODE = 3, HTML_HEAD_MODE = 3,
...@@ -9354,8 +9328,6 @@ ...@@ -9354,8 +9328,6 @@
clientRenderedSuspenseBoundaryError1C = ' data-stck="', clientRenderedSuspenseBoundaryError1C = ' data-stck="',
clientRenderedSuspenseBoundaryError1D = ' data-cstck="', clientRenderedSuspenseBoundaryError1D = ' data-cstck="',
clientRenderedSuspenseBoundaryError2 = "></template>", clientRenderedSuspenseBoundaryError2 = "></template>",
boundaryPreambleContributionChunkStart = "\x3c!--",
boundaryPreambleContributionChunkEnd = "--\x3e",
startSegmentHTML = '<div hidden id="', startSegmentHTML = '<div hidden id="',
startSegmentHTML2 = '">', startSegmentHTML2 = '">',
endSegmentHTML = "</div>", endSegmentHTML = "</div>",
...@@ -9702,5 +9674,5 @@ ...@@ -9702,5 +9674,5 @@
'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' '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'
); );
}; };
exports.version = "19.2.0-experimental-c44e4a25-20250409"; exports.version = "19.2.0-experimental-1d6c8168-20250411";
})(); })();
...@@ -779,12 +779,7 @@ ...@@ -779,12 +779,7 @@
}; };
} }
function createPreambleState() { function createPreambleState() {
return { return { htmlChunks: null, headChunks: null, bodyChunks: null };
htmlChunks: null,
headChunks: null,
bodyChunks: null,
contribution: NoContribution
};
} }
function createFormatContext(insertionMode, selectedValue, tagScope) { function createFormatContext(insertionMode, selectedValue, tagScope) {
return { return {
...@@ -2752,6 +2747,7 @@ ...@@ -2752,6 +2747,7 @@
var preamble = preambleState || renderState.preamble; var preamble = preambleState || renderState.preamble;
if (preamble.headChunks) if (preamble.headChunks)
throw Error("The `<head>` tag may only be rendered once."); throw Error("The `<head>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
preamble.headChunks = []; preamble.headChunks = [];
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
preamble.headChunks, preamble.headChunks,
...@@ -2770,6 +2766,7 @@ ...@@ -2770,6 +2766,7 @@
var preamble$jscomp$0 = preambleState || renderState.preamble; var preamble$jscomp$0 = preambleState || renderState.preamble;
if (preamble$jscomp$0.bodyChunks) if (preamble$jscomp$0.bodyChunks)
throw Error("The `<body>` tag may only be rendered once."); throw Error("The `<body>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
preamble$jscomp$0.bodyChunks = []; preamble$jscomp$0.bodyChunks = [];
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
preamble$jscomp$0.bodyChunks, preamble$jscomp$0.bodyChunks,
...@@ -2788,6 +2785,7 @@ ...@@ -2788,6 +2785,7 @@
var preamble$jscomp$1 = preambleState || renderState.preamble; var preamble$jscomp$1 = preambleState || renderState.preamble;
if (preamble$jscomp$1.htmlChunks) if (preamble$jscomp$1.htmlChunks)
throw Error("The `<html>` tag may only be rendered once."); throw Error("The `<html>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
preamble$jscomp$1.htmlChunks = [doctypeChunk]; preamble$jscomp$1.htmlChunks = [doctypeChunk];
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
preamble$jscomp$1.htmlChunks, preamble$jscomp$1.htmlChunks,
...@@ -2871,16 +2869,13 @@ ...@@ -2871,16 +2869,13 @@
renderState = renderState.preamble; renderState = renderState.preamble;
null === renderState.htmlChunks && null === renderState.htmlChunks &&
preambleState.htmlChunks && preambleState.htmlChunks &&
((renderState.htmlChunks = preambleState.htmlChunks), (renderState.htmlChunks = preambleState.htmlChunks);
(preambleState.contribution |= 1));
null === renderState.headChunks && null === renderState.headChunks &&
preambleState.headChunks && preambleState.headChunks &&
((renderState.headChunks = preambleState.headChunks), (renderState.headChunks = preambleState.headChunks);
(preambleState.contribution |= 4));
null === renderState.bodyChunks && null === renderState.bodyChunks &&
preambleState.bodyChunks && preambleState.bodyChunks &&
((renderState.bodyChunks = preambleState.bodyChunks), (renderState.bodyChunks = preambleState.bodyChunks);
(preambleState.contribution |= 2));
} }
function writeBootstrap(destination, renderState) { function writeBootstrap(destination, renderState) {
renderState = renderState.bootstrapChunks; renderState = renderState.bootstrapChunks;
...@@ -2901,13 +2896,6 @@ ...@@ -2901,13 +2896,6 @@
destination.push(renderState); destination.push(renderState);
return destination.push(startPendingSuspenseBoundary2); return destination.push(startPendingSuspenseBoundary2);
} }
function writePreambleContribution(destination, preambleState) {
preambleState = preambleState.contribution;
preambleState !== NoContribution &&
(destination.push(boundaryPreambleContributionChunkStart),
destination.push("" + preambleState),
destination.push(boundaryPreambleContributionChunkEnd));
}
function writeStartSegment(destination, renderState, formatContext, id) { function writeStartSegment(destination, renderState, formatContext, id) {
switch (formatContext.insertionMode) { switch (formatContext.insertionMode) {
case ROOT_HTML_MODE: case ROOT_HTML_MODE:
...@@ -5517,20 +5505,8 @@ ...@@ -5517,20 +5505,8 @@
renderNode(request, task, props.children, -1); renderNode(request, task, props.children, -1);
task.keyPath = _prevKeyPath3; task.keyPath = _prevKeyPath3;
} }
if (!request.renderState.generateStaticMarkup) { request.renderState.generateStaticMarkup ||
var target$jscomp$0 = segment$jscomp$0.chunks, segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
preambleState = task.blockedPreamble;
if (preambleState) {
var contribution = preambleState.contribution;
contribution !== NoContribution &&
target$jscomp$0.push(
boundaryPreambleContributionChunkStart,
"" + contribution,
boundaryPreambleContributionChunkEnd
);
}
target$jscomp$0.push("\x3c!--/&--\x3e");
}
segment$jscomp$0.lastPushedText = !1; segment$jscomp$0.lastPushedText = !1;
} }
return; return;
...@@ -7518,8 +7494,8 @@ ...@@ -7518,8 +7494,8 @@
if (!request.renderState.generateStaticMarkup) { if (!request.renderState.generateStaticMarkup) {
var errorDigest = boundary.errorDigest, var errorDigest = boundary.errorDigest,
errorMessage = boundary.errorMessage, errorMessage = boundary.errorMessage,
errorStack = boundary.errorStack, errorStack = boundary.errorStack;
errorComponentStack = boundary.errorComponentStack; boundary = boundary.errorComponentStack;
destination.push(startClientRenderedSuspenseBoundary); destination.push(startClientRenderedSuspenseBoundary);
destination.push(clientRenderedSuspenseBoundaryError1); destination.push(clientRenderedSuspenseBoundaryError1);
errorDigest && errorDigest &&
...@@ -7543,22 +7519,20 @@ ...@@ -7543,22 +7519,20 @@
destination.push( destination.push(
clientRenderedSuspenseBoundaryErrorAttrInterstitial clientRenderedSuspenseBoundaryErrorAttrInterstitial
)); ));
errorComponentStack && boundary &&
(destination.push(clientRenderedSuspenseBoundaryError1D), (destination.push(clientRenderedSuspenseBoundaryError1D),
(errorComponentStack = escapeTextForBrowser(errorComponentStack)), (errorStack = escapeTextForBrowser(boundary)),
destination.push(errorComponentStack), destination.push(errorStack),
destination.push( destination.push(
clientRenderedSuspenseBoundaryErrorAttrInterstitial clientRenderedSuspenseBoundaryErrorAttrInterstitial
)); ));
destination.push(clientRenderedSuspenseBoundaryError2); destination.push(clientRenderedSuspenseBoundaryError2);
} }
flushSubtree(request, destination, segment, hoistableState); flushSubtree(request, destination, segment, hoistableState);
request.renderState.generateStaticMarkup request = request.renderState.generateStaticMarkup
? (destination = !0) ? !0
: ((request = boundary.fallbackPreamble) && : destination.push(endSuspenseBoundary);
writePreambleContribution(destination, request), return request;
(destination = destination.push(endSuspenseBoundary)));
return destination;
} }
if (boundary.status !== COMPLETED) if (boundary.status !== COMPLETED)
return ( return (
...@@ -7572,9 +7546,12 @@ ...@@ -7572,9 +7546,12 @@
boundary.rootSegmentID boundary.rootSegmentID
), ),
hoistableState && hoistableState &&
((boundary = boundary.fallbackState), ((errorStack = boundary.fallbackState),
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState), errorStack.styles.forEach(
boundary.stylesheets.forEach( hoistStyleQueueDependency,
hoistableState
),
errorStack.stylesheets.forEach(
hoistStylesheetDependency, hoistStylesheetDependency,
hoistableState hoistableState
)), )),
...@@ -7605,12 +7582,10 @@ ...@@ -7605,12 +7582,10 @@
"A previously unvisited boundary must have exactly one root segment. This is a bug in React." "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
); );
flushSegment(request, destination, segment[0], hoistableState); flushSegment(request, destination, segment[0], hoistableState);
request.renderState.generateStaticMarkup request = request.renderState.generateStaticMarkup
? (destination = !0) ? !0
: ((request = boundary.contentPreamble) && : destination.push(endSuspenseBoundary);
writePreambleContribution(destination, request), return request;
(destination = destination.push(endSuspenseBoundary)));
return destination;
} }
function flushSegmentContainer( function flushSegmentContainer(
request, request,
...@@ -9297,8 +9272,7 @@ ...@@ -9297,8 +9272,7 @@
Object.freeze(PRELOAD_NO_CREDS); Object.freeze(PRELOAD_NO_CREDS);
var scriptRegex = /(<\/|<)(s)(cript)/gi; var scriptRegex = /(<\/|<)(s)(cript)/gi;
var didWarnForNewBooleanPropsWithEmptyValue = {}; var didWarnForNewBooleanPropsWithEmptyValue = {};
var NoContribution = 0, var ROOT_HTML_MODE = 0,
ROOT_HTML_MODE = 0,
HTML_HTML_MODE = 1, HTML_HTML_MODE = 1,
HTML_MODE = 2, HTML_MODE = 2,
HTML_HEAD_MODE = 3, HTML_HEAD_MODE = 3,
...@@ -9354,8 +9328,6 @@ ...@@ -9354,8 +9328,6 @@
clientRenderedSuspenseBoundaryError1C = ' data-stck="', clientRenderedSuspenseBoundaryError1C = ' data-stck="',
clientRenderedSuspenseBoundaryError1D = ' data-cstck="', clientRenderedSuspenseBoundaryError1D = ' data-cstck="',
clientRenderedSuspenseBoundaryError2 = "></template>", clientRenderedSuspenseBoundaryError2 = "></template>",
boundaryPreambleContributionChunkStart = "\x3c!--",
boundaryPreambleContributionChunkEnd = "--\x3e",
startSegmentHTML = '<div hidden id="', startSegmentHTML = '<div hidden id="',
startSegmentHTML2 = '">', startSegmentHTML2 = '">',
endSegmentHTML = "</div>", endSegmentHTML = "</div>",
...@@ -9702,5 +9674,5 @@ ...@@ -9702,5 +9674,5 @@
'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 "renderToPipeableStream" which supports Suspense on the server' '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 "renderToPipeableStream" which supports Suspense on the server'
); );
}; };
exports.version = "19.2.0-experimental-c44e4a25-20250409"; exports.version = "19.2.0-experimental-1d6c8168-20250411";
})(); })();
...@@ -463,12 +463,7 @@ function createResumableState( ...@@ -463,12 +463,7 @@ function createResumableState(
}; };
} }
function createPreambleState() { function createPreambleState() {
return { return { htmlChunks: null, headChunks: null, bodyChunks: null };
htmlChunks: null,
headChunks: null,
bodyChunks: null,
contribution: 0
};
} }
function createFormatContext(insertionMode, selectedValue, tagScope) { function createFormatContext(insertionMode, selectedValue, tagScope) {
return { return {
...@@ -1961,6 +1956,7 @@ function pushStartInstance( ...@@ -1961,6 +1956,7 @@ function pushStartInstance(
var preamble = preambleState || renderState.preamble; var preamble = preambleState || renderState.preamble;
if (preamble.headChunks) if (preamble.headChunks)
throw Error("The `<head>` tag may only be rendered once."); throw Error("The `<head>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
preamble.headChunks = []; preamble.headChunks = [];
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
preamble.headChunks, preamble.headChunks,
...@@ -1979,6 +1975,7 @@ function pushStartInstance( ...@@ -1979,6 +1975,7 @@ function pushStartInstance(
var preamble$jscomp$0 = preambleState || renderState.preamble; var preamble$jscomp$0 = preambleState || renderState.preamble;
if (preamble$jscomp$0.bodyChunks) if (preamble$jscomp$0.bodyChunks)
throw Error("The `<body>` tag may only be rendered once."); throw Error("The `<body>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
preamble$jscomp$0.bodyChunks = []; preamble$jscomp$0.bodyChunks = [];
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
preamble$jscomp$0.bodyChunks, preamble$jscomp$0.bodyChunks,
...@@ -1997,6 +1994,7 @@ function pushStartInstance( ...@@ -1997,6 +1994,7 @@ function pushStartInstance(
var preamble$jscomp$1 = preambleState || renderState.preamble; var preamble$jscomp$1 = preambleState || renderState.preamble;
if (preamble$jscomp$1.htmlChunks) if (preamble$jscomp$1.htmlChunks)
throw Error("The `<html>` tag may only be rendered once."); throw Error("The `<html>` tag may only be rendered once.");
null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
preamble$jscomp$1.htmlChunks = ["<!DOCTYPE html>"]; preamble$jscomp$1.htmlChunks = ["<!DOCTYPE html>"];
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement( var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
preamble$jscomp$1.htmlChunks, preamble$jscomp$1.htmlChunks,
...@@ -2074,16 +2072,13 @@ function hoistPreambleState(renderState, preambleState) { ...@@ -2074,16 +2072,13 @@ function hoistPreambleState(renderState, preambleState) {
renderState = renderState.preamble; renderState = renderState.preamble;
null === renderState.htmlChunks && null === renderState.htmlChunks &&
preambleState.htmlChunks && preambleState.htmlChunks &&
((renderState.htmlChunks = preambleState.htmlChunks), (renderState.htmlChunks = preambleState.htmlChunks);
(preambleState.contribution |= 1));
null === renderState.headChunks && null === renderState.headChunks &&
preambleState.headChunks && preambleState.headChunks &&
((renderState.headChunks = preambleState.headChunks), (renderState.headChunks = preambleState.headChunks);
(preambleState.contribution |= 4));
null === renderState.bodyChunks && null === renderState.bodyChunks &&
preambleState.bodyChunks && preambleState.bodyChunks &&
((renderState.bodyChunks = preambleState.bodyChunks), (renderState.bodyChunks = preambleState.bodyChunks);
(preambleState.contribution |= 2));
} }
function writeBootstrap(destination, renderState) { function writeBootstrap(destination, renderState) {
renderState = renderState.bootstrapChunks; renderState = renderState.bootstrapChunks;
...@@ -2103,13 +2098,6 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) { ...@@ -2103,13 +2098,6 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
writeChunk(destination, id.toString(16)); writeChunk(destination, id.toString(16));
return !!destination.write('"></template>'); return !!destination.write('"></template>');
} }
function writePreambleContribution(destination, preambleState) {
preambleState = preambleState.contribution;
0 !== preambleState &&
(writeChunk(destination, "\x3c!--"),
writeChunk(destination, "" + preambleState),
writeChunk(destination, "--\x3e"));
}
function writeStartSegment(destination, renderState, formatContext, id) { function writeStartSegment(destination, renderState, formatContext, id) {
switch (formatContext.insertionMode) { switch (formatContext.insertionMode) {
case 0: case 0:
...@@ -4308,27 +4296,21 @@ function renderElement(request, task, keyPath, type, props, ref) { ...@@ -4308,27 +4296,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
return; return;
case REACT_ACTIVITY_TYPE: case REACT_ACTIVITY_TYPE:
type = task.blockedSegment; type = task.blockedSegment;
if (null === type) null === type
"hidden" !== props.mode && ? "hidden" !== props.mode &&
((type = task.keyPath), ((type = task.keyPath),
(task.keyPath = keyPath), (task.keyPath = keyPath),
renderNode(request, task, props.children, -1), renderNode(request, task, props.children, -1),
(task.keyPath = type)); (task.keyPath = type))
else { : (type.chunks.push("\x3c!--&--\x3e"),
type.chunks.push("\x3c!--&--\x3e"); (type.lastPushedText = !1),
type.lastPushedText = !1; "hidden" !== props.mode &&
"hidden" !== props.mode && ((newProps = task.keyPath),
((newProps = task.keyPath), (task.keyPath = keyPath),
(task.keyPath = keyPath), renderNode(request, task, props.children, -1),
renderNode(request, task, props.children, -1), (task.keyPath = newProps)),
(task.keyPath = newProps)); type.chunks.push("\x3c!--/&--\x3e"),
request = type.chunks; (type.lastPushedText = !1));
if ((task = task.blockedPreamble))
(task = task.contribution),
0 !== task && request.push("\x3c!--", "" + task, "--\x3e");
request.push("\x3c!--/&--\x3e");
type.lastPushedText = !1;
}
return; return;
case REACT_SUSPENSE_LIST_TYPE: case REACT_SUSPENSE_LIST_TYPE:
type = task.keyPath; type = task.keyPath;
...@@ -5919,24 +5901,18 @@ function flushSegment(request, destination, segment, hoistableState) { ...@@ -5919,24 +5901,18 @@ function flushSegment(request, destination, segment, hoistableState) {
if (null === boundary) if (null === boundary)
return flushSubtree(request, destination, segment, hoistableState); return flushSubtree(request, destination, segment, hoistableState);
boundary.parentFlushed = !0; boundary.parentFlushed = !0;
if (4 === boundary.status) { if (4 === boundary.status)
var errorDigest = boundary.errorDigest; (boundary = boundary.errorDigest),
destination.write("\x3c!--$!--\x3e"); destination.write("\x3c!--$!--\x3e"),
writeChunk(destination, "<template"); writeChunk(destination, "<template"),
errorDigest && boundary &&
(writeChunk(destination, ' data-dgst="'), (writeChunk(destination, ' data-dgst="'),
writeChunk(destination, escapeTextForBrowser(errorDigest)), writeChunk(destination, escapeTextForBrowser(boundary)),
writeChunk(destination, '"')); writeChunk(destination, '"')),
destination.write("></template>"); destination.write("></template>"),
flushSubtree(request, destination, segment, hoistableState); flushSubtree(request, destination, segment, hoistableState);
(request = boundary.fallbackPreamble) && else if (1 !== boundary.status)
writePreambleContribution(destination, request); 0 === boundary.status && (boundary.rootSegmentID = request.nextSegmentId++),
return !!destination.write("\x3c!--/$--\x3e");
}
if (1 !== boundary.status)
return (
0 === boundary.status &&
(boundary.rootSegmentID = request.nextSegmentId++),
0 < boundary.completedSegments.length && 0 < boundary.completedSegments.length &&
request.partialBoundaries.push(boundary), request.partialBoundaries.push(boundary),
writeStartPendingSuspenseBoundary( writeStartPendingSuspenseBoundary(
...@@ -5951,34 +5927,29 @@ function flushSegment(request, destination, segment, hoistableState) { ...@@ -5951,34 +5927,29 @@ function flushSegment(request, destination, segment, hoistableState) {
hoistStylesheetDependency, hoistStylesheetDependency,
hoistableState hoistableState
)), )),
flushSubtree(request, destination, segment, hoistableState), flushSubtree(request, destination, segment, hoistableState);
!!destination.write("\x3c!--/$--\x3e") else if (boundary.byteSize > request.progressiveChunkSize)
); (boundary.rootSegmentID = request.nextSegmentId++),
if (boundary.byteSize > request.progressiveChunkSize)
return (
(boundary.rootSegmentID = request.nextSegmentId++),
request.completedBoundaries.push(boundary), request.completedBoundaries.push(boundary),
writeStartPendingSuspenseBoundary( writeStartPendingSuspenseBoundary(
destination, destination,
request.renderState, request.renderState,
boundary.rootSegmentID boundary.rootSegmentID
), ),
flushSubtree(request, destination, segment, hoistableState), flushSubtree(request, destination, segment, hoistableState);
!!destination.write("\x3c!--/$--\x3e") else {
); hoistableState &&
hoistableState && ((segment = boundary.contentState),
((segment = boundary.contentState), segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
segment.styles.forEach(hoistStyleQueueDependency, hoistableState), segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState)); destination.write("\x3c!--$--\x3e");
destination.write("\x3c!--$--\x3e"); segment = boundary.completedSegments;
segment = boundary.completedSegments; if (1 !== segment.length)
if (1 !== segment.length) throw Error(
throw Error( "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
"A previously unvisited boundary must have exactly one root segment. This is a bug in React." );
); flushSegment(request, destination, segment[0], hoistableState);
flushSegment(request, destination, segment[0], hoistableState); }
(request = boundary.contentPreamble) &&
writePreambleContribution(destination, request);
return !!destination.write("\x3c!--/$--\x3e"); return !!destination.write("\x3c!--/$--\x3e");
} }
function flushSegmentContainer(request, destination, segment, hoistableState) { function flushSegmentContainer(request, destination, segment, hoistableState) {
...@@ -6427,15 +6398,15 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { ...@@ -6427,15 +6398,15 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
parentNode[2].push(node); parentNode[2].push(node);
} }
} }
var isomorphicReactPackageVersion$jscomp$inline_826 = React.version; var isomorphicReactPackageVersion$jscomp$inline_819 = React.version;
if ( if (
"19.2.0-experimental-c44e4a25-20250409" !== "19.2.0-experimental-1d6c8168-20250411" !==
isomorphicReactPackageVersion$jscomp$inline_826 isomorphicReactPackageVersion$jscomp$inline_819
) )
throw Error( throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion$jscomp$inline_826 + (isomorphicReactPackageVersion$jscomp$inline_819 +
"\n - react-dom: 19.2.0-experimental-c44e4a25-20250409\nLearn more: https://react.dev/warnings/version-mismatch") "\n - react-dom: 19.2.0-experimental-1d6c8168-20250411\nLearn more: https://react.dev/warnings/version-mismatch")
); );
exports.renderToReadableStream = function (children, options) { exports.renderToReadableStream = function (children, options) {
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
...@@ -6526,4 +6497,4 @@ exports.renderToReadableStream = function (children, options) { ...@@ -6526,4 +6497,4 @@ exports.renderToReadableStream = function (children, options) {
startWork(request); startWork(request);
}); });
}; };
exports.version = "19.2.0-experimental-c44e4a25-20250409"; exports.version = "19.2.0-experimental-1d6c8168-20250411";
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
exports.useFormStatus = function () { exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus(); return resolveDispatcher().useHostTransitionStatus();
}; };
exports.version = "19.2.0-experimental-c44e4a25-20250409"; exports.version = "19.2.0-experimental-1d6c8168-20250411";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" === "function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
......
...@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { ...@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () { exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus(); return ReactSharedInternals.H.useHostTransitionStatus();
}; };
exports.version = "19.2.0-experimental-c44e4a25-20250409"; exports.version = "19.2.0-experimental-1d6c8168-20250411";
...@@ -336,5 +336,5 @@ ...@@ -336,5 +336,5 @@
})) }))
: Internals.d.m(href)); : Internals.d.m(href));
}; };
exports.version = "19.2.0-experimental-c44e4a25-20250409"; exports.version = "19.2.0-experimental-1d6c8168-20250411";
})(); })();
...@@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { ...@@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) {
}); });
} else Internals.d.m(href); } else Internals.d.m(href);
}; };
exports.version = "19.2.0-experimental-c44e4a25-20250409"; exports.version = "19.2.0-experimental-1d6c8168-20250411";
...@@ -72,10 +72,10 @@ ...@@ -72,10 +72,10 @@
"./package.json": "./package.json" "./package.json": "./package.json"
}, },
"dependencies": { "dependencies": {
"scheduler": "0.0.0-experimental-c44e4a25-20250409" "scheduler": "0.0.0-experimental-1d6c8168-20250411"
}, },
"peerDependencies": { "peerDependencies": {
"react": "0.0.0-experimental-c44e4a25-20250409" "react": "0.0.0-experimental-1d6c8168-20250411"
}, },
"browser": { "browser": {
"./server.js": "./server.browser.js", "./server.js": "./server.browser.js",
......
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
exports.useFormStatus = function () { exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus(); return resolveDispatcher().useHostTransitionStatus();
}; };
exports.version = "19.2.0-canary-c44e4a25-20250409"; exports.version = "19.2.0-canary-1d6c8168-20250411";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" === "function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
......
...@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { ...@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () { exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus(); return ReactSharedInternals.H.useHostTransitionStatus();
}; };
exports.version = "19.2.0-canary-c44e4a25-20250409"; exports.version = "19.2.0-canary-1d6c8168-20250411";
...@@ -336,5 +336,5 @@ ...@@ -336,5 +336,5 @@
})) }))
: Internals.d.m(href)); : Internals.d.m(href));
}; };
exports.version = "19.2.0-canary-c44e4a25-20250409"; exports.version = "19.2.0-canary-1d6c8168-20250411";
})(); })();
...@@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { ...@@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) {
}); });
} else Internals.d.m(href); } else Internals.d.m(href);
}; };
exports.version = "19.2.0-canary-c44e4a25-20250409"; exports.version = "19.2.0-canary-1d6c8168-20250411";
...@@ -603,4 +603,4 @@ exports.useSyncExternalStore = function ( ...@@ -603,4 +603,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () { exports.useTransition = function () {
return ReactSharedInternals.H.useTransition(); return ReactSharedInternals.H.useTransition();
}; };
exports.version = "19.2.0-experimental-c44e4a25-20250409"; exports.version = "19.2.0-experimental-1d6c8168-20250411";
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment