react-server-dom-turbopack 19.2.6 → 19.2.7
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.
|
@@ -4885,10 +4885,10 @@
|
|
|
4885
4885
|
return hook.checkDCE ? !0 : !1;
|
|
4886
4886
|
})({
|
|
4887
4887
|
bundleType: 1,
|
|
4888
|
-
version: "19.2.
|
|
4888
|
+
version: "19.2.7",
|
|
4889
4889
|
rendererPackageName: "react-server-dom-turbopack",
|
|
4890
4890
|
currentDispatcherRef: ReactSharedInternals,
|
|
4891
|
-
reconcilerVersion: "19.2.
|
|
4891
|
+
reconcilerVersion: "19.2.7",
|
|
4892
4892
|
getCurrentComponentInfo: function () {
|
|
4893
4893
|
return currentOwnerInDEV;
|
|
4894
4894
|
}
|
|
@@ -6390,20 +6390,58 @@
|
|
|
6390
6390
|
turbopackMap,
|
|
6391
6391
|
options
|
|
6392
6392
|
) {
|
|
6393
|
-
|
|
6393
|
+
function flush() {
|
|
6394
|
+
for (; null !== head; ) {
|
|
6395
|
+
var current = head;
|
|
6396
|
+
if (!current.complete) return;
|
|
6397
|
+
try {
|
|
6398
|
+
var response = response$jscomp$0,
|
|
6399
|
+
key = current.name,
|
|
6400
|
+
handle = current.file,
|
|
6401
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
6402
|
+
backingStore = response._formData;
|
|
6403
|
+
response = key;
|
|
6404
|
+
backingStore.data.append(response, blob, handle.filename);
|
|
6405
|
+
var keys = backingStore.keys;
|
|
6406
|
+
null === keys
|
|
6407
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
6408
|
+
(backingStore.keyPointer = 0))
|
|
6409
|
+
: keys.push(response);
|
|
6410
|
+
var queuedFields = current.queuedFields;
|
|
6411
|
+
if (null !== queuedFields)
|
|
6412
|
+
for (response = 0; response < queuedFields.length; response += 2)
|
|
6413
|
+
resolveField(
|
|
6414
|
+
response$jscomp$0,
|
|
6415
|
+
queuedFields[response],
|
|
6416
|
+
queuedFields[response + 1]
|
|
6417
|
+
);
|
|
6418
|
+
} catch (error) {
|
|
6419
|
+
busboyStream.destroy(error);
|
|
6420
|
+
return;
|
|
6421
|
+
}
|
|
6422
|
+
head = current.next;
|
|
6423
|
+
}
|
|
6424
|
+
tail = null;
|
|
6425
|
+
bodyFinished && !closed && ((closed = !0), close(response$jscomp$0));
|
|
6426
|
+
}
|
|
6427
|
+
var response$jscomp$0 = createResponse(
|
|
6394
6428
|
turbopackMap,
|
|
6395
6429
|
"",
|
|
6396
6430
|
options ? options.temporaryReferences : void 0,
|
|
6397
6431
|
void 0,
|
|
6398
6432
|
options ? options.arraySizeLimit : void 0
|
|
6399
6433
|
),
|
|
6400
|
-
|
|
6401
|
-
|
|
6434
|
+
head = null,
|
|
6435
|
+
tail = null,
|
|
6436
|
+
bodyFinished = !1,
|
|
6437
|
+
closed = !1;
|
|
6402
6438
|
busboyStream.on("field", function (name, value) {
|
|
6403
|
-
if (
|
|
6439
|
+
if (null !== tail)
|
|
6440
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
6441
|
+
tail.queuedFields.push(name, value);
|
|
6404
6442
|
else
|
|
6405
6443
|
try {
|
|
6406
|
-
resolveField(response, name, value);
|
|
6444
|
+
resolveField(response$jscomp$0, name, value);
|
|
6407
6445
|
} catch (error) {
|
|
6408
6446
|
busboyStream.destroy(error);
|
|
6409
6447
|
}
|
|
@@ -6418,46 +6456,45 @@
|
|
|
6418
6456
|
)
|
|
6419
6457
|
);
|
|
6420
6458
|
else {
|
|
6421
|
-
|
|
6422
|
-
|
|
6459
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
6460
|
+
pendingFile = {
|
|
6461
|
+
name: name,
|
|
6462
|
+
file: file,
|
|
6463
|
+
complete: !1,
|
|
6464
|
+
queuedFields: null,
|
|
6465
|
+
next: null
|
|
6466
|
+
};
|
|
6467
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
6468
|
+
tail = pendingFile;
|
|
6423
6469
|
value.on("data", function (chunk) {
|
|
6424
|
-
JSCompiler_object_inline_chunks_266.push(chunk);
|
|
6425
|
-
});
|
|
6426
|
-
value.on("end", function () {
|
|
6427
6470
|
try {
|
|
6428
|
-
|
|
6429
|
-
type: mimeType
|
|
6430
|
-
}),
|
|
6431
|
-
backingStore = response._formData;
|
|
6432
|
-
backingStore.data.append(name, blob, filename);
|
|
6433
|
-
var keys = backingStore.keys;
|
|
6434
|
-
null === keys
|
|
6435
|
-
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
6436
|
-
(backingStore.keyPointer = 0))
|
|
6437
|
-
: keys.push(name);
|
|
6438
|
-
pendingFiles--;
|
|
6439
|
-
if (0 === pendingFiles) {
|
|
6440
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
6441
|
-
resolveField(
|
|
6442
|
-
response,
|
|
6443
|
-
queuedFields[blob],
|
|
6444
|
-
queuedFields[blob + 1]
|
|
6445
|
-
);
|
|
6446
|
-
queuedFields.length = 0;
|
|
6447
|
-
}
|
|
6471
|
+
file.chunks.push(chunk);
|
|
6448
6472
|
} catch (error) {
|
|
6449
6473
|
busboyStream.destroy(error);
|
|
6450
6474
|
}
|
|
6451
6475
|
});
|
|
6476
|
+
value.on("error", function (error) {
|
|
6477
|
+
busboyStream.destroy(error);
|
|
6478
|
+
});
|
|
6479
|
+
value.on("end", function () {
|
|
6480
|
+
pendingFile.complete = !0;
|
|
6481
|
+
flush();
|
|
6482
|
+
});
|
|
6452
6483
|
}
|
|
6453
6484
|
});
|
|
6454
6485
|
busboyStream.on("finish", function () {
|
|
6455
|
-
|
|
6486
|
+
bodyFinished = !0;
|
|
6487
|
+
flush();
|
|
6488
|
+
closed ||
|
|
6489
|
+
reportGlobalError(
|
|
6490
|
+
response$jscomp$0,
|
|
6491
|
+
Error("Reply finished with incomplete file part.")
|
|
6492
|
+
);
|
|
6456
6493
|
});
|
|
6457
6494
|
busboyStream.on("error", function (err) {
|
|
6458
|
-
reportGlobalError(response, err);
|
|
6495
|
+
reportGlobalError(response$jscomp$0, err);
|
|
6459
6496
|
});
|
|
6460
|
-
return getChunk(response, 0);
|
|
6497
|
+
return getChunk(response$jscomp$0, 0);
|
|
6461
6498
|
};
|
|
6462
6499
|
exports.prerender = function (model, turbopackMap, options) {
|
|
6463
6500
|
return new Promise(function (resolve, reject) {
|
|
@@ -3572,6 +3572,43 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3572
3572
|
return getChunk(response, 0);
|
|
3573
3573
|
};
|
|
3574
3574
|
exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
3575
|
+
function flush() {
|
|
3576
|
+
for (; null !== head; ) {
|
|
3577
|
+
var current = head;
|
|
3578
|
+
if (!current.complete) return;
|
|
3579
|
+
try {
|
|
3580
|
+
var key = current.name,
|
|
3581
|
+
handle = current.file,
|
|
3582
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
3583
|
+
backingStore = response._formData,
|
|
3584
|
+
key$jscomp$0 = key;
|
|
3585
|
+
backingStore.data.append(key$jscomp$0, blob, handle.filename);
|
|
3586
|
+
var keys = backingStore.keys;
|
|
3587
|
+
null === keys
|
|
3588
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3589
|
+
(backingStore.keyPointer = 0))
|
|
3590
|
+
: keys.push(key$jscomp$0);
|
|
3591
|
+
var queuedFields = current.queuedFields;
|
|
3592
|
+
if (null !== queuedFields)
|
|
3593
|
+
for (
|
|
3594
|
+
key$jscomp$0 = 0;
|
|
3595
|
+
key$jscomp$0 < queuedFields.length;
|
|
3596
|
+
key$jscomp$0 += 2
|
|
3597
|
+
)
|
|
3598
|
+
resolveField(
|
|
3599
|
+
response,
|
|
3600
|
+
queuedFields[key$jscomp$0],
|
|
3601
|
+
queuedFields[key$jscomp$0 + 1]
|
|
3602
|
+
);
|
|
3603
|
+
} catch (error) {
|
|
3604
|
+
busboyStream.destroy(error);
|
|
3605
|
+
return;
|
|
3606
|
+
}
|
|
3607
|
+
head = current.next;
|
|
3608
|
+
}
|
|
3609
|
+
tail = null;
|
|
3610
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
3611
|
+
}
|
|
3575
3612
|
var response = createResponse(
|
|
3576
3613
|
turbopackMap,
|
|
3577
3614
|
"",
|
|
@@ -3579,10 +3616,14 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3579
3616
|
void 0,
|
|
3580
3617
|
options ? options.arraySizeLimit : void 0
|
|
3581
3618
|
),
|
|
3582
|
-
|
|
3583
|
-
|
|
3619
|
+
head = null,
|
|
3620
|
+
tail = null,
|
|
3621
|
+
bodyFinished = !1,
|
|
3622
|
+
closed = !1;
|
|
3584
3623
|
busboyStream.on("field", function (name, value) {
|
|
3585
|
-
if (
|
|
3624
|
+
if (null !== tail)
|
|
3625
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
3626
|
+
tail.queuedFields.push(name, value);
|
|
3586
3627
|
else
|
|
3587
3628
|
try {
|
|
3588
3629
|
resolveField(response, name, value);
|
|
@@ -3600,41 +3641,40 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3600
3641
|
)
|
|
3601
3642
|
);
|
|
3602
3643
|
else {
|
|
3603
|
-
|
|
3604
|
-
|
|
3644
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
3645
|
+
pendingFile = {
|
|
3646
|
+
name: name,
|
|
3647
|
+
file: file,
|
|
3648
|
+
complete: !1,
|
|
3649
|
+
queuedFields: null,
|
|
3650
|
+
next: null
|
|
3651
|
+
};
|
|
3652
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
3653
|
+
tail = pendingFile;
|
|
3605
3654
|
value.on("data", function (chunk) {
|
|
3606
|
-
JSCompiler_object_inline_chunks_296.push(chunk);
|
|
3607
|
-
});
|
|
3608
|
-
value.on("end", function () {
|
|
3609
3655
|
try {
|
|
3610
|
-
|
|
3611
|
-
type: mimeType
|
|
3612
|
-
}),
|
|
3613
|
-
backingStore = response._formData;
|
|
3614
|
-
backingStore.data.append(name, blob, filename);
|
|
3615
|
-
var keys = backingStore.keys;
|
|
3616
|
-
null === keys
|
|
3617
|
-
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3618
|
-
(backingStore.keyPointer = 0))
|
|
3619
|
-
: keys.push(name);
|
|
3620
|
-
pendingFiles--;
|
|
3621
|
-
if (0 === pendingFiles) {
|
|
3622
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
3623
|
-
resolveField(
|
|
3624
|
-
response,
|
|
3625
|
-
queuedFields[blob],
|
|
3626
|
-
queuedFields[blob + 1]
|
|
3627
|
-
);
|
|
3628
|
-
queuedFields.length = 0;
|
|
3629
|
-
}
|
|
3656
|
+
file.chunks.push(chunk);
|
|
3630
3657
|
} catch (error) {
|
|
3631
3658
|
busboyStream.destroy(error);
|
|
3632
3659
|
}
|
|
3633
3660
|
});
|
|
3661
|
+
value.on("error", function (error) {
|
|
3662
|
+
busboyStream.destroy(error);
|
|
3663
|
+
});
|
|
3664
|
+
value.on("end", function () {
|
|
3665
|
+
pendingFile.complete = !0;
|
|
3666
|
+
flush();
|
|
3667
|
+
});
|
|
3634
3668
|
}
|
|
3635
3669
|
});
|
|
3636
3670
|
busboyStream.on("finish", function () {
|
|
3637
|
-
|
|
3671
|
+
bodyFinished = !0;
|
|
3672
|
+
flush();
|
|
3673
|
+
closed ||
|
|
3674
|
+
reportGlobalError(
|
|
3675
|
+
response,
|
|
3676
|
+
Error("Reply finished with incomplete file part.")
|
|
3677
|
+
);
|
|
3638
3678
|
});
|
|
3639
3679
|
busboyStream.on("error", function (err) {
|
|
3640
3680
|
reportGlobalError(response, err);
|
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.2.
|
|
4
|
+
"version": "19.2.7",
|
|
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.2.
|
|
82
|
-
"react-dom": "^19.2.
|
|
81
|
+
"react": "^19.2.7",
|
|
82
|
+
"react-dom": "^19.2.7"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"acorn-loose": "^8.3.0",
|