react-server-dom-webpack 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-webpack-client.browser.development.js +143 -119
- package/cjs/react-server-dom-webpack-client.browser.production.js +65 -53
- package/cjs/react-server-dom-webpack-client.edge.development.js +141 -117
- package/cjs/react-server-dom-webpack-client.edge.production.js +65 -53
- package/cjs/react-server-dom-webpack-client.node.development.js +141 -117
- package/cjs/react-server-dom-webpack-client.node.production.js +65 -53
- package/cjs/react-server-dom-webpack-server.browser.development.js +625 -350
- package/cjs/react-server-dom-webpack-server.browser.production.js +598 -314
- package/cjs/react-server-dom-webpack-server.edge.development.js +628 -351
- package/cjs/react-server-dom-webpack-server.edge.production.js +601 -315
- package/cjs/react-server-dom-webpack-server.node.development.js +631 -354
- package/cjs/react-server-dom-webpack-server.node.production.js +604 -318
- package/package.json +3 -3
|
@@ -448,6 +448,11 @@
|
|
|
448
448
|
return "$" + (iterable ? "x" : "X") + streamId.toString(16);
|
|
449
449
|
}
|
|
450
450
|
function resolveToJSON(key, value) {
|
|
451
|
+
"__proto__" === key &&
|
|
452
|
+
console.error(
|
|
453
|
+
"Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s",
|
|
454
|
+
describeObjectForErrorMessage(this, key)
|
|
455
|
+
);
|
|
451
456
|
var originalValue = this[key];
|
|
452
457
|
"object" !== typeof originalValue ||
|
|
453
458
|
originalValue === value ||
|
|
@@ -692,17 +697,20 @@
|
|
|
692
697
|
if ("undefined" === typeof value) return "$undefined";
|
|
693
698
|
if ("function" === typeof value) {
|
|
694
699
|
parentReference = knownServerReferences.get(value);
|
|
695
|
-
if (void 0 !== parentReference)
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
null === formData && (formData = new FormData()),
|
|
702
|
-
(parentReference = nextPartId++),
|
|
703
|
-
formData.set(formFieldPrefix + parentReference, key),
|
|
704
|
-
"$h" + parentReference.toString(16)
|
|
700
|
+
if (void 0 !== parentReference) {
|
|
701
|
+
key = writtenObjects.get(value);
|
|
702
|
+
if (void 0 !== key) return key;
|
|
703
|
+
key = JSON.stringify(
|
|
704
|
+
{ id: parentReference.id, bound: parentReference.bound },
|
|
705
|
+
resolveToJSON
|
|
705
706
|
);
|
|
707
|
+
null === formData && (formData = new FormData());
|
|
708
|
+
parentReference = nextPartId++;
|
|
709
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
710
|
+
key = "$h" + parentReference.toString(16);
|
|
711
|
+
writtenObjects.set(value, key);
|
|
712
|
+
return key;
|
|
713
|
+
}
|
|
706
714
|
if (
|
|
707
715
|
void 0 !== temporaryReferences &&
|
|
708
716
|
-1 === key.indexOf(":") &&
|
|
@@ -1161,10 +1169,17 @@
|
|
|
1161
1169
|
value.then(fulfill, reject);
|
|
1162
1170
|
return;
|
|
1163
1171
|
}
|
|
1164
|
-
|
|
1172
|
+
var name = path[i];
|
|
1173
|
+
if (
|
|
1174
|
+
"object" === typeof value &&
|
|
1175
|
+
null !== value &&
|
|
1176
|
+
hasOwnProperty.call(value, name)
|
|
1177
|
+
)
|
|
1178
|
+
value = value[name];
|
|
1179
|
+
else throw Error("Invalid reference.");
|
|
1165
1180
|
}
|
|
1166
1181
|
i = map(response, value, parentObject, key);
|
|
1167
|
-
parentObject[key] = i;
|
|
1182
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
1168
1183
|
"" === key && null === handler.value && (handler.value = i);
|
|
1169
1184
|
if (
|
|
1170
1185
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1276,7 +1291,7 @@
|
|
|
1276
1291
|
metaData.id,
|
|
1277
1292
|
metaData.bound
|
|
1278
1293
|
);
|
|
1279
|
-
parentObject[key] = resolvedValue;
|
|
1294
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
1280
1295
|
"" === key &&
|
|
1281
1296
|
null === handler.value &&
|
|
1282
1297
|
(handler.value = resolvedValue);
|
|
@@ -1541,13 +1556,14 @@
|
|
|
1541
1556
|
}
|
|
1542
1557
|
case "Y":
|
|
1543
1558
|
return (
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1559
|
+
"__proto__" !== key &&
|
|
1560
|
+
Object.defineProperty(parentObject, key, {
|
|
1561
|
+
get: function () {
|
|
1562
|
+
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.";
|
|
1563
|
+
},
|
|
1564
|
+
enumerable: !0,
|
|
1565
|
+
configurable: !1
|
|
1566
|
+
}),
|
|
1551
1567
|
null
|
|
1552
1568
|
);
|
|
1553
1569
|
default:
|
|
@@ -2319,106 +2335,114 @@
|
|
|
2319
2335
|
}
|
|
2320
2336
|
function createFromJSONCallback(response) {
|
|
2321
2337
|
return function (key, value) {
|
|
2322
|
-
if ("
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
if (
|
|
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
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2338
|
+
if ("__proto__" !== key) {
|
|
2339
|
+
if ("string" === typeof value)
|
|
2340
|
+
return parseModelString(response, this, key, value);
|
|
2341
|
+
if ("object" === typeof value && null !== value) {
|
|
2342
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
2343
|
+
var type = value[1];
|
|
2344
|
+
key = value[4];
|
|
2345
|
+
var stack = value[5],
|
|
2346
|
+
validated = value[6];
|
|
2347
|
+
value = {
|
|
2348
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
2349
|
+
type: type,
|
|
2350
|
+
key: value[2],
|
|
2351
|
+
props: value[3],
|
|
2352
|
+
_owner: null === key ? response._debugRootOwner : key
|
|
2353
|
+
};
|
|
2354
|
+
Object.defineProperty(value, "ref", {
|
|
2355
|
+
enumerable: !1,
|
|
2356
|
+
get: nullRefGetter
|
|
2357
|
+
});
|
|
2358
|
+
value._store = {};
|
|
2359
|
+
Object.defineProperty(value._store, "validated", {
|
|
2360
|
+
configurable: !1,
|
|
2361
|
+
enumerable: !1,
|
|
2362
|
+
writable: !0,
|
|
2363
|
+
value: validated
|
|
2364
|
+
});
|
|
2365
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
2366
|
+
configurable: !1,
|
|
2367
|
+
enumerable: !1,
|
|
2368
|
+
writable: !0,
|
|
2369
|
+
value: null
|
|
2370
|
+
});
|
|
2371
|
+
validated = response._rootEnvironmentName;
|
|
2372
|
+
null !== key && null != key.env && (validated = key.env);
|
|
2373
|
+
var normalizedStackTrace = null;
|
|
2374
|
+
null === key && null != response._debugRootStack
|
|
2375
|
+
? (normalizedStackTrace = response._debugRootStack)
|
|
2376
|
+
: null !== stack &&
|
|
2377
|
+
(normalizedStackTrace = createFakeJSXCallStackInDEV(
|
|
2378
|
+
response,
|
|
2379
|
+
stack,
|
|
2380
|
+
validated
|
|
2381
|
+
));
|
|
2382
|
+
Object.defineProperty(value, "_debugStack", {
|
|
2383
|
+
configurable: !1,
|
|
2384
|
+
enumerable: !1,
|
|
2385
|
+
writable: !0,
|
|
2386
|
+
value: normalizedStackTrace
|
|
2387
|
+
});
|
|
2388
|
+
normalizedStackTrace = null;
|
|
2389
|
+
supportsCreateTask &&
|
|
2390
|
+
null !== stack &&
|
|
2391
|
+
((type = console.createTask.bind(console, getTaskName(type))),
|
|
2392
|
+
(stack = buildFakeCallStack(response, stack, validated, type)),
|
|
2393
|
+
(type =
|
|
2394
|
+
null === key
|
|
2395
|
+
? null
|
|
2396
|
+
: initializeFakeTask(response, key, validated)),
|
|
2397
|
+
null === type
|
|
2398
|
+
? ((type = response._debugRootTask),
|
|
2399
|
+
(normalizedStackTrace =
|
|
2400
|
+
null != type ? type.run(stack) : stack()))
|
|
2401
|
+
: (normalizedStackTrace = type.run(stack)));
|
|
2402
|
+
Object.defineProperty(value, "_debugTask", {
|
|
2403
|
+
configurable: !1,
|
|
2404
|
+
enumerable: !1,
|
|
2405
|
+
writable: !0,
|
|
2406
|
+
value: normalizedStackTrace
|
|
2407
|
+
});
|
|
2408
|
+
null !== key && initializeFakeStack(response, key);
|
|
2409
|
+
null !== initializingHandler
|
|
2410
|
+
? ((stack = initializingHandler),
|
|
2411
|
+
(initializingHandler = stack.parent),
|
|
2412
|
+
stack.errored
|
|
2413
|
+
? ((key = new ReactPromise(
|
|
2414
|
+
"rejected",
|
|
2415
|
+
null,
|
|
2416
|
+
stack.value,
|
|
2417
|
+
response
|
|
2418
|
+
)),
|
|
2419
|
+
(stack = {
|
|
2420
|
+
name: getComponentNameFromType(value.type) || "",
|
|
2421
|
+
owner: value._owner
|
|
2422
|
+
}),
|
|
2423
|
+
(stack.debugStack = value._debugStack),
|
|
2424
|
+
supportsCreateTask &&
|
|
2425
|
+
(stack.debugTask = value._debugTask),
|
|
2426
|
+
(key._debugInfo = [stack]),
|
|
2427
|
+
(value = createLazyChunkWrapper(key)))
|
|
2428
|
+
: 0 < stack.deps &&
|
|
2429
|
+
((key = new ReactPromise(
|
|
2430
|
+
"blocked",
|
|
2431
|
+
null,
|
|
2432
|
+
null,
|
|
2433
|
+
response
|
|
2434
|
+
)),
|
|
2435
|
+
(stack.value = value),
|
|
2436
|
+
(stack.chunk = key),
|
|
2437
|
+
(value = Object.freeze.bind(Object, value.props)),
|
|
2438
|
+
key.then(value, value),
|
|
2439
|
+
(value = createLazyChunkWrapper(key))))
|
|
2440
|
+
: Object.freeze(value.props);
|
|
2441
|
+
}
|
|
2442
|
+
return value;
|
|
2418
2443
|
}
|
|
2419
2444
|
return value;
|
|
2420
2445
|
}
|
|
2421
|
-
return value;
|
|
2422
2446
|
};
|
|
2423
2447
|
}
|
|
2424
2448
|
function createResponseFromOptions(options) {
|
|
@@ -2721,10 +2745,10 @@
|
|
|
2721
2745
|
return hook.checkDCE ? !0 : !1;
|
|
2722
2746
|
})({
|
|
2723
2747
|
bundleType: 1,
|
|
2724
|
-
version: "19.1.
|
|
2748
|
+
version: "19.1.5",
|
|
2725
2749
|
rendererPackageName: "react-server-dom-webpack",
|
|
2726
2750
|
currentDispatcherRef: ReactSharedInternals,
|
|
2727
|
-
reconcilerVersion: "19.1.
|
|
2751
|
+
reconcilerVersion: "19.1.5",
|
|
2728
2752
|
getCurrentComponentInfo: function () {
|
|
2729
2753
|
return currentOwnerInDEV;
|
|
2730
2754
|
}
|
|
@@ -444,17 +444,20 @@ function processReply(
|
|
|
444
444
|
if ("undefined" === typeof value) return "$undefined";
|
|
445
445
|
if ("function" === typeof value) {
|
|
446
446
|
parentReference = knownServerReferences.get(value);
|
|
447
|
-
if (void 0 !== parentReference)
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
null === formData && (formData = new FormData()),
|
|
454
|
-
(parentReference = nextPartId++),
|
|
455
|
-
formData.set(formFieldPrefix + parentReference, key),
|
|
456
|
-
"$h" + parentReference.toString(16)
|
|
447
|
+
if (void 0 !== parentReference) {
|
|
448
|
+
key = writtenObjects.get(value);
|
|
449
|
+
if (void 0 !== key) return key;
|
|
450
|
+
key = JSON.stringify(
|
|
451
|
+
{ id: parentReference.id, bound: parentReference.bound },
|
|
452
|
+
resolveToJSON
|
|
457
453
|
);
|
|
454
|
+
null === formData && (formData = new FormData());
|
|
455
|
+
parentReference = nextPartId++;
|
|
456
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
457
|
+
key = "$h" + parentReference.toString(16);
|
|
458
|
+
writtenObjects.set(value, key);
|
|
459
|
+
return key;
|
|
460
|
+
}
|
|
458
461
|
if (
|
|
459
462
|
void 0 !== temporaryReferences &&
|
|
460
463
|
-1 === key.indexOf(":") &&
|
|
@@ -750,10 +753,17 @@ function waitForReference(
|
|
|
750
753
|
value.then(fulfill, reject);
|
|
751
754
|
return;
|
|
752
755
|
}
|
|
753
|
-
|
|
756
|
+
var name = path[i];
|
|
757
|
+
if (
|
|
758
|
+
"object" === typeof value &&
|
|
759
|
+
null !== value &&
|
|
760
|
+
hasOwnProperty.call(value, name)
|
|
761
|
+
)
|
|
762
|
+
value = value[name];
|
|
763
|
+
else throw Error("Invalid reference.");
|
|
754
764
|
}
|
|
755
765
|
i = map(response, value, parentObject, key);
|
|
756
|
-
parentObject[key] = i;
|
|
766
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
757
767
|
"" === key && null === handler.value && (handler.value = i);
|
|
758
768
|
if (
|
|
759
769
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -836,7 +846,7 @@ function loadServerReference(response, metaData, parentObject, key) {
|
|
|
836
846
|
resolvedValue = resolvedValue.bind.apply(resolvedValue, boundArgs);
|
|
837
847
|
}
|
|
838
848
|
registerBoundServerReference(resolvedValue, metaData.id, metaData.bound);
|
|
839
|
-
parentObject[key] = resolvedValue;
|
|
849
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
840
850
|
"" === key && null === handler.value && (handler.value = resolvedValue);
|
|
841
851
|
if (
|
|
842
852
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1155,8 +1165,8 @@ function startReadableStream(response, id, type) {
|
|
|
1155
1165
|
(previousBlockedChunk = chunk));
|
|
1156
1166
|
} else {
|
|
1157
1167
|
chunk = previousBlockedChunk;
|
|
1158
|
-
var chunk$
|
|
1159
|
-
chunk$
|
|
1168
|
+
var chunk$53 = createPendingChunk(response);
|
|
1169
|
+
chunk$53.then(
|
|
1160
1170
|
function (v) {
|
|
1161
1171
|
return controller.enqueue(v);
|
|
1162
1172
|
},
|
|
@@ -1164,10 +1174,10 @@ function startReadableStream(response, id, type) {
|
|
|
1164
1174
|
return controller.error(e);
|
|
1165
1175
|
}
|
|
1166
1176
|
);
|
|
1167
|
-
previousBlockedChunk = chunk$
|
|
1177
|
+
previousBlockedChunk = chunk$53;
|
|
1168
1178
|
chunk.then(function () {
|
|
1169
|
-
previousBlockedChunk === chunk$
|
|
1170
|
-
resolveModelChunk(chunk$
|
|
1179
|
+
previousBlockedChunk === chunk$53 && (previousBlockedChunk = null);
|
|
1180
|
+
resolveModelChunk(chunk$53, json);
|
|
1171
1181
|
});
|
|
1172
1182
|
}
|
|
1173
1183
|
},
|
|
@@ -1312,8 +1322,8 @@ function mergeBuffer(buffer, lastChunk) {
|
|
|
1312
1322
|
for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++)
|
|
1313
1323
|
byteLength += buffer[i].byteLength;
|
|
1314
1324
|
byteLength = new Uint8Array(byteLength);
|
|
1315
|
-
for (var i$
|
|
1316
|
-
var chunk = buffer[i$
|
|
1325
|
+
for (var i$54 = (i = 0); i$54 < l; i$54++) {
|
|
1326
|
+
var chunk = buffer[i$54];
|
|
1317
1327
|
byteLength.set(chunk, i);
|
|
1318
1328
|
i += chunk.byteLength;
|
|
1319
1329
|
}
|
|
@@ -1492,42 +1502,44 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) {
|
|
|
1492
1502
|
}
|
|
1493
1503
|
function createFromJSONCallback(response) {
|
|
1494
1504
|
return function (key, value) {
|
|
1495
|
-
if ("
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
if (
|
|
1499
|
-
if (
|
|
1500
|
-
((key = {
|
|
1501
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1502
|
-
type: value[1],
|
|
1503
|
-
key: value[2],
|
|
1504
|
-
ref: null,
|
|
1505
|
-
props: value[3]
|
|
1506
|
-
}),
|
|
1507
|
-
null !== initializingHandler)
|
|
1508
|
-
)
|
|
1505
|
+
if ("__proto__" !== key) {
|
|
1506
|
+
if ("string" === typeof value)
|
|
1507
|
+
return parseModelString(response, this, key, value);
|
|
1508
|
+
if ("object" === typeof value && null !== value) {
|
|
1509
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
1509
1510
|
if (
|
|
1510
|
-
((
|
|
1511
|
-
|
|
1512
|
-
|
|
1511
|
+
((key = {
|
|
1512
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1513
|
+
type: value[1],
|
|
1514
|
+
key: value[2],
|
|
1515
|
+
ref: null,
|
|
1516
|
+
props: value[3]
|
|
1517
|
+
}),
|
|
1518
|
+
null !== initializingHandler)
|
|
1513
1519
|
)
|
|
1514
|
-
|
|
1515
|
-
(
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
null,
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1520
|
+
if (
|
|
1521
|
+
((value = initializingHandler),
|
|
1522
|
+
(initializingHandler = value.parent),
|
|
1523
|
+
value.errored)
|
|
1524
|
+
)
|
|
1525
|
+
(key = new ReactPromise("rejected", null, value.value, response)),
|
|
1526
|
+
(key = createLazyChunkWrapper(key));
|
|
1527
|
+
else if (0 < value.deps) {
|
|
1528
|
+
var blockedChunk = new ReactPromise(
|
|
1529
|
+
"blocked",
|
|
1530
|
+
null,
|
|
1531
|
+
null,
|
|
1532
|
+
response
|
|
1533
|
+
);
|
|
1534
|
+
value.value = key;
|
|
1535
|
+
value.chunk = blockedChunk;
|
|
1536
|
+
key = createLazyChunkWrapper(blockedChunk);
|
|
1537
|
+
}
|
|
1538
|
+
} else key = value;
|
|
1539
|
+
return key;
|
|
1540
|
+
}
|
|
1541
|
+
return value;
|
|
1529
1542
|
}
|
|
1530
|
-
return value;
|
|
1531
1543
|
};
|
|
1532
1544
|
}
|
|
1533
1545
|
function createResponseFromOptions(options) {
|