react-dom 19.2.0-canary-197d6a04-20250424 → 19.2.0-canary-143d3e1b-20250425
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 +144 -72
- package/cjs/react-dom-server-legacy.browser.production.js +145 -83
- package/cjs/react-dom-server-legacy.node.development.js +144 -72
- package/cjs/react-dom-server-legacy.node.production.js +145 -83
- package/cjs/react-dom-server.browser.development.js +152 -70
- package/cjs/react-dom-server.browser.production.js +128 -63
- package/cjs/react-dom-server.bun.development.js +144 -74
- package/cjs/react-dom-server.bun.production.js +132 -68
- package/cjs/react-dom-server.edge.development.js +152 -70
- package/cjs/react-dom-server.edge.production.js +128 -63
- package/cjs/react-dom-server.node.development.js +147 -70
- package/cjs/react-dom-server.node.production.js +132 -63
- 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
@@ -232,19 +232,21 @@ function createRenderState(
|
|
232
232
|
) {
|
233
233
|
var inlineScriptWithNonce =
|
234
234
|
void 0 === nonce
|
235
|
-
? "<script
|
236
|
-
: '<script nonce="' + escapeTextForBrowser(nonce) + '"
|
235
|
+
? "<script"
|
236
|
+
: '<script nonce="' + escapeTextForBrowser(nonce) + '"',
|
237
237
|
idPrefix = resumableState.idPrefix;
|
238
238
|
externalRuntimeConfig = [];
|
239
239
|
var bootstrapScriptContent = resumableState.bootstrapScriptContent,
|
240
240
|
bootstrapScripts = resumableState.bootstrapScripts,
|
241
241
|
bootstrapModules = resumableState.bootstrapModules;
|
242
242
|
void 0 !== bootstrapScriptContent &&
|
243
|
+
(externalRuntimeConfig.push(inlineScriptWithNonce),
|
244
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
|
243
245
|
externalRuntimeConfig.push(
|
244
|
-
|
246
|
+
">",
|
245
247
|
("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
|
246
248
|
"\x3c/script>"
|
247
|
-
);
|
249
|
+
));
|
248
250
|
bootstrapScriptContent = [];
|
249
251
|
void 0 !== importMap &&
|
250
252
|
(bootstrapScriptContent.push('<script type="importmap">'),
|
@@ -331,21 +333,29 @@ function createRenderState(
|
|
331
333
|
onHeaders.bootstrapScripts.add(scriptConfig);
|
332
334
|
externalRuntimeConfig.push(
|
333
335
|
'<script src="',
|
334
|
-
escapeTextForBrowser(maxHeadersLength)
|
336
|
+
escapeTextForBrowser(maxHeadersLength),
|
337
|
+
'"'
|
335
338
|
);
|
336
339
|
nonce &&
|
337
|
-
externalRuntimeConfig.push(
|
340
|
+
externalRuntimeConfig.push(
|
341
|
+
' nonce="',
|
342
|
+
escapeTextForBrowser(nonce),
|
343
|
+
'"'
|
344
|
+
);
|
338
345
|
"string" === typeof idPrefix &&
|
339
346
|
externalRuntimeConfig.push(
|
340
|
-
'
|
341
|
-
escapeTextForBrowser(idPrefix)
|
347
|
+
' integrity="',
|
348
|
+
escapeTextForBrowser(idPrefix),
|
349
|
+
'"'
|
342
350
|
);
|
343
351
|
"string" === typeof inlineScriptWithNonce &&
|
344
352
|
externalRuntimeConfig.push(
|
345
|
-
'
|
346
|
-
escapeTextForBrowser(inlineScriptWithNonce)
|
353
|
+
' crossorigin="',
|
354
|
+
escapeTextForBrowser(inlineScriptWithNonce),
|
355
|
+
'"'
|
347
356
|
);
|
348
|
-
externalRuntimeConfig
|
357
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState);
|
358
|
+
externalRuntimeConfig.push(' async="">\x3c/script>');
|
349
359
|
}
|
350
360
|
if (void 0 !== bootstrapModules)
|
351
361
|
for (
|
@@ -383,21 +393,29 @@ function createRenderState(
|
|
383
393
|
onHeaders.bootstrapScripts.add(bootstrapScriptContent),
|
384
394
|
externalRuntimeConfig.push(
|
385
395
|
'<script type="module" src="',
|
386
|
-
escapeTextForBrowser(importMap)
|
396
|
+
escapeTextForBrowser(importMap),
|
397
|
+
'"'
|
387
398
|
),
|
388
399
|
nonce &&
|
389
|
-
externalRuntimeConfig.push(
|
400
|
+
externalRuntimeConfig.push(
|
401
|
+
' nonce="',
|
402
|
+
escapeTextForBrowser(nonce),
|
403
|
+
'"'
|
404
|
+
),
|
390
405
|
"string" === typeof inlineScriptWithNonce &&
|
391
406
|
externalRuntimeConfig.push(
|
392
|
-
'
|
393
|
-
escapeTextForBrowser(inlineScriptWithNonce)
|
407
|
+
' integrity="',
|
408
|
+
escapeTextForBrowser(inlineScriptWithNonce),
|
409
|
+
'"'
|
394
410
|
),
|
395
411
|
"string" === typeof maxHeadersLength &&
|
396
412
|
externalRuntimeConfig.push(
|
397
|
-
'
|
398
|
-
escapeTextForBrowser(maxHeadersLength)
|
413
|
+
' crossorigin="',
|
414
|
+
escapeTextForBrowser(maxHeadersLength),
|
415
|
+
'"'
|
399
416
|
),
|
400
|
-
externalRuntimeConfig
|
417
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
|
418
|
+
externalRuntimeConfig.push(' async="">\x3c/script>');
|
401
419
|
return onHeaders;
|
402
420
|
}
|
403
421
|
function createResumableState(
|
@@ -803,13 +821,25 @@ function flattenOptionChildren(children) {
|
|
803
821
|
return content;
|
804
822
|
}
|
805
823
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
806
|
-
0 === (resumableState.instructions & 16)
|
807
|
-
|
808
|
-
renderState.
|
809
|
-
renderState.
|
810
|
-
|
811
|
-
|
812
|
-
|
824
|
+
if (0 === (resumableState.instructions & 16)) {
|
825
|
+
resumableState.instructions |= 16;
|
826
|
+
var preamble = renderState.preamble,
|
827
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
828
|
+
(preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
|
829
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
830
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
831
|
+
bootstrapChunks.push(
|
832
|
+
">",
|
833
|
+
'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
|
834
|
+
"\x3c/script>"
|
835
|
+
))
|
836
|
+
: bootstrapChunks.unshift(
|
837
|
+
renderState.startInlineScript,
|
838
|
+
">",
|
839
|
+
'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
|
840
|
+
"\x3c/script>"
|
841
|
+
);
|
842
|
+
}
|
813
843
|
}
|
814
844
|
function pushLinkImpl(target, props) {
|
815
845
|
target.push(startChunkForTag("link"));
|
@@ -2263,6 +2293,15 @@ function preloadLateStyles(styleQueue) {
|
|
2263
2293
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
2264
2294
|
styleQueue.sheets.clear();
|
2265
2295
|
}
|
2296
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
2297
|
+
0 === (resumableState.instructions & 32) &&
|
2298
|
+
((resumableState.instructions |= 32),
|
2299
|
+
target.push(
|
2300
|
+
' id="',
|
2301
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb"),
|
2302
|
+
'"'
|
2303
|
+
));
|
2304
|
+
}
|
2266
2305
|
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
2267
2306
|
writeChunk(destination, "[");
|
2268
2307
|
var nextArrayOpenBrackChunk = "[";
|
@@ -5508,6 +5547,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5508
5547
|
var requiresStyleInsertion = request.stylesToHoist;
|
5509
5548
|
request.stylesToHoist = !1;
|
5510
5549
|
writeChunk(destination, request.startInlineScript);
|
5550
|
+
writeChunk(destination, ">");
|
5511
5551
|
requiresStyleInsertion
|
5512
5552
|
? 0 === (completedSegments.instructions & 2)
|
5513
5553
|
? ((completedSegments.instructions |= 10),
|
@@ -5564,6 +5604,7 @@ function flushPartiallyCompletedSegment(
|
|
5564
5604
|
boundary = request.resumableState;
|
5565
5605
|
request = request.renderState;
|
5566
5606
|
writeChunk(destination, request.startInlineScript);
|
5607
|
+
writeChunk(destination, ">");
|
5567
5608
|
0 === (boundary.instructions & 1)
|
5568
5609
|
? ((boundary.instructions |= 1),
|
5569
5610
|
writeChunk(
|
@@ -5589,7 +5630,8 @@ function flushCompletedQueues(request, destination) {
|
|
5589
5630
|
if (5 === completedRootSegment.status) return;
|
5590
5631
|
var completedPreambleSegments = request.completedPreambleSegments;
|
5591
5632
|
if (null === completedPreambleSegments) return;
|
5592
|
-
var
|
5633
|
+
var resumableState = request.resumableState,
|
5634
|
+
renderState = request.renderState,
|
5593
5635
|
preamble = renderState.preamble,
|
5594
5636
|
htmlChunks = preamble.htmlChunks,
|
5595
5637
|
headChunks = preamble.headChunks,
|
@@ -5630,17 +5672,23 @@ function flushCompletedQueues(request, destination) {
|
|
5630
5672
|
renderState.scripts.clear();
|
5631
5673
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
5632
5674
|
renderState.bulkPreloads.clear();
|
5675
|
+
if (htmlChunks || headChunks) {
|
5676
|
+
var shellId = "\u00ab" + resumableState.idPrefix + "R\u00bb";
|
5677
|
+
writeChunk(destination, '<link rel="expect" href="#');
|
5678
|
+
writeChunk(destination, escapeTextForBrowser(shellId));
|
5679
|
+
writeChunk(destination, '" blocking="render"/>');
|
5680
|
+
}
|
5633
5681
|
var hoistableChunks = renderState.hoistableChunks;
|
5634
5682
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
5635
5683
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
5636
5684
|
for (
|
5637
|
-
|
5638
|
-
|
5639
|
-
|
5685
|
+
resumableState = hoistableChunks.length = 0;
|
5686
|
+
resumableState < completedPreambleSegments.length;
|
5687
|
+
resumableState++
|
5640
5688
|
) {
|
5641
|
-
var segments = completedPreambleSegments[
|
5642
|
-
for (
|
5643
|
-
flushSegment(request, destination, segments[
|
5689
|
+
var segments = completedPreambleSegments[resumableState];
|
5690
|
+
for (renderState = 0; renderState < segments.length; renderState++)
|
5691
|
+
flushSegment(request, destination, segments[renderState], null);
|
5644
5692
|
}
|
5645
5693
|
var preamble$jscomp$0 = request.renderState.preamble,
|
5646
5694
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
@@ -5656,11 +5704,26 @@ function flushCompletedQueues(request, destination) {
|
|
5656
5704
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
5657
5705
|
flushSegment(request, destination, completedRootSegment, null);
|
5658
5706
|
request.completedRootSegment = null;
|
5659
|
-
|
5707
|
+
var resumableState$jscomp$0 = request.resumableState,
|
5708
|
+
renderState$jscomp$0 = request.renderState,
|
5709
|
+
preamble$jscomp$1 = renderState$jscomp$0.preamble;
|
5710
|
+
if (
|
5711
|
+
(preamble$jscomp$1.htmlChunks || preamble$jscomp$1.headChunks) &&
|
5712
|
+
0 === (resumableState$jscomp$0.instructions & 32)
|
5713
|
+
) {
|
5714
|
+
var bootstrapChunks = renderState$jscomp$0.bootstrapChunks;
|
5715
|
+
bootstrapChunks.push(startChunkForTag("template"));
|
5716
|
+
pushCompletedShellIdAttribute(
|
5717
|
+
bootstrapChunks,
|
5718
|
+
resumableState$jscomp$0
|
5719
|
+
);
|
5720
|
+
bootstrapChunks.push(">", endChunkForTag("template"));
|
5721
|
+
}
|
5722
|
+
writeBootstrap(destination, renderState$jscomp$0);
|
5660
5723
|
}
|
5661
|
-
var renderState$jscomp$
|
5724
|
+
var renderState$jscomp$1 = request.renderState;
|
5662
5725
|
completedRootSegment = 0;
|
5663
|
-
var viewportChunks$jscomp$0 = renderState$jscomp$
|
5726
|
+
var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
|
5664
5727
|
for (
|
5665
5728
|
completedRootSegment = 0;
|
5666
5729
|
completedRootSegment < viewportChunks$jscomp$0.length;
|
@@ -5668,21 +5731,21 @@ function flushCompletedQueues(request, destination) {
|
|
5668
5731
|
)
|
5669
5732
|
writeChunk(destination, viewportChunks$jscomp$0[completedRootSegment]);
|
5670
5733
|
viewportChunks$jscomp$0.length = 0;
|
5671
|
-
renderState$jscomp$
|
5672
|
-
renderState$jscomp$
|
5673
|
-
renderState$jscomp$
|
5674
|
-
renderState$jscomp$
|
5675
|
-
renderState$jscomp$
|
5734
|
+
renderState$jscomp$1.preconnects.forEach(flushResource, destination);
|
5735
|
+
renderState$jscomp$1.preconnects.clear();
|
5736
|
+
renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
|
5737
|
+
renderState$jscomp$1.fontPreloads.clear();
|
5738
|
+
renderState$jscomp$1.highImagePreloads.forEach(
|
5676
5739
|
flushResource,
|
5677
5740
|
destination
|
5678
5741
|
);
|
5679
|
-
renderState$jscomp$
|
5680
|
-
renderState$jscomp$
|
5681
|
-
renderState$jscomp$
|
5682
|
-
renderState$jscomp$
|
5683
|
-
renderState$jscomp$
|
5684
|
-
renderState$jscomp$
|
5685
|
-
var hoistableChunks$jscomp$0 = renderState$jscomp$
|
5742
|
+
renderState$jscomp$1.highImagePreloads.clear();
|
5743
|
+
renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
|
5744
|
+
renderState$jscomp$1.scripts.forEach(flushResource, destination);
|
5745
|
+
renderState$jscomp$1.scripts.clear();
|
5746
|
+
renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
|
5747
|
+
renderState$jscomp$1.bulkPreloads.clear();
|
5748
|
+
var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
|
5686
5749
|
for (
|
5687
5750
|
completedRootSegment = 0;
|
5688
5751
|
completedRootSegment < hoistableChunks$jscomp$0.length;
|
@@ -5693,33 +5756,34 @@ function flushCompletedQueues(request, destination) {
|
|
5693
5756
|
var clientRenderedBoundaries = request.clientRenderedBoundaries;
|
5694
5757
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
5695
5758
|
var boundary = clientRenderedBoundaries[i];
|
5696
|
-
renderState$jscomp$
|
5697
|
-
var resumableState = request.resumableState,
|
5698
|
-
renderState$jscomp$
|
5759
|
+
renderState$jscomp$1 = destination;
|
5760
|
+
var resumableState$jscomp$1 = request.resumableState,
|
5761
|
+
renderState$jscomp$2 = request.renderState,
|
5699
5762
|
id = boundary.rootSegmentID,
|
5700
5763
|
errorDigest = boundary.errorDigest;
|
5701
5764
|
writeChunk(
|
5702
|
-
renderState$jscomp$
|
5703
|
-
renderState$jscomp$
|
5765
|
+
renderState$jscomp$1,
|
5766
|
+
renderState$jscomp$2.startInlineScript
|
5704
5767
|
);
|
5705
|
-
|
5706
|
-
|
5768
|
+
writeChunk(renderState$jscomp$1, ">");
|
5769
|
+
0 === (resumableState$jscomp$1.instructions & 4)
|
5770
|
+
? ((resumableState$jscomp$1.instructions |= 4),
|
5707
5771
|
writeChunk(
|
5708
|
-
renderState$jscomp$
|
5772
|
+
renderState$jscomp$1,
|
5709
5773
|
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
|
5710
5774
|
))
|
5711
|
-
: writeChunk(renderState$jscomp$
|
5712
|
-
writeChunk(renderState$jscomp$
|
5713
|
-
writeChunk(renderState$jscomp$
|
5714
|
-
writeChunk(renderState$jscomp$
|
5775
|
+
: writeChunk(renderState$jscomp$1, '$RX("');
|
5776
|
+
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
5777
|
+
writeChunk(renderState$jscomp$1, id.toString(16));
|
5778
|
+
writeChunk(renderState$jscomp$1, '"');
|
5715
5779
|
errorDigest &&
|
5716
|
-
(writeChunk(renderState$jscomp$
|
5780
|
+
(writeChunk(renderState$jscomp$1, ","),
|
5717
5781
|
writeChunk(
|
5718
|
-
renderState$jscomp$
|
5782
|
+
renderState$jscomp$1,
|
5719
5783
|
escapeJSStringsForInstructionScripts(errorDigest || "")
|
5720
5784
|
));
|
5721
5785
|
var JSCompiler_inline_result =
|
5722
|
-
!!renderState$jscomp$
|
5786
|
+
!!renderState$jscomp$1.write(")\x3c/script>");
|
5723
5787
|
if (!JSCompiler_inline_result) {
|
5724
5788
|
request.destination = null;
|
5725
5789
|
i++;
|
@@ -5853,15 +5917,15 @@ function abort(request, reason) {
|
|
5853
5917
|
logRecoverableError(request, error$55, {}), fatalError(request, error$55);
|
5854
5918
|
}
|
5855
5919
|
}
|
5856
|
-
var isomorphicReactPackageVersion$jscomp$
|
5920
|
+
var isomorphicReactPackageVersion$jscomp$inline_768 = React.version;
|
5857
5921
|
if (
|
5858
|
-
"19.2.0-canary-
|
5859
|
-
isomorphicReactPackageVersion$jscomp$
|
5922
|
+
"19.2.0-canary-143d3e1b-20250425" !==
|
5923
|
+
isomorphicReactPackageVersion$jscomp$inline_768
|
5860
5924
|
)
|
5861
5925
|
throw Error(
|
5862
5926
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
5863
|
-
(isomorphicReactPackageVersion$jscomp$
|
5864
|
-
"\n - react-dom: 19.2.0-canary-
|
5927
|
+
(isomorphicReactPackageVersion$jscomp$inline_768 +
|
5928
|
+
"\n - react-dom: 19.2.0-canary-143d3e1b-20250425\nLearn more: https://react.dev/warnings/version-mismatch")
|
5865
5929
|
);
|
5866
5930
|
exports.renderToReadableStream = function (children, options) {
|
5867
5931
|
return new Promise(function (resolve, reject) {
|
@@ -5952,4 +6016,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
5952
6016
|
startWork(request);
|
5953
6017
|
});
|
5954
6018
|
};
|
5955
|
-
exports.version = "19.2.0-canary-
|
6019
|
+
exports.version = "19.2.0-canary-143d3e1b-20250425";
|