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
@@ -3845,7 +3845,6 @@ function RequestInstance(
|
|
3845
3845
|
abortSet,
|
3846
3846
|
null,
|
3847
3847
|
rootFormatContext,
|
3848
|
-
emptyContextObject,
|
3849
3848
|
null,
|
3850
3849
|
emptyTreeContext,
|
3851
3850
|
null,
|
@@ -3926,7 +3925,6 @@ function createRenderTask(
|
|
3926
3925
|
abortSet,
|
3927
3926
|
keyPath,
|
3928
3927
|
formatContext,
|
3929
|
-
legacyContext,
|
3930
3928
|
context,
|
3931
3929
|
treeContext,
|
3932
3930
|
componentStack,
|
@@ -3949,7 +3947,6 @@ function createRenderTask(
|
|
3949
3947
|
abortSet: abortSet,
|
3950
3948
|
keyPath: keyPath,
|
3951
3949
|
formatContext: formatContext,
|
3952
|
-
legacyContext: legacyContext,
|
3953
3950
|
context: context,
|
3954
3951
|
treeContext: treeContext,
|
3955
3952
|
componentStack: componentStack,
|
@@ -3970,7 +3967,6 @@ function createReplayTask(
|
|
3970
3967
|
abortSet,
|
3971
3968
|
keyPath,
|
3972
3969
|
formatContext,
|
3973
|
-
legacyContext,
|
3974
3970
|
context,
|
3975
3971
|
treeContext,
|
3976
3972
|
componentStack,
|
@@ -3994,7 +3990,6 @@ function createReplayTask(
|
|
3994
3990
|
abortSet: abortSet,
|
3995
3991
|
keyPath: keyPath,
|
3996
3992
|
formatContext: formatContext,
|
3997
|
-
legacyContext: legacyContext,
|
3998
3993
|
context: context,
|
3999
3994
|
treeContext: treeContext,
|
4000
3995
|
componentStack: componentStack,
|
@@ -4028,41 +4023,52 @@ function createPendingSegment(
|
|
4028
4023
|
function createBuiltInComponentStack(task, type) {
|
4029
4024
|
return { tag: 0, parent: task.componentStack, type: type };
|
4030
4025
|
}
|
4031
|
-
function getThrownInfo(
|
4032
|
-
|
4033
|
-
|
4034
|
-
|
4035
|
-
|
4036
|
-
|
4037
|
-
|
4038
|
-
|
4039
|
-
|
4040
|
-
|
4041
|
-
|
4042
|
-
|
4043
|
-
|
4044
|
-
|
4026
|
+
function getThrownInfo(node$jscomp$0) {
|
4027
|
+
var errorInfo = {};
|
4028
|
+
node$jscomp$0 &&
|
4029
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
4030
|
+
configurable: !0,
|
4031
|
+
enumerable: !0,
|
4032
|
+
get: function () {
|
4033
|
+
try {
|
4034
|
+
var info = "",
|
4035
|
+
node = node$jscomp$0;
|
4036
|
+
do {
|
4037
|
+
switch (node.tag) {
|
4038
|
+
case 0:
|
4039
|
+
info += describeBuiltInComponentFrame(node.type);
|
4040
|
+
break;
|
4041
|
+
case 1:
|
4042
|
+
info += describeNativeComponentFrame(node.type, !1);
|
4043
|
+
break;
|
4044
|
+
case 2:
|
4045
|
+
info += describeNativeComponentFrame(node.type, !0);
|
4046
|
+
}
|
4047
|
+
node = node.parent;
|
4048
|
+
} while (node);
|
4049
|
+
var JSCompiler_inline_result = info;
|
4050
|
+
} catch (x) {
|
4051
|
+
JSCompiler_inline_result =
|
4052
|
+
"\nError generating stack: " + x.message + "\n" + x.stack;
|
4045
4053
|
}
|
4046
|
-
|
4047
|
-
|
4048
|
-
|
4049
|
-
|
4050
|
-
|
4051
|
-
|
4052
|
-
|
4053
|
-
JSCompiler_temp = { componentStack: JSCompiler_temp };
|
4054
|
-
} else JSCompiler_temp = {};
|
4055
|
-
return JSCompiler_temp;
|
4054
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
4055
|
+
value: JSCompiler_inline_result
|
4056
|
+
});
|
4057
|
+
return JSCompiler_inline_result;
|
4058
|
+
}
|
4059
|
+
});
|
4060
|
+
return errorInfo;
|
4056
4061
|
}
|
4057
4062
|
function logRecoverableError(request, error, errorInfo) {
|
4058
|
-
request = request.onError
|
4059
|
-
|
4063
|
+
request = request.onError;
|
4064
|
+
error = request(error, errorInfo);
|
4065
|
+
if (null == error || "string" === typeof error) return error;
|
4060
4066
|
}
|
4061
4067
|
function fatalError(request, error) {
|
4062
|
-
var onShellError = request.onShellError
|
4063
|
-
|
4064
|
-
onShellError = request.onFatalError;
|
4068
|
+
var onShellError = request.onShellError,
|
4069
|
+
onFatalError = request.onFatalError;
|
4065
4070
|
onShellError(error);
|
4071
|
+
onFatalError(error);
|
4066
4072
|
null !== request.destination
|
4067
4073
|
? ((request.status = 2), closeWithError(request.destination, error))
|
4068
4074
|
: ((request.status = 1), (request.fatalError = error));
|
@@ -4417,10 +4423,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4417
4423
|
} catch (error$28) {
|
4418
4424
|
(contentRootSegment.status = 4),
|
4419
4425
|
(contextType.status = 4),
|
4420
|
-
(JSCompiler_inline_result = getThrownInfo(
|
4421
|
-
request,
|
4422
|
-
task.componentStack
|
4423
|
-
)),
|
4426
|
+
(JSCompiler_inline_result = getThrownInfo(task.componentStack)),
|
4424
4427
|
(defaultProps = logRecoverableError(
|
4425
4428
|
request,
|
4426
4429
|
error$28,
|
@@ -4467,7 +4470,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4467
4470
|
props,
|
4468
4471
|
JSCompiler_inline_result,
|
4469
4472
|
task.formatContext,
|
4470
|
-
task.legacyContext,
|
4471
4473
|
task.context,
|
4472
4474
|
task.treeContext,
|
4473
4475
|
type,
|
@@ -4670,7 +4672,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4670
4672
|
x)
|
4671
4673
|
);
|
4672
4674
|
task.replay.pendingTasks--;
|
4673
|
-
props = getThrownInfo(
|
4675
|
+
props = getThrownInfo(task.componentStack);
|
4674
4676
|
key = request;
|
4675
4677
|
request = task.blockedBoundary;
|
4676
4678
|
type = x;
|
@@ -4742,10 +4744,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4742
4744
|
}
|
4743
4745
|
} catch (error$29) {
|
4744
4746
|
(resumedBoundary.status = 4),
|
4745
|
-
(childNodes = getThrownInfo(
|
4746
|
-
request,
|
4747
|
-
task.componentStack
|
4748
|
-
)),
|
4747
|
+
(childNodes = getThrownInfo(task.componentStack)),
|
4749
4748
|
(replay = logRecoverableError(
|
4750
4749
|
request,
|
4751
4750
|
error$29,
|
@@ -4774,7 +4773,6 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4774
4773
|
fallbackAbortSet,
|
4775
4774
|
[key[0], "Suspense Fallback", key[2]],
|
4776
4775
|
task.formatContext,
|
4777
|
-
task.legacyContext,
|
4778
4776
|
task.context,
|
4779
4777
|
task.treeContext,
|
4780
4778
|
suspenseComponentStack,
|
@@ -4906,7 +4904,7 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
4906
4904
|
)
|
4907
4905
|
throw x;
|
4908
4906
|
task.replay.pendingTasks--;
|
4909
|
-
children = getThrownInfo(
|
4907
|
+
children = getThrownInfo(task.componentStack);
|
4910
4908
|
var boundary = task.blockedBoundary,
|
4911
4909
|
error = x;
|
4912
4910
|
children = logRecoverableError(request, error, children);
|
@@ -4963,7 +4961,6 @@ function untrackBoundary(request, boundary) {
|
|
4963
4961
|
}
|
4964
4962
|
function renderNode(request, task, node, childIndex) {
|
4965
4963
|
var previousFormatContext = task.formatContext,
|
4966
|
-
previousLegacyContext = task.legacyContext,
|
4967
4964
|
previousContext = task.context,
|
4968
4965
|
previousKeyPath = task.keyPath,
|
4969
4966
|
previousTreeContext = task.treeContext,
|
@@ -4995,7 +4992,6 @@ function renderNode(request, task, node, childIndex) {
|
|
4995
4992
|
task.abortSet,
|
4996
4993
|
task.keyPath,
|
4997
4994
|
task.formatContext,
|
4998
|
-
task.legacyContext,
|
4999
4995
|
task.context,
|
5000
4996
|
task.treeContext,
|
5001
4997
|
null !== task.componentStack ? task.componentStack.parent : null,
|
@@ -5003,7 +4999,6 @@ function renderNode(request, task, node, childIndex) {
|
|
5003
4999
|
).ping;
|
5004
5000
|
node.then(request, request);
|
5005
5001
|
task.formatContext = previousFormatContext;
|
5006
|
-
task.legacyContext = previousLegacyContext;
|
5007
5002
|
task.context = previousContext;
|
5008
5003
|
task.keyPath = previousKeyPath;
|
5009
5004
|
task.treeContext = previousTreeContext;
|
@@ -5053,7 +5048,6 @@ function renderNode(request, task, node, childIndex) {
|
|
5053
5048
|
task.abortSet,
|
5054
5049
|
task.keyPath,
|
5055
5050
|
task.formatContext,
|
5056
|
-
task.legacyContext,
|
5057
5051
|
task.context,
|
5058
5052
|
task.treeContext,
|
5059
5053
|
null !== task.componentStack ? task.componentStack.parent : null,
|
@@ -5061,7 +5055,6 @@ function renderNode(request, task, node, childIndex) {
|
|
5061
5055
|
).ping;
|
5062
5056
|
node.then(request, request);
|
5063
5057
|
task.formatContext = previousFormatContext;
|
5064
|
-
task.legacyContext = previousLegacyContext;
|
5065
5058
|
task.context = previousContext;
|
5066
5059
|
task.keyPath = previousKeyPath;
|
5067
5060
|
task.treeContext = previousTreeContext;
|
@@ -5072,7 +5065,6 @@ function renderNode(request, task, node, childIndex) {
|
|
5072
5065
|
}
|
5073
5066
|
}
|
5074
5067
|
task.formatContext = previousFormatContext;
|
5075
|
-
task.legacyContext = previousLegacyContext;
|
5076
5068
|
task.context = previousContext;
|
5077
5069
|
task.keyPath = previousKeyPath;
|
5078
5070
|
task.treeContext = previousTreeContext;
|
@@ -5161,7 +5153,7 @@ function abortTask(task, request, error) {
|
|
5161
5153
|
boundary.pendingTasks--,
|
5162
5154
|
4 !== boundary.status &&
|
5163
5155
|
((boundary.status = 4),
|
5164
|
-
(task = getThrownInfo(
|
5156
|
+
(task = getThrownInfo(task.componentStack)),
|
5165
5157
|
(task = logRecoverableError(request, error, task)),
|
5166
5158
|
(boundary.errorDigest = task),
|
5167
5159
|
untrackBoundary(request, boundary),
|
@@ -5358,10 +5350,7 @@ function performWork(request$jscomp$2) {
|
|
5358
5350
|
} else {
|
5359
5351
|
task.replay.pendingTasks--;
|
5360
5352
|
task.abortSet.delete(task);
|
5361
|
-
var errorInfo = getThrownInfo(
|
5362
|
-
request$jscomp$0,
|
5363
|
-
task.componentStack
|
5364
|
-
);
|
5353
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
5365
5354
|
request = void 0;
|
5366
5355
|
var request$jscomp$1 = request$jscomp$0,
|
5367
5356
|
boundary = task.blockedBoundary,
|
@@ -5426,10 +5415,7 @@ function performWork(request$jscomp$2) {
|
|
5426
5415
|
null !== task.componentStack &&
|
5427
5416
|
(task.componentStack = task.componentStack.parent);
|
5428
5417
|
} else {
|
5429
|
-
var errorInfo$jscomp$0 = getThrownInfo(
|
5430
|
-
request,
|
5431
|
-
task.componentStack
|
5432
|
-
);
|
5418
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
5433
5419
|
task.abortSet.delete(task);
|
5434
5420
|
request$jscomp$1.status = 4;
|
5435
5421
|
var boundary$jscomp$0 = task.blockedBoundary;
|
@@ -5933,15 +5919,15 @@ function abort(request, reason) {
|
|
5933
5919
|
logRecoverableError(request, error$52, {}), fatalError(request, error$52);
|
5934
5920
|
}
|
5935
5921
|
}
|
5936
|
-
var isomorphicReactPackageVersion$jscomp$
|
5922
|
+
var isomorphicReactPackageVersion$jscomp$inline_766 = React.version;
|
5937
5923
|
if (
|
5938
|
-
"19.0.0-rc-
|
5939
|
-
isomorphicReactPackageVersion$jscomp$
|
5924
|
+
"19.0.0-rc-3da26163a3-20240704" !==
|
5925
|
+
isomorphicReactPackageVersion$jscomp$inline_766
|
5940
5926
|
)
|
5941
5927
|
throw Error(
|
5942
5928
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
5943
|
-
(isomorphicReactPackageVersion$jscomp$
|
5944
|
-
"\n - react-dom: 19.0.0-rc-
|
5929
|
+
(isomorphicReactPackageVersion$jscomp$inline_766 +
|
5930
|
+
"\n - react-dom: 19.0.0-rc-3da26163a3-20240704\nLearn more: https://react.dev/warnings/version-mismatch")
|
5945
5931
|
);
|
5946
5932
|
exports.renderToReadableStream = function (children, options) {
|
5947
5933
|
return new Promise(function (resolve, reject) {
|
@@ -6029,4 +6015,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6029
6015
|
startWork(request);
|
6030
6016
|
});
|
6031
6017
|
};
|
6032
|
-
exports.version = "19.0.0-rc-
|
6018
|
+
exports.version = "19.0.0-rc-3da26163a3-20240704";
|