react-server-dom-parcel 19.1.4 → 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-parcel-client.browser.development.js +143 -119
- package/cjs/react-server-dom-parcel-client.browser.production.js +65 -53
- package/cjs/react-server-dom-parcel-client.edge.development.js +141 -117
- package/cjs/react-server-dom-parcel-client.edge.production.js +65 -53
- package/cjs/react-server-dom-parcel-client.node.development.js +141 -117
- package/cjs/react-server-dom-parcel-client.node.production.js +65 -53
- package/cjs/react-server-dom-parcel-server.browser.development.js +625 -350
- package/cjs/react-server-dom-parcel-server.browser.production.js +598 -314
- package/cjs/react-server-dom-parcel-server.edge.development.js +625 -350
- package/cjs/react-server-dom-parcel-server.edge.production.js +598 -314
- package/cjs/react-server-dom-parcel-server.node.development.js +631 -354
- package/cjs/react-server-dom-parcel-server.node.production.js +604 -318
- package/package.json +3 -3
|
@@ -370,6 +370,11 @@
|
|
|
370
370
|
return "$" + (iterable ? "x" : "X") + streamId.toString(16);
|
|
371
371
|
}
|
|
372
372
|
function resolveToJSON(key, value) {
|
|
373
|
+
"__proto__" === key &&
|
|
374
|
+
console.error(
|
|
375
|
+
"Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s",
|
|
376
|
+
describeObjectForErrorMessage(this, key)
|
|
377
|
+
);
|
|
373
378
|
var originalValue = this[key];
|
|
374
379
|
"object" !== typeof originalValue ||
|
|
375
380
|
originalValue === value ||
|
|
@@ -614,17 +619,20 @@
|
|
|
614
619
|
if ("undefined" === typeof value) return "$undefined";
|
|
615
620
|
if ("function" === typeof value) {
|
|
616
621
|
parentReference = knownServerReferences.get(value);
|
|
617
|
-
if (void 0 !== parentReference)
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
null === formData && (formData = new FormData()),
|
|
624
|
-
(parentReference = nextPartId++),
|
|
625
|
-
formData.set(formFieldPrefix + parentReference, key),
|
|
626
|
-
"$h" + parentReference.toString(16)
|
|
622
|
+
if (void 0 !== parentReference) {
|
|
623
|
+
key = writtenObjects.get(value);
|
|
624
|
+
if (void 0 !== key) return key;
|
|
625
|
+
key = JSON.stringify(
|
|
626
|
+
{ id: parentReference.id, bound: parentReference.bound },
|
|
627
|
+
resolveToJSON
|
|
627
628
|
);
|
|
629
|
+
null === formData && (formData = new FormData());
|
|
630
|
+
parentReference = nextPartId++;
|
|
631
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
632
|
+
key = "$h" + parentReference.toString(16);
|
|
633
|
+
writtenObjects.set(value, key);
|
|
634
|
+
return key;
|
|
635
|
+
}
|
|
628
636
|
if (
|
|
629
637
|
void 0 !== temporaryReferences &&
|
|
630
638
|
-1 === key.indexOf(":") &&
|
|
@@ -1116,10 +1124,17 @@
|
|
|
1116
1124
|
value.then(fulfill, reject);
|
|
1117
1125
|
return;
|
|
1118
1126
|
}
|
|
1119
|
-
|
|
1127
|
+
var name = path[i];
|
|
1128
|
+
if (
|
|
1129
|
+
"object" === typeof value &&
|
|
1130
|
+
null !== value &&
|
|
1131
|
+
hasOwnProperty.call(value, name)
|
|
1132
|
+
)
|
|
1133
|
+
value = value[name];
|
|
1134
|
+
else throw Error("Invalid reference.");
|
|
1120
1135
|
}
|
|
1121
1136
|
i = map(response, value, parentObject, key);
|
|
1122
|
-
parentObject[key] = i;
|
|
1137
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
1123
1138
|
"" === key && null === handler.value && (handler.value = i);
|
|
1124
1139
|
if (
|
|
1125
1140
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1231,7 +1246,7 @@
|
|
|
1231
1246
|
metaData.id,
|
|
1232
1247
|
metaData.bound
|
|
1233
1248
|
);
|
|
1234
|
-
parentObject[key] = resolvedValue;
|
|
1249
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
1235
1250
|
"" === key &&
|
|
1236
1251
|
null === handler.value &&
|
|
1237
1252
|
(handler.value = resolvedValue);
|
|
@@ -1496,13 +1511,14 @@
|
|
|
1496
1511
|
}
|
|
1497
1512
|
case "Y":
|
|
1498
1513
|
return (
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1514
|
+
"__proto__" !== key &&
|
|
1515
|
+
Object.defineProperty(parentObject, key, {
|
|
1516
|
+
get: function () {
|
|
1517
|
+
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.";
|
|
1518
|
+
},
|
|
1519
|
+
enumerable: !0,
|
|
1520
|
+
configurable: !1
|
|
1521
|
+
}),
|
|
1506
1522
|
null
|
|
1507
1523
|
);
|
|
1508
1524
|
default:
|
|
@@ -2270,106 +2286,114 @@
|
|
|
2270
2286
|
}
|
|
2271
2287
|
function createFromJSONCallback(response) {
|
|
2272
2288
|
return function (key, value) {
|
|
2273
|
-
if ("
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
if (
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
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
|
-
|
|
2289
|
+
if ("__proto__" !== key) {
|
|
2290
|
+
if ("string" === typeof value)
|
|
2291
|
+
return parseModelString(response, this, key, value);
|
|
2292
|
+
if ("object" === typeof value && null !== value) {
|
|
2293
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
2294
|
+
var type = value[1];
|
|
2295
|
+
key = value[4];
|
|
2296
|
+
var stack = value[5],
|
|
2297
|
+
validated = value[6];
|
|
2298
|
+
value = {
|
|
2299
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
2300
|
+
type: type,
|
|
2301
|
+
key: value[2],
|
|
2302
|
+
props: value[3],
|
|
2303
|
+
_owner: null === key ? response._debugRootOwner : key
|
|
2304
|
+
};
|
|
2305
|
+
Object.defineProperty(value, "ref", {
|
|
2306
|
+
enumerable: !1,
|
|
2307
|
+
get: nullRefGetter
|
|
2308
|
+
});
|
|
2309
|
+
value._store = {};
|
|
2310
|
+
Object.defineProperty(value._store, "validated", {
|
|
2311
|
+
configurable: !1,
|
|
2312
|
+
enumerable: !1,
|
|
2313
|
+
writable: !0,
|
|
2314
|
+
value: validated
|
|
2315
|
+
});
|
|
2316
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
2317
|
+
configurable: !1,
|
|
2318
|
+
enumerable: !1,
|
|
2319
|
+
writable: !0,
|
|
2320
|
+
value: null
|
|
2321
|
+
});
|
|
2322
|
+
validated = response._rootEnvironmentName;
|
|
2323
|
+
null !== key && null != key.env && (validated = key.env);
|
|
2324
|
+
var normalizedStackTrace = null;
|
|
2325
|
+
null === key && null != response._debugRootStack
|
|
2326
|
+
? (normalizedStackTrace = response._debugRootStack)
|
|
2327
|
+
: null !== stack &&
|
|
2328
|
+
(normalizedStackTrace = createFakeJSXCallStackInDEV(
|
|
2329
|
+
response,
|
|
2330
|
+
stack,
|
|
2331
|
+
validated
|
|
2332
|
+
));
|
|
2333
|
+
Object.defineProperty(value, "_debugStack", {
|
|
2334
|
+
configurable: !1,
|
|
2335
|
+
enumerable: !1,
|
|
2336
|
+
writable: !0,
|
|
2337
|
+
value: normalizedStackTrace
|
|
2338
|
+
});
|
|
2339
|
+
normalizedStackTrace = null;
|
|
2340
|
+
supportsCreateTask &&
|
|
2341
|
+
null !== stack &&
|
|
2342
|
+
((type = console.createTask.bind(console, getTaskName(type))),
|
|
2343
|
+
(stack = buildFakeCallStack(response, stack, validated, type)),
|
|
2344
|
+
(type =
|
|
2345
|
+
null === key
|
|
2346
|
+
? null
|
|
2347
|
+
: initializeFakeTask(response, key, validated)),
|
|
2348
|
+
null === type
|
|
2349
|
+
? ((type = response._debugRootTask),
|
|
2350
|
+
(normalizedStackTrace =
|
|
2351
|
+
null != type ? type.run(stack) : stack()))
|
|
2352
|
+
: (normalizedStackTrace = type.run(stack)));
|
|
2353
|
+
Object.defineProperty(value, "_debugTask", {
|
|
2354
|
+
configurable: !1,
|
|
2355
|
+
enumerable: !1,
|
|
2356
|
+
writable: !0,
|
|
2357
|
+
value: normalizedStackTrace
|
|
2358
|
+
});
|
|
2359
|
+
null !== key && initializeFakeStack(response, key);
|
|
2360
|
+
null !== initializingHandler
|
|
2361
|
+
? ((stack = initializingHandler),
|
|
2362
|
+
(initializingHandler = stack.parent),
|
|
2363
|
+
stack.errored
|
|
2364
|
+
? ((key = new ReactPromise(
|
|
2365
|
+
"rejected",
|
|
2366
|
+
null,
|
|
2367
|
+
stack.value,
|
|
2368
|
+
response
|
|
2369
|
+
)),
|
|
2370
|
+
(stack = {
|
|
2371
|
+
name: getComponentNameFromType(value.type) || "",
|
|
2372
|
+
owner: value._owner
|
|
2373
|
+
}),
|
|
2374
|
+
(stack.debugStack = value._debugStack),
|
|
2375
|
+
supportsCreateTask &&
|
|
2376
|
+
(stack.debugTask = value._debugTask),
|
|
2377
|
+
(key._debugInfo = [stack]),
|
|
2378
|
+
(value = createLazyChunkWrapper(key)))
|
|
2379
|
+
: 0 < stack.deps &&
|
|
2380
|
+
((key = new ReactPromise(
|
|
2381
|
+
"blocked",
|
|
2382
|
+
null,
|
|
2383
|
+
null,
|
|
2384
|
+
response
|
|
2385
|
+
)),
|
|
2386
|
+
(stack.value = value),
|
|
2387
|
+
(stack.chunk = key),
|
|
2388
|
+
(value = Object.freeze.bind(Object, value.props)),
|
|
2389
|
+
key.then(value, value),
|
|
2390
|
+
(value = createLazyChunkWrapper(key))))
|
|
2391
|
+
: Object.freeze(value.props);
|
|
2392
|
+
}
|
|
2393
|
+
return value;
|
|
2369
2394
|
}
|
|
2370
2395
|
return value;
|
|
2371
2396
|
}
|
|
2372
|
-
return value;
|
|
2373
2397
|
};
|
|
2374
2398
|
}
|
|
2375
2399
|
function findSourceMapURL(filename, environmentName) {
|
|
@@ -2665,10 +2689,10 @@
|
|
|
2665
2689
|
return hook.checkDCE ? !0 : !1;
|
|
2666
2690
|
})({
|
|
2667
2691
|
bundleType: 1,
|
|
2668
|
-
version: "19.1.
|
|
2692
|
+
version: "19.1.5",
|
|
2669
2693
|
rendererPackageName: "react-server-dom-parcel",
|
|
2670
2694
|
currentDispatcherRef: ReactSharedInternals,
|
|
2671
|
-
reconcilerVersion: "19.1.
|
|
2695
|
+
reconcilerVersion: "19.1.5",
|
|
2672
2696
|
getCurrentComponentInfo: function () {
|
|
2673
2697
|
return currentOwnerInDEV;
|
|
2674
2698
|
}
|
|
@@ -364,17 +364,20 @@ function processReply(
|
|
|
364
364
|
if ("undefined" === typeof value) return "$undefined";
|
|
365
365
|
if ("function" === typeof value) {
|
|
366
366
|
parentReference = knownServerReferences.get(value);
|
|
367
|
-
if (void 0 !== parentReference)
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
null === formData && (formData = new FormData()),
|
|
374
|
-
(parentReference = nextPartId++),
|
|
375
|
-
formData.set(formFieldPrefix + parentReference, key),
|
|
376
|
-
"$h" + parentReference.toString(16)
|
|
367
|
+
if (void 0 !== parentReference) {
|
|
368
|
+
key = writtenObjects.get(value);
|
|
369
|
+
if (void 0 !== key) return key;
|
|
370
|
+
key = JSON.stringify(
|
|
371
|
+
{ id: parentReference.id, bound: parentReference.bound },
|
|
372
|
+
resolveToJSON
|
|
377
373
|
);
|
|
374
|
+
null === formData && (formData = new FormData());
|
|
375
|
+
parentReference = nextPartId++;
|
|
376
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
377
|
+
key = "$h" + parentReference.toString(16);
|
|
378
|
+
writtenObjects.set(value, key);
|
|
379
|
+
return key;
|
|
380
|
+
}
|
|
378
381
|
if (
|
|
379
382
|
void 0 !== temporaryReferences &&
|
|
380
383
|
-1 === key.indexOf(":") &&
|
|
@@ -678,10 +681,17 @@ function waitForReference(
|
|
|
678
681
|
value.then(fulfill, reject);
|
|
679
682
|
return;
|
|
680
683
|
}
|
|
681
|
-
|
|
684
|
+
var name = path[i];
|
|
685
|
+
if (
|
|
686
|
+
"object" === typeof value &&
|
|
687
|
+
null !== value &&
|
|
688
|
+
hasOwnProperty.call(value, name)
|
|
689
|
+
)
|
|
690
|
+
value = value[name];
|
|
691
|
+
else throw Error("Invalid reference.");
|
|
682
692
|
}
|
|
683
693
|
i = map(response, value, parentObject, key);
|
|
684
|
-
parentObject[key] = i;
|
|
694
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
685
695
|
"" === key && null === handler.value && (handler.value = i);
|
|
686
696
|
if (
|
|
687
697
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -764,7 +774,7 @@ function loadServerReference(response, metaData, parentObject, key) {
|
|
|
764
774
|
resolvedValue = resolvedValue.bind.apply(resolvedValue, boundArgs);
|
|
765
775
|
}
|
|
766
776
|
registerBoundServerReference(resolvedValue, metaData.id, metaData.bound);
|
|
767
|
-
parentObject[key] = resolvedValue;
|
|
777
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
768
778
|
"" === key && null === handler.value && (handler.value = resolvedValue);
|
|
769
779
|
if (
|
|
770
780
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1082,8 +1092,8 @@ function startReadableStream(response, id, type) {
|
|
|
1082
1092
|
(previousBlockedChunk = chunk));
|
|
1083
1093
|
} else {
|
|
1084
1094
|
chunk = previousBlockedChunk;
|
|
1085
|
-
var chunk$
|
|
1086
|
-
chunk$
|
|
1095
|
+
var chunk$53 = createPendingChunk(response);
|
|
1096
|
+
chunk$53.then(
|
|
1087
1097
|
function (v) {
|
|
1088
1098
|
return controller.enqueue(v);
|
|
1089
1099
|
},
|
|
@@ -1091,10 +1101,10 @@ function startReadableStream(response, id, type) {
|
|
|
1091
1101
|
return controller.error(e);
|
|
1092
1102
|
}
|
|
1093
1103
|
);
|
|
1094
|
-
previousBlockedChunk = chunk$
|
|
1104
|
+
previousBlockedChunk = chunk$53;
|
|
1095
1105
|
chunk.then(function () {
|
|
1096
|
-
previousBlockedChunk === chunk$
|
|
1097
|
-
resolveModelChunk(chunk$
|
|
1106
|
+
previousBlockedChunk === chunk$53 && (previousBlockedChunk = null);
|
|
1107
|
+
resolveModelChunk(chunk$53, json);
|
|
1098
1108
|
});
|
|
1099
1109
|
}
|
|
1100
1110
|
},
|
|
@@ -1239,8 +1249,8 @@ function mergeBuffer(buffer, lastChunk) {
|
|
|
1239
1249
|
for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++)
|
|
1240
1250
|
byteLength += buffer[i].byteLength;
|
|
1241
1251
|
byteLength = new Uint8Array(byteLength);
|
|
1242
|
-
for (var i$
|
|
1243
|
-
var chunk = buffer[i$
|
|
1252
|
+
for (var i$54 = (i = 0); i$54 < l; i$54++) {
|
|
1253
|
+
var chunk = buffer[i$54];
|
|
1244
1254
|
byteLength.set(chunk, i);
|
|
1245
1255
|
i += chunk.byteLength;
|
|
1246
1256
|
}
|
|
@@ -1419,42 +1429,44 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) {
|
|
|
1419
1429
|
}
|
|
1420
1430
|
function createFromJSONCallback(response) {
|
|
1421
1431
|
return function (key, value) {
|
|
1422
|
-
if ("
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
if (
|
|
1426
|
-
if (
|
|
1427
|
-
((key = {
|
|
1428
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1429
|
-
type: value[1],
|
|
1430
|
-
key: value[2],
|
|
1431
|
-
ref: null,
|
|
1432
|
-
props: value[3]
|
|
1433
|
-
}),
|
|
1434
|
-
null !== initializingHandler)
|
|
1435
|
-
)
|
|
1432
|
+
if ("__proto__" !== key) {
|
|
1433
|
+
if ("string" === typeof value)
|
|
1434
|
+
return parseModelString(response, this, key, value);
|
|
1435
|
+
if ("object" === typeof value && null !== value) {
|
|
1436
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
1436
1437
|
if (
|
|
1437
|
-
((
|
|
1438
|
-
|
|
1439
|
-
|
|
1438
|
+
((key = {
|
|
1439
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1440
|
+
type: value[1],
|
|
1441
|
+
key: value[2],
|
|
1442
|
+
ref: null,
|
|
1443
|
+
props: value[3]
|
|
1444
|
+
}),
|
|
1445
|
+
null !== initializingHandler)
|
|
1440
1446
|
)
|
|
1441
|
-
|
|
1442
|
-
(
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
null,
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1447
|
+
if (
|
|
1448
|
+
((value = initializingHandler),
|
|
1449
|
+
(initializingHandler = value.parent),
|
|
1450
|
+
value.errored)
|
|
1451
|
+
)
|
|
1452
|
+
(key = new ReactPromise("rejected", null, value.value, response)),
|
|
1453
|
+
(key = createLazyChunkWrapper(key));
|
|
1454
|
+
else if (0 < value.deps) {
|
|
1455
|
+
var blockedChunk = new ReactPromise(
|
|
1456
|
+
"blocked",
|
|
1457
|
+
null,
|
|
1458
|
+
null,
|
|
1459
|
+
response
|
|
1460
|
+
);
|
|
1461
|
+
value.value = key;
|
|
1462
|
+
value.chunk = blockedChunk;
|
|
1463
|
+
key = createLazyChunkWrapper(blockedChunk);
|
|
1464
|
+
}
|
|
1465
|
+
} else key = value;
|
|
1466
|
+
return key;
|
|
1467
|
+
}
|
|
1468
|
+
return value;
|
|
1456
1469
|
}
|
|
1457
|
-
return value;
|
|
1458
1470
|
};
|
|
1459
1471
|
}
|
|
1460
1472
|
var callServer = null;
|