react-server-dom-turbopack 19.1.7 → 19.1.8
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.
|
@@ -2730,10 +2730,10 @@
|
|
|
2730
2730
|
return hook.checkDCE ? !0 : !1;
|
|
2731
2731
|
})({
|
|
2732
2732
|
bundleType: 1,
|
|
2733
|
-
version: "19.1.
|
|
2733
|
+
version: "19.1.8",
|
|
2734
2734
|
rendererPackageName: "react-server-dom-turbopack",
|
|
2735
2735
|
currentDispatcherRef: ReactSharedInternals,
|
|
2736
|
-
reconcilerVersion: "19.1.
|
|
2736
|
+
reconcilerVersion: "19.1.8",
|
|
2737
2737
|
getCurrentComponentInfo: function () {
|
|
2738
2738
|
return currentOwnerInDEV;
|
|
2739
2739
|
}
|
|
@@ -4552,20 +4552,58 @@
|
|
|
4552
4552
|
turbopackMap,
|
|
4553
4553
|
options
|
|
4554
4554
|
) {
|
|
4555
|
-
|
|
4555
|
+
function flush() {
|
|
4556
|
+
for (; null !== head; ) {
|
|
4557
|
+
var current = head;
|
|
4558
|
+
if (!current.complete) return;
|
|
4559
|
+
try {
|
|
4560
|
+
var response = response$jscomp$0,
|
|
4561
|
+
key = current.name,
|
|
4562
|
+
handle = current.file,
|
|
4563
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
4564
|
+
backingStore = response._formData;
|
|
4565
|
+
response = key;
|
|
4566
|
+
backingStore.data.append(response, blob, handle.filename);
|
|
4567
|
+
var keys = backingStore.keys;
|
|
4568
|
+
null === keys
|
|
4569
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4570
|
+
(backingStore.keyPointer = 0))
|
|
4571
|
+
: keys.push(response);
|
|
4572
|
+
var queuedFields = current.queuedFields;
|
|
4573
|
+
if (null !== queuedFields)
|
|
4574
|
+
for (response = 0; response < queuedFields.length; response += 2)
|
|
4575
|
+
resolveField(
|
|
4576
|
+
response$jscomp$0,
|
|
4577
|
+
queuedFields[response],
|
|
4578
|
+
queuedFields[response + 1]
|
|
4579
|
+
);
|
|
4580
|
+
} catch (error) {
|
|
4581
|
+
busboyStream.destroy(error);
|
|
4582
|
+
return;
|
|
4583
|
+
}
|
|
4584
|
+
head = current.next;
|
|
4585
|
+
}
|
|
4586
|
+
tail = null;
|
|
4587
|
+
bodyFinished && !closed && ((closed = !0), close(response$jscomp$0));
|
|
4588
|
+
}
|
|
4589
|
+
var response$jscomp$0 = createResponse(
|
|
4556
4590
|
turbopackMap,
|
|
4557
4591
|
"",
|
|
4558
4592
|
options ? options.temporaryReferences : void 0,
|
|
4559
4593
|
void 0,
|
|
4560
4594
|
options ? options.arraySizeLimit : void 0
|
|
4561
4595
|
),
|
|
4562
|
-
|
|
4563
|
-
|
|
4596
|
+
head = null,
|
|
4597
|
+
tail = null,
|
|
4598
|
+
bodyFinished = !1,
|
|
4599
|
+
closed = !1;
|
|
4564
4600
|
busboyStream.on("field", function (name, value) {
|
|
4565
|
-
if (
|
|
4601
|
+
if (null !== tail)
|
|
4602
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
4603
|
+
tail.queuedFields.push(name, value);
|
|
4566
4604
|
else
|
|
4567
4605
|
try {
|
|
4568
|
-
resolveField(response, name, value);
|
|
4606
|
+
resolveField(response$jscomp$0, name, value);
|
|
4569
4607
|
} catch (error) {
|
|
4570
4608
|
busboyStream.destroy(error);
|
|
4571
4609
|
}
|
|
@@ -4580,46 +4618,45 @@
|
|
|
4580
4618
|
)
|
|
4581
4619
|
);
|
|
4582
4620
|
else {
|
|
4583
|
-
|
|
4584
|
-
|
|
4621
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
4622
|
+
pendingFile = {
|
|
4623
|
+
name: name,
|
|
4624
|
+
file: file,
|
|
4625
|
+
complete: !1,
|
|
4626
|
+
queuedFields: null,
|
|
4627
|
+
next: null
|
|
4628
|
+
};
|
|
4629
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
4630
|
+
tail = pendingFile;
|
|
4585
4631
|
value.on("data", function (chunk) {
|
|
4586
|
-
JSCompiler_object_inline_chunks_174.push(chunk);
|
|
4587
|
-
});
|
|
4588
|
-
value.on("end", function () {
|
|
4589
4632
|
try {
|
|
4590
|
-
|
|
4591
|
-
type: mimeType
|
|
4592
|
-
}),
|
|
4593
|
-
backingStore = response._formData;
|
|
4594
|
-
backingStore.data.append(name, blob, filename);
|
|
4595
|
-
var keys = backingStore.keys;
|
|
4596
|
-
null === keys
|
|
4597
|
-
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4598
|
-
(backingStore.keyPointer = 0))
|
|
4599
|
-
: keys.push(name);
|
|
4600
|
-
pendingFiles--;
|
|
4601
|
-
if (0 === pendingFiles) {
|
|
4602
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
4603
|
-
resolveField(
|
|
4604
|
-
response,
|
|
4605
|
-
queuedFields[blob],
|
|
4606
|
-
queuedFields[blob + 1]
|
|
4607
|
-
);
|
|
4608
|
-
queuedFields.length = 0;
|
|
4609
|
-
}
|
|
4633
|
+
file.chunks.push(chunk);
|
|
4610
4634
|
} catch (error) {
|
|
4611
4635
|
busboyStream.destroy(error);
|
|
4612
4636
|
}
|
|
4613
4637
|
});
|
|
4638
|
+
value.on("error", function (error) {
|
|
4639
|
+
busboyStream.destroy(error);
|
|
4640
|
+
});
|
|
4641
|
+
value.on("end", function () {
|
|
4642
|
+
pendingFile.complete = !0;
|
|
4643
|
+
flush();
|
|
4644
|
+
});
|
|
4614
4645
|
}
|
|
4615
4646
|
});
|
|
4616
4647
|
busboyStream.on("finish", function () {
|
|
4617
|
-
|
|
4648
|
+
bodyFinished = !0;
|
|
4649
|
+
flush();
|
|
4650
|
+
closed ||
|
|
4651
|
+
reportGlobalError(
|
|
4652
|
+
response$jscomp$0,
|
|
4653
|
+
Error("Reply finished with incomplete file part.")
|
|
4654
|
+
);
|
|
4618
4655
|
});
|
|
4619
4656
|
busboyStream.on("error", function (err) {
|
|
4620
|
-
reportGlobalError(response, err);
|
|
4657
|
+
reportGlobalError(response$jscomp$0, err);
|
|
4621
4658
|
});
|
|
4622
|
-
return getChunk(response, 0);
|
|
4659
|
+
return getChunk(response$jscomp$0, 0);
|
|
4623
4660
|
};
|
|
4624
4661
|
exports.registerClientReference = function (
|
|
4625
4662
|
proxyImplementation,
|
|
@@ -3264,6 +3264,43 @@ exports.decodeReply = function (body, turbopackMap, options) {
|
|
|
3264
3264
|
return turbopackMap;
|
|
3265
3265
|
};
|
|
3266
3266
|
exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
3267
|
+
function flush() {
|
|
3268
|
+
for (; null !== head; ) {
|
|
3269
|
+
var current = head;
|
|
3270
|
+
if (!current.complete) return;
|
|
3271
|
+
try {
|
|
3272
|
+
var key = current.name,
|
|
3273
|
+
handle = current.file,
|
|
3274
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
3275
|
+
backingStore = response._formData,
|
|
3276
|
+
key$jscomp$0 = key;
|
|
3277
|
+
backingStore.data.append(key$jscomp$0, blob, handle.filename);
|
|
3278
|
+
var keys = backingStore.keys;
|
|
3279
|
+
null === keys
|
|
3280
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3281
|
+
(backingStore.keyPointer = 0))
|
|
3282
|
+
: keys.push(key$jscomp$0);
|
|
3283
|
+
var queuedFields = current.queuedFields;
|
|
3284
|
+
if (null !== queuedFields)
|
|
3285
|
+
for (
|
|
3286
|
+
key$jscomp$0 = 0;
|
|
3287
|
+
key$jscomp$0 < queuedFields.length;
|
|
3288
|
+
key$jscomp$0 += 2
|
|
3289
|
+
)
|
|
3290
|
+
resolveField(
|
|
3291
|
+
response,
|
|
3292
|
+
queuedFields[key$jscomp$0],
|
|
3293
|
+
queuedFields[key$jscomp$0 + 1]
|
|
3294
|
+
);
|
|
3295
|
+
} catch (error) {
|
|
3296
|
+
busboyStream.destroy(error);
|
|
3297
|
+
return;
|
|
3298
|
+
}
|
|
3299
|
+
head = current.next;
|
|
3300
|
+
}
|
|
3301
|
+
tail = null;
|
|
3302
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
3303
|
+
}
|
|
3267
3304
|
var response = createResponse(
|
|
3268
3305
|
turbopackMap,
|
|
3269
3306
|
"",
|
|
@@ -3271,10 +3308,14 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3271
3308
|
void 0,
|
|
3272
3309
|
options ? options.arraySizeLimit : void 0
|
|
3273
3310
|
),
|
|
3274
|
-
|
|
3275
|
-
|
|
3311
|
+
head = null,
|
|
3312
|
+
tail = null,
|
|
3313
|
+
bodyFinished = !1,
|
|
3314
|
+
closed = !1;
|
|
3276
3315
|
busboyStream.on("field", function (name, value) {
|
|
3277
|
-
if (
|
|
3316
|
+
if (null !== tail)
|
|
3317
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
3318
|
+
tail.queuedFields.push(name, value);
|
|
3278
3319
|
else
|
|
3279
3320
|
try {
|
|
3280
3321
|
resolveField(response, name, value);
|
|
@@ -3292,41 +3333,40 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3292
3333
|
)
|
|
3293
3334
|
);
|
|
3294
3335
|
else {
|
|
3295
|
-
|
|
3296
|
-
|
|
3336
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
3337
|
+
pendingFile = {
|
|
3338
|
+
name: name,
|
|
3339
|
+
file: file,
|
|
3340
|
+
complete: !1,
|
|
3341
|
+
queuedFields: null,
|
|
3342
|
+
next: null
|
|
3343
|
+
};
|
|
3344
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
3345
|
+
tail = pendingFile;
|
|
3297
3346
|
value.on("data", function (chunk) {
|
|
3298
|
-
JSCompiler_object_inline_chunks_254.push(chunk);
|
|
3299
|
-
});
|
|
3300
|
-
value.on("end", function () {
|
|
3301
3347
|
try {
|
|
3302
|
-
|
|
3303
|
-
type: mimeType
|
|
3304
|
-
}),
|
|
3305
|
-
backingStore = response._formData;
|
|
3306
|
-
backingStore.data.append(name, blob, filename);
|
|
3307
|
-
var keys = backingStore.keys;
|
|
3308
|
-
null === keys
|
|
3309
|
-
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3310
|
-
(backingStore.keyPointer = 0))
|
|
3311
|
-
: keys.push(name);
|
|
3312
|
-
pendingFiles--;
|
|
3313
|
-
if (0 === pendingFiles) {
|
|
3314
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
3315
|
-
resolveField(
|
|
3316
|
-
response,
|
|
3317
|
-
queuedFields[blob],
|
|
3318
|
-
queuedFields[blob + 1]
|
|
3319
|
-
);
|
|
3320
|
-
queuedFields.length = 0;
|
|
3321
|
-
}
|
|
3348
|
+
file.chunks.push(chunk);
|
|
3322
3349
|
} catch (error) {
|
|
3323
3350
|
busboyStream.destroy(error);
|
|
3324
3351
|
}
|
|
3325
3352
|
});
|
|
3353
|
+
value.on("error", function (error) {
|
|
3354
|
+
busboyStream.destroy(error);
|
|
3355
|
+
});
|
|
3356
|
+
value.on("end", function () {
|
|
3357
|
+
pendingFile.complete = !0;
|
|
3358
|
+
flush();
|
|
3359
|
+
});
|
|
3326
3360
|
}
|
|
3327
3361
|
});
|
|
3328
3362
|
busboyStream.on("finish", function () {
|
|
3329
|
-
|
|
3363
|
+
bodyFinished = !0;
|
|
3364
|
+
flush();
|
|
3365
|
+
closed ||
|
|
3366
|
+
reportGlobalError(
|
|
3367
|
+
response,
|
|
3368
|
+
Error("Reply finished with incomplete file part.")
|
|
3369
|
+
);
|
|
3330
3370
|
});
|
|
3331
3371
|
busboyStream.on("error", function (err) {
|
|
3332
3372
|
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.1.
|
|
4
|
+
"version": "19.1.8",
|
|
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.1.
|
|
82
|
-
"react-dom": "^19.1.
|
|
81
|
+
"react": "^19.1.8",
|
|
82
|
+
"react-dom": "^19.1.8"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"acorn-loose": "^8.3.0",
|