react-server-dom-webpack 19.2.0-canary-5d87cd22-20250704 → 19.2.0-canary-befc1246-20250708
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-server-dom-webpack-client.browser.development.js +293 -226
- package/cjs/react-server-dom-webpack-client.browser.production.js +52 -51
- package/cjs/react-server-dom-webpack-client.edge.development.js +280 -214
- package/cjs/react-server-dom-webpack-client.edge.production.js +41 -41
- package/cjs/react-server-dom-webpack-client.node.development.js +372 -295
- package/cjs/react-server-dom-webpack-client.node.production.js +59 -59
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +372 -295
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +59 -59
- package/cjs/react-server-dom-webpack-server.browser.development.js +100 -69
- package/cjs/react-server-dom-webpack-server.browser.production.js +87 -64
- package/cjs/react-server-dom-webpack-server.edge.development.js +100 -69
- package/cjs/react-server-dom-webpack-server.edge.production.js +87 -64
- package/cjs/react-server-dom-webpack-server.node.development.js +103 -72
- package/cjs/react-server-dom-webpack-server.node.production.js +88 -65
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +103 -72
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +88 -65
- package/package.json +3 -3
@@ -790,7 +790,9 @@ function serializeThenable(request, task, thenable) {
|
|
790
790
|
if (12 === request.status)
|
791
791
|
return (
|
792
792
|
request.abortableTasks.delete(newTask),
|
793
|
-
|
793
|
+
(task = request.fatalError),
|
794
|
+
abortTask(newTask),
|
795
|
+
finishAbortedTask(newTask, request, task),
|
794
796
|
newTask.id
|
795
797
|
);
|
796
798
|
"string" !== typeof thenable.status &&
|
@@ -1297,7 +1299,7 @@ function outlineModel(request, value) {
|
|
1297
1299
|
function serializeTypedArray(request, tag, typedArray) {
|
1298
1300
|
request.pendingChunks++;
|
1299
1301
|
var bufferId = request.nextChunkId++;
|
1300
|
-
emitTypedArrayChunk(request, bufferId, tag, typedArray);
|
1302
|
+
emitTypedArrayChunk(request, bufferId, tag, typedArray, !1);
|
1301
1303
|
return serializeByValueID(bufferId);
|
1302
1304
|
}
|
1303
1305
|
function serializeBlob(request, blob) {
|
@@ -1544,7 +1546,7 @@ function renderModelDestructive(
|
|
1544
1546
|
return (
|
1545
1547
|
request.pendingChunks++,
|
1546
1548
|
(task = request.nextChunkId++),
|
1547
|
-
emitTextChunk(request, task, value),
|
1549
|
+
emitTextChunk(request, task, value, !1),
|
1548
1550
|
serializeByValueID(task)
|
1549
1551
|
);
|
1550
1552
|
request = "$" === value[0] ? "$" + value : value;
|
@@ -1678,61 +1680,61 @@ function emitModelChunk(request, id, json) {
|
|
1678
1680
|
id = stringToChunk(id);
|
1679
1681
|
request.completedRegularChunks.push(id);
|
1680
1682
|
}
|
1681
|
-
function emitTypedArrayChunk(request, id, tag, typedArray) {
|
1682
|
-
request.pendingChunks++;
|
1683
|
-
|
1683
|
+
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
1684
|
+
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
1685
|
+
debug = new Uint8Array(
|
1684
1686
|
typedArray.buffer,
|
1685
1687
|
typedArray.byteOffset,
|
1686
1688
|
typedArray.byteLength
|
1687
1689
|
);
|
1688
|
-
typedArray = 2048 < typedArray.byteLength ?
|
1689
|
-
|
1690
|
-
id = id.toString(16) + ":" + tag +
|
1690
|
+
typedArray = 2048 < typedArray.byteLength ? debug.slice() : debug;
|
1691
|
+
debug = typedArray.byteLength;
|
1692
|
+
id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
|
1691
1693
|
id = stringToChunk(id);
|
1692
1694
|
request.completedRegularChunks.push(id, typedArray);
|
1693
1695
|
}
|
1694
|
-
function emitTextChunk(request, id, text) {
|
1696
|
+
function emitTextChunk(request, id, text, debug) {
|
1695
1697
|
if (null === byteLengthOfChunk)
|
1696
1698
|
throw Error(
|
1697
1699
|
"Existence of byteLengthOfChunk should have already been checked. This is a bug in React."
|
1698
1700
|
);
|
1699
|
-
request.pendingChunks++;
|
1701
|
+
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
1700
1702
|
text = stringToChunk(text);
|
1701
|
-
|
1702
|
-
id = id.toString(16) + ":T" +
|
1703
|
+
debug = text.byteLength;
|
1704
|
+
id = id.toString(16) + ":T" + debug.toString(16) + ",";
|
1703
1705
|
id = stringToChunk(id);
|
1704
1706
|
request.completedRegularChunks.push(id, text);
|
1705
1707
|
}
|
1706
1708
|
function emitChunk(request, task, value) {
|
1707
1709
|
var id = task.id;
|
1708
1710
|
"string" === typeof value && null !== byteLengthOfChunk
|
1709
|
-
? emitTextChunk(request, id, value)
|
1711
|
+
? emitTextChunk(request, id, value, !1)
|
1710
1712
|
: value instanceof ArrayBuffer
|
1711
|
-
? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
|
1713
|
+
? emitTypedArrayChunk(request, id, "A", new Uint8Array(value), !1)
|
1712
1714
|
: value instanceof Int8Array
|
1713
|
-
? emitTypedArrayChunk(request, id, "O", value)
|
1715
|
+
? emitTypedArrayChunk(request, id, "O", value, !1)
|
1714
1716
|
: value instanceof Uint8Array
|
1715
|
-
? emitTypedArrayChunk(request, id, "o", value)
|
1717
|
+
? emitTypedArrayChunk(request, id, "o", value, !1)
|
1716
1718
|
: value instanceof Uint8ClampedArray
|
1717
|
-
? emitTypedArrayChunk(request, id, "U", value)
|
1719
|
+
? emitTypedArrayChunk(request, id, "U", value, !1)
|
1718
1720
|
: value instanceof Int16Array
|
1719
|
-
? emitTypedArrayChunk(request, id, "S", value)
|
1721
|
+
? emitTypedArrayChunk(request, id, "S", value, !1)
|
1720
1722
|
: value instanceof Uint16Array
|
1721
|
-
? emitTypedArrayChunk(request, id, "s", value)
|
1723
|
+
? emitTypedArrayChunk(request, id, "s", value, !1)
|
1722
1724
|
: value instanceof Int32Array
|
1723
|
-
? emitTypedArrayChunk(request, id, "L", value)
|
1725
|
+
? emitTypedArrayChunk(request, id, "L", value, !1)
|
1724
1726
|
: value instanceof Uint32Array
|
1725
|
-
? emitTypedArrayChunk(request, id, "l", value)
|
1727
|
+
? emitTypedArrayChunk(request, id, "l", value, !1)
|
1726
1728
|
: value instanceof Float32Array
|
1727
|
-
? emitTypedArrayChunk(request, id, "G", value)
|
1729
|
+
? emitTypedArrayChunk(request, id, "G", value, !1)
|
1728
1730
|
: value instanceof Float64Array
|
1729
|
-
? emitTypedArrayChunk(request, id, "g", value)
|
1731
|
+
? emitTypedArrayChunk(request, id, "g", value, !1)
|
1730
1732
|
: value instanceof BigInt64Array
|
1731
|
-
? emitTypedArrayChunk(request, id, "M", value)
|
1733
|
+
? emitTypedArrayChunk(request, id, "M", value, !1)
|
1732
1734
|
: value instanceof BigUint64Array
|
1733
|
-
? emitTypedArrayChunk(request, id, "m", value)
|
1735
|
+
? emitTypedArrayChunk(request, id, "m", value, !1)
|
1734
1736
|
: value instanceof DataView
|
1735
|
-
? emitTypedArrayChunk(request, id, "V", value)
|
1737
|
+
? emitTypedArrayChunk(request, id, "V", value, !1)
|
1736
1738
|
: ((value = stringify(value, task.toJSON)),
|
1737
1739
|
emitModelChunk(request, task.id, value));
|
1738
1740
|
}
|
@@ -1771,11 +1773,13 @@ function retryTask(request, task) {
|
|
1771
1773
|
request.abortableTasks.delete(task);
|
1772
1774
|
callOnAllReadyIfReady(request);
|
1773
1775
|
} catch (thrownValue) {
|
1774
|
-
if (12 === request.status)
|
1775
|
-
request.abortableTasks.delete(task)
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1776
|
+
if (12 === request.status) {
|
1777
|
+
request.abortableTasks.delete(task);
|
1778
|
+
task.status = 0;
|
1779
|
+
var errorId = request.fatalError;
|
1780
|
+
abortTask(task);
|
1781
|
+
finishAbortedTask(task, request, errorId);
|
1782
|
+
} else {
|
1779
1783
|
var x =
|
1780
1784
|
thrownValue === SuspenseException
|
1781
1785
|
? getSuspendedThenable()
|
@@ -1824,10 +1828,12 @@ function performWork(request) {
|
|
1824
1828
|
(currentRequest = prevRequest);
|
1825
1829
|
}
|
1826
1830
|
}
|
1827
|
-
function abortTask(task
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
+
function abortTask(task) {
|
1832
|
+
0 === task.status && (task.status = 3);
|
1833
|
+
}
|
1834
|
+
function finishAbortedTask(task, request, errorId) {
|
1835
|
+
3 === task.status &&
|
1836
|
+
((errorId = serializeByValueID(errorId)),
|
1831
1837
|
(task = encodeReferenceChunk(request, task.id, errorId)),
|
1832
1838
|
request.completedErrorChunks.push(task));
|
1833
1839
|
}
|
@@ -1913,39 +1919,56 @@ function startFlowing(request, destination) {
|
|
1913
1919
|
}
|
1914
1920
|
}
|
1915
1921
|
}
|
1916
|
-
function
|
1922
|
+
function finishAbort(request, abortedTasks, errorId) {
|
1917
1923
|
try {
|
1918
|
-
|
1919
|
-
(
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
if (0 < abortableTasks.size) {
|
1924
|
-
var error =
|
1925
|
-
void 0 === reason
|
1926
|
-
? Error("The render was aborted by the server without a reason.")
|
1927
|
-
: "object" === typeof reason &&
|
1928
|
-
null !== reason &&
|
1929
|
-
"function" === typeof reason.then
|
1930
|
-
? Error("The render was aborted by the server with a promise.")
|
1931
|
-
: reason,
|
1932
|
-
digest = logRecoverableError(request, error, null),
|
1933
|
-
errorId = request.nextChunkId++;
|
1934
|
-
request.fatalError = errorId;
|
1935
|
-
request.pendingChunks++;
|
1936
|
-
emitErrorChunk(request, errorId, digest, error, !1);
|
1937
|
-
abortableTasks.forEach(function (task) {
|
1938
|
-
return abortTask(task, request, errorId);
|
1939
|
-
});
|
1940
|
-
abortableTasks.clear();
|
1941
|
-
callOnAllReadyIfReady(request);
|
1942
|
-
}
|
1924
|
+
abortedTasks.forEach(function (task) {
|
1925
|
+
return finishAbortedTask(task, request, errorId);
|
1926
|
+
});
|
1927
|
+
var onAllReady = request.onAllReady;
|
1928
|
+
onAllReady();
|
1943
1929
|
null !== request.destination &&
|
1944
1930
|
flushCompletedChunks(request, request.destination);
|
1945
|
-
} catch (error
|
1946
|
-
logRecoverableError(request, error
|
1931
|
+
} catch (error) {
|
1932
|
+
logRecoverableError(request, error, null), fatalError(request, error);
|
1947
1933
|
}
|
1948
1934
|
}
|
1935
|
+
function abort(request, reason) {
|
1936
|
+
if (!(11 < request.status))
|
1937
|
+
try {
|
1938
|
+
request.status = 12;
|
1939
|
+
request.cacheController.abort(reason);
|
1940
|
+
var abortableTasks = request.abortableTasks;
|
1941
|
+
if (0 < abortableTasks.size) {
|
1942
|
+
var error =
|
1943
|
+
void 0 === reason
|
1944
|
+
? Error("The render was aborted by the server without a reason.")
|
1945
|
+
: "object" === typeof reason &&
|
1946
|
+
null !== reason &&
|
1947
|
+
"function" === typeof reason.then
|
1948
|
+
? Error("The render was aborted by the server with a promise.")
|
1949
|
+
: reason,
|
1950
|
+
digest = logRecoverableError(request, error, null),
|
1951
|
+
errorId = request.nextChunkId++;
|
1952
|
+
request.fatalError = errorId;
|
1953
|
+
request.pendingChunks++;
|
1954
|
+
emitErrorChunk(request, errorId, digest, error, !1);
|
1955
|
+
abortableTasks.forEach(function (task) {
|
1956
|
+
return abortTask(task, request, errorId);
|
1957
|
+
});
|
1958
|
+
scheduleWork(function () {
|
1959
|
+
return finishAbort(request, abortableTasks, errorId);
|
1960
|
+
});
|
1961
|
+
} else {
|
1962
|
+
var onAllReady = request.onAllReady;
|
1963
|
+
onAllReady();
|
1964
|
+
null !== request.destination &&
|
1965
|
+
flushCompletedChunks(request, request.destination);
|
1966
|
+
}
|
1967
|
+
} catch (error$24) {
|
1968
|
+
logRecoverableError(request, error$24, null),
|
1969
|
+
fatalError(request, error$24);
|
1970
|
+
}
|
1971
|
+
}
|
1949
1972
|
function resolveServerReference(bundlerConfig, id) {
|
1950
1973
|
var name = "",
|
1951
1974
|
resolvedModuleData = bundlerConfig[id];
|
@@ -656,9 +656,9 @@
|
|
656
656
|
suffixIdx = url.lastIndexOf("?");
|
657
657
|
-1 < envIdx &&
|
658
658
|
-1 < suffixIdx &&
|
659
|
-
(url = url.slice(envIdx + 1, suffixIdx));
|
659
|
+
(url = decodeURI(url.slice(envIdx + 1, suffixIdx)));
|
660
660
|
}
|
661
|
-
request(url, functionName) &&
|
661
|
+
request(url, functionName, callsite[2], callsite[3]) &&
|
662
662
|
((callsite = callsite.slice(0)),
|
663
663
|
(callsite[1] = url),
|
664
664
|
filteredStack.push(callsite));
|
@@ -681,7 +681,7 @@
|
|
681
681
|
request,
|
682
682
|
parseStackTrace(Error("react-stack-top-frame"), 1)
|
683
683
|
);
|
684
|
-
request.
|
684
|
+
request.pendingDebugChunks++;
|
685
685
|
var owner = resolveOwner(),
|
686
686
|
args = Array.from(arguments);
|
687
687
|
a: {
|
@@ -712,9 +712,13 @@
|
|
712
712
|
null != owner && outlineComponentInfo(request, owner);
|
713
713
|
format = [methodName, stack, owner, env];
|
714
714
|
format.push.apply(format, args);
|
715
|
-
args = serializeDebugModel(
|
715
|
+
args = serializeDebugModel(
|
716
|
+
request,
|
717
|
+
(null === request.deferredDebugObjects ? 500 : 10) + stack.length,
|
718
|
+
format
|
719
|
+
);
|
716
720
|
"[" !== args[0] &&
|
717
|
-
(args = serializeDebugModel(request,
|
721
|
+
(args = serializeDebugModel(request, 10 + stack.length, [
|
718
722
|
methodName,
|
719
723
|
stack,
|
720
724
|
owner,
|
@@ -844,6 +848,7 @@
|
|
844
848
|
void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
|
845
849
|
this.onAllReady = onAllReady;
|
846
850
|
this.onFatalError = onFatalError;
|
851
|
+
this.pendingDebugChunks = 0;
|
847
852
|
this.completedDebugChunks = [];
|
848
853
|
this.environmentName =
|
849
854
|
void 0 === environmentName
|
@@ -932,7 +937,7 @@
|
|
932
937
|
return null;
|
933
938
|
}
|
934
939
|
function serializeDebugThenable(request, counter, thenable) {
|
935
|
-
request.
|
940
|
+
request.pendingDebugChunks++;
|
936
941
|
var id = request.nextChunkId++,
|
937
942
|
ref = "$@" + id.toString(16);
|
938
943
|
request.writtenDebugObjects.set(thenable, ref);
|
@@ -1005,7 +1010,9 @@
|
|
1005
1010
|
if (request.status === ABORTING)
|
1006
1011
|
return (
|
1007
1012
|
request.abortableTasks.delete(newTask),
|
1008
|
-
|
1013
|
+
(task = request.fatalError),
|
1014
|
+
abortTask(newTask),
|
1015
|
+
finishAbortedTask(newTask, request, task),
|
1009
1016
|
newTask.id
|
1010
1017
|
);
|
1011
1018
|
"string" !== typeof thenable.status &&
|
@@ -1332,7 +1339,7 @@
|
|
1332
1339
|
var componentDebugID = task.id;
|
1333
1340
|
componentDebugInfo = Component.displayName || Component.name || "";
|
1334
1341
|
var componentEnv = (0, request.environmentName)();
|
1335
|
-
request.
|
1342
|
+
request.pendingDebugChunks++;
|
1336
1343
|
componentDebugInfo = {
|
1337
1344
|
name: componentDebugInfo,
|
1338
1345
|
env: componentEnv,
|
@@ -1754,7 +1761,7 @@
|
|
1754
1761
|
function serializeDeferredObject(request, value) {
|
1755
1762
|
var deferredDebugObjects = request.deferredDebugObjects;
|
1756
1763
|
return null !== deferredDebugObjects
|
1757
|
-
? (request.
|
1764
|
+
? (request.pendingDebugChunks++,
|
1758
1765
|
(request = request.nextChunkId++),
|
1759
1766
|
deferredDebugObjects.existing.set(value, request),
|
1760
1767
|
deferredDebugObjects.retained.set(request, value),
|
@@ -1834,7 +1841,7 @@
|
|
1834
1841
|
request.bundlerConfig,
|
1835
1842
|
clientReference
|
1836
1843
|
);
|
1837
|
-
request.
|
1844
|
+
request.pendingDebugChunks++;
|
1838
1845
|
var importId = request.nextChunkId++;
|
1839
1846
|
emitImportChunk(request, importId, clientReferenceMetadata, !0);
|
1840
1847
|
return parent[0] === REACT_ELEMENT_TYPE && "1" === parentPropertyName
|
@@ -1842,7 +1849,7 @@
|
|
1842
1849
|
: serializeByValueID(importId);
|
1843
1850
|
} catch (x) {
|
1844
1851
|
return (
|
1845
|
-
request.
|
1852
|
+
request.pendingDebugChunks++,
|
1846
1853
|
(parent = request.nextChunkId++),
|
1847
1854
|
(parentPropertyName = logRecoverableError(request, x, null)),
|
1848
1855
|
emitErrorChunk(request, parent, parentPropertyName, x, !0),
|
@@ -1921,7 +1928,7 @@
|
|
1921
1928
|
return serializeByValueID(bufferId);
|
1922
1929
|
}
|
1923
1930
|
function serializeDebugTypedArray(request, tag, typedArray) {
|
1924
|
-
request.
|
1931
|
+
request.pendingDebugChunks++;
|
1925
1932
|
var bufferId = request.nextChunkId++;
|
1926
1933
|
emitTypedArrayChunk(request, bufferId, tag, typedArray, !0);
|
1927
1934
|
return serializeByValueID(bufferId);
|
@@ -1947,8 +1954,9 @@
|
|
1947
1954
|
reader.cancel(reason).then(noop, noop);
|
1948
1955
|
}
|
1949
1956
|
var model = [blob.type],
|
1950
|
-
reader = blob.stream().getReader()
|
1951
|
-
|
1957
|
+
reader = blob.stream().getReader();
|
1958
|
+
request.pendingDebugChunks++;
|
1959
|
+
var id = request.nextChunkId++;
|
1952
1960
|
reader.read().then(progress).catch(error);
|
1953
1961
|
return "$B" + id.toString(16);
|
1954
1962
|
}
|
@@ -2535,7 +2543,7 @@
|
|
2535
2543
|
}
|
2536
2544
|
}
|
2537
2545
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
2538
|
-
request.pendingChunks++;
|
2546
|
+
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
2539
2547
|
var buffer = new Uint8Array(
|
2540
2548
|
typedArray.buffer,
|
2541
2549
|
typedArray.byteOffset,
|
@@ -2554,7 +2562,7 @@
|
|
2554
2562
|
throw Error(
|
2555
2563
|
"Existence of byteLengthOfChunk should have already been checked. This is a bug in React."
|
2556
2564
|
);
|
2557
|
-
request.pendingChunks++;
|
2565
|
+
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
2558
2566
|
text = stringToChunk(text);
|
2559
2567
|
var binaryLength = text.byteLength;
|
2560
2568
|
id = id.toString(16) + ":T" + binaryLength.toString(16) + ",";
|
@@ -2793,7 +2801,7 @@
|
|
2793
2801
|
if (0 >= counter.objectLimit)
|
2794
2802
|
return serializeDeferredObject(request, value);
|
2795
2803
|
counter.objectLimit--;
|
2796
|
-
request.
|
2804
|
+
request.pendingDebugChunks++;
|
2797
2805
|
counter = request.nextChunkId++;
|
2798
2806
|
emitTextChunk(request, counter, value, !0);
|
2799
2807
|
return serializeByValueID(counter);
|
@@ -2821,7 +2829,7 @@
|
|
2821
2829
|
ref = counter.get(value);
|
2822
2830
|
if (void 0 !== ref) return ref;
|
2823
2831
|
key = "$E(" + (Function.prototype.toString.call(value) + ")");
|
2824
|
-
request.
|
2832
|
+
request.pendingDebugChunks++;
|
2825
2833
|
ref = request.nextChunkId++;
|
2826
2834
|
key = encodeReferenceChunk(request, ref, key);
|
2827
2835
|
request.completedDebugChunks.push(key);
|
@@ -2914,7 +2922,7 @@
|
|
2914
2922
|
}
|
2915
2923
|
function outlineDebugModel(request, counter, model) {
|
2916
2924
|
var id = request.nextChunkId++;
|
2917
|
-
request.
|
2925
|
+
request.pendingDebugChunks++;
|
2918
2926
|
emitOutlinedDebugModelChunk(request, id, counter, model);
|
2919
2927
|
return id;
|
2920
2928
|
}
|
@@ -2925,7 +2933,7 @@
|
|
2925
2933
|
if ("number" !== typeof info.time)
|
2926
2934
|
if ("string" === typeof info.name)
|
2927
2935
|
outlineComponentInfo(request$jscomp$1, info),
|
2928
|
-
request$jscomp$1.
|
2936
|
+
request$jscomp$1.pendingDebugChunks++,
|
2929
2937
|
emitDebugChunk(request$jscomp$1, task, info);
|
2930
2938
|
else if (info.awaited) {
|
2931
2939
|
var ioInfo = info.awaited;
|
@@ -2933,7 +2941,7 @@
|
|
2933
2941
|
var request = request$jscomp$1,
|
2934
2942
|
ioInfo$jscomp$0 = ioInfo;
|
2935
2943
|
if (!request.writtenObjects.has(ioInfo$jscomp$0)) {
|
2936
|
-
request.
|
2944
|
+
request.pendingDebugChunks++;
|
2937
2945
|
var id = request.nextChunkId++,
|
2938
2946
|
owner = ioInfo$jscomp$0.owner;
|
2939
2947
|
null != owner && outlineComponentInfo(request, owner);
|
@@ -2984,11 +2992,11 @@
|
|
2984
2992
|
null != info.env && (ioInfo.env = info.env);
|
2985
2993
|
null != info.owner && (ioInfo.owner = info.owner);
|
2986
2994
|
null != request && (ioInfo.stack = request);
|
2987
|
-
request$jscomp$1.
|
2995
|
+
request$jscomp$1.pendingDebugChunks++;
|
2988
2996
|
emitDebugChunk(request$jscomp$1, task, ioInfo);
|
2989
2997
|
}
|
2990
2998
|
} else
|
2991
|
-
request$jscomp$1.
|
2999
|
+
request$jscomp$1.pendingDebugChunks++,
|
2992
3000
|
emitDebugChunk(request$jscomp$1, task, info);
|
2993
3001
|
}
|
2994
3002
|
}
|
@@ -3073,7 +3081,7 @@
|
|
3073
3081
|
task.implicitSlot = !1;
|
3074
3082
|
var currentEnv = (0, request.environmentName)();
|
3075
3083
|
currentEnv !== task.environmentName &&
|
3076
|
-
(request.
|
3084
|
+
(request.pendingDebugChunks++,
|
3077
3085
|
emitDebugChunk(request, task.id, { env: currentEnv }));
|
3078
3086
|
if ("object" === typeof resolvedModel && null !== resolvedModel)
|
3079
3087
|
request.writtenObjects.set(
|
@@ -3089,11 +3097,13 @@
|
|
3089
3097
|
request.abortableTasks.delete(task);
|
3090
3098
|
callOnAllReadyIfReady(request);
|
3091
3099
|
} catch (thrownValue) {
|
3092
|
-
if (request.status === ABORTING)
|
3093
|
-
request.abortableTasks.delete(task)
|
3094
|
-
|
3095
|
-
|
3096
|
-
|
3100
|
+
if (request.status === ABORTING) {
|
3101
|
+
request.abortableTasks.delete(task);
|
3102
|
+
task.status = 0;
|
3103
|
+
var errorId = request.fatalError;
|
3104
|
+
abortTask(task);
|
3105
|
+
finishAbortedTask(task, request, errorId);
|
3106
|
+
} else {
|
3097
3107
|
var x =
|
3098
3108
|
thrownValue === SuspenseException
|
3099
3109
|
? getSuspendedThenable()
|
@@ -3146,9 +3156,11 @@
|
|
3146
3156
|
(currentRequest = prevRequest);
|
3147
3157
|
}
|
3148
3158
|
}
|
3149
|
-
function abortTask(task
|
3150
|
-
|
3151
|
-
|
3159
|
+
function abortTask(task) {
|
3160
|
+
0 === task.status && (task.status = 3);
|
3161
|
+
}
|
3162
|
+
function finishAbortedTask(task, request, errorId) {
|
3163
|
+
if (3 === task.status) {
|
3152
3164
|
var model = task.model;
|
3153
3165
|
"object" === typeof model &&
|
3154
3166
|
null !== model &&
|
@@ -3188,7 +3200,7 @@
|
|
3188
3200
|
var debugChunks = request.completedDebugChunks;
|
3189
3201
|
for (i = 0; i < debugChunks.length; i++)
|
3190
3202
|
if (
|
3191
|
-
(request.
|
3203
|
+
(request.pendingDebugChunks--,
|
3192
3204
|
!writeChunkAndReturn(destination, debugChunks[i]))
|
3193
3205
|
) {
|
3194
3206
|
request.destination = null;
|
@@ -3229,6 +3241,7 @@
|
|
3229
3241
|
(writtenBytes = 0));
|
3230
3242
|
}
|
3231
3243
|
0 === request.pendingChunks &&
|
3244
|
+
0 === request.pendingDebugChunks &&
|
3232
3245
|
(request.status < ABORTING &&
|
3233
3246
|
request.cacheController.abort(
|
3234
3247
|
Error(
|
@@ -3280,44 +3293,60 @@
|
|
3280
3293
|
}
|
3281
3294
|
}
|
3282
3295
|
}
|
3283
|
-
function
|
3296
|
+
function finishAbort(request, abortedTasks, errorId) {
|
3284
3297
|
try {
|
3285
|
-
|
3286
|
-
(
|
3287
|
-
|
3288
|
-
|
3289
|
-
|
3290
|
-
if (0 < abortableTasks.size) {
|
3291
|
-
var error =
|
3292
|
-
void 0 === reason
|
3293
|
-
? Error(
|
3294
|
-
"The render was aborted by the server without a reason."
|
3295
|
-
)
|
3296
|
-
: "object" === typeof reason &&
|
3297
|
-
null !== reason &&
|
3298
|
-
"function" === typeof reason.then
|
3299
|
-
? Error(
|
3300
|
-
"The render was aborted by the server with a promise."
|
3301
|
-
)
|
3302
|
-
: reason,
|
3303
|
-
digest = logRecoverableError(request, error, null),
|
3304
|
-
_errorId2 = request.nextChunkId++;
|
3305
|
-
request.fatalError = _errorId2;
|
3306
|
-
request.pendingChunks++;
|
3307
|
-
emitErrorChunk(request, _errorId2, digest, error, !1);
|
3308
|
-
abortableTasks.forEach(function (task) {
|
3309
|
-
return abortTask(task, request, _errorId2);
|
3310
|
-
});
|
3311
|
-
abortableTasks.clear();
|
3312
|
-
callOnAllReadyIfReady(request);
|
3313
|
-
}
|
3298
|
+
abortedTasks.forEach(function (task) {
|
3299
|
+
return finishAbortedTask(task, request, errorId);
|
3300
|
+
});
|
3301
|
+
var onAllReady = request.onAllReady;
|
3302
|
+
onAllReady();
|
3314
3303
|
null !== request.destination &&
|
3315
3304
|
flushCompletedChunks(request, request.destination);
|
3316
|
-
} catch (error
|
3317
|
-
logRecoverableError(request, error
|
3318
|
-
fatalError(request, error$2);
|
3305
|
+
} catch (error) {
|
3306
|
+
logRecoverableError(request, error, null), fatalError(request, error);
|
3319
3307
|
}
|
3320
3308
|
}
|
3309
|
+
function abort(request, reason) {
|
3310
|
+
if (!(11 < request.status))
|
3311
|
+
try {
|
3312
|
+
request.status = ABORTING;
|
3313
|
+
request.cacheController.abort(reason);
|
3314
|
+
var abortableTasks = request.abortableTasks;
|
3315
|
+
if (0 < abortableTasks.size) {
|
3316
|
+
var error =
|
3317
|
+
void 0 === reason
|
3318
|
+
? Error(
|
3319
|
+
"The render was aborted by the server without a reason."
|
3320
|
+
)
|
3321
|
+
: "object" === typeof reason &&
|
3322
|
+
null !== reason &&
|
3323
|
+
"function" === typeof reason.then
|
3324
|
+
? Error(
|
3325
|
+
"The render was aborted by the server with a promise."
|
3326
|
+
)
|
3327
|
+
: reason,
|
3328
|
+
digest = logRecoverableError(request, error, null),
|
3329
|
+
_errorId2 = request.nextChunkId++;
|
3330
|
+
request.fatalError = _errorId2;
|
3331
|
+
request.pendingChunks++;
|
3332
|
+
emitErrorChunk(request, _errorId2, digest, error, !1);
|
3333
|
+
abortableTasks.forEach(function (task) {
|
3334
|
+
return abortTask(task, request, _errorId2);
|
3335
|
+
});
|
3336
|
+
setTimeout(function () {
|
3337
|
+
return finishAbort(request, abortableTasks, _errorId2);
|
3338
|
+
}, 0);
|
3339
|
+
} else {
|
3340
|
+
var onAllReady = request.onAllReady;
|
3341
|
+
onAllReady();
|
3342
|
+
null !== request.destination &&
|
3343
|
+
flushCompletedChunks(request, request.destination);
|
3344
|
+
}
|
3345
|
+
} catch (error$2) {
|
3346
|
+
logRecoverableError(request, error$2, null),
|
3347
|
+
fatalError(request, error$2);
|
3348
|
+
}
|
3349
|
+
}
|
3321
3350
|
function fromHex(str) {
|
3322
3351
|
return parseInt(str, 16);
|
3323
3352
|
}
|
@@ -3328,7 +3357,7 @@
|
|
3328
3357
|
"resolveDebugMessage/closeDebugChannel should not be called for a Request that wasn't kept alive. This is a bug in React."
|
3329
3358
|
);
|
3330
3359
|
deferredDebugObjects.retained.forEach(function (value, id) {
|
3331
|
-
request.
|
3360
|
+
request.pendingDebugChunks--;
|
3332
3361
|
deferredDebugObjects.retained.delete(id);
|
3333
3362
|
deferredDebugObjects.existing.delete(value);
|
3334
3363
|
});
|
@@ -4108,7 +4137,7 @@
|
|
4108
4137
|
var id = message[command],
|
4109
4138
|
retainedValue = deferredDebugObjects.retained.get(id);
|
4110
4139
|
void 0 !== retainedValue &&
|
4111
|
-
(request.
|
4140
|
+
(request.pendingDebugChunks--,
|
4112
4141
|
deferredDebugObjects.retained.delete(id),
|
4113
4142
|
deferredDebugObjects.existing.delete(retainedValue),
|
4114
4143
|
enqueueFlush(request));
|
@@ -4119,7 +4148,9 @@
|
|
4119
4148
|
(id = message[command]),
|
4120
4149
|
(retainedValue = deferredDebugObjects.retained.get(id)),
|
4121
4150
|
void 0 !== retainedValue &&
|
4122
|
-
(
|
4151
|
+
(deferredDebugObjects.retained.delete(id),
|
4152
|
+
deferredDebugObjects.existing.delete(retainedValue),
|
4153
|
+
emitOutlinedDebugModelChunk(
|
4123
4154
|
request,
|
4124
4155
|
id,
|
4125
4156
|
{ objectLimit: 10 },
|