react-dom 19.2.0-canary-3d14fcf0-20250724 → 19.2.0-canary-eaee5308-20250728
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 +106 -107
- package/cjs/react-dom-client.production.js +5 -5
- package/cjs/react-dom-profiling.development.js +106 -107
- package/cjs/react-dom-profiling.profiling.js +5 -5
- package/cjs/react-dom-server-legacy.browser.development.js +57 -24
- package/cjs/react-dom-server-legacy.browser.production.js +25 -7
- package/cjs/react-dom-server-legacy.node.development.js +57 -24
- package/cjs/react-dom-server-legacy.node.production.js +25 -7
- package/cjs/react-dom-server.browser.development.js +59 -26
- package/cjs/react-dom-server.browser.production.js +27 -9
- package/cjs/react-dom-server.bun.development.js +59 -21
- package/cjs/react-dom-server.bun.production.js +27 -9
- package/cjs/react-dom-server.edge.development.js +59 -26
- package/cjs/react-dom-server.edge.production.js +27 -9
- package/cjs/react-dom-server.node.development.js +59 -26
- package/cjs/react-dom-server.node.production.js +27 -9
- 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
|
@@ -4800,6 +4800,27 @@
|
|
|
4800
4800
|
}
|
|
4801
4801
|
return JSCompiler_inline_result$jscomp$0;
|
|
4802
4802
|
}
|
|
4803
|
+
function pushHaltedAwaitOnComponentStack(task, debugInfo) {
|
|
4804
|
+
if (null != debugInfo)
|
|
4805
|
+
for (var i = debugInfo.length - 1; 0 <= i; i--) {
|
|
4806
|
+
var info = debugInfo[i];
|
|
4807
|
+
if ("string" === typeof info.name) break;
|
|
4808
|
+
if ("number" === typeof info.time) break;
|
|
4809
|
+
if (null != info.awaited) {
|
|
4810
|
+
var bestStack = null == info.debugStack ? info.awaited : info;
|
|
4811
|
+
if (void 0 !== bestStack.debugStack) {
|
|
4812
|
+
task.componentStack = {
|
|
4813
|
+
parent: task.componentStack,
|
|
4814
|
+
type: info,
|
|
4815
|
+
owner: bestStack.owner,
|
|
4816
|
+
stack: bestStack.debugStack
|
|
4817
|
+
};
|
|
4818
|
+
task.debugTask = bestStack.debugTask;
|
|
4819
|
+
break;
|
|
4820
|
+
}
|
|
4821
|
+
}
|
|
4822
|
+
}
|
|
4823
|
+
}
|
|
4803
4824
|
function pushServerComponentStack(task, debugInfo) {
|
|
4804
4825
|
if (null != debugInfo)
|
|
4805
4826
|
for (var i = 0; i < debugInfo.length; i++) {
|
|
@@ -6842,7 +6863,10 @@
|
|
|
6842
6863
|
"object" === typeof node && null !== node)
|
|
6843
6864
|
) {
|
|
6844
6865
|
if ("function" === typeof node.then) {
|
|
6845
|
-
childIndex =
|
|
6866
|
+
childIndex =
|
|
6867
|
+
thrownValue === SuspenseException
|
|
6868
|
+
? getThenableStateAfterSuspending()
|
|
6869
|
+
: null;
|
|
6846
6870
|
request = spawnNewSuspendedReplayTask(
|
|
6847
6871
|
request,
|
|
6848
6872
|
task,
|
|
@@ -6860,7 +6884,10 @@
|
|
|
6860
6884
|
return;
|
|
6861
6885
|
}
|
|
6862
6886
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
6863
|
-
node =
|
|
6887
|
+
node =
|
|
6888
|
+
thrownValue === SuspenseException
|
|
6889
|
+
? getThenableStateAfterSuspending()
|
|
6890
|
+
: null;
|
|
6864
6891
|
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
6865
6892
|
request.pingedTasks.push(node);
|
|
6866
6893
|
task.formatContext = previousFormatContext;
|
|
@@ -6893,7 +6920,10 @@
|
|
|
6893
6920
|
) {
|
|
6894
6921
|
if ("function" === typeof node.then) {
|
|
6895
6922
|
segment = node;
|
|
6896
|
-
node =
|
|
6923
|
+
node =
|
|
6924
|
+
thrownValue$3 === SuspenseException
|
|
6925
|
+
? getThenableStateAfterSuspending()
|
|
6926
|
+
: null;
|
|
6897
6927
|
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
6898
6928
|
segment.then(request, request);
|
|
6899
6929
|
task.formatContext = previousFormatContext;
|
|
@@ -6906,7 +6936,10 @@
|
|
|
6906
6936
|
return;
|
|
6907
6937
|
}
|
|
6908
6938
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
6909
|
-
segment =
|
|
6939
|
+
segment =
|
|
6940
|
+
thrownValue$3 === SuspenseException
|
|
6941
|
+
? getThenableStateAfterSuspending()
|
|
6942
|
+
: null;
|
|
6910
6943
|
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
6911
6944
|
request.pingedTasks.push(segment);
|
|
6912
6945
|
task.formatContext = previousFormatContext;
|
|
@@ -7015,6 +7048,10 @@
|
|
|
7015
7048
|
segment.status = ABORTED;
|
|
7016
7049
|
}
|
|
7017
7050
|
segment = getThrownInfo(task.componentStack);
|
|
7051
|
+
var node = task.node;
|
|
7052
|
+
null !== node &&
|
|
7053
|
+
"object" === typeof node &&
|
|
7054
|
+
pushHaltedAwaitOnComponentStack(task, node._debugInfo);
|
|
7018
7055
|
if (null === boundary) {
|
|
7019
7056
|
if (13 !== request.status && request.status !== CLOSED) {
|
|
7020
7057
|
boundary = task.replay;
|
|
@@ -7024,38 +7061,28 @@
|
|
|
7024
7061
|
return;
|
|
7025
7062
|
}
|
|
7026
7063
|
boundary.pendingTasks--;
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
error,
|
|
7031
|
-
segment,
|
|
7032
|
-
null
|
|
7033
|
-
);
|
|
7064
|
+
0 === boundary.pendingTasks &&
|
|
7065
|
+
0 < boundary.nodes.length &&
|
|
7066
|
+
((node = logRecoverableError(request, error, segment, null)),
|
|
7034
7067
|
abortRemainingReplayNodes(
|
|
7035
7068
|
request,
|
|
7036
7069
|
null,
|
|
7037
7070
|
boundary.nodes,
|
|
7038
7071
|
boundary.slots,
|
|
7039
7072
|
error,
|
|
7040
|
-
|
|
7073
|
+
node,
|
|
7041
7074
|
segment,
|
|
7042
7075
|
!0
|
|
7043
|
-
);
|
|
7044
|
-
}
|
|
7076
|
+
));
|
|
7045
7077
|
request.pendingRootTasks--;
|
|
7046
7078
|
0 === request.pendingRootTasks && completeShell(request);
|
|
7047
7079
|
}
|
|
7048
7080
|
} else
|
|
7049
7081
|
boundary.status !== CLIENT_RENDERED &&
|
|
7050
7082
|
((boundary.status = CLIENT_RENDERED),
|
|
7051
|
-
(
|
|
7052
|
-
request,
|
|
7053
|
-
error,
|
|
7054
|
-
segment,
|
|
7055
|
-
task.debugTask
|
|
7056
|
-
)),
|
|
7083
|
+
(node = logRecoverableError(request, error, segment, task.debugTask)),
|
|
7057
7084
|
(boundary.status = CLIENT_RENDERED),
|
|
7058
|
-
encodeErrorForBoundary(boundary,
|
|
7085
|
+
encodeErrorForBoundary(boundary, node, error, segment, !0),
|
|
7059
7086
|
untrackBoundary(request, boundary),
|
|
7060
7087
|
boundary.parentFlushed &&
|
|
7061
7088
|
request.clientRenderedBoundaries.push(boundary)),
|
|
@@ -7378,7 +7405,10 @@
|
|
|
7378
7405
|
) {
|
|
7379
7406
|
var ping = request.ping;
|
|
7380
7407
|
x.then(ping, ping);
|
|
7381
|
-
request.thenableState =
|
|
7408
|
+
request.thenableState =
|
|
7409
|
+
thrownValue === SuspenseException
|
|
7410
|
+
? getThenableStateAfterSuspending()
|
|
7411
|
+
: null;
|
|
7382
7412
|
} else {
|
|
7383
7413
|
request.replay.pendingTasks--;
|
|
7384
7414
|
request.abortSet.delete(request);
|
|
@@ -7466,7 +7496,10 @@
|
|
|
7466
7496
|
"function" === typeof x$jscomp$0.then
|
|
7467
7497
|
) {
|
|
7468
7498
|
request$jscomp$1.status = PENDING;
|
|
7469
|
-
errorDigest.thenableState =
|
|
7499
|
+
errorDigest.thenableState =
|
|
7500
|
+
thrownValue === SuspenseException
|
|
7501
|
+
? getThenableStateAfterSuspending()
|
|
7502
|
+
: null;
|
|
7470
7503
|
var ping$jscomp$0 = errorDigest.ping;
|
|
7471
7504
|
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
7472
7505
|
} else {
|
|
@@ -8346,11 +8379,11 @@
|
|
|
8346
8379
|
}
|
|
8347
8380
|
function ensureCorrectIsomorphicReactVersion() {
|
|
8348
8381
|
var isomorphicReactPackageVersion = React.version;
|
|
8349
|
-
if ("19.2.0-canary-
|
|
8382
|
+
if ("19.2.0-canary-eaee5308-20250728" !== isomorphicReactPackageVersion)
|
|
8350
8383
|
throw Error(
|
|
8351
8384
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
8352
8385
|
(isomorphicReactPackageVersion +
|
|
8353
|
-
"\n - react-dom: 19.2.0-canary-
|
|
8386
|
+
"\n - react-dom: 19.2.0-canary-eaee5308-20250728\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
8354
8387
|
);
|
|
8355
8388
|
}
|
|
8356
8389
|
function createDrainHandler(destination, request) {
|
|
@@ -10221,5 +10254,5 @@
|
|
|
10221
10254
|
startWork(request);
|
|
10222
10255
|
});
|
|
10223
10256
|
};
|
|
10224
|
-
exports.version = "19.2.0-canary-
|
|
10257
|
+
exports.version = "19.2.0-canary-eaee5308-20250728";
|
|
10225
10258
|
})();
|
|
@@ -5586,7 +5586,10 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5586
5586
|
"object" === typeof node && null !== node)
|
|
5587
5587
|
) {
|
|
5588
5588
|
if ("function" === typeof node.then) {
|
|
5589
|
-
childIndex =
|
|
5589
|
+
childIndex =
|
|
5590
|
+
thrownValue === SuspenseException
|
|
5591
|
+
? getThenableStateAfterSuspending()
|
|
5592
|
+
: null;
|
|
5590
5593
|
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
|
5591
5594
|
node.then(request, request);
|
|
5592
5595
|
task.formatContext = previousFormatContext;
|
|
@@ -5599,7 +5602,10 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5599
5602
|
return;
|
|
5600
5603
|
}
|
|
5601
5604
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
5602
|
-
node =
|
|
5605
|
+
node =
|
|
5606
|
+
thrownValue === SuspenseException
|
|
5607
|
+
? getThenableStateAfterSuspending()
|
|
5608
|
+
: null;
|
|
5603
5609
|
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
5604
5610
|
request.pingedTasks.push(node);
|
|
5605
5611
|
task.formatContext = previousFormatContext;
|
|
@@ -5631,7 +5637,10 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5631
5637
|
) {
|
|
5632
5638
|
if ("function" === typeof node.then) {
|
|
5633
5639
|
segment = node;
|
|
5634
|
-
node =
|
|
5640
|
+
node =
|
|
5641
|
+
thrownValue$60 === SuspenseException
|
|
5642
|
+
? getThenableStateAfterSuspending()
|
|
5643
|
+
: null;
|
|
5635
5644
|
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
5636
5645
|
segment.then(request, request);
|
|
5637
5646
|
task.formatContext = previousFormatContext;
|
|
@@ -5643,7 +5652,10 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5643
5652
|
return;
|
|
5644
5653
|
}
|
|
5645
5654
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
5646
|
-
segment =
|
|
5655
|
+
segment =
|
|
5656
|
+
thrownValue$60 === SuspenseException
|
|
5657
|
+
? getThenableStateAfterSuspending()
|
|
5658
|
+
: null;
|
|
5647
5659
|
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
5648
5660
|
request.pingedTasks.push(segment);
|
|
5649
5661
|
task.formatContext = previousFormatContext;
|
|
@@ -6059,7 +6071,10 @@ function performWork(request$jscomp$2) {
|
|
|
6059
6071
|
) {
|
|
6060
6072
|
var ping = task.ping;
|
|
6061
6073
|
x.then(ping, ping);
|
|
6062
|
-
task.thenableState =
|
|
6074
|
+
task.thenableState =
|
|
6075
|
+
thrownValue === SuspenseException
|
|
6076
|
+
? getThenableStateAfterSuspending()
|
|
6077
|
+
: null;
|
|
6063
6078
|
} else {
|
|
6064
6079
|
task.replay.pendingTasks--;
|
|
6065
6080
|
task.abortSet.delete(task);
|
|
@@ -6135,7 +6150,10 @@ function performWork(request$jscomp$2) {
|
|
|
6135
6150
|
"function" === typeof x$jscomp$0.then
|
|
6136
6151
|
) {
|
|
6137
6152
|
request$jscomp$1.status = 0;
|
|
6138
|
-
task.thenableState =
|
|
6153
|
+
task.thenableState =
|
|
6154
|
+
thrownValue === SuspenseException
|
|
6155
|
+
? getThenableStateAfterSuspending()
|
|
6156
|
+
: null;
|
|
6139
6157
|
var ping$jscomp$0 = task.ping;
|
|
6140
6158
|
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6141
6159
|
} else {
|
|
@@ -6841,11 +6859,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
|
6841
6859
|
}
|
|
6842
6860
|
function ensureCorrectIsomorphicReactVersion() {
|
|
6843
6861
|
var isomorphicReactPackageVersion = React.version;
|
|
6844
|
-
if ("19.2.0-canary-
|
|
6862
|
+
if ("19.2.0-canary-eaee5308-20250728" !== isomorphicReactPackageVersion)
|
|
6845
6863
|
throw Error(
|
|
6846
6864
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
6847
6865
|
(isomorphicReactPackageVersion +
|
|
6848
|
-
"\n - react-dom: 19.2.0-canary-
|
|
6866
|
+
"\n - react-dom: 19.2.0-canary-eaee5308-20250728\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
6849
6867
|
);
|
|
6850
6868
|
}
|
|
6851
6869
|
ensureCorrectIsomorphicReactVersion();
|
|
@@ -7183,4 +7201,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7183
7201
|
startWork(request);
|
|
7184
7202
|
});
|
|
7185
7203
|
};
|
|
7186
|
-
exports.version = "19.2.0-canary-
|
|
7204
|
+
exports.version = "19.2.0-canary-eaee5308-20250728";
|
|
@@ -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-eaee5308-20250728";
|
|
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-eaee5308-20250728";
|
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-eaee5308-20250728",
|
|
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-eaee5308-20250728"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"react": "19.2.0-canary-
|
|
23
|
+
"react": "19.2.0-canary-eaee5308-20250728"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"LICENSE",
|