react-server-dom-webpack 19.3.0 → 19.3.1
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 +58 -45
- package/cjs/react-server-dom-webpack-client.browser.production.js +79 -64
- package/cjs/react-server-dom-webpack-client.edge.development.js +59 -42
- package/cjs/react-server-dom-webpack-client.edge.production.js +82 -67
- package/cjs/react-server-dom-webpack-client.node.development.js +59 -42
- package/cjs/react-server-dom-webpack-client.node.production.js +82 -67
- package/cjs/react-server-dom-webpack-server.browser.development.js +188 -94
- package/cjs/react-server-dom-webpack-server.browser.production.js +181 -89
- package/cjs/react-server-dom-webpack-server.edge.development.js +219 -112
- package/cjs/react-server-dom-webpack-server.edge.production.js +209 -107
- package/cjs/react-server-dom-webpack-server.node.development.js +240 -131
- package/cjs/react-server-dom-webpack-server.node.production.js +228 -123
- package/package.json +3 -3
|
@@ -37,6 +37,11 @@ function getIteratorFn(maybeIterable) {
|
|
|
37
37
|
}
|
|
38
38
|
var ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
39
39
|
REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
40
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
41
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
42
|
+
ArrayBuffer.prototype,
|
|
43
|
+
"detached"
|
|
44
|
+
),
|
|
40
45
|
scheduleMicrotask = queueMicrotask,
|
|
41
46
|
currentView = null,
|
|
42
47
|
writtenBytes = 0,
|
|
@@ -74,33 +79,37 @@ function writeChunk(destination, chunk) {
|
|
|
74
79
|
(currentView = new Uint8Array(4096)),
|
|
75
80
|
(writtenBytes = 0));
|
|
76
81
|
}
|
|
82
|
+
} else if (0 === chunk.byteLength) {
|
|
83
|
+
if (supportsArrayBufferDetached && chunk.buffer.detached)
|
|
84
|
+
throw Error(
|
|
85
|
+
"Cannot transport a detached buffer. This usually happens when trying to transport multiple buffer-spanning views on the same underyling buffer. Either reuse the exact same view by identity or copy the underlying buffer manually via `view.slice()`."
|
|
86
|
+
);
|
|
77
87
|
} else
|
|
78
|
-
|
|
79
|
-
(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
(writtenBytes = 0))));
|
|
88
|
+
4096 < chunk.byteLength
|
|
89
|
+
? (0 < writtenBytes &&
|
|
90
|
+
(writeToDestination(
|
|
91
|
+
destination,
|
|
92
|
+
currentView.subarray(0, writtenBytes)
|
|
93
|
+
),
|
|
94
|
+
(currentView = new Uint8Array(4096)),
|
|
95
|
+
(writtenBytes = 0)),
|
|
96
|
+
writeToDestination(destination, chunk))
|
|
97
|
+
: ((target = currentView.length - writtenBytes),
|
|
98
|
+
target < chunk.byteLength &&
|
|
99
|
+
(0 === target
|
|
100
|
+
? writeToDestination(destination, currentView)
|
|
101
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
102
|
+
(writtenBytes += target),
|
|
103
|
+
writeToDestination(destination, currentView),
|
|
104
|
+
(chunk = chunk.subarray(target))),
|
|
105
|
+
(currentView = new Uint8Array(4096)),
|
|
106
|
+
(writtenBytes = 0)),
|
|
107
|
+
currentView.set(chunk, writtenBytes),
|
|
108
|
+
(writtenBytes += chunk.byteLength),
|
|
109
|
+
4096 === writtenBytes &&
|
|
110
|
+
(writeToDestination(destination, currentView),
|
|
111
|
+
(currentView = new Uint8Array(4096)),
|
|
112
|
+
(writtenBytes = 0)));
|
|
104
113
|
}
|
|
105
114
|
function writeToDestination(destination, view) {
|
|
106
115
|
destination = destination.write(view);
|
|
@@ -847,8 +856,7 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
|
|
|
847
856
|
"\n " + str + "\n " + objectOrArray)
|
|
848
857
|
: "\n " + str;
|
|
849
858
|
}
|
|
850
|
-
var
|
|
851
|
-
ObjectPrototype$1 = Object.prototype,
|
|
859
|
+
var ObjectPrototype$1 = Object.prototype,
|
|
852
860
|
stringify = JSON.stringify,
|
|
853
861
|
NEXT_TWO_CHUNKS_ARE_ATOMIC = Symbol();
|
|
854
862
|
function defaultErrorHandler(error) {
|
|
@@ -2067,11 +2075,28 @@ function transformImportMetadata(request, value, depth) {
|
|
|
2067
2075
|
}
|
|
2068
2076
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
2069
2077
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2078
|
+
a: {
|
|
2079
|
+
debug = new Uint8Array(
|
|
2080
|
+
typedArray.buffer,
|
|
2081
|
+
typedArray.byteOffset,
|
|
2082
|
+
typedArray.byteLength
|
|
2083
|
+
);
|
|
2084
|
+
if (4096 < typedArray.byteLength) {
|
|
2085
|
+
if (
|
|
2086
|
+
0 !== typedArray.byteOffset ||
|
|
2087
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
2088
|
+
typedArray.buffer.resizable
|
|
2089
|
+
) {
|
|
2090
|
+
typedArray = debug.slice();
|
|
2091
|
+
break a;
|
|
2092
|
+
}
|
|
2093
|
+
if (!supportsArrayBufferDetached) {
|
|
2094
|
+
typedArray = debug.slice();
|
|
2095
|
+
break a;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
typedArray = debug;
|
|
2099
|
+
}
|
|
2075
2100
|
debug = typedArray.byteLength;
|
|
2076
2101
|
id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
|
|
2077
2102
|
request.completedRegularChunks.push(
|
|
@@ -2522,13 +2547,37 @@ function requireModule(metadata) {
|
|
|
2522
2547
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2523
2548
|
return moduleExports[metadata[2]];
|
|
2524
2549
|
}
|
|
2525
|
-
function appendBackingEntry(backingStore,
|
|
2526
|
-
backingStore.
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2550
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2551
|
+
var prefix = backingStore.prefix;
|
|
2552
|
+
if (key.startsWith(prefix)) {
|
|
2553
|
+
switch (key[prefix.length]) {
|
|
2554
|
+
case "_":
|
|
2555
|
+
prefix = backingStore.referencedEntries;
|
|
2556
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2557
|
+
prefix.push([key, value]);
|
|
2558
|
+
return;
|
|
2559
|
+
case "S":
|
|
2560
|
+
"string" === typeof value &&
|
|
2561
|
+
((prefix = backingStore.streamChunks),
|
|
2562
|
+
null === prefix && (prefix = backingStore.streamChunks = new Map()),
|
|
2563
|
+
(backingStore = prefix.get(key)),
|
|
2564
|
+
void 0 === backingStore
|
|
2565
|
+
? prefix.set(key, [value])
|
|
2566
|
+
: backingStore.push(value));
|
|
2567
|
+
return;
|
|
2568
|
+
}
|
|
2569
|
+
"string" === typeof value
|
|
2570
|
+
? ((prefix = backingStore.stringChunks),
|
|
2571
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2572
|
+
prefix.set(key, value))
|
|
2573
|
+
: ((prefix = backingStore.blobs),
|
|
2574
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2575
|
+
prefix.set(key, value));
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
function getBackingBlob(backingStore, key) {
|
|
2579
|
+
backingStore = backingStore.blobs;
|
|
2580
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2532
2581
|
}
|
|
2533
2582
|
var RESPONSE_SYMBOL = Symbol();
|
|
2534
2583
|
function ReactPromise(status, value, reason) {
|
|
@@ -2909,15 +2958,18 @@ function reportGlobalError(response, error) {
|
|
|
2909
2958
|
function getChunk(response, id) {
|
|
2910
2959
|
var chunks = response._chunks,
|
|
2911
2960
|
chunk = chunks.get(id);
|
|
2912
|
-
chunk
|
|
2913
|
-
|
|
2914
|
-
|
|
2961
|
+
if (!chunk) {
|
|
2962
|
+
chunk = response._prefix;
|
|
2963
|
+
var stringChunks = response._formData.stringChunks;
|
|
2964
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
2965
|
+
chunk =
|
|
2915
2966
|
"string" === typeof chunk
|
|
2916
2967
|
? createResolvedModelChunk(response, chunk, id)
|
|
2917
2968
|
: response._closed
|
|
2918
2969
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
2919
|
-
: new ReactPromise("pending", null, null)
|
|
2920
|
-
chunks.set(id, chunk)
|
|
2970
|
+
: new ReactPromise("pending", null, null);
|
|
2971
|
+
chunks.set(id, chunk);
|
|
2972
|
+
}
|
|
2921
2973
|
return chunk;
|
|
2922
2974
|
}
|
|
2923
2975
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -3148,7 +3200,7 @@ function parseTypedArray(
|
|
|
3148
3200
|
Error("Already initialized typed array.")
|
|
3149
3201
|
)
|
|
3150
3202
|
);
|
|
3151
|
-
reference = response._formData
|
|
3203
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
3152
3204
|
if (initializingHandler) {
|
|
3153
3205
|
var handler = initializingHandler;
|
|
3154
3206
|
handler.deps++;
|
|
@@ -3192,13 +3244,15 @@ function resolveStream(response, id, stream, controller) {
|
|
|
3192
3244
|
var chunks = response._chunks;
|
|
3193
3245
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3194
3246
|
chunks.set(id, stream);
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3247
|
+
chunks = response._prefix;
|
|
3248
|
+
response = response._formData.streamChunks;
|
|
3249
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
3250
|
+
if (void 0 !== id)
|
|
3251
|
+
for (response = 0; response < id.length; response++)
|
|
3252
|
+
(chunks = id[response]),
|
|
3253
|
+
"C" === chunks[0]
|
|
3200
3254
|
? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1))
|
|
3201
|
-
: controller.enqueueModel(chunks)
|
|
3255
|
+
: controller.enqueueModel(chunks);
|
|
3202
3256
|
}
|
|
3203
3257
|
function parseReadableStream(response, reference, type) {
|
|
3204
3258
|
function enqueue(value) {
|
|
@@ -3364,7 +3418,14 @@ function parseAsyncIterable(response, reference, iterator) {
|
|
|
3364
3418
|
});
|
|
3365
3419
|
return iterator;
|
|
3366
3420
|
}
|
|
3367
|
-
function parseModelString(
|
|
3421
|
+
function parseModelString(
|
|
3422
|
+
response,
|
|
3423
|
+
obj,
|
|
3424
|
+
key$jscomp$0,
|
|
3425
|
+
value,
|
|
3426
|
+
reference,
|
|
3427
|
+
arrayRoot
|
|
3428
|
+
) {
|
|
3368
3429
|
if ("$" === value[0]) {
|
|
3369
3430
|
switch (value[1]) {
|
|
3370
3431
|
case "$":
|
|
@@ -3382,7 +3443,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3382
3443
|
response,
|
|
3383
3444
|
arrayRoot,
|
|
3384
3445
|
obj,
|
|
3385
|
-
key,
|
|
3446
|
+
key$jscomp$0,
|
|
3386
3447
|
null,
|
|
3387
3448
|
loadServerReference$1
|
|
3388
3449
|
)
|
|
@@ -3399,43 +3460,55 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3399
3460
|
case "Q":
|
|
3400
3461
|
return (
|
|
3401
3462
|
(arrayRoot = value.slice(2)),
|
|
3402
|
-
getOutlinedModel(
|
|
3463
|
+
getOutlinedModel(
|
|
3464
|
+
response,
|
|
3465
|
+
arrayRoot,
|
|
3466
|
+
obj,
|
|
3467
|
+
key$jscomp$0,
|
|
3468
|
+
null,
|
|
3469
|
+
createMap
|
|
3470
|
+
)
|
|
3403
3471
|
);
|
|
3404
3472
|
case "W":
|
|
3405
3473
|
return (
|
|
3406
3474
|
(arrayRoot = value.slice(2)),
|
|
3407
|
-
getOutlinedModel(
|
|
3475
|
+
getOutlinedModel(
|
|
3476
|
+
response,
|
|
3477
|
+
arrayRoot,
|
|
3478
|
+
obj,
|
|
3479
|
+
key$jscomp$0,
|
|
3480
|
+
null,
|
|
3481
|
+
createSet
|
|
3482
|
+
)
|
|
3408
3483
|
);
|
|
3409
3484
|
case "K":
|
|
3410
|
-
|
|
3411
|
-
obj = response._prefix + "_";
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3425
|
-
i < reference.length;
|
|
3426
|
-
i++
|
|
3427
|
-
)
|
|
3428
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3429
|
-
response.data.delete(value);
|
|
3430
|
-
response.keyPointer++;
|
|
3431
|
-
} else if (value.startsWith(obj)) break;
|
|
3432
|
-
else response.keyPointer++;
|
|
3485
|
+
obj = value.slice(2);
|
|
3486
|
+
obj = response._prefix + "_" + obj + "_";
|
|
3487
|
+
response = response._formData;
|
|
3488
|
+
key$jscomp$0 = new FormData();
|
|
3489
|
+
arrayRoot = response.referencedEntries;
|
|
3490
|
+
if (null !== arrayRoot) {
|
|
3491
|
+
for (value = response.keyPointer; value < arrayRoot.length; ) {
|
|
3492
|
+
reference = arrayRoot[value];
|
|
3493
|
+
var key = reference[0];
|
|
3494
|
+
if (!key.startsWith(obj)) break;
|
|
3495
|
+
key$jscomp$0.append(key.slice(obj.length), reference[1]);
|
|
3496
|
+
value++;
|
|
3497
|
+
}
|
|
3498
|
+
response.keyPointer = value;
|
|
3433
3499
|
}
|
|
3434
|
-
return
|
|
3500
|
+
return key$jscomp$0;
|
|
3435
3501
|
case "i":
|
|
3436
3502
|
return (
|
|
3437
3503
|
(arrayRoot = value.slice(2)),
|
|
3438
|
-
getOutlinedModel(
|
|
3504
|
+
getOutlinedModel(
|
|
3505
|
+
response,
|
|
3506
|
+
arrayRoot,
|
|
3507
|
+
obj,
|
|
3508
|
+
key$jscomp$0,
|
|
3509
|
+
null,
|
|
3510
|
+
extractIterator
|
|
3511
|
+
)
|
|
3439
3512
|
);
|
|
3440
3513
|
case "I":
|
|
3441
3514
|
return Infinity;
|
|
@@ -3464,7 +3537,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3464
3537
|
ArrayBuffer,
|
|
3465
3538
|
1,
|
|
3466
3539
|
obj,
|
|
3467
|
-
key,
|
|
3540
|
+
key$jscomp$0,
|
|
3468
3541
|
arrayRoot
|
|
3469
3542
|
);
|
|
3470
3543
|
case "O":
|
|
@@ -3474,7 +3547,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3474
3547
|
Int8Array,
|
|
3475
3548
|
1,
|
|
3476
3549
|
obj,
|
|
3477
|
-
key,
|
|
3550
|
+
key$jscomp$0,
|
|
3478
3551
|
arrayRoot
|
|
3479
3552
|
);
|
|
3480
3553
|
case "o":
|
|
@@ -3484,7 +3557,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3484
3557
|
Uint8Array,
|
|
3485
3558
|
1,
|
|
3486
3559
|
obj,
|
|
3487
|
-
key,
|
|
3560
|
+
key$jscomp$0,
|
|
3488
3561
|
arrayRoot
|
|
3489
3562
|
);
|
|
3490
3563
|
case "U":
|
|
@@ -3494,7 +3567,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3494
3567
|
Uint8ClampedArray,
|
|
3495
3568
|
1,
|
|
3496
3569
|
obj,
|
|
3497
|
-
key,
|
|
3570
|
+
key$jscomp$0,
|
|
3498
3571
|
arrayRoot
|
|
3499
3572
|
);
|
|
3500
3573
|
case "S":
|
|
@@ -3504,7 +3577,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3504
3577
|
Int16Array,
|
|
3505
3578
|
2,
|
|
3506
3579
|
obj,
|
|
3507
|
-
key,
|
|
3580
|
+
key$jscomp$0,
|
|
3508
3581
|
arrayRoot
|
|
3509
3582
|
);
|
|
3510
3583
|
case "s":
|
|
@@ -3514,7 +3587,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3514
3587
|
Uint16Array,
|
|
3515
3588
|
2,
|
|
3516
3589
|
obj,
|
|
3517
|
-
key,
|
|
3590
|
+
key$jscomp$0,
|
|
3518
3591
|
arrayRoot
|
|
3519
3592
|
);
|
|
3520
3593
|
case "L":
|
|
@@ -3524,7 +3597,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3524
3597
|
Int32Array,
|
|
3525
3598
|
4,
|
|
3526
3599
|
obj,
|
|
3527
|
-
key,
|
|
3600
|
+
key$jscomp$0,
|
|
3528
3601
|
arrayRoot
|
|
3529
3602
|
);
|
|
3530
3603
|
case "l":
|
|
@@ -3534,7 +3607,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3534
3607
|
Uint32Array,
|
|
3535
3608
|
4,
|
|
3536
3609
|
obj,
|
|
3537
|
-
key,
|
|
3610
|
+
key$jscomp$0,
|
|
3538
3611
|
arrayRoot
|
|
3539
3612
|
);
|
|
3540
3613
|
case "G":
|
|
@@ -3544,7 +3617,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3544
3617
|
Float32Array,
|
|
3545
3618
|
4,
|
|
3546
3619
|
obj,
|
|
3547
|
-
key,
|
|
3620
|
+
key$jscomp$0,
|
|
3548
3621
|
arrayRoot
|
|
3549
3622
|
);
|
|
3550
3623
|
case "g":
|
|
@@ -3554,7 +3627,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3554
3627
|
Float64Array,
|
|
3555
3628
|
8,
|
|
3556
3629
|
obj,
|
|
3557
|
-
key,
|
|
3630
|
+
key$jscomp$0,
|
|
3558
3631
|
arrayRoot
|
|
3559
3632
|
);
|
|
3560
3633
|
case "M":
|
|
@@ -3564,7 +3637,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3564
3637
|
BigInt64Array,
|
|
3565
3638
|
8,
|
|
3566
3639
|
obj,
|
|
3567
|
-
key,
|
|
3640
|
+
key$jscomp$0,
|
|
3568
3641
|
arrayRoot
|
|
3569
3642
|
);
|
|
3570
3643
|
case "m":
|
|
@@ -3574,7 +3647,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3574
3647
|
BigUint64Array,
|
|
3575
3648
|
8,
|
|
3576
3649
|
obj,
|
|
3577
|
-
key,
|
|
3650
|
+
key$jscomp$0,
|
|
3578
3651
|
arrayRoot
|
|
3579
3652
|
);
|
|
3580
3653
|
case "V":
|
|
@@ -3584,12 +3657,12 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3584
3657
|
DataView,
|
|
3585
3658
|
1,
|
|
3586
3659
|
obj,
|
|
3587
|
-
key,
|
|
3660
|
+
key$jscomp$0,
|
|
3588
3661
|
arrayRoot
|
|
3589
3662
|
);
|
|
3590
3663
|
case "B":
|
|
3591
3664
|
obj = parseInt(value.slice(2), 16);
|
|
3592
|
-
response = response._formData
|
|
3665
|
+
response = getBackingBlob(response._formData, response._prefix + obj);
|
|
3593
3666
|
if (!(response instanceof Blob))
|
|
3594
3667
|
throw Error("Referenced Blob is not a Blob.");
|
|
3595
3668
|
return response;
|
|
@@ -3603,7 +3676,14 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3603
3676
|
return parseAsyncIterable(response, value, !0);
|
|
3604
3677
|
}
|
|
3605
3678
|
value = value.slice(1);
|
|
3606
|
-
return getOutlinedModel(
|
|
3679
|
+
return getOutlinedModel(
|
|
3680
|
+
response,
|
|
3681
|
+
value,
|
|
3682
|
+
obj,
|
|
3683
|
+
key$jscomp$0,
|
|
3684
|
+
arrayRoot,
|
|
3685
|
+
createModel
|
|
3686
|
+
);
|
|
3607
3687
|
}
|
|
3608
3688
|
null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
|
|
3609
3689
|
return value;
|
|
@@ -3615,11 +3695,20 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3615
3695
|
: new FormData(),
|
|
3616
3696
|
arraySizeLimit =
|
|
3617
3697
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3618
|
-
chunks = new Map()
|
|
3698
|
+
chunks = new Map(),
|
|
3699
|
+
backingStore = {
|
|
3700
|
+
prefix: formFieldPrefix,
|
|
3701
|
+
referencedEntries: null,
|
|
3702
|
+
keyPointer: 0,
|
|
3703
|
+
stringChunks: null,
|
|
3704
|
+
streamChunks: null,
|
|
3705
|
+
blobs: null
|
|
3706
|
+
};
|
|
3707
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3619
3708
|
return {
|
|
3620
3709
|
_bundlerConfig: bundlerConfig,
|
|
3621
3710
|
_prefix: formFieldPrefix,
|
|
3622
|
-
_formData:
|
|
3711
|
+
_formData: backingStore,
|
|
3623
3712
|
_chunks: chunks,
|
|
3624
3713
|
_closed: !1,
|
|
3625
3714
|
_closedReason: null,
|
|
@@ -3629,14 +3718,26 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3629
3718
|
};
|
|
3630
3719
|
}
|
|
3631
3720
|
function resolveField(response, key, value) {
|
|
3632
|
-
appendBackingEntry(response._formData, key, value);
|
|
3633
3721
|
var prefix = response._prefix;
|
|
3634
3722
|
if (key.startsWith(prefix)) {
|
|
3635
3723
|
var chunks = response._chunks;
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3724
|
+
if ("S" === key[prefix.length]) {
|
|
3725
|
+
if (
|
|
3726
|
+
key.length > prefix.length + 1 &&
|
|
3727
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3728
|
+
(chunks = chunks.get(prefix)))
|
|
3729
|
+
) {
|
|
3730
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3731
|
+
return;
|
|
3732
|
+
}
|
|
3733
|
+
} else if (
|
|
3734
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3735
|
+
) {
|
|
3736
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3737
|
+
return;
|
|
3738
|
+
}
|
|
3639
3739
|
}
|
|
3740
|
+
appendBackingEntry(response._formData, value, key);
|
|
3640
3741
|
}
|
|
3641
3742
|
function close(response) {
|
|
3642
3743
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3804,7 +3905,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3804
3905
|
_entry$value = _entry$value[1];
|
|
3805
3906
|
"string" === typeof _entry$value
|
|
3806
3907
|
? resolveField(response, entry, _entry$value)
|
|
3807
|
-
: appendBackingEntry(response._formData,
|
|
3908
|
+
: appendBackingEntry(response._formData, _entry$value, entry);
|
|
3808
3909
|
iterator.next().then(progress, error);
|
|
3809
3910
|
}
|
|
3810
3911
|
}
|
|
@@ -3831,28 +3932,32 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
|
3831
3932
|
if (!current.complete) return;
|
|
3832
3933
|
try {
|
|
3833
3934
|
var key = current.name,
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3935
|
+
JSCompiler_temp_const = response._formData;
|
|
3936
|
+
var handle = current.file;
|
|
3937
|
+
if ("function" === typeof File)
|
|
3938
|
+
var JSCompiler_inline_result = new File(
|
|
3939
|
+
handle.chunks,
|
|
3940
|
+
handle.filename,
|
|
3941
|
+
{ type: handle.mime }
|
|
3942
|
+
);
|
|
3943
|
+
else {
|
|
3944
|
+
var scratch = new FormData();
|
|
3945
|
+
scratch.append(
|
|
3946
|
+
"file",
|
|
3947
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
3948
|
+
handle.filename
|
|
3949
|
+
);
|
|
3950
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
3951
|
+
}
|
|
3952
|
+
appendBackingEntry(
|
|
3953
|
+
JSCompiler_temp_const,
|
|
3954
|
+
JSCompiler_inline_result,
|
|
3955
|
+
key
|
|
3956
|
+
);
|
|
3844
3957
|
var queuedFields = current.queuedFields;
|
|
3845
3958
|
if (null !== queuedFields)
|
|
3846
|
-
for (
|
|
3847
|
-
|
|
3848
|
-
key$jscomp$0 < queuedFields.length;
|
|
3849
|
-
key$jscomp$0 += 2
|
|
3850
|
-
)
|
|
3851
|
-
resolveField(
|
|
3852
|
-
response,
|
|
3853
|
-
queuedFields[key$jscomp$0],
|
|
3854
|
-
queuedFields[key$jscomp$0 + 1]
|
|
3855
|
-
);
|
|
3959
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
3960
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
3856
3961
|
} catch (error) {
|
|
3857
3962
|
busboyStream.destroy(error);
|
|
3858
3963
|
return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-webpack",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
|
4
|
-
"version": "19.3.
|
|
4
|
+
"version": "19.3.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"node": ">=0.10.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"react": "^19.3.
|
|
88
|
-
"react-dom": "^19.3.
|
|
87
|
+
"react": "^19.3.1",
|
|
88
|
+
"react-dom": "^19.3.1",
|
|
89
89
|
"webpack": "^5.59.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|