react-dom 19.2.0-canary-37054867-20250604 → 19.2.0-canary-ab859e31-20250606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-client.development.js +5 -5
- package/cjs/react-dom-client.production.js +5 -5
- package/cjs/react-dom-profiling.development.js +5 -5
- package/cjs/react-dom-profiling.profiling.js +5 -5
- package/cjs/react-dom-server-legacy.browser.development.js +24 -17
- package/cjs/react-dom-server-legacy.browser.production.js +39 -37
- package/cjs/react-dom-server-legacy.node.development.js +24 -17
- package/cjs/react-dom-server-legacy.node.production.js +39 -37
- package/cjs/react-dom-server.browser.development.js +30 -21
- package/cjs/react-dom-server.browser.production.js +23 -21
- package/cjs/react-dom-server.bun.development.js +26 -22
- package/cjs/react-dom-server.bun.production.js +24 -22
- package/cjs/react-dom-server.edge.development.js +30 -21
- package/cjs/react-dom-server.edge.production.js +23 -21
- package/cjs/react-dom-server.node-webstreams.development.js +10017 -0
- package/cjs/react-dom-server.node-webstreams.production.js +6957 -0
- package/cjs/react-dom-server.node.development.js +31 -25
- package/cjs/react-dom-server.node.production.js +24 -25
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
- package/server.node.js +7 -1
- package/static.node.js +5 -1
@@ -7965,7 +7965,8 @@
|
|
7965
7965
|
var completedPreambleSegments = request.completedPreambleSegments;
|
7966
7966
|
if (null === completedPreambleSegments) return;
|
7967
7967
|
flushedByteSize = request.byteSize;
|
7968
|
-
var
|
7968
|
+
var resumableState = request.resumableState,
|
7969
|
+
renderState = request.renderState,
|
7969
7970
|
preamble = renderState.preamble,
|
7970
7971
|
htmlChunks = preamble.htmlChunks,
|
7971
7972
|
headChunks = preamble.headChunks,
|
@@ -8024,6 +8025,9 @@
|
|
8024
8025
|
renderState.scripts.clear();
|
8025
8026
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
8026
8027
|
renderState.bulkPreloads.clear();
|
8028
|
+
htmlChunks ||
|
8029
|
+
headChunks ||
|
8030
|
+
(resumableState.instructions |= SentCompletedShellId);
|
8027
8031
|
var hoistableChunks = renderState.hoistableChunks;
|
8028
8032
|
for (
|
8029
8033
|
i$jscomp$0 = 0;
|
@@ -8032,13 +8036,17 @@
|
|
8032
8036
|
)
|
8033
8037
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
8034
8038
|
for (
|
8035
|
-
|
8036
|
-
|
8037
|
-
|
8039
|
+
resumableState = hoistableChunks.length = 0;
|
8040
|
+
resumableState < completedPreambleSegments.length;
|
8041
|
+
resumableState++
|
8038
8042
|
) {
|
8039
|
-
var segments = completedPreambleSegments[
|
8040
|
-
for (
|
8041
|
-
|
8043
|
+
var segments = completedPreambleSegments[resumableState];
|
8044
|
+
for (
|
8045
|
+
renderState = 0;
|
8046
|
+
renderState < segments.length;
|
8047
|
+
renderState++
|
8048
|
+
)
|
8049
|
+
flushSegment(request, destination, segments[renderState], null);
|
8042
8050
|
}
|
8043
8051
|
var preamble$jscomp$0 = request.renderState.preamble,
|
8044
8052
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
@@ -8063,19 +8071,20 @@
|
|
8063
8071
|
(0 !== request.trackedPostpones.rootNodes.length ||
|
8064
8072
|
null !== request.trackedPostpones.rootSlots))
|
8065
8073
|
) {
|
8066
|
-
var resumableState = request.resumableState;
|
8074
|
+
var resumableState$jscomp$0 = request.resumableState;
|
8067
8075
|
if (
|
8068
|
-
(resumableState.instructions & SentMarkShellTime) ===
|
8076
|
+
(resumableState$jscomp$0.instructions & SentMarkShellTime) ===
|
8069
8077
|
NothingSent
|
8070
8078
|
) {
|
8071
|
-
resumableState.instructions |= SentMarkShellTime;
|
8079
|
+
resumableState$jscomp$0.instructions |= SentMarkShellTime;
|
8072
8080
|
writeChunk(destination, renderState$jscomp$0.startInlineScript);
|
8073
8081
|
if (
|
8074
|
-
(resumableState.instructions &
|
8082
|
+
(resumableState$jscomp$0.instructions &
|
8083
|
+
SentCompletedShellId) ===
|
8075
8084
|
NothingSent
|
8076
8085
|
) {
|
8077
|
-
resumableState.instructions |= SentCompletedShellId;
|
8078
|
-
var shellId = "_" + resumableState.idPrefix + "R_";
|
8086
|
+
resumableState$jscomp$0.instructions |= SentCompletedShellId;
|
8087
|
+
var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
|
8079
8088
|
writeChunk(destination, completedShellIdAttributeStart);
|
8080
8089
|
writeChunk(
|
8081
8090
|
destination,
|
@@ -8132,7 +8141,7 @@
|
|
8132
8141
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
8133
8142
|
var boundary = clientRenderedBoundaries[i];
|
8134
8143
|
renderState$jscomp$1 = destination;
|
8135
|
-
var resumableState$jscomp$
|
8144
|
+
var resumableState$jscomp$1 = request.resumableState,
|
8136
8145
|
renderState$jscomp$2 = request.renderState,
|
8137
8146
|
id = boundary.rootSegmentID,
|
8138
8147
|
errorDigest = boundary.errorDigest,
|
@@ -8144,10 +8153,10 @@
|
|
8144
8153
|
renderState$jscomp$2.startInlineScript
|
8145
8154
|
);
|
8146
8155
|
writeChunk(renderState$jscomp$1, endOfStartTag);
|
8147
|
-
(resumableState$jscomp$
|
8156
|
+
(resumableState$jscomp$1.instructions &
|
8148
8157
|
SentClientRenderFunction) ===
|
8149
8158
|
NothingSent
|
8150
|
-
? ((resumableState$jscomp$
|
8159
|
+
? ((resumableState$jscomp$1.instructions |=
|
8151
8160
|
SentClientRenderFunction),
|
8152
8161
|
writeChunk(renderState$jscomp$1, clientRenderScript1Full))
|
8153
8162
|
: writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
|
@@ -8421,11 +8430,11 @@
|
|
8421
8430
|
}
|
8422
8431
|
function ensureCorrectIsomorphicReactVersion() {
|
8423
8432
|
var isomorphicReactPackageVersion = React.version;
|
8424
|
-
if ("19.2.0-canary-
|
8433
|
+
if ("19.2.0-canary-ab859e31-20250606" !== isomorphicReactPackageVersion)
|
8425
8434
|
throw Error(
|
8426
8435
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8427
8436
|
(isomorphicReactPackageVersion +
|
8428
|
-
"\n - react-dom: 19.2.0-canary-
|
8437
|
+
"\n - react-dom: 19.2.0-canary-ab859e31-20250606\nLearn more: https://react.dev/warnings/version-mismatch")
|
8429
8438
|
);
|
8430
8439
|
}
|
8431
8440
|
var React = require("react"),
|
@@ -9656,8 +9665,8 @@
|
|
9656
9665
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
9657
9666
|
'$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};'
|
9658
9667
|
);
|
9659
|
-
|
9660
|
-
'$RV=function(
|
9668
|
+
stringToChunk(
|
9669
|
+
'$RV=function(z,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,A=!0)}var A=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var t=[];for(h=0;h<g.length;h+=2){var B=g[h],w=B.parentNode;if(w){var u=w.getBoundingClientRect();if(u.left||u.top||u.width||u.height){c=B;for(f=0;c;){if(8===c.nodeType){var q=c.data;if("/$"===q)if(0===f)break;else f--;else"$"!==q&&"$?"!==q&&"$~"!==q&&"$!"!==q||f++}else if(1===c.nodeType){d=c;var C=d.getAttribute("vt-name"),x=m.get(C);k(d,x?"vt-share":"vt-exit");x&&(k(x,"vt-share"),m.set(C,null));var D=d.querySelectorAll("[vt-share]");for(d=0;d<D.length;d++){var E=D[d],F=E.getAttribute("vt-name"),\nG=m.get(F);G&&(k(E,"vt-share"),k(G,"vt-share"),m.set(F,null))}}c=c.nextSibling}for(var H=g[h+1],r=H.firstElementChild;r;)null!==m.get(r.getAttribute("vt-name"))&&k(r,"vt-enter"),r=r.nextElementSibling;c=w;do for(var n=c.firstElementChild;n;){var I=n.getAttribute("vt-update");I&&"none"!==I&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));t.push.apply(t,H.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(A){var y=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){z(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<t.length;b={g:b.g},e++)if(b.g=t[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(v){return function(J){v.g.addEventListener("load",J);v.g.addEventListener("error",J)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(v){return setTimeout(v,\n500)})])},types:[]});y.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});y.finished.finally(function(){document.__reactViewTransition===y&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}z(g)}.bind(null,$RV);'
|
9661
9670
|
);
|
9662
9671
|
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
9663
9672
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
@@ -10108,5 +10117,5 @@
|
|
10108
10117
|
startWork(request);
|
10109
10118
|
});
|
10110
10119
|
};
|
10111
|
-
exports.version = "19.2.0-canary-
|
10120
|
+
exports.version = "19.2.0-canary-ab859e31-20250606";
|
10112
10121
|
})();
|
@@ -2551,8 +2551,8 @@ stringToPrecomputedChunk('" data-pid="');
|
|
2551
2551
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
2552
2552
|
'$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};'
|
2553
2553
|
);
|
2554
|
-
|
2555
|
-
'$RV=function(
|
2554
|
+
stringToChunk(
|
2555
|
+
'$RV=function(z,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,A=!0)}var A=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var t=[];for(h=0;h<g.length;h+=2){var B=g[h],w=B.parentNode;if(w){var u=w.getBoundingClientRect();if(u.left||u.top||u.width||u.height){c=B;for(f=0;c;){if(8===c.nodeType){var q=c.data;if("/$"===q)if(0===f)break;else f--;else"$"!==q&&"$?"!==q&&"$~"!==q&&"$!"!==q||f++}else if(1===c.nodeType){d=c;var C=d.getAttribute("vt-name"),x=m.get(C);k(d,x?"vt-share":"vt-exit");x&&(k(x,"vt-share"),m.set(C,null));var D=d.querySelectorAll("[vt-share]");for(d=0;d<D.length;d++){var E=D[d],F=E.getAttribute("vt-name"),\nG=m.get(F);G&&(k(E,"vt-share"),k(G,"vt-share"),m.set(F,null))}}c=c.nextSibling}for(var H=g[h+1],r=H.firstElementChild;r;)null!==m.get(r.getAttribute("vt-name"))&&k(r,"vt-enter"),r=r.nextElementSibling;c=w;do for(var n=c.firstElementChild;n;){var I=n.getAttribute("vt-update");I&&"none"!==I&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));t.push.apply(t,H.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(A){var y=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){z(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<t.length;b={g:b.g},e++)if(b.g=t[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(v){return function(J){v.g.addEventListener("load",J);v.g.addEventListener("error",J)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(v){return setTimeout(v,\n500)})])},types:[]});y.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});y.finished.finally(function(){document.__reactViewTransition===y&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}z(g)}.bind(null,$RV);'
|
2556
2556
|
);
|
2557
2557
|
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
2558
2558
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
@@ -6550,7 +6550,8 @@ function flushCompletedQueues(request, destination) {
|
|
6550
6550
|
var completedPreambleSegments = request.completedPreambleSegments;
|
6551
6551
|
if (null === completedPreambleSegments) return;
|
6552
6552
|
flushedByteSize = request.byteSize;
|
6553
|
-
var
|
6553
|
+
var resumableState = request.resumableState,
|
6554
|
+
renderState = request.renderState,
|
6554
6555
|
preamble = renderState.preamble,
|
6555
6556
|
htmlChunks = preamble.htmlChunks,
|
6556
6557
|
headChunks = preamble.headChunks,
|
@@ -6593,17 +6594,18 @@ function flushCompletedQueues(request, destination) {
|
|
6593
6594
|
renderState.scripts.clear();
|
6594
6595
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
6595
6596
|
renderState.bulkPreloads.clear();
|
6597
|
+
htmlChunks || headChunks || (resumableState.instructions |= 32);
|
6596
6598
|
var hoistableChunks = renderState.hoistableChunks;
|
6597
6599
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
6598
6600
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
6599
6601
|
for (
|
6600
|
-
|
6601
|
-
|
6602
|
-
|
6602
|
+
resumableState = hoistableChunks.length = 0;
|
6603
|
+
resumableState < completedPreambleSegments.length;
|
6604
|
+
resumableState++
|
6603
6605
|
) {
|
6604
|
-
var segments = completedPreambleSegments[
|
6605
|
-
for (
|
6606
|
-
flushSegment(request, destination, segments[
|
6606
|
+
var segments = completedPreambleSegments[resumableState];
|
6607
|
+
for (renderState = 0; renderState < segments.length; renderState++)
|
6608
|
+
flushSegment(request, destination, segments[renderState], null);
|
6607
6609
|
}
|
6608
6610
|
var preamble$jscomp$0 = request.renderState.preamble,
|
6609
6611
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
@@ -6628,13 +6630,13 @@ function flushCompletedQueues(request, destination) {
|
|
6628
6630
|
(0 !== request.trackedPostpones.rootNodes.length ||
|
6629
6631
|
null !== request.trackedPostpones.rootSlots))
|
6630
6632
|
) {
|
6631
|
-
var resumableState = request.resumableState;
|
6632
|
-
if (0 === (resumableState.instructions & 64)) {
|
6633
|
-
resumableState.instructions |= 64;
|
6633
|
+
var resumableState$jscomp$0 = request.resumableState;
|
6634
|
+
if (0 === (resumableState$jscomp$0.instructions & 64)) {
|
6635
|
+
resumableState$jscomp$0.instructions |= 64;
|
6634
6636
|
writeChunk(destination, renderState$jscomp$0.startInlineScript);
|
6635
|
-
if (0 === (resumableState.instructions & 32)) {
|
6636
|
-
resumableState.instructions |= 32;
|
6637
|
-
var shellId = "_" + resumableState.idPrefix + "R_";
|
6637
|
+
if (0 === (resumableState$jscomp$0.instructions & 32)) {
|
6638
|
+
resumableState$jscomp$0.instructions |= 32;
|
6639
|
+
var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
|
6638
6640
|
writeChunk(destination, completedShellIdAttributeStart);
|
6639
6641
|
writeChunk(
|
6640
6642
|
destination,
|
@@ -6685,7 +6687,7 @@ function flushCompletedQueues(request, destination) {
|
|
6685
6687
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
6686
6688
|
var boundary = clientRenderedBoundaries[i];
|
6687
6689
|
renderState$jscomp$1 = destination;
|
6688
|
-
var resumableState$jscomp$
|
6690
|
+
var resumableState$jscomp$1 = request.resumableState,
|
6689
6691
|
renderState$jscomp$2 = request.renderState,
|
6690
6692
|
id = boundary.rootSegmentID,
|
6691
6693
|
errorDigest = boundary.errorDigest;
|
@@ -6694,8 +6696,8 @@ function flushCompletedQueues(request, destination) {
|
|
6694
6696
|
renderState$jscomp$2.startInlineScript
|
6695
6697
|
);
|
6696
6698
|
writeChunk(renderState$jscomp$1, endOfStartTag);
|
6697
|
-
0 === (resumableState$jscomp$
|
6698
|
-
? ((resumableState$jscomp$
|
6699
|
+
0 === (resumableState$jscomp$1.instructions & 4)
|
6700
|
+
? ((resumableState$jscomp$1.instructions |= 4),
|
6699
6701
|
writeChunk(renderState$jscomp$1, clientRenderScript1Full))
|
6700
6702
|
: writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
|
6701
6703
|
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
@@ -6902,11 +6904,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
6902
6904
|
}
|
6903
6905
|
function ensureCorrectIsomorphicReactVersion() {
|
6904
6906
|
var isomorphicReactPackageVersion = React.version;
|
6905
|
-
if ("19.2.0-canary-
|
6907
|
+
if ("19.2.0-canary-ab859e31-20250606" !== isomorphicReactPackageVersion)
|
6906
6908
|
throw Error(
|
6907
6909
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6908
6910
|
(isomorphicReactPackageVersion +
|
6909
|
-
"\n - react-dom: 19.2.0-canary-
|
6911
|
+
"\n - react-dom: 19.2.0-canary-ab859e31-20250606\nLearn more: https://react.dev/warnings/version-mismatch")
|
6910
6912
|
);
|
6911
6913
|
}
|
6912
6914
|
ensureCorrectIsomorphicReactVersion();
|
@@ -7052,4 +7054,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
7052
7054
|
startWork(request);
|
7053
7055
|
});
|
7054
7056
|
};
|
7055
|
-
exports.version = "19.2.0-canary-
|
7057
|
+
exports.version = "19.2.0-canary-ab859e31-20250606";
|