react-dom 19.2.0-canary-c44e4a25-20250409 → 19.2.0-canary-1d6c8168-20250411
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 +185 -202
- package/cjs/react-dom-client.production.js +195 -236
- package/cjs/react-dom-profiling.development.js +185 -202
- package/cjs/react-dom-profiling.profiling.js +198 -239
- package/cjs/react-dom-server-legacy.browser.development.js +30 -58
- package/cjs/react-dom-server-legacy.browser.production.js +66 -89
- package/cjs/react-dom-server-legacy.node.development.js +30 -58
- package/cjs/react-dom-server-legacy.node.production.js +66 -89
- package/cjs/react-dom-server.browser.development.js +48 -73
- package/cjs/react-dom-server.browser.production.js +58 -88
- package/cjs/react-dom-server.bun.development.js +38 -74
- package/cjs/react-dom-server.bun.production.js +54 -83
- package/cjs/react-dom-server.edge.development.js +48 -73
- package/cjs/react-dom-server.edge.production.js +61 -91
- package/cjs/react-dom-server.node.development.js +48 -73
- package/cjs/react-dom-server.node.production.js +61 -91
- 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
@@ -523,12 +523,7 @@ function createResumableState(
|
|
523
523
|
};
|
524
524
|
}
|
525
525
|
function createPreambleState() {
|
526
|
-
return {
|
527
|
-
htmlChunks: null,
|
528
|
-
headChunks: null,
|
529
|
-
bodyChunks: null,
|
530
|
-
contribution: 0
|
531
|
-
};
|
526
|
+
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
532
527
|
}
|
533
528
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
534
529
|
return {
|
@@ -1069,6 +1064,10 @@ function pushTitleImpl(target, props) {
|
|
1069
1064
|
target.push(endChunkForTag("title"));
|
1070
1065
|
return null;
|
1071
1066
|
}
|
1067
|
+
var headPreambleContributionChunk =
|
1068
|
+
stringToPrecomputedChunk("\x3c!--head--\x3e"),
|
1069
|
+
bodyPreambleContributionChunk = stringToPrecomputedChunk("\x3c!--body--\x3e"),
|
1070
|
+
htmlPreambleContributionChunk = stringToPrecomputedChunk("\x3c!--html--\x3e");
|
1072
1071
|
function pushScriptImpl(target, props) {
|
1073
1072
|
target.push(startChunkForTag("script"));
|
1074
1073
|
var children = null,
|
@@ -2071,6 +2070,8 @@ function pushStartInstance(
|
|
2071
2070
|
var preamble = preambleState || renderState.preamble;
|
2072
2071
|
if (preamble.headChunks)
|
2073
2072
|
throw Error("The `<head>` tag may only be rendered once.");
|
2073
|
+
null !== preambleState &&
|
2074
|
+
target$jscomp$0.push(headPreambleContributionChunk);
|
2074
2075
|
preamble.headChunks = [];
|
2075
2076
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
2076
2077
|
preamble.headChunks,
|
@@ -2089,6 +2090,8 @@ function pushStartInstance(
|
|
2089
2090
|
var preamble$jscomp$0 = preambleState || renderState.preamble;
|
2090
2091
|
if (preamble$jscomp$0.bodyChunks)
|
2091
2092
|
throw Error("The `<body>` tag may only be rendered once.");
|
2093
|
+
null !== preambleState &&
|
2094
|
+
target$jscomp$0.push(bodyPreambleContributionChunk);
|
2092
2095
|
preamble$jscomp$0.bodyChunks = [];
|
2093
2096
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
2094
2097
|
preamble$jscomp$0.bodyChunks,
|
@@ -2107,6 +2110,8 @@ function pushStartInstance(
|
|
2107
2110
|
var preamble$jscomp$1 = preambleState || renderState.preamble;
|
2108
2111
|
if (preamble$jscomp$1.htmlChunks)
|
2109
2112
|
throw Error("The `<html>` tag may only be rendered once.");
|
2113
|
+
null !== preambleState &&
|
2114
|
+
target$jscomp$0.push(htmlPreambleContributionChunk);
|
2110
2115
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
2111
2116
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
2112
2117
|
preamble$jscomp$1.htmlChunks,
|
@@ -2186,16 +2191,13 @@ function hoistPreambleState(renderState, preambleState) {
|
|
2186
2191
|
renderState = renderState.preamble;
|
2187
2192
|
null === renderState.htmlChunks &&
|
2188
2193
|
preambleState.htmlChunks &&
|
2189
|
-
(
|
2190
|
-
(preambleState.contribution |= 1));
|
2194
|
+
(renderState.htmlChunks = preambleState.htmlChunks);
|
2191
2195
|
null === renderState.headChunks &&
|
2192
2196
|
preambleState.headChunks &&
|
2193
|
-
(
|
2194
|
-
(preambleState.contribution |= 4));
|
2197
|
+
(renderState.headChunks = preambleState.headChunks);
|
2195
2198
|
null === renderState.bodyChunks &&
|
2196
2199
|
preambleState.bodyChunks &&
|
2197
|
-
(
|
2198
|
-
(preambleState.contribution |= 2));
|
2200
|
+
(renderState.bodyChunks = preambleState.bodyChunks);
|
2199
2201
|
}
|
2200
2202
|
function writeBootstrap(destination, renderState) {
|
2201
2203
|
renderState = renderState.bootstrapChunks;
|
@@ -2239,16 +2241,6 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
2239
2241
|
writeChunk(destination, id.toString(16));
|
2240
2242
|
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
2241
2243
|
}
|
2242
|
-
var boundaryPreambleContributionChunkStart =
|
2243
|
-
stringToPrecomputedChunk("\x3c!--"),
|
2244
|
-
boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e");
|
2245
|
-
function writePreambleContribution(destination, preambleState) {
|
2246
|
-
preambleState = preambleState.contribution;
|
2247
|
-
0 !== preambleState &&
|
2248
|
-
(writeChunk(destination, boundaryPreambleContributionChunkStart),
|
2249
|
-
writeChunk(destination, "" + preambleState),
|
2250
|
-
writeChunk(destination, boundaryPreambleContributionChunkEnd));
|
2251
|
-
}
|
2252
2244
|
var startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
|
2253
2245
|
startSegmentHTML2 = stringToPrecomputedChunk('">'),
|
2254
2246
|
endSegmentHTML = stringToPrecomputedChunk("</div>"),
|
@@ -4444,32 +4436,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4444
4436
|
return;
|
4445
4437
|
case REACT_ACTIVITY_TYPE:
|
4446
4438
|
type = task.blockedSegment;
|
4447
|
-
|
4448
|
-
"hidden" !== props.mode &&
|
4439
|
+
null === type
|
4440
|
+
? "hidden" !== props.mode &&
|
4449
4441
|
((type = task.keyPath),
|
4450
4442
|
(task.keyPath = keyPath),
|
4451
4443
|
renderNode(request, task, props.children, -1),
|
4452
|
-
(task.keyPath = type))
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
-
|
4457
|
-
|
4458
|
-
|
4459
|
-
|
4460
|
-
(
|
4461
|
-
|
4462
|
-
if ((task = task.blockedPreamble))
|
4463
|
-
(task = task.contribution),
|
4464
|
-
0 !== task &&
|
4465
|
-
request.push(
|
4466
|
-
boundaryPreambleContributionChunkStart,
|
4467
|
-
"" + task,
|
4468
|
-
boundaryPreambleContributionChunkEnd
|
4469
|
-
);
|
4470
|
-
request.push(endActivityBoundary);
|
4471
|
-
type.lastPushedText = !1;
|
4472
|
-
}
|
4444
|
+
(task.keyPath = type))
|
4445
|
+
: (type.chunks.push(startActivityBoundary),
|
4446
|
+
(type.lastPushedText = !1),
|
4447
|
+
"hidden" !== props.mode &&
|
4448
|
+
((newProps = task.keyPath),
|
4449
|
+
(task.keyPath = keyPath),
|
4450
|
+
renderNode(request, task, props.children, -1),
|
4451
|
+
(task.keyPath = newProps)),
|
4452
|
+
type.chunks.push(endActivityBoundary),
|
4453
|
+
(type.lastPushedText = !1));
|
4473
4454
|
return;
|
4474
4455
|
case REACT_SUSPENSE_LIST_TYPE:
|
4475
4456
|
type = task.keyPath;
|
@@ -5776,27 +5757,21 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5776
5757
|
if (null === boundary)
|
5777
5758
|
return flushSubtree(request, destination, segment, hoistableState);
|
5778
5759
|
boundary.parentFlushed = !0;
|
5779
|
-
if (4 === boundary.status)
|
5780
|
-
|
5781
|
-
|
5782
|
-
|
5783
|
-
|
5784
|
-
|
5785
|
-
|
5786
|
-
|
5787
|
-
|
5788
|
-
|
5789
|
-
|
5790
|
-
|
5791
|
-
|
5792
|
-
|
5793
|
-
|
5794
|
-
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
5795
|
-
}
|
5796
|
-
if (1 !== boundary.status)
|
5797
|
-
return (
|
5798
|
-
0 === boundary.status &&
|
5799
|
-
(boundary.rootSegmentID = request.nextSegmentId++),
|
5760
|
+
if (4 === boundary.status)
|
5761
|
+
(boundary = boundary.errorDigest),
|
5762
|
+
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary),
|
5763
|
+
writeChunk(destination, clientRenderedSuspenseBoundaryError1),
|
5764
|
+
boundary &&
|
5765
|
+
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
5766
|
+
writeChunk(destination, escapeTextForBrowser(boundary)),
|
5767
|
+
writeChunk(
|
5768
|
+
destination,
|
5769
|
+
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
5770
|
+
)),
|
5771
|
+
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2),
|
5772
|
+
flushSubtree(request, destination, segment, hoistableState);
|
5773
|
+
else if (1 !== boundary.status)
|
5774
|
+
0 === boundary.status && (boundary.rootSegmentID = request.nextSegmentId++),
|
5800
5775
|
0 < boundary.completedSegments.length &&
|
5801
5776
|
request.partialBoundaries.push(boundary),
|
5802
5777
|
writeStartPendingSuspenseBoundary(
|
@@ -5811,34 +5786,29 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5811
5786
|
hoistStylesheetDependency,
|
5812
5787
|
hoistableState
|
5813
5788
|
)),
|
5814
|
-
flushSubtree(request, destination, segment, hoistableState)
|
5815
|
-
|
5816
|
-
)
|
5817
|
-
if (boundary.byteSize > request.progressiveChunkSize)
|
5818
|
-
return (
|
5819
|
-
(boundary.rootSegmentID = request.nextSegmentId++),
|
5789
|
+
flushSubtree(request, destination, segment, hoistableState);
|
5790
|
+
else if (boundary.byteSize > request.progressiveChunkSize)
|
5791
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
5820
5792
|
request.completedBoundaries.push(boundary),
|
5821
5793
|
writeStartPendingSuspenseBoundary(
|
5822
5794
|
destination,
|
5823
5795
|
request.renderState,
|
5824
5796
|
boundary.rootSegmentID
|
5825
5797
|
),
|
5826
|
-
flushSubtree(request, destination, segment, hoistableState)
|
5827
|
-
|
5828
|
-
|
5829
|
-
|
5830
|
-
|
5831
|
-
|
5832
|
-
|
5833
|
-
|
5834
|
-
|
5835
|
-
|
5836
|
-
|
5837
|
-
|
5838
|
-
);
|
5839
|
-
|
5840
|
-
(request = boundary.contentPreamble) &&
|
5841
|
-
writePreambleContribution(destination, request);
|
5798
|
+
flushSubtree(request, destination, segment, hoistableState);
|
5799
|
+
else {
|
5800
|
+
hoistableState &&
|
5801
|
+
((segment = boundary.contentState),
|
5802
|
+
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
5803
|
+
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
5804
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
5805
|
+
segment = boundary.completedSegments;
|
5806
|
+
if (1 !== segment.length)
|
5807
|
+
throw Error(
|
5808
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
5809
|
+
);
|
5810
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
5811
|
+
}
|
5842
5812
|
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
5843
5813
|
}
|
5844
5814
|
function flushSegmentContainer(request, destination, segment, hoistableState) {
|
@@ -6240,11 +6210,11 @@ function abort(request, reason) {
|
|
6240
6210
|
}
|
6241
6211
|
function ensureCorrectIsomorphicReactVersion() {
|
6242
6212
|
var isomorphicReactPackageVersion = React.version;
|
6243
|
-
if ("19.2.0-canary-
|
6213
|
+
if ("19.2.0-canary-1d6c8168-20250411" !== isomorphicReactPackageVersion)
|
6244
6214
|
throw Error(
|
6245
6215
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6246
6216
|
(isomorphicReactPackageVersion +
|
6247
|
-
"\n - react-dom: 19.2.0-canary-
|
6217
|
+
"\n - react-dom: 19.2.0-canary-1d6c8168-20250411\nLearn more: https://react.dev/warnings/version-mismatch")
|
6248
6218
|
);
|
6249
6219
|
}
|
6250
6220
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6393,4 +6363,4 @@ exports.renderToPipeableStream = function (children, options) {
|
|
6393
6363
|
}
|
6394
6364
|
};
|
6395
6365
|
};
|
6396
|
-
exports.version = "19.2.0-canary-
|
6366
|
+
exports.version = "19.2.0-canary-1d6c8168-20250411";
|
@@ -416,7 +416,7 @@
|
|
416
416
|
exports.useFormStatus = function () {
|
417
417
|
return resolveDispatcher().useHostTransitionStatus();
|
418
418
|
};
|
419
|
-
exports.version = "19.2.0-canary-
|
419
|
+
exports.version = "19.2.0-canary-1d6c8168-20250411";
|
420
420
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
421
421
|
"function" ===
|
422
422
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
207
207
|
exports.useFormStatus = function () {
|
208
208
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
209
209
|
};
|
210
|
-
exports.version = "19.2.0-canary-
|
210
|
+
exports.version = "19.2.0-canary-1d6c8168-20250411";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-dom",
|
3
|
-
"version": "19.2.0-canary-
|
3
|
+
"version": "19.2.0-canary-1d6c8168-20250411",
|
4
4
|
"description": "React package for working with the DOM.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -17,10 +17,10 @@
|
|
17
17
|
},
|
18
18
|
"homepage": "https://react.dev/",
|
19
19
|
"dependencies": {
|
20
|
-
"scheduler": "0.27.0-canary-
|
20
|
+
"scheduler": "0.27.0-canary-1d6c8168-20250411"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
23
|
-
"react": "19.2.0-canary-
|
23
|
+
"react": "19.2.0-canary-1d6c8168-20250411"
|
24
24
|
},
|
25
25
|
"files": [
|
26
26
|
"LICENSE",
|