react-server-dom-turbopack 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-turbopack-client.browser.development.js +58 -45
- package/cjs/react-server-dom-turbopack-client.browser.production.js +79 -64
- package/cjs/react-server-dom-turbopack-client.edge.development.js +59 -42
- package/cjs/react-server-dom-turbopack-client.edge.production.js +82 -67
- package/cjs/react-server-dom-turbopack-client.node.development.js +59 -42
- package/cjs/react-server-dom-turbopack-client.node.production.js +82 -67
- package/cjs/react-server-dom-turbopack-server.browser.development.js +188 -94
- package/cjs/react-server-dom-turbopack-server.browser.production.js +181 -89
- package/cjs/react-server-dom-turbopack-server.edge.development.js +219 -112
- package/cjs/react-server-dom-turbopack-server.edge.production.js +209 -107
- package/cjs/react-server-dom-turbopack-server.node.development.js +240 -131
- package/cjs/react-server-dom-turbopack-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(
|
|
@@ -2520,13 +2545,37 @@ function requireModule(metadata) {
|
|
|
2520
2545
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2521
2546
|
return moduleExports[metadata[2]];
|
|
2522
2547
|
}
|
|
2523
|
-
function appendBackingEntry(backingStore,
|
|
2524
|
-
backingStore.
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2548
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2549
|
+
var prefix = backingStore.prefix;
|
|
2550
|
+
if (key.startsWith(prefix)) {
|
|
2551
|
+
switch (key[prefix.length]) {
|
|
2552
|
+
case "_":
|
|
2553
|
+
prefix = backingStore.referencedEntries;
|
|
2554
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2555
|
+
prefix.push([key, value]);
|
|
2556
|
+
return;
|
|
2557
|
+
case "S":
|
|
2558
|
+
"string" === typeof value &&
|
|
2559
|
+
((prefix = backingStore.streamChunks),
|
|
2560
|
+
null === prefix && (prefix = backingStore.streamChunks = new Map()),
|
|
2561
|
+
(backingStore = prefix.get(key)),
|
|
2562
|
+
void 0 === backingStore
|
|
2563
|
+
? prefix.set(key, [value])
|
|
2564
|
+
: backingStore.push(value));
|
|
2565
|
+
return;
|
|
2566
|
+
}
|
|
2567
|
+
"string" === typeof value
|
|
2568
|
+
? ((prefix = backingStore.stringChunks),
|
|
2569
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2570
|
+
prefix.set(key, value))
|
|
2571
|
+
: ((prefix = backingStore.blobs),
|
|
2572
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2573
|
+
prefix.set(key, value));
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
function getBackingBlob(backingStore, key) {
|
|
2577
|
+
backingStore = backingStore.blobs;
|
|
2578
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2530
2579
|
}
|
|
2531
2580
|
var RESPONSE_SYMBOL = Symbol();
|
|
2532
2581
|
function ReactPromise(status, value, reason) {
|
|
@@ -2907,15 +2956,18 @@ function reportGlobalError(response, error) {
|
|
|
2907
2956
|
function getChunk(response, id) {
|
|
2908
2957
|
var chunks = response._chunks,
|
|
2909
2958
|
chunk = chunks.get(id);
|
|
2910
|
-
chunk
|
|
2911
|
-
|
|
2912
|
-
|
|
2959
|
+
if (!chunk) {
|
|
2960
|
+
chunk = response._prefix;
|
|
2961
|
+
var stringChunks = response._formData.stringChunks;
|
|
2962
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
2963
|
+
chunk =
|
|
2913
2964
|
"string" === typeof chunk
|
|
2914
2965
|
? createResolvedModelChunk(response, chunk, id)
|
|
2915
2966
|
: response._closed
|
|
2916
2967
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
2917
|
-
: new ReactPromise("pending", null, null)
|
|
2918
|
-
chunks.set(id, chunk)
|
|
2968
|
+
: new ReactPromise("pending", null, null);
|
|
2969
|
+
chunks.set(id, chunk);
|
|
2970
|
+
}
|
|
2919
2971
|
return chunk;
|
|
2920
2972
|
}
|
|
2921
2973
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -3146,7 +3198,7 @@ function parseTypedArray(
|
|
|
3146
3198
|
Error("Already initialized typed array.")
|
|
3147
3199
|
)
|
|
3148
3200
|
);
|
|
3149
|
-
reference = response._formData
|
|
3201
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
3150
3202
|
if (initializingHandler) {
|
|
3151
3203
|
var handler = initializingHandler;
|
|
3152
3204
|
handler.deps++;
|
|
@@ -3190,13 +3242,15 @@ function resolveStream(response, id, stream, controller) {
|
|
|
3190
3242
|
var chunks = response._chunks;
|
|
3191
3243
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3192
3244
|
chunks.set(id, stream);
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3245
|
+
chunks = response._prefix;
|
|
3246
|
+
response = response._formData.streamChunks;
|
|
3247
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
3248
|
+
if (void 0 !== id)
|
|
3249
|
+
for (response = 0; response < id.length; response++)
|
|
3250
|
+
(chunks = id[response]),
|
|
3251
|
+
"C" === chunks[0]
|
|
3198
3252
|
? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1))
|
|
3199
|
-
: controller.enqueueModel(chunks)
|
|
3253
|
+
: controller.enqueueModel(chunks);
|
|
3200
3254
|
}
|
|
3201
3255
|
function parseReadableStream(response, reference, type) {
|
|
3202
3256
|
function enqueue(value) {
|
|
@@ -3362,7 +3416,14 @@ function parseAsyncIterable(response, reference, iterator) {
|
|
|
3362
3416
|
});
|
|
3363
3417
|
return iterator;
|
|
3364
3418
|
}
|
|
3365
|
-
function parseModelString(
|
|
3419
|
+
function parseModelString(
|
|
3420
|
+
response,
|
|
3421
|
+
obj,
|
|
3422
|
+
key$jscomp$0,
|
|
3423
|
+
value,
|
|
3424
|
+
reference,
|
|
3425
|
+
arrayRoot
|
|
3426
|
+
) {
|
|
3366
3427
|
if ("$" === value[0]) {
|
|
3367
3428
|
switch (value[1]) {
|
|
3368
3429
|
case "$":
|
|
@@ -3380,7 +3441,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3380
3441
|
response,
|
|
3381
3442
|
arrayRoot,
|
|
3382
3443
|
obj,
|
|
3383
|
-
key,
|
|
3444
|
+
key$jscomp$0,
|
|
3384
3445
|
null,
|
|
3385
3446
|
loadServerReference$1
|
|
3386
3447
|
)
|
|
@@ -3397,43 +3458,55 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3397
3458
|
case "Q":
|
|
3398
3459
|
return (
|
|
3399
3460
|
(arrayRoot = value.slice(2)),
|
|
3400
|
-
getOutlinedModel(
|
|
3461
|
+
getOutlinedModel(
|
|
3462
|
+
response,
|
|
3463
|
+
arrayRoot,
|
|
3464
|
+
obj,
|
|
3465
|
+
key$jscomp$0,
|
|
3466
|
+
null,
|
|
3467
|
+
createMap
|
|
3468
|
+
)
|
|
3401
3469
|
);
|
|
3402
3470
|
case "W":
|
|
3403
3471
|
return (
|
|
3404
3472
|
(arrayRoot = value.slice(2)),
|
|
3405
|
-
getOutlinedModel(
|
|
3473
|
+
getOutlinedModel(
|
|
3474
|
+
response,
|
|
3475
|
+
arrayRoot,
|
|
3476
|
+
obj,
|
|
3477
|
+
key$jscomp$0,
|
|
3478
|
+
null,
|
|
3479
|
+
createSet
|
|
3480
|
+
)
|
|
3406
3481
|
);
|
|
3407
3482
|
case "K":
|
|
3408
|
-
|
|
3409
|
-
obj = response._prefix + "_";
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3423
|
-
i < reference.length;
|
|
3424
|
-
i++
|
|
3425
|
-
)
|
|
3426
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3427
|
-
response.data.delete(value);
|
|
3428
|
-
response.keyPointer++;
|
|
3429
|
-
} else if (value.startsWith(obj)) break;
|
|
3430
|
-
else response.keyPointer++;
|
|
3483
|
+
obj = value.slice(2);
|
|
3484
|
+
obj = response._prefix + "_" + obj + "_";
|
|
3485
|
+
response = response._formData;
|
|
3486
|
+
key$jscomp$0 = new FormData();
|
|
3487
|
+
arrayRoot = response.referencedEntries;
|
|
3488
|
+
if (null !== arrayRoot) {
|
|
3489
|
+
for (value = response.keyPointer; value < arrayRoot.length; ) {
|
|
3490
|
+
reference = arrayRoot[value];
|
|
3491
|
+
var key = reference[0];
|
|
3492
|
+
if (!key.startsWith(obj)) break;
|
|
3493
|
+
key$jscomp$0.append(key.slice(obj.length), reference[1]);
|
|
3494
|
+
value++;
|
|
3495
|
+
}
|
|
3496
|
+
response.keyPointer = value;
|
|
3431
3497
|
}
|
|
3432
|
-
return
|
|
3498
|
+
return key$jscomp$0;
|
|
3433
3499
|
case "i":
|
|
3434
3500
|
return (
|
|
3435
3501
|
(arrayRoot = value.slice(2)),
|
|
3436
|
-
getOutlinedModel(
|
|
3502
|
+
getOutlinedModel(
|
|
3503
|
+
response,
|
|
3504
|
+
arrayRoot,
|
|
3505
|
+
obj,
|
|
3506
|
+
key$jscomp$0,
|
|
3507
|
+
null,
|
|
3508
|
+
extractIterator
|
|
3509
|
+
)
|
|
3437
3510
|
);
|
|
3438
3511
|
case "I":
|
|
3439
3512
|
return Infinity;
|
|
@@ -3462,7 +3535,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3462
3535
|
ArrayBuffer,
|
|
3463
3536
|
1,
|
|
3464
3537
|
obj,
|
|
3465
|
-
key,
|
|
3538
|
+
key$jscomp$0,
|
|
3466
3539
|
arrayRoot
|
|
3467
3540
|
);
|
|
3468
3541
|
case "O":
|
|
@@ -3472,7 +3545,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3472
3545
|
Int8Array,
|
|
3473
3546
|
1,
|
|
3474
3547
|
obj,
|
|
3475
|
-
key,
|
|
3548
|
+
key$jscomp$0,
|
|
3476
3549
|
arrayRoot
|
|
3477
3550
|
);
|
|
3478
3551
|
case "o":
|
|
@@ -3482,7 +3555,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3482
3555
|
Uint8Array,
|
|
3483
3556
|
1,
|
|
3484
3557
|
obj,
|
|
3485
|
-
key,
|
|
3558
|
+
key$jscomp$0,
|
|
3486
3559
|
arrayRoot
|
|
3487
3560
|
);
|
|
3488
3561
|
case "U":
|
|
@@ -3492,7 +3565,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3492
3565
|
Uint8ClampedArray,
|
|
3493
3566
|
1,
|
|
3494
3567
|
obj,
|
|
3495
|
-
key,
|
|
3568
|
+
key$jscomp$0,
|
|
3496
3569
|
arrayRoot
|
|
3497
3570
|
);
|
|
3498
3571
|
case "S":
|
|
@@ -3502,7 +3575,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3502
3575
|
Int16Array,
|
|
3503
3576
|
2,
|
|
3504
3577
|
obj,
|
|
3505
|
-
key,
|
|
3578
|
+
key$jscomp$0,
|
|
3506
3579
|
arrayRoot
|
|
3507
3580
|
);
|
|
3508
3581
|
case "s":
|
|
@@ -3512,7 +3585,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3512
3585
|
Uint16Array,
|
|
3513
3586
|
2,
|
|
3514
3587
|
obj,
|
|
3515
|
-
key,
|
|
3588
|
+
key$jscomp$0,
|
|
3516
3589
|
arrayRoot
|
|
3517
3590
|
);
|
|
3518
3591
|
case "L":
|
|
@@ -3522,7 +3595,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3522
3595
|
Int32Array,
|
|
3523
3596
|
4,
|
|
3524
3597
|
obj,
|
|
3525
|
-
key,
|
|
3598
|
+
key$jscomp$0,
|
|
3526
3599
|
arrayRoot
|
|
3527
3600
|
);
|
|
3528
3601
|
case "l":
|
|
@@ -3532,7 +3605,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3532
3605
|
Uint32Array,
|
|
3533
3606
|
4,
|
|
3534
3607
|
obj,
|
|
3535
|
-
key,
|
|
3608
|
+
key$jscomp$0,
|
|
3536
3609
|
arrayRoot
|
|
3537
3610
|
);
|
|
3538
3611
|
case "G":
|
|
@@ -3542,7 +3615,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3542
3615
|
Float32Array,
|
|
3543
3616
|
4,
|
|
3544
3617
|
obj,
|
|
3545
|
-
key,
|
|
3618
|
+
key$jscomp$0,
|
|
3546
3619
|
arrayRoot
|
|
3547
3620
|
);
|
|
3548
3621
|
case "g":
|
|
@@ -3552,7 +3625,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3552
3625
|
Float64Array,
|
|
3553
3626
|
8,
|
|
3554
3627
|
obj,
|
|
3555
|
-
key,
|
|
3628
|
+
key$jscomp$0,
|
|
3556
3629
|
arrayRoot
|
|
3557
3630
|
);
|
|
3558
3631
|
case "M":
|
|
@@ -3562,7 +3635,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3562
3635
|
BigInt64Array,
|
|
3563
3636
|
8,
|
|
3564
3637
|
obj,
|
|
3565
|
-
key,
|
|
3638
|
+
key$jscomp$0,
|
|
3566
3639
|
arrayRoot
|
|
3567
3640
|
);
|
|
3568
3641
|
case "m":
|
|
@@ -3572,7 +3645,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3572
3645
|
BigUint64Array,
|
|
3573
3646
|
8,
|
|
3574
3647
|
obj,
|
|
3575
|
-
key,
|
|
3648
|
+
key$jscomp$0,
|
|
3576
3649
|
arrayRoot
|
|
3577
3650
|
);
|
|
3578
3651
|
case "V":
|
|
@@ -3582,12 +3655,12 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3582
3655
|
DataView,
|
|
3583
3656
|
1,
|
|
3584
3657
|
obj,
|
|
3585
|
-
key,
|
|
3658
|
+
key$jscomp$0,
|
|
3586
3659
|
arrayRoot
|
|
3587
3660
|
);
|
|
3588
3661
|
case "B":
|
|
3589
3662
|
obj = parseInt(value.slice(2), 16);
|
|
3590
|
-
response = response._formData
|
|
3663
|
+
response = getBackingBlob(response._formData, response._prefix + obj);
|
|
3591
3664
|
if (!(response instanceof Blob))
|
|
3592
3665
|
throw Error("Referenced Blob is not a Blob.");
|
|
3593
3666
|
return response;
|
|
@@ -3601,7 +3674,14 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3601
3674
|
return parseAsyncIterable(response, value, !0);
|
|
3602
3675
|
}
|
|
3603
3676
|
value = value.slice(1);
|
|
3604
|
-
return getOutlinedModel(
|
|
3677
|
+
return getOutlinedModel(
|
|
3678
|
+
response,
|
|
3679
|
+
value,
|
|
3680
|
+
obj,
|
|
3681
|
+
key$jscomp$0,
|
|
3682
|
+
arrayRoot,
|
|
3683
|
+
createModel
|
|
3684
|
+
);
|
|
3605
3685
|
}
|
|
3606
3686
|
null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
|
|
3607
3687
|
return value;
|
|
@@ -3613,11 +3693,20 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3613
3693
|
: new FormData(),
|
|
3614
3694
|
arraySizeLimit =
|
|
3615
3695
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3616
|
-
chunks = new Map()
|
|
3696
|
+
chunks = new Map(),
|
|
3697
|
+
backingStore = {
|
|
3698
|
+
prefix: formFieldPrefix,
|
|
3699
|
+
referencedEntries: null,
|
|
3700
|
+
keyPointer: 0,
|
|
3701
|
+
stringChunks: null,
|
|
3702
|
+
streamChunks: null,
|
|
3703
|
+
blobs: null
|
|
3704
|
+
};
|
|
3705
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3617
3706
|
return {
|
|
3618
3707
|
_bundlerConfig: bundlerConfig,
|
|
3619
3708
|
_prefix: formFieldPrefix,
|
|
3620
|
-
_formData:
|
|
3709
|
+
_formData: backingStore,
|
|
3621
3710
|
_chunks: chunks,
|
|
3622
3711
|
_closed: !1,
|
|
3623
3712
|
_closedReason: null,
|
|
@@ -3627,14 +3716,26 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3627
3716
|
};
|
|
3628
3717
|
}
|
|
3629
3718
|
function resolveField(response, key, value) {
|
|
3630
|
-
appendBackingEntry(response._formData, key, value);
|
|
3631
3719
|
var prefix = response._prefix;
|
|
3632
3720
|
if (key.startsWith(prefix)) {
|
|
3633
3721
|
var chunks = response._chunks;
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3722
|
+
if ("S" === key[prefix.length]) {
|
|
3723
|
+
if (
|
|
3724
|
+
key.length > prefix.length + 1 &&
|
|
3725
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3726
|
+
(chunks = chunks.get(prefix)))
|
|
3727
|
+
) {
|
|
3728
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3729
|
+
return;
|
|
3730
|
+
}
|
|
3731
|
+
} else if (
|
|
3732
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3733
|
+
) {
|
|
3734
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3735
|
+
return;
|
|
3736
|
+
}
|
|
3637
3737
|
}
|
|
3738
|
+
appendBackingEntry(response._formData, value, key);
|
|
3638
3739
|
}
|
|
3639
3740
|
function close(response) {
|
|
3640
3741
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3802,7 +3903,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3802
3903
|
_entry$value = _entry$value[1];
|
|
3803
3904
|
"string" === typeof _entry$value
|
|
3804
3905
|
? resolveField(response, entry, _entry$value)
|
|
3805
|
-
: appendBackingEntry(response._formData,
|
|
3906
|
+
: appendBackingEntry(response._formData, _entry$value, entry);
|
|
3806
3907
|
iterator.next().then(progress, error);
|
|
3807
3908
|
}
|
|
3808
3909
|
}
|
|
@@ -3829,28 +3930,32 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3829
3930
|
if (!current.complete) return;
|
|
3830
3931
|
try {
|
|
3831
3932
|
var key = current.name,
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3933
|
+
JSCompiler_temp_const = response._formData;
|
|
3934
|
+
var handle = current.file;
|
|
3935
|
+
if ("function" === typeof File)
|
|
3936
|
+
var JSCompiler_inline_result = new File(
|
|
3937
|
+
handle.chunks,
|
|
3938
|
+
handle.filename,
|
|
3939
|
+
{ type: handle.mime }
|
|
3940
|
+
);
|
|
3941
|
+
else {
|
|
3942
|
+
var scratch = new FormData();
|
|
3943
|
+
scratch.append(
|
|
3944
|
+
"file",
|
|
3945
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
3946
|
+
handle.filename
|
|
3947
|
+
);
|
|
3948
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
3949
|
+
}
|
|
3950
|
+
appendBackingEntry(
|
|
3951
|
+
JSCompiler_temp_const,
|
|
3952
|
+
JSCompiler_inline_result,
|
|
3953
|
+
key
|
|
3954
|
+
);
|
|
3842
3955
|
var queuedFields = current.queuedFields;
|
|
3843
3956
|
if (null !== queuedFields)
|
|
3844
|
-
for (
|
|
3845
|
-
|
|
3846
|
-
key$jscomp$0 < queuedFields.length;
|
|
3847
|
-
key$jscomp$0 += 2
|
|
3848
|
-
)
|
|
3849
|
-
resolveField(
|
|
3850
|
-
response,
|
|
3851
|
-
queuedFields[key$jscomp$0],
|
|
3852
|
-
queuedFields[key$jscomp$0 + 1]
|
|
3853
|
-
);
|
|
3957
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
3958
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
3854
3959
|
} catch (error) {
|
|
3855
3960
|
busboyStream.destroy(error);
|
|
3856
3961
|
return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-turbopack",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Turbopack. 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
|
],
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"node": ">=0.10.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"react": "^19.3.
|
|
82
|
-
"react-dom": "^19.3.
|
|
81
|
+
"react": "^19.3.1",
|
|
82
|
+
"react-dom": "^19.3.1"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"acorn-loose": "^8.3.0",
|