react-server-dom-turbopack 19.1.3 → 19.1.5
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-turbopack-client.browser.development.js +143 -119
- package/cjs/react-server-dom-turbopack-client.browser.production.js +65 -53
- package/cjs/react-server-dom-turbopack-client.edge.development.js +141 -117
- package/cjs/react-server-dom-turbopack-client.edge.production.js +65 -53
- package/cjs/react-server-dom-turbopack-client.node.development.js +141 -117
- package/cjs/react-server-dom-turbopack-client.node.production.js +65 -53
- package/cjs/react-server-dom-turbopack-server.browser.development.js +626 -350
- package/cjs/react-server-dom-turbopack-server.browser.production.js +599 -314
- package/cjs/react-server-dom-turbopack-server.edge.development.js +629 -351
- package/cjs/react-server-dom-turbopack-server.edge.production.js +602 -315
- package/cjs/react-server-dom-turbopack-server.node.development.js +632 -354
- package/cjs/react-server-dom-turbopack-server.node.production.js +605 -318
- package/package.json +3 -3
|
@@ -441,6 +441,11 @@
|
|
|
441
441
|
return "$" + (iterable ? "x" : "X") + streamId.toString(16);
|
|
442
442
|
}
|
|
443
443
|
function resolveToJSON(key, value) {
|
|
444
|
+
"__proto__" === key &&
|
|
445
|
+
console.error(
|
|
446
|
+
"Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s",
|
|
447
|
+
describeObjectForErrorMessage(this, key)
|
|
448
|
+
);
|
|
444
449
|
var originalValue = this[key];
|
|
445
450
|
"object" !== typeof originalValue ||
|
|
446
451
|
originalValue === value ||
|
|
@@ -685,17 +690,20 @@
|
|
|
685
690
|
if ("undefined" === typeof value) return "$undefined";
|
|
686
691
|
if ("function" === typeof value) {
|
|
687
692
|
parentReference = knownServerReferences.get(value);
|
|
688
|
-
if (void 0 !== parentReference)
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
null === formData && (formData = new FormData()),
|
|
695
|
-
(parentReference = nextPartId++),
|
|
696
|
-
formData.set(formFieldPrefix + parentReference, key),
|
|
697
|
-
"$h" + parentReference.toString(16)
|
|
693
|
+
if (void 0 !== parentReference) {
|
|
694
|
+
key = writtenObjects.get(value);
|
|
695
|
+
if (void 0 !== key) return key;
|
|
696
|
+
key = JSON.stringify(
|
|
697
|
+
{ id: parentReference.id, bound: parentReference.bound },
|
|
698
|
+
resolveToJSON
|
|
698
699
|
);
|
|
700
|
+
null === formData && (formData = new FormData());
|
|
701
|
+
parentReference = nextPartId++;
|
|
702
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
703
|
+
key = "$h" + parentReference.toString(16);
|
|
704
|
+
writtenObjects.set(value, key);
|
|
705
|
+
return key;
|
|
706
|
+
}
|
|
699
707
|
if (
|
|
700
708
|
void 0 !== temporaryReferences &&
|
|
701
709
|
-1 === key.indexOf(":") &&
|
|
@@ -1154,10 +1162,17 @@
|
|
|
1154
1162
|
value.then(fulfill, reject);
|
|
1155
1163
|
return;
|
|
1156
1164
|
}
|
|
1157
|
-
|
|
1165
|
+
var name = path[i];
|
|
1166
|
+
if (
|
|
1167
|
+
"object" === typeof value &&
|
|
1168
|
+
null !== value &&
|
|
1169
|
+
hasOwnProperty.call(value, name)
|
|
1170
|
+
)
|
|
1171
|
+
value = value[name];
|
|
1172
|
+
else throw Error("Invalid reference.");
|
|
1158
1173
|
}
|
|
1159
1174
|
i = map(response, value, parentObject, key);
|
|
1160
|
-
parentObject[key] = i;
|
|
1175
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
1161
1176
|
"" === key && null === handler.value && (handler.value = i);
|
|
1162
1177
|
if (
|
|
1163
1178
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1269,7 +1284,7 @@
|
|
|
1269
1284
|
metaData.id,
|
|
1270
1285
|
metaData.bound
|
|
1271
1286
|
);
|
|
1272
|
-
parentObject[key] = resolvedValue;
|
|
1287
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
1273
1288
|
"" === key &&
|
|
1274
1289
|
null === handler.value &&
|
|
1275
1290
|
(handler.value = resolvedValue);
|
|
@@ -1534,13 +1549,14 @@
|
|
|
1534
1549
|
}
|
|
1535
1550
|
case "Y":
|
|
1536
1551
|
return (
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1552
|
+
"__proto__" !== key &&
|
|
1553
|
+
Object.defineProperty(parentObject, key, {
|
|
1554
|
+
get: function () {
|
|
1555
|
+
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
1556
|
+
},
|
|
1557
|
+
enumerable: !0,
|
|
1558
|
+
configurable: !1
|
|
1559
|
+
}),
|
|
1544
1560
|
null
|
|
1545
1561
|
);
|
|
1546
1562
|
default:
|
|
@@ -2312,106 +2328,114 @@
|
|
|
2312
2328
|
}
|
|
2313
2329
|
function createFromJSONCallback(response) {
|
|
2314
2330
|
return function (key, value) {
|
|
2315
|
-
if ("
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
if (
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
(
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
(
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2331
|
+
if ("__proto__" !== key) {
|
|
2332
|
+
if ("string" === typeof value)
|
|
2333
|
+
return parseModelString(response, this, key, value);
|
|
2334
|
+
if ("object" === typeof value && null !== value) {
|
|
2335
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
2336
|
+
var type = value[1];
|
|
2337
|
+
key = value[4];
|
|
2338
|
+
var stack = value[5],
|
|
2339
|
+
validated = value[6];
|
|
2340
|
+
value = {
|
|
2341
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
2342
|
+
type: type,
|
|
2343
|
+
key: value[2],
|
|
2344
|
+
props: value[3],
|
|
2345
|
+
_owner: null === key ? response._debugRootOwner : key
|
|
2346
|
+
};
|
|
2347
|
+
Object.defineProperty(value, "ref", {
|
|
2348
|
+
enumerable: !1,
|
|
2349
|
+
get: nullRefGetter
|
|
2350
|
+
});
|
|
2351
|
+
value._store = {};
|
|
2352
|
+
Object.defineProperty(value._store, "validated", {
|
|
2353
|
+
configurable: !1,
|
|
2354
|
+
enumerable: !1,
|
|
2355
|
+
writable: !0,
|
|
2356
|
+
value: validated
|
|
2357
|
+
});
|
|
2358
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
2359
|
+
configurable: !1,
|
|
2360
|
+
enumerable: !1,
|
|
2361
|
+
writable: !0,
|
|
2362
|
+
value: null
|
|
2363
|
+
});
|
|
2364
|
+
validated = response._rootEnvironmentName;
|
|
2365
|
+
null !== key && null != key.env && (validated = key.env);
|
|
2366
|
+
var normalizedStackTrace = null;
|
|
2367
|
+
null === key && null != response._debugRootStack
|
|
2368
|
+
? (normalizedStackTrace = response._debugRootStack)
|
|
2369
|
+
: null !== stack &&
|
|
2370
|
+
(normalizedStackTrace = createFakeJSXCallStackInDEV(
|
|
2371
|
+
response,
|
|
2372
|
+
stack,
|
|
2373
|
+
validated
|
|
2374
|
+
));
|
|
2375
|
+
Object.defineProperty(value, "_debugStack", {
|
|
2376
|
+
configurable: !1,
|
|
2377
|
+
enumerable: !1,
|
|
2378
|
+
writable: !0,
|
|
2379
|
+
value: normalizedStackTrace
|
|
2380
|
+
});
|
|
2381
|
+
normalizedStackTrace = null;
|
|
2382
|
+
supportsCreateTask &&
|
|
2383
|
+
null !== stack &&
|
|
2384
|
+
((type = console.createTask.bind(console, getTaskName(type))),
|
|
2385
|
+
(stack = buildFakeCallStack(response, stack, validated, type)),
|
|
2386
|
+
(type =
|
|
2387
|
+
null === key
|
|
2388
|
+
? null
|
|
2389
|
+
: initializeFakeTask(response, key, validated)),
|
|
2390
|
+
null === type
|
|
2391
|
+
? ((type = response._debugRootTask),
|
|
2392
|
+
(normalizedStackTrace =
|
|
2393
|
+
null != type ? type.run(stack) : stack()))
|
|
2394
|
+
: (normalizedStackTrace = type.run(stack)));
|
|
2395
|
+
Object.defineProperty(value, "_debugTask", {
|
|
2396
|
+
configurable: !1,
|
|
2397
|
+
enumerable: !1,
|
|
2398
|
+
writable: !0,
|
|
2399
|
+
value: normalizedStackTrace
|
|
2400
|
+
});
|
|
2401
|
+
null !== key && initializeFakeStack(response, key);
|
|
2402
|
+
null !== initializingHandler
|
|
2403
|
+
? ((stack = initializingHandler),
|
|
2404
|
+
(initializingHandler = stack.parent),
|
|
2405
|
+
stack.errored
|
|
2406
|
+
? ((key = new ReactPromise(
|
|
2407
|
+
"rejected",
|
|
2408
|
+
null,
|
|
2409
|
+
stack.value,
|
|
2410
|
+
response
|
|
2411
|
+
)),
|
|
2412
|
+
(stack = {
|
|
2413
|
+
name: getComponentNameFromType(value.type) || "",
|
|
2414
|
+
owner: value._owner
|
|
2415
|
+
}),
|
|
2416
|
+
(stack.debugStack = value._debugStack),
|
|
2417
|
+
supportsCreateTask &&
|
|
2418
|
+
(stack.debugTask = value._debugTask),
|
|
2419
|
+
(key._debugInfo = [stack]),
|
|
2420
|
+
(value = createLazyChunkWrapper(key)))
|
|
2421
|
+
: 0 < stack.deps &&
|
|
2422
|
+
((key = new ReactPromise(
|
|
2423
|
+
"blocked",
|
|
2424
|
+
null,
|
|
2425
|
+
null,
|
|
2426
|
+
response
|
|
2427
|
+
)),
|
|
2428
|
+
(stack.value = value),
|
|
2429
|
+
(stack.chunk = key),
|
|
2430
|
+
(value = Object.freeze.bind(Object, value.props)),
|
|
2431
|
+
key.then(value, value),
|
|
2432
|
+
(value = createLazyChunkWrapper(key))))
|
|
2433
|
+
: Object.freeze(value.props);
|
|
2434
|
+
}
|
|
2435
|
+
return value;
|
|
2411
2436
|
}
|
|
2412
2437
|
return value;
|
|
2413
2438
|
}
|
|
2414
|
-
return value;
|
|
2415
2439
|
};
|
|
2416
2440
|
}
|
|
2417
2441
|
function createResponseFromOptions(options) {
|
|
@@ -2706,10 +2730,10 @@
|
|
|
2706
2730
|
return hook.checkDCE ? !0 : !1;
|
|
2707
2731
|
})({
|
|
2708
2732
|
bundleType: 1,
|
|
2709
|
-
version: "19.1.
|
|
2733
|
+
version: "19.1.5",
|
|
2710
2734
|
rendererPackageName: "react-server-dom-turbopack",
|
|
2711
2735
|
currentDispatcherRef: ReactSharedInternals,
|
|
2712
|
-
reconcilerVersion: "19.1.
|
|
2736
|
+
reconcilerVersion: "19.1.5",
|
|
2713
2737
|
getCurrentComponentInfo: function () {
|
|
2714
2738
|
return currentOwnerInDEV;
|
|
2715
2739
|
}
|
|
@@ -432,17 +432,20 @@ function processReply(
|
|
|
432
432
|
if ("undefined" === typeof value) return "$undefined";
|
|
433
433
|
if ("function" === typeof value) {
|
|
434
434
|
parentReference = knownServerReferences.get(value);
|
|
435
|
-
if (void 0 !== parentReference)
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
null === formData && (formData = new FormData()),
|
|
442
|
-
(parentReference = nextPartId++),
|
|
443
|
-
formData.set(formFieldPrefix + parentReference, key),
|
|
444
|
-
"$h" + parentReference.toString(16)
|
|
435
|
+
if (void 0 !== parentReference) {
|
|
436
|
+
key = writtenObjects.get(value);
|
|
437
|
+
if (void 0 !== key) return key;
|
|
438
|
+
key = JSON.stringify(
|
|
439
|
+
{ id: parentReference.id, bound: parentReference.bound },
|
|
440
|
+
resolveToJSON
|
|
445
441
|
);
|
|
442
|
+
null === formData && (formData = new FormData());
|
|
443
|
+
parentReference = nextPartId++;
|
|
444
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
445
|
+
key = "$h" + parentReference.toString(16);
|
|
446
|
+
writtenObjects.set(value, key);
|
|
447
|
+
return key;
|
|
448
|
+
}
|
|
446
449
|
if (
|
|
447
450
|
void 0 !== temporaryReferences &&
|
|
448
451
|
-1 === key.indexOf(":") &&
|
|
@@ -738,10 +741,17 @@ function waitForReference(
|
|
|
738
741
|
value.then(fulfill, reject);
|
|
739
742
|
return;
|
|
740
743
|
}
|
|
741
|
-
|
|
744
|
+
var name = path[i];
|
|
745
|
+
if (
|
|
746
|
+
"object" === typeof value &&
|
|
747
|
+
null !== value &&
|
|
748
|
+
hasOwnProperty.call(value, name)
|
|
749
|
+
)
|
|
750
|
+
value = value[name];
|
|
751
|
+
else throw Error("Invalid reference.");
|
|
742
752
|
}
|
|
743
753
|
i = map(response, value, parentObject, key);
|
|
744
|
-
parentObject[key] = i;
|
|
754
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
745
755
|
"" === key && null === handler.value && (handler.value = i);
|
|
746
756
|
if (
|
|
747
757
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -824,7 +834,7 @@ function loadServerReference(response, metaData, parentObject, key) {
|
|
|
824
834
|
resolvedValue = resolvedValue.bind.apply(resolvedValue, boundArgs);
|
|
825
835
|
}
|
|
826
836
|
registerBoundServerReference(resolvedValue, metaData.id, metaData.bound);
|
|
827
|
-
parentObject[key] = resolvedValue;
|
|
837
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
828
838
|
"" === key && null === handler.value && (handler.value = resolvedValue);
|
|
829
839
|
if (
|
|
830
840
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1143,8 +1153,8 @@ function startReadableStream(response, id, type) {
|
|
|
1143
1153
|
(previousBlockedChunk = chunk));
|
|
1144
1154
|
} else {
|
|
1145
1155
|
chunk = previousBlockedChunk;
|
|
1146
|
-
var chunk$
|
|
1147
|
-
chunk$
|
|
1156
|
+
var chunk$53 = createPendingChunk(response);
|
|
1157
|
+
chunk$53.then(
|
|
1148
1158
|
function (v) {
|
|
1149
1159
|
return controller.enqueue(v);
|
|
1150
1160
|
},
|
|
@@ -1152,10 +1162,10 @@ function startReadableStream(response, id, type) {
|
|
|
1152
1162
|
return controller.error(e);
|
|
1153
1163
|
}
|
|
1154
1164
|
);
|
|
1155
|
-
previousBlockedChunk = chunk$
|
|
1165
|
+
previousBlockedChunk = chunk$53;
|
|
1156
1166
|
chunk.then(function () {
|
|
1157
|
-
previousBlockedChunk === chunk$
|
|
1158
|
-
resolveModelChunk(chunk$
|
|
1167
|
+
previousBlockedChunk === chunk$53 && (previousBlockedChunk = null);
|
|
1168
|
+
resolveModelChunk(chunk$53, json);
|
|
1159
1169
|
});
|
|
1160
1170
|
}
|
|
1161
1171
|
},
|
|
@@ -1300,8 +1310,8 @@ function mergeBuffer(buffer, lastChunk) {
|
|
|
1300
1310
|
for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++)
|
|
1301
1311
|
byteLength += buffer[i].byteLength;
|
|
1302
1312
|
byteLength = new Uint8Array(byteLength);
|
|
1303
|
-
for (var i$
|
|
1304
|
-
var chunk = buffer[i$
|
|
1313
|
+
for (var i$54 = (i = 0); i$54 < l; i$54++) {
|
|
1314
|
+
var chunk = buffer[i$54];
|
|
1305
1315
|
byteLength.set(chunk, i);
|
|
1306
1316
|
i += chunk.byteLength;
|
|
1307
1317
|
}
|
|
@@ -1480,42 +1490,44 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) {
|
|
|
1480
1490
|
}
|
|
1481
1491
|
function createFromJSONCallback(response) {
|
|
1482
1492
|
return function (key, value) {
|
|
1483
|
-
if ("
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
if (
|
|
1487
|
-
if (
|
|
1488
|
-
((key = {
|
|
1489
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1490
|
-
type: value[1],
|
|
1491
|
-
key: value[2],
|
|
1492
|
-
ref: null,
|
|
1493
|
-
props: value[3]
|
|
1494
|
-
}),
|
|
1495
|
-
null !== initializingHandler)
|
|
1496
|
-
)
|
|
1493
|
+
if ("__proto__" !== key) {
|
|
1494
|
+
if ("string" === typeof value)
|
|
1495
|
+
return parseModelString(response, this, key, value);
|
|
1496
|
+
if ("object" === typeof value && null !== value) {
|
|
1497
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
1497
1498
|
if (
|
|
1498
|
-
((
|
|
1499
|
-
|
|
1500
|
-
|
|
1499
|
+
((key = {
|
|
1500
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1501
|
+
type: value[1],
|
|
1502
|
+
key: value[2],
|
|
1503
|
+
ref: null,
|
|
1504
|
+
props: value[3]
|
|
1505
|
+
}),
|
|
1506
|
+
null !== initializingHandler)
|
|
1501
1507
|
)
|
|
1502
|
-
|
|
1503
|
-
(
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
null,
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1508
|
+
if (
|
|
1509
|
+
((value = initializingHandler),
|
|
1510
|
+
(initializingHandler = value.parent),
|
|
1511
|
+
value.errored)
|
|
1512
|
+
)
|
|
1513
|
+
(key = new ReactPromise("rejected", null, value.value, response)),
|
|
1514
|
+
(key = createLazyChunkWrapper(key));
|
|
1515
|
+
else if (0 < value.deps) {
|
|
1516
|
+
var blockedChunk = new ReactPromise(
|
|
1517
|
+
"blocked",
|
|
1518
|
+
null,
|
|
1519
|
+
null,
|
|
1520
|
+
response
|
|
1521
|
+
);
|
|
1522
|
+
value.value = key;
|
|
1523
|
+
value.chunk = blockedChunk;
|
|
1524
|
+
key = createLazyChunkWrapper(blockedChunk);
|
|
1525
|
+
}
|
|
1526
|
+
} else key = value;
|
|
1527
|
+
return key;
|
|
1528
|
+
}
|
|
1529
|
+
return value;
|
|
1517
1530
|
}
|
|
1518
|
-
return value;
|
|
1519
1531
|
};
|
|
1520
1532
|
}
|
|
1521
1533
|
function createResponseFromOptions(options) {
|