react-dom 19.0.0-rc-100dfd7dab-20240701 → 19.0.0-rc-3da26163a3-20240704
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 +265 -238
- package/cjs/react-dom-server-legacy.browser.production.js +48 -62
- package/cjs/react-dom-server-legacy.node.development.js +265 -238
- package/cjs/react-dom-server-legacy.node.production.js +48 -62
- package/cjs/react-dom-server.browser.development.js +267 -240
- package/cjs/react-dom-server.browser.production.js +53 -67
- package/cjs/react-dom-server.bun.development.js +264 -241
- package/cjs/react-dom-server.bun.production.js +53 -67
- package/cjs/react-dom-server.edge.development.js +267 -240
- package/cjs/react-dom-server.edge.production.js +53 -67
- package/cjs/react-dom-server.node.development.js +268 -241
- package/cjs/react-dom-server.node.production.js +54 -68
- 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
@@ -3449,7 +3449,6 @@ function RequestInstance(
|
|
3449
3449
|
abortSet,
|
3450
3450
|
null,
|
3451
3451
|
rootFormatContext,
|
3452
|
-
emptyContextObject,
|
3453
3452
|
null,
|
3454
3453
|
emptyTreeContext,
|
3455
3454
|
null,
|
@@ -3520,7 +3519,6 @@ function createRenderTask(
|
|
3520
3519
|
abortSet,
|
3521
3520
|
keyPath,
|
3522
3521
|
formatContext,
|
3523
|
-
legacyContext,
|
3524
3522
|
context,
|
3525
3523
|
treeContext,
|
3526
3524
|
componentStack,
|
@@ -3543,7 +3541,6 @@ function createRenderTask(
|
|
3543
3541
|
abortSet: abortSet,
|
3544
3542
|
keyPath: keyPath,
|
3545
3543
|
formatContext: formatContext,
|
3546
|
-
legacyContext: legacyContext,
|
3547
3544
|
context: context,
|
3548
3545
|
treeContext: treeContext,
|
3549
3546
|
componentStack: componentStack,
|
@@ -3564,7 +3561,6 @@ function createReplayTask(
|
|
3564
3561
|
abortSet,
|
3565
3562
|
keyPath,
|
3566
3563
|
formatContext,
|
3567
|
-
legacyContext,
|
3568
3564
|
context,
|
3569
3565
|
treeContext,
|
3570
3566
|
componentStack,
|
@@ -3588,7 +3584,6 @@ function createReplayTask(
|
|
3588
3584
|
abortSet: abortSet,
|
3589
3585
|
keyPath: keyPath,
|
3590
3586
|
formatContext: formatContext,
|
3591
|
-
legacyContext: legacyContext,
|
3592
3587
|
context: context,
|
3593
3588
|
treeContext: treeContext,
|
3594
3589
|
componentStack: componentStack,
|
@@ -3622,41 +3617,52 @@ function createPendingSegment(
|
|
3622
3617
|
function createBuiltInComponentStack(task, type) {
|
3623
3618
|
return { tag: 0, parent: task.componentStack, type: type };
|
3624
3619
|
}
|
3625
|
-
function getThrownInfo(
|
3626
|
-
|
3627
|
-
|
3628
|
-
|
3629
|
-
|
3630
|
-
|
3631
|
-
|
3632
|
-
|
3633
|
-
|
3634
|
-
|
3635
|
-
|
3636
|
-
|
3637
|
-
|
3638
|
-
|
3620
|
+
function getThrownInfo(node$jscomp$0) {
|
3621
|
+
var errorInfo = {};
|
3622
|
+
node$jscomp$0 &&
|
3623
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
3624
|
+
configurable: !0,
|
3625
|
+
enumerable: !0,
|
3626
|
+
get: function () {
|
3627
|
+
try {
|
3628
|
+
var info = "",
|
3629
|
+
node = node$jscomp$0;
|
3630
|
+
do {
|
3631
|
+
switch (node.tag) {
|
3632
|
+
case 0:
|
3633
|
+
info += describeBuiltInComponentFrame(node.type);
|
3634
|
+
break;
|
3635
|
+
case 1:
|
3636
|
+
info += describeNativeComponentFrame(node.type, !1);
|
3637
|
+
break;
|
3638
|
+
case 2:
|
3639
|
+
info += describeNativeComponentFrame(node.type, !0);
|
3640
|
+
}
|
3641
|
+
node = node.parent;
|
3642
|
+
} while (node);
|
3643
|
+
var JSCompiler_inline_result = info;
|
3644
|
+
} catch (x) {
|
3645
|
+
JSCompiler_inline_result =
|
3646
|
+
"\nError generating stack: " + x.message + "\n" + x.stack;
|
3639
3647
|
}
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3644
|
-
|
3645
|
-
|
3646
|
-
|
3647
|
-
JSCompiler_temp = { componentStack: JSCompiler_temp };
|
3648
|
-
} else JSCompiler_temp = {};
|
3649
|
-
return JSCompiler_temp;
|
3648
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
3649
|
+
value: JSCompiler_inline_result
|
3650
|
+
});
|
3651
|
+
return JSCompiler_inline_result;
|
3652
|
+
}
|
3653
|
+
});
|
3654
|
+
return errorInfo;
|
3650
3655
|
}
|
3651
3656
|
function logRecoverableError(request, error, errorInfo) {
|
3652
|
-
request = request.onError
|
3653
|
-
|
3657
|
+
request = request.onError;
|
3658
|
+
error = request(error, errorInfo);
|
3659
|
+
if (null == error || "string" === typeof error) return error;
|
3654
3660
|
}
|
3655
3661
|
function fatalError(request, error) {
|
3656
|
-
var onShellError = request.onShellError
|
3657
|
-
|
3658
|
-
onShellError = request.onFatalError;
|
3662
|
+
var onShellError = request.onShellError,
|
3663
|
+
onFatalError = request.onFatalError;
|
3659
3664
|
onShellError(error);
|
3665
|
+
onFatalError(error);
|
3660
3666
|
null !== request.destination
|
3661
3667
|
? ((request.status = 2), request.destination.destroy(error))
|
3662
3668
|
: ((request.status = 1), (request.fatalError = error));
|
@@ -4012,10 +4018,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4012
4018
|
} catch (error$28) {
|
4013
4019
|
(contentRootSegment.status = 4),
|
4014
4020
|
(contextType.status = 4),
|
4015
|
-
(JSCompiler_inline_result = getThrownInfo(
|
4016
|
-
request,
|
4017
|
-
task.componentStack
|
4018
|
-
)),
|
4021
|
+
(JSCompiler_inline_result = getThrownInfo(task.componentStack)),
|
4019
4022
|
(defaultProps = logRecoverableError(
|
4020
4023
|
request,
|
4021
4024
|
error$28,
|
@@ -4062,7 +4065,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4062
4065
|
props,
|
4063
4066
|
JSCompiler_inline_result,
|
4064
4067
|
task.formatContext,
|
4065
|
-
task.legacyContext,
|
4066
4068
|
task.context,
|
4067
4069
|
task.treeContext,
|
4068
4070
|
type,
|
@@ -4253,7 +4255,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4253
4255
|
x)
|
4254
4256
|
);
|
4255
4257
|
task.replay.pendingTasks--;
|
4256
|
-
props = getThrownInfo(
|
4258
|
+
props = getThrownInfo(task.componentStack);
|
4257
4259
|
key = request;
|
4258
4260
|
request = task.blockedBoundary;
|
4259
4261
|
type = x;
|
@@ -4325,10 +4327,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4325
4327
|
}
|
4326
4328
|
} catch (error$29) {
|
4327
4329
|
(resumedBoundary.status = 4),
|
4328
|
-
(childNodes = getThrownInfo(
|
4329
|
-
request,
|
4330
|
-
task.componentStack
|
4331
|
-
)),
|
4330
|
+
(childNodes = getThrownInfo(task.componentStack)),
|
4332
4331
|
(replay = logRecoverableError(
|
4333
4332
|
request,
|
4334
4333
|
error$29,
|
@@ -4357,7 +4356,6 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4357
4356
|
fallbackAbortSet,
|
4358
4357
|
[key[0], "Suspense Fallback", key[2]],
|
4359
4358
|
task.formatContext,
|
4360
|
-
task.legacyContext,
|
4361
4359
|
task.context,
|
4362
4360
|
task.treeContext,
|
4363
4361
|
suspenseComponentStack,
|
@@ -4486,7 +4484,7 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
4486
4484
|
)
|
4487
4485
|
throw x;
|
4488
4486
|
task.replay.pendingTasks--;
|
4489
|
-
children = getThrownInfo(
|
4487
|
+
children = getThrownInfo(task.componentStack);
|
4490
4488
|
var boundary = task.blockedBoundary,
|
4491
4489
|
error = x;
|
4492
4490
|
children = logRecoverableError(request, error, children);
|
@@ -4543,7 +4541,6 @@ function untrackBoundary(request, boundary) {
|
|
4543
4541
|
}
|
4544
4542
|
function renderNode(request, task, node, childIndex) {
|
4545
4543
|
var previousFormatContext = task.formatContext,
|
4546
|
-
previousLegacyContext = task.legacyContext,
|
4547
4544
|
previousContext = task.context,
|
4548
4545
|
previousKeyPath = task.keyPath,
|
4549
4546
|
previousTreeContext = task.treeContext,
|
@@ -4575,7 +4572,6 @@ function renderNode(request, task, node, childIndex) {
|
|
4575
4572
|
task.abortSet,
|
4576
4573
|
task.keyPath,
|
4577
4574
|
task.formatContext,
|
4578
|
-
task.legacyContext,
|
4579
4575
|
task.context,
|
4580
4576
|
task.treeContext,
|
4581
4577
|
null !== task.componentStack ? task.componentStack.parent : null,
|
@@ -4583,7 +4579,6 @@ function renderNode(request, task, node, childIndex) {
|
|
4583
4579
|
).ping;
|
4584
4580
|
node.then(request, request);
|
4585
4581
|
task.formatContext = previousFormatContext;
|
4586
|
-
task.legacyContext = previousLegacyContext;
|
4587
4582
|
task.context = previousContext;
|
4588
4583
|
task.keyPath = previousKeyPath;
|
4589
4584
|
task.treeContext = previousTreeContext;
|
@@ -4633,7 +4628,6 @@ function renderNode(request, task, node, childIndex) {
|
|
4633
4628
|
task.abortSet,
|
4634
4629
|
task.keyPath,
|
4635
4630
|
task.formatContext,
|
4636
|
-
task.legacyContext,
|
4637
4631
|
task.context,
|
4638
4632
|
task.treeContext,
|
4639
4633
|
null !== task.componentStack ? task.componentStack.parent : null,
|
@@ -4641,7 +4635,6 @@ function renderNode(request, task, node, childIndex) {
|
|
4641
4635
|
).ping;
|
4642
4636
|
node.then(request, request);
|
4643
4637
|
task.formatContext = previousFormatContext;
|
4644
|
-
task.legacyContext = previousLegacyContext;
|
4645
4638
|
task.context = previousContext;
|
4646
4639
|
task.keyPath = previousKeyPath;
|
4647
4640
|
task.treeContext = previousTreeContext;
|
@@ -4652,7 +4645,6 @@ function renderNode(request, task, node, childIndex) {
|
|
4652
4645
|
}
|
4653
4646
|
}
|
4654
4647
|
task.formatContext = previousFormatContext;
|
4655
|
-
task.legacyContext = previousLegacyContext;
|
4656
4648
|
task.context = previousContext;
|
4657
4649
|
task.keyPath = previousKeyPath;
|
4658
4650
|
task.treeContext = previousTreeContext;
|
@@ -4738,7 +4730,7 @@ function abortTask(task, request, error) {
|
|
4738
4730
|
boundary.pendingTasks--,
|
4739
4731
|
4 !== boundary.status &&
|
4740
4732
|
((boundary.status = 4),
|
4741
|
-
(task = getThrownInfo(
|
4733
|
+
(task = getThrownInfo(task.componentStack)),
|
4742
4734
|
(task = logRecoverableError(request, error, task)),
|
4743
4735
|
(boundary.errorDigest = task),
|
4744
4736
|
untrackBoundary(request, boundary),
|
@@ -4931,10 +4923,7 @@ function performWork(request$jscomp$2) {
|
|
4931
4923
|
} else {
|
4932
4924
|
task.replay.pendingTasks--;
|
4933
4925
|
task.abortSet.delete(task);
|
4934
|
-
var errorInfo = getThrownInfo(
|
4935
|
-
request$jscomp$0,
|
4936
|
-
task.componentStack
|
4937
|
-
);
|
4926
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
4938
4927
|
request = void 0;
|
4939
4928
|
var request$jscomp$1 = request$jscomp$0,
|
4940
4929
|
boundary = task.blockedBoundary,
|
@@ -5000,10 +4989,7 @@ function performWork(request$jscomp$2) {
|
|
5000
4989
|
null !== task.componentStack &&
|
5001
4990
|
(task.componentStack = task.componentStack.parent);
|
5002
4991
|
} else {
|
5003
|
-
var errorInfo$jscomp$0 = getThrownInfo(
|
5004
|
-
request,
|
5005
|
-
task.componentStack
|
5006
|
-
);
|
4992
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
5007
4993
|
task.abortSet.delete(task);
|
5008
4994
|
request$jscomp$1.status = 4;
|
5009
4995
|
var boundary$jscomp$0 = task.blockedBoundary;
|
@@ -5561,4 +5547,4 @@ exports.renderToString = function (children, options) {
|
|
5561
5547
|
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
5562
5548
|
);
|
5563
5549
|
};
|
5564
|
-
exports.version = "19.0.0-rc-
|
5550
|
+
exports.version = "19.0.0-rc-3da26163a3-20240704";
|