react-dom 19.3.0-canary-c9ddee7e-20251031 → 19.3.0-canary-561ee24d-20251101
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 +200 -178
- package/cjs/react-dom-client.production.js +260 -225
- package/cjs/react-dom-profiling.development.js +200 -178
- package/cjs/react-dom-profiling.profiling.js +293 -258
- package/cjs/react-dom-server-legacy.browser.development.js +52 -31
- package/cjs/react-dom-server-legacy.browser.production.js +82 -81
- package/cjs/react-dom-server-legacy.node.development.js +52 -31
- package/cjs/react-dom-server-legacy.node.production.js +82 -81
- package/cjs/react-dom-server.browser.development.js +55 -34
- package/cjs/react-dom-server.browser.production.js +65 -64
- package/cjs/react-dom-server.bun.development.js +54 -34
- package/cjs/react-dom-server.bun.production.js +65 -64
- package/cjs/react-dom-server.edge.development.js +55 -34
- package/cjs/react-dom-server.edge.production.js +65 -64
- package/cjs/react-dom-server.node.development.js +55 -34
- package/cjs/react-dom-server.node.production.js +65 -64
- 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
|
@@ -4664,43 +4664,48 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
|
4664
4664
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
4665
4665
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
4666
4666
|
else {
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
for (
|
|
4671
|
-
|
|
4667
|
+
resumeSlots = task.blockedSegment;
|
|
4668
|
+
n = resumeSlots.children.length;
|
|
4669
|
+
i = resumeSlots.chunks.length;
|
|
4670
|
+
for (node = 0; node < keyPath; node++) {
|
|
4671
|
+
resumeSegmentID =
|
|
4672
|
+
"unstable_legacy-backwards" === revealOrder ? keyPath - 1 - node : node;
|
|
4673
|
+
var node$40 = rows[resumeSegmentID];
|
|
4672
4674
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
4673
4675
|
previousSuspenseListRow
|
|
4674
4676
|
);
|
|
4675
|
-
task.treeContext = pushTreeContext(
|
|
4676
|
-
|
|
4677
|
+
task.treeContext = pushTreeContext(
|
|
4678
|
+
prevTreeContext,
|
|
4679
|
+
keyPath,
|
|
4680
|
+
resumeSegmentID
|
|
4681
|
+
);
|
|
4682
|
+
var newSegment = createPendingSegment(
|
|
4677
4683
|
request,
|
|
4678
|
-
|
|
4684
|
+
i,
|
|
4679
4685
|
null,
|
|
4680
4686
|
task.formatContext,
|
|
4681
|
-
0 ===
|
|
4687
|
+
0 === resumeSegmentID ? resumeSlots.lastPushedText : !0,
|
|
4682
4688
|
!0
|
|
4683
4689
|
);
|
|
4684
|
-
|
|
4685
|
-
task.blockedSegment =
|
|
4690
|
+
resumeSlots.children.splice(n, 0, newSegment);
|
|
4691
|
+
task.blockedSegment = newSegment;
|
|
4686
4692
|
try {
|
|
4687
|
-
renderNode(request, task, node,
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
(
|
|
4692
|
-
finishedSegment(request, task.blockedBoundary,
|
|
4693
|
+
renderNode(request, task, node$40, resumeSegmentID),
|
|
4694
|
+
newSegment.lastPushedText &&
|
|
4695
|
+
newSegment.textEmbedded &&
|
|
4696
|
+
newSegment.chunks.push(textSeparator),
|
|
4697
|
+
(newSegment.status = 1),
|
|
4698
|
+
finishedSegment(request, task.blockedBoundary, newSegment),
|
|
4693
4699
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
4694
4700
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
4695
4701
|
} catch (thrownValue) {
|
|
4696
4702
|
throw (
|
|
4697
|
-
((
|
|
4698
|
-
thrownValue)
|
|
4703
|
+
((newSegment.status = 12 === request.status ? 3 : 4), thrownValue)
|
|
4699
4704
|
);
|
|
4700
4705
|
}
|
|
4701
4706
|
}
|
|
4702
|
-
task.blockedSegment =
|
|
4703
|
-
|
|
4707
|
+
task.blockedSegment = resumeSlots;
|
|
4708
|
+
resumeSlots.lastPushedText = !1;
|
|
4704
4709
|
}
|
|
4705
4710
|
null !== prevRow &&
|
|
4706
4711
|
null !== previousSuspenseListRow &&
|
|
@@ -4777,9 +4782,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4777
4782
|
var defaultProps = type.defaultProps;
|
|
4778
4783
|
if (defaultProps) {
|
|
4779
4784
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
4780
|
-
for (var propName$
|
|
4781
|
-
void 0 === newProps[propName$
|
|
4782
|
-
(newProps[propName$
|
|
4785
|
+
for (var propName$45 in defaultProps)
|
|
4786
|
+
void 0 === newProps[propName$45] &&
|
|
4787
|
+
(newProps[propName$45] = defaultProps[propName$45]);
|
|
4783
4788
|
}
|
|
4784
4789
|
var JSCompiler_inline_result = newProps;
|
|
4785
4790
|
var context = emptyContextObject,
|
|
@@ -4912,7 +4917,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4912
4917
|
task.formatContext = prevContext;
|
|
4913
4918
|
task.keyPath = prevKeyPath$jscomp$0;
|
|
4914
4919
|
} else {
|
|
4915
|
-
var children$
|
|
4920
|
+
var children$42 = pushStartInstance(
|
|
4916
4921
|
segment.chunks,
|
|
4917
4922
|
type,
|
|
4918
4923
|
props,
|
|
@@ -4924,13 +4929,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4924
4929
|
segment.lastPushedText
|
|
4925
4930
|
);
|
|
4926
4931
|
segment.lastPushedText = !1;
|
|
4927
|
-
var prevContext$
|
|
4928
|
-
prevKeyPath$
|
|
4932
|
+
var prevContext$43 = task.formatContext,
|
|
4933
|
+
prevKeyPath$44 = task.keyPath;
|
|
4929
4934
|
task.keyPath = keyPath;
|
|
4930
4935
|
if (
|
|
4931
4936
|
3 ===
|
|
4932
4937
|
(task.formatContext = getChildFormatContext(
|
|
4933
|
-
prevContext$
|
|
4938
|
+
prevContext$43,
|
|
4934
4939
|
type,
|
|
4935
4940
|
props
|
|
4936
4941
|
)).insertionMode
|
|
@@ -4947,7 +4952,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4947
4952
|
task.blockedSegment = preambleSegment;
|
|
4948
4953
|
try {
|
|
4949
4954
|
(preambleSegment.status = 6),
|
|
4950
|
-
renderNode(request, task, children$
|
|
4955
|
+
renderNode(request, task, children$42, -1),
|
|
4951
4956
|
preambleSegment.lastPushedText &&
|
|
4952
4957
|
preambleSegment.textEmbedded &&
|
|
4953
4958
|
preambleSegment.chunks.push(textSeparator),
|
|
@@ -4956,9 +4961,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4956
4961
|
} finally {
|
|
4957
4962
|
task.blockedSegment = segment;
|
|
4958
4963
|
}
|
|
4959
|
-
} else renderNode(request, task, children$
|
|
4960
|
-
task.formatContext = prevContext$
|
|
4961
|
-
task.keyPath = prevKeyPath$
|
|
4964
|
+
} else renderNode(request, task, children$42, -1);
|
|
4965
|
+
task.formatContext = prevContext$43;
|
|
4966
|
+
task.keyPath = prevKeyPath$44;
|
|
4962
4967
|
a: {
|
|
4963
4968
|
var target = segment.chunks,
|
|
4964
4969
|
resumableState = request.resumableState;
|
|
@@ -4983,19 +4988,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4983
4988
|
case "wbr":
|
|
4984
4989
|
break a;
|
|
4985
4990
|
case "body":
|
|
4986
|
-
if (1 >= prevContext$
|
|
4991
|
+
if (1 >= prevContext$43.insertionMode) {
|
|
4987
4992
|
resumableState.hasBody = !0;
|
|
4988
4993
|
break a;
|
|
4989
4994
|
}
|
|
4990
4995
|
break;
|
|
4991
4996
|
case "html":
|
|
4992
|
-
if (0 === prevContext$
|
|
4997
|
+
if (0 === prevContext$43.insertionMode) {
|
|
4993
4998
|
resumableState.hasHtml = !0;
|
|
4994
4999
|
break a;
|
|
4995
5000
|
}
|
|
4996
5001
|
break;
|
|
4997
5002
|
case "head":
|
|
4998
|
-
if (1 >= prevContext$
|
|
5003
|
+
if (1 >= prevContext$43.insertionMode) break a;
|
|
4999
5004
|
}
|
|
5000
5005
|
target.push(endChunkForTag(type));
|
|
5001
5006
|
}
|
|
@@ -5024,10 +5029,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5024
5029
|
} else if ("hidden" !== props.mode) {
|
|
5025
5030
|
segment$jscomp$0.chunks.push(startActivityBoundary);
|
|
5026
5031
|
segment$jscomp$0.lastPushedText = !1;
|
|
5027
|
-
var prevKeyPath$
|
|
5032
|
+
var prevKeyPath$47 = task.keyPath;
|
|
5028
5033
|
task.keyPath = keyPath;
|
|
5029
5034
|
renderNode(request, task, props.children, -1);
|
|
5030
|
-
task.keyPath = prevKeyPath$
|
|
5035
|
+
task.keyPath = prevKeyPath$47;
|
|
5031
5036
|
segment$jscomp$0.chunks.push(endActivityBoundary);
|
|
5032
5037
|
segment$jscomp$0.lastPushedText = !1;
|
|
5033
5038
|
}
|
|
@@ -5036,11 +5041,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5036
5041
|
a: {
|
|
5037
5042
|
var children$jscomp$0 = props.children,
|
|
5038
5043
|
revealOrder = props.revealOrder;
|
|
5039
|
-
if (
|
|
5040
|
-
"forwards" === revealOrder ||
|
|
5041
|
-
"backwards" === revealOrder ||
|
|
5042
|
-
"unstable_legacy-backwards" === revealOrder
|
|
5043
|
-
) {
|
|
5044
|
+
if ("independent" !== revealOrder && "together" !== revealOrder) {
|
|
5044
5045
|
if (isArrayImpl(children$jscomp$0)) {
|
|
5045
5046
|
renderSuspenseListRows(
|
|
5046
5047
|
request,
|
|
@@ -5072,7 +5073,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5072
5073
|
}
|
|
5073
5074
|
}
|
|
5074
5075
|
if ("together" === revealOrder) {
|
|
5075
|
-
var prevKeyPath$
|
|
5076
|
+
var prevKeyPath$41 = task.keyPath,
|
|
5076
5077
|
prevRow = task.row,
|
|
5077
5078
|
newRow = (task.row = createSuspenseListRow(null));
|
|
5078
5079
|
newRow.boundaries = [];
|
|
@@ -5081,7 +5082,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5081
5082
|
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5082
5083
|
0 === --newRow.pendingTasks &&
|
|
5083
5084
|
finishSuspenseListRow(request, newRow);
|
|
5084
|
-
task.keyPath = prevKeyPath$
|
|
5085
|
+
task.keyPath = prevKeyPath$41;
|
|
5085
5086
|
task.row = prevRow;
|
|
5086
5087
|
null !== prevRow &&
|
|
5087
5088
|
0 < newRow.pendingTasks &&
|
|
@@ -6069,21 +6070,21 @@ function renderNode(request, task, node, childIndex) {
|
|
|
6069
6070
|
chunkLength = segment.chunks.length;
|
|
6070
6071
|
try {
|
|
6071
6072
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
6072
|
-
} catch (thrownValue$
|
|
6073
|
+
} catch (thrownValue$64) {
|
|
6073
6074
|
if (
|
|
6074
6075
|
(resetHooksState(),
|
|
6075
6076
|
(segment.children.length = childrenLength),
|
|
6076
6077
|
(segment.chunks.length = chunkLength),
|
|
6077
6078
|
(node =
|
|
6078
|
-
thrownValue$
|
|
6079
|
+
thrownValue$64 === SuspenseException
|
|
6079
6080
|
? getSuspendedThenable()
|
|
6080
|
-
: thrownValue$
|
|
6081
|
+
: thrownValue$64),
|
|
6081
6082
|
12 !== request.status && "object" === typeof node && null !== node)
|
|
6082
6083
|
) {
|
|
6083
6084
|
if ("function" === typeof node.then) {
|
|
6084
6085
|
segment = node;
|
|
6085
6086
|
node =
|
|
6086
|
-
thrownValue$
|
|
6087
|
+
thrownValue$64 === SuspenseException
|
|
6087
6088
|
? getThenableStateAfterSuspending()
|
|
6088
6089
|
: null;
|
|
6089
6090
|
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
@@ -6098,7 +6099,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
6098
6099
|
}
|
|
6099
6100
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
6100
6101
|
segment =
|
|
6101
|
-
thrownValue$
|
|
6102
|
+
thrownValue$64 === SuspenseException
|
|
6102
6103
|
? getThenableStateAfterSuspending()
|
|
6103
6104
|
: null;
|
|
6104
6105
|
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
@@ -6216,12 +6217,12 @@ function abortTask(task, request, error) {
|
|
|
6216
6217
|
0 === request.pendingRootTasks && completeShell(request);
|
|
6217
6218
|
}
|
|
6218
6219
|
} else {
|
|
6219
|
-
var trackedPostpones$
|
|
6220
|
+
var trackedPostpones$65 = request.trackedPostpones;
|
|
6220
6221
|
if (4 !== boundary.status) {
|
|
6221
|
-
if (null !== trackedPostpones$
|
|
6222
|
+
if (null !== trackedPostpones$65 && null !== segment)
|
|
6222
6223
|
return (
|
|
6223
6224
|
logRecoverableError(request, error, errorInfo),
|
|
6224
|
-
trackPostpone(request, trackedPostpones$
|
|
6225
|
+
trackPostpone(request, trackedPostpones$65, task, segment),
|
|
6225
6226
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6226
6227
|
return abortTask(fallbackTask, request, error);
|
|
6227
6228
|
}),
|
|
@@ -7160,12 +7161,12 @@ function flushCompletedQueues(request, destination) {
|
|
|
7160
7161
|
flushingPartialBoundaries = destinationHasCapacity$1 = !0;
|
|
7161
7162
|
var partialBoundaries = request.partialBoundaries;
|
|
7162
7163
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
7163
|
-
var boundary$
|
|
7164
|
+
var boundary$71 = partialBoundaries[i];
|
|
7164
7165
|
a: {
|
|
7165
7166
|
clientRenderedBoundaries = request;
|
|
7166
7167
|
boundary = destination;
|
|
7167
|
-
flushedByteSize = boundary$
|
|
7168
|
-
var completedSegments = boundary$
|
|
7168
|
+
flushedByteSize = boundary$71.byteSize;
|
|
7169
|
+
var completedSegments = boundary$71.completedSegments;
|
|
7169
7170
|
for (
|
|
7170
7171
|
JSCompiler_inline_result = 0;
|
|
7171
7172
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -7175,7 +7176,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
7175
7176
|
!flushPartiallyCompletedSegment(
|
|
7176
7177
|
clientRenderedBoundaries,
|
|
7177
7178
|
boundary,
|
|
7178
|
-
boundary$
|
|
7179
|
+
boundary$71,
|
|
7179
7180
|
completedSegments[JSCompiler_inline_result]
|
|
7180
7181
|
)
|
|
7181
7182
|
) {
|
|
@@ -7185,10 +7186,10 @@ function flushCompletedQueues(request, destination) {
|
|
|
7185
7186
|
break a;
|
|
7186
7187
|
}
|
|
7187
7188
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
7188
|
-
var row = boundary$
|
|
7189
|
+
var row = boundary$71.row;
|
|
7189
7190
|
null !== row &&
|
|
7190
7191
|
row.together &&
|
|
7191
|
-
1 === boundary$
|
|
7192
|
+
1 === boundary$71.pendingTasks &&
|
|
7192
7193
|
(1 === row.pendingTasks
|
|
7193
7194
|
? unblockSuspenseListRow(
|
|
7194
7195
|
clientRenderedBoundaries,
|
|
@@ -7198,7 +7199,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
7198
7199
|
: row.pendingTasks--);
|
|
7199
7200
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
7200
7201
|
boundary,
|
|
7201
|
-
boundary$
|
|
7202
|
+
boundary$71.contentState,
|
|
7202
7203
|
clientRenderedBoundaries.renderState
|
|
7203
7204
|
);
|
|
7204
7205
|
}
|
|
@@ -7301,8 +7302,8 @@ function abort(request, reason) {
|
|
|
7301
7302
|
}
|
|
7302
7303
|
null !== request.destination &&
|
|
7303
7304
|
flushCompletedQueues(request, request.destination);
|
|
7304
|
-
} catch (error$
|
|
7305
|
-
logRecoverableError(request, error$
|
|
7305
|
+
} catch (error$73) {
|
|
7306
|
+
logRecoverableError(request, error$73, {}), fatalError(request, error$73);
|
|
7306
7307
|
}
|
|
7307
7308
|
}
|
|
7308
7309
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -7365,11 +7366,11 @@ function getPostponedState(request) {
|
|
|
7365
7366
|
}
|
|
7366
7367
|
function ensureCorrectIsomorphicReactVersion() {
|
|
7367
7368
|
var isomorphicReactPackageVersion = React.version;
|
|
7368
|
-
if ("19.3.0-canary-
|
|
7369
|
+
if ("19.3.0-canary-561ee24d-20251101" !== isomorphicReactPackageVersion)
|
|
7369
7370
|
throw Error(
|
|
7370
7371
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
7371
7372
|
(isomorphicReactPackageVersion +
|
|
7372
|
-
"\n - react-dom: 19.3.0-canary-
|
|
7373
|
+
"\n - react-dom: 19.3.0-canary-561ee24d-20251101\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
7373
7374
|
);
|
|
7374
7375
|
}
|
|
7375
7376
|
ensureCorrectIsomorphicReactVersion();
|
|
@@ -7927,4 +7928,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) {
|
|
|
7927
7928
|
}
|
|
7928
7929
|
};
|
|
7929
7930
|
};
|
|
7930
|
-
exports.version = "19.3.0-canary-
|
|
7931
|
+
exports.version = "19.3.0-canary-561ee24d-20251101";
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
exports.useFormStatus = function () {
|
|
417
417
|
return resolveDispatcher().useHostTransitionStatus();
|
|
418
418
|
};
|
|
419
|
-
exports.version = "19.3.0-canary-
|
|
419
|
+
exports.version = "19.3.0-canary-561ee24d-20251101";
|
|
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.3.0-canary-
|
|
210
|
+
exports.version = "19.3.0-canary-561ee24d-20251101";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dom",
|
|
3
|
-
"version": "19.3.0-canary-
|
|
3
|
+
"version": "19.3.0-canary-561ee24d-20251101",
|
|
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.28.0-canary-
|
|
20
|
+
"scheduler": "0.28.0-canary-561ee24d-20251101"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"react": "19.3.0-canary-
|
|
23
|
+
"react": "19.3.0-canary-561ee24d-20251101"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"LICENSE",
|