react-server-dom-turbopack 19.0.6 → 19.0.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.
|
@@ -2476,10 +2476,10 @@
|
|
|
2476
2476
|
return hook.checkDCE ? !0 : !1;
|
|
2477
2477
|
})({
|
|
2478
2478
|
bundleType: 1,
|
|
2479
|
-
version: "19.0.
|
|
2479
|
+
version: "19.0.7",
|
|
2480
2480
|
rendererPackageName: "react-server-dom-turbopack",
|
|
2481
2481
|
currentDispatcherRef: ReactSharedInternals,
|
|
2482
|
-
reconcilerVersion: "19.0.
|
|
2482
|
+
reconcilerVersion: "19.0.7",
|
|
2483
2483
|
getCurrentComponentInfo: function () {
|
|
2484
2484
|
return currentOwnerInDEV;
|
|
2485
2485
|
}
|
|
@@ -4267,20 +4267,58 @@
|
|
|
4267
4267
|
turbopackMap,
|
|
4268
4268
|
options
|
|
4269
4269
|
) {
|
|
4270
|
-
|
|
4270
|
+
function flush() {
|
|
4271
|
+
for (; null !== head; ) {
|
|
4272
|
+
var current = head;
|
|
4273
|
+
if (!current.complete) return;
|
|
4274
|
+
try {
|
|
4275
|
+
var response = response$jscomp$0,
|
|
4276
|
+
key = current.name,
|
|
4277
|
+
handle = current.file,
|
|
4278
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
4279
|
+
backingStore = response._formData;
|
|
4280
|
+
response = key;
|
|
4281
|
+
backingStore.data.append(response, blob, handle.filename);
|
|
4282
|
+
var keys = backingStore.keys;
|
|
4283
|
+
null === keys
|
|
4284
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4285
|
+
(backingStore.keyPointer = 0))
|
|
4286
|
+
: keys.push(response);
|
|
4287
|
+
var queuedFields = current.queuedFields;
|
|
4288
|
+
if (null !== queuedFields)
|
|
4289
|
+
for (response = 0; response < queuedFields.length; response += 2)
|
|
4290
|
+
resolveField(
|
|
4291
|
+
response$jscomp$0,
|
|
4292
|
+
queuedFields[response],
|
|
4293
|
+
queuedFields[response + 1]
|
|
4294
|
+
);
|
|
4295
|
+
} catch (error) {
|
|
4296
|
+
busboyStream.destroy(error);
|
|
4297
|
+
return;
|
|
4298
|
+
}
|
|
4299
|
+
head = current.next;
|
|
4300
|
+
}
|
|
4301
|
+
tail = null;
|
|
4302
|
+
bodyFinished && !closed && ((closed = !0), close(response$jscomp$0));
|
|
4303
|
+
}
|
|
4304
|
+
var response$jscomp$0 = createResponse(
|
|
4271
4305
|
turbopackMap,
|
|
4272
4306
|
"",
|
|
4273
4307
|
options ? options.temporaryReferences : void 0,
|
|
4274
4308
|
void 0,
|
|
4275
4309
|
options ? options.arraySizeLimit : void 0
|
|
4276
4310
|
),
|
|
4277
|
-
|
|
4278
|
-
|
|
4311
|
+
head = null,
|
|
4312
|
+
tail = null,
|
|
4313
|
+
bodyFinished = !1,
|
|
4314
|
+
closed = !1;
|
|
4279
4315
|
busboyStream.on("field", function (name, value) {
|
|
4280
|
-
if (
|
|
4316
|
+
if (null !== tail)
|
|
4317
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
4318
|
+
tail.queuedFields.push(name, value);
|
|
4281
4319
|
else
|
|
4282
4320
|
try {
|
|
4283
|
-
resolveField(response, name, value);
|
|
4321
|
+
resolveField(response$jscomp$0, name, value);
|
|
4284
4322
|
} catch (error) {
|
|
4285
4323
|
busboyStream.destroy(error);
|
|
4286
4324
|
}
|
|
@@ -4295,46 +4333,45 @@
|
|
|
4295
4333
|
)
|
|
4296
4334
|
);
|
|
4297
4335
|
else {
|
|
4298
|
-
|
|
4299
|
-
|
|
4336
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
4337
|
+
pendingFile = {
|
|
4338
|
+
name: name,
|
|
4339
|
+
file: file,
|
|
4340
|
+
complete: !1,
|
|
4341
|
+
queuedFields: null,
|
|
4342
|
+
next: null
|
|
4343
|
+
};
|
|
4344
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
4345
|
+
tail = pendingFile;
|
|
4300
4346
|
value.on("data", function (chunk) {
|
|
4301
|
-
JSCompiler_object_inline_chunks_162.push(chunk);
|
|
4302
|
-
});
|
|
4303
|
-
value.on("end", function () {
|
|
4304
4347
|
try {
|
|
4305
|
-
|
|
4306
|
-
type: mimeType
|
|
4307
|
-
}),
|
|
4308
|
-
backingStore = response._formData;
|
|
4309
|
-
backingStore.data.append(name, blob, filename);
|
|
4310
|
-
var keys = backingStore.keys;
|
|
4311
|
-
null === keys
|
|
4312
|
-
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4313
|
-
(backingStore.keyPointer = 0))
|
|
4314
|
-
: keys.push(name);
|
|
4315
|
-
pendingFiles--;
|
|
4316
|
-
if (0 === pendingFiles) {
|
|
4317
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
4318
|
-
resolveField(
|
|
4319
|
-
response,
|
|
4320
|
-
queuedFields[blob],
|
|
4321
|
-
queuedFields[blob + 1]
|
|
4322
|
-
);
|
|
4323
|
-
queuedFields.length = 0;
|
|
4324
|
-
}
|
|
4348
|
+
file.chunks.push(chunk);
|
|
4325
4349
|
} catch (error) {
|
|
4326
4350
|
busboyStream.destroy(error);
|
|
4327
4351
|
}
|
|
4328
4352
|
});
|
|
4353
|
+
value.on("error", function (error) {
|
|
4354
|
+
busboyStream.destroy(error);
|
|
4355
|
+
});
|
|
4356
|
+
value.on("end", function () {
|
|
4357
|
+
pendingFile.complete = !0;
|
|
4358
|
+
flush();
|
|
4359
|
+
});
|
|
4329
4360
|
}
|
|
4330
4361
|
});
|
|
4331
4362
|
busboyStream.on("finish", function () {
|
|
4332
|
-
|
|
4363
|
+
bodyFinished = !0;
|
|
4364
|
+
flush();
|
|
4365
|
+
closed ||
|
|
4366
|
+
reportGlobalError(
|
|
4367
|
+
response$jscomp$0,
|
|
4368
|
+
Error("Reply finished with incomplete file part.")
|
|
4369
|
+
);
|
|
4333
4370
|
});
|
|
4334
4371
|
busboyStream.on("error", function (err) {
|
|
4335
|
-
reportGlobalError(response, err);
|
|
4372
|
+
reportGlobalError(response$jscomp$0, err);
|
|
4336
4373
|
});
|
|
4337
|
-
return getChunk(response, 0);
|
|
4374
|
+
return getChunk(response$jscomp$0, 0);
|
|
4338
4375
|
};
|
|
4339
4376
|
exports.registerClientReference = function (
|
|
4340
4377
|
proxyImplementation,
|
|
@@ -3274,6 +3274,43 @@ exports.decodeReply = function (body, turbopackMap, options) {
|
|
|
3274
3274
|
return turbopackMap;
|
|
3275
3275
|
};
|
|
3276
3276
|
exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
3277
|
+
function flush() {
|
|
3278
|
+
for (; null !== head; ) {
|
|
3279
|
+
var current = head;
|
|
3280
|
+
if (!current.complete) return;
|
|
3281
|
+
try {
|
|
3282
|
+
var key = current.name,
|
|
3283
|
+
handle = current.file,
|
|
3284
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
3285
|
+
backingStore = response._formData,
|
|
3286
|
+
key$jscomp$0 = key;
|
|
3287
|
+
backingStore.data.append(key$jscomp$0, blob, handle.filename);
|
|
3288
|
+
var keys = backingStore.keys;
|
|
3289
|
+
null === keys
|
|
3290
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3291
|
+
(backingStore.keyPointer = 0))
|
|
3292
|
+
: keys.push(key$jscomp$0);
|
|
3293
|
+
var queuedFields = current.queuedFields;
|
|
3294
|
+
if (null !== queuedFields)
|
|
3295
|
+
for (
|
|
3296
|
+
key$jscomp$0 = 0;
|
|
3297
|
+
key$jscomp$0 < queuedFields.length;
|
|
3298
|
+
key$jscomp$0 += 2
|
|
3299
|
+
)
|
|
3300
|
+
resolveField(
|
|
3301
|
+
response,
|
|
3302
|
+
queuedFields[key$jscomp$0],
|
|
3303
|
+
queuedFields[key$jscomp$0 + 1]
|
|
3304
|
+
);
|
|
3305
|
+
} catch (error) {
|
|
3306
|
+
busboyStream.destroy(error);
|
|
3307
|
+
return;
|
|
3308
|
+
}
|
|
3309
|
+
head = current.next;
|
|
3310
|
+
}
|
|
3311
|
+
tail = null;
|
|
3312
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
3313
|
+
}
|
|
3277
3314
|
var response = createResponse(
|
|
3278
3315
|
turbopackMap,
|
|
3279
3316
|
"",
|
|
@@ -3281,10 +3318,14 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3281
3318
|
void 0,
|
|
3282
3319
|
options ? options.arraySizeLimit : void 0
|
|
3283
3320
|
),
|
|
3284
|
-
|
|
3285
|
-
|
|
3321
|
+
head = null,
|
|
3322
|
+
tail = null,
|
|
3323
|
+
bodyFinished = !1,
|
|
3324
|
+
closed = !1;
|
|
3286
3325
|
busboyStream.on("field", function (name, value) {
|
|
3287
|
-
if (
|
|
3326
|
+
if (null !== tail)
|
|
3327
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
3328
|
+
tail.queuedFields.push(name, value);
|
|
3288
3329
|
else
|
|
3289
3330
|
try {
|
|
3290
3331
|
resolveField(response, name, value);
|
|
@@ -3302,41 +3343,40 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3302
3343
|
)
|
|
3303
3344
|
);
|
|
3304
3345
|
else {
|
|
3305
|
-
|
|
3306
|
-
|
|
3346
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
3347
|
+
pendingFile = {
|
|
3348
|
+
name: name,
|
|
3349
|
+
file: file,
|
|
3350
|
+
complete: !1,
|
|
3351
|
+
queuedFields: null,
|
|
3352
|
+
next: null
|
|
3353
|
+
};
|
|
3354
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
3355
|
+
tail = pendingFile;
|
|
3307
3356
|
value.on("data", function (chunk) {
|
|
3308
|
-
JSCompiler_object_inline_chunks_243.push(chunk);
|
|
3309
|
-
});
|
|
3310
|
-
value.on("end", function () {
|
|
3311
3357
|
try {
|
|
3312
|
-
|
|
3313
|
-
type: mimeType
|
|
3314
|
-
}),
|
|
3315
|
-
backingStore = response._formData;
|
|
3316
|
-
backingStore.data.append(name, blob, filename);
|
|
3317
|
-
var keys = backingStore.keys;
|
|
3318
|
-
null === keys
|
|
3319
|
-
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3320
|
-
(backingStore.keyPointer = 0))
|
|
3321
|
-
: keys.push(name);
|
|
3322
|
-
pendingFiles--;
|
|
3323
|
-
if (0 === pendingFiles) {
|
|
3324
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
3325
|
-
resolveField(
|
|
3326
|
-
response,
|
|
3327
|
-
queuedFields[blob],
|
|
3328
|
-
queuedFields[blob + 1]
|
|
3329
|
-
);
|
|
3330
|
-
queuedFields.length = 0;
|
|
3331
|
-
}
|
|
3358
|
+
file.chunks.push(chunk);
|
|
3332
3359
|
} catch (error) {
|
|
3333
3360
|
busboyStream.destroy(error);
|
|
3334
3361
|
}
|
|
3335
3362
|
});
|
|
3363
|
+
value.on("error", function (error) {
|
|
3364
|
+
busboyStream.destroy(error);
|
|
3365
|
+
});
|
|
3366
|
+
value.on("end", function () {
|
|
3367
|
+
pendingFile.complete = !0;
|
|
3368
|
+
flush();
|
|
3369
|
+
});
|
|
3336
3370
|
}
|
|
3337
3371
|
});
|
|
3338
3372
|
busboyStream.on("finish", function () {
|
|
3339
|
-
|
|
3373
|
+
bodyFinished = !0;
|
|
3374
|
+
flush();
|
|
3375
|
+
closed ||
|
|
3376
|
+
reportGlobalError(
|
|
3377
|
+
response,
|
|
3378
|
+
Error("Reply finished with incomplete file part.")
|
|
3379
|
+
);
|
|
3340
3380
|
});
|
|
3341
3381
|
busboyStream.on("error", function (err) {
|
|
3342
3382
|
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.0.
|
|
4
|
+
"version": "19.0.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.0.
|
|
82
|
-
"react-dom": "^19.0.
|
|
81
|
+
"react": "^19.0.7",
|
|
82
|
+
"react-dom": "^19.0.7"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"acorn-loose": "^8.3.0",
|