Commit be3b3ffc authored by Josh Story's avatar Josh Story Committed by Zack Tanner

Update React Version (#33)

parent 39e2ed99
...@@ -502,13 +502,23 @@ ...@@ -502,13 +502,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -517,9 +527,8 @@ ...@@ -517,9 +527,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -674,7 +683,7 @@ ...@@ -674,7 +683,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1438,7 +1447,7 @@ ...@@ -1438,7 +1447,7 @@
return response; return response;
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
...@@ -2905,10 +2914,10 @@ ...@@ -2905,10 +2914,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.1.0-experimental-ea9251e1-20251202", version: "19.1.0-experimental-86a61a43-20251209",
rendererPackageName: "react-server-dom-turbopack", rendererPackageName: "react-server-dom-turbopack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-experimental-ea9251e1-20251202", reconcilerVersion: "19.1.0-experimental-86a61a43-20251209",
getCurrentComponentInfo: function () { getCurrentComponentInfo: function () {
return currentOwnerInDEV; return currentOwnerInDEV;
} }
......
...@@ -292,13 +292,23 @@ function processReply( ...@@ -292,13 +292,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -307,9 +317,8 @@ function processReply( ...@@ -307,9 +317,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -430,7 +439,7 @@ function processReply( ...@@ -430,7 +439,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -938,7 +947,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -938,7 +947,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -527,13 +527,23 @@ ...@@ -527,13 +527,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -542,9 +552,8 @@ ...@@ -542,9 +552,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -699,7 +708,7 @@ ...@@ -699,7 +708,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1652,7 +1661,7 @@ ...@@ -1652,7 +1661,7 @@
return response; return response;
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -313,13 +313,23 @@ function processReply( ...@@ -313,13 +313,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -328,9 +338,8 @@ function processReply( ...@@ -328,9 +338,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -451,7 +460,7 @@ function processReply( ...@@ -451,7 +460,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1121,7 +1130,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1121,7 +1130,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -527,13 +527,23 @@ ...@@ -527,13 +527,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -542,9 +552,8 @@ ...@@ -542,9 +552,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -699,7 +708,7 @@ ...@@ -699,7 +708,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1652,7 +1661,7 @@ ...@@ -1652,7 +1661,7 @@
return response; return response;
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -314,13 +314,23 @@ function processReply( ...@@ -314,13 +314,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -329,9 +339,8 @@ function processReply( ...@@ -329,9 +339,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -452,7 +461,7 @@ function processReply( ...@@ -452,7 +461,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1122,7 +1131,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1122,7 +1131,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
"neo-async": "^2.6.1" "neo-async": "^2.6.1"
}, },
"peerDependencies": { "peerDependencies": {
"react": "0.0.0-experimental-ea9251e1-20251202", "react": "0.0.0-experimental-86a61a43-20251209",
"react-dom": "0.0.0-experimental-ea9251e1-20251202" "react-dom": "0.0.0-experimental-86a61a43-20251209"
} }
} }
\ No newline at end of file
...@@ -500,13 +500,23 @@ ...@@ -500,13 +500,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -515,9 +525,8 @@ ...@@ -515,9 +525,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -672,7 +681,7 @@ ...@@ -672,7 +681,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1409,7 +1418,7 @@ ...@@ -1409,7 +1418,7 @@
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
...@@ -2656,10 +2665,10 @@ ...@@ -2656,10 +2665,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.1.0-canary-ea9251e1-20251202", version: "19.1.0-canary-86a61a43-20251209",
rendererPackageName: "react-server-dom-turbopack", rendererPackageName: "react-server-dom-turbopack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-canary-ea9251e1-20251202", reconcilerVersion: "19.1.0-canary-86a61a43-20251209",
getCurrentComponentInfo: function () { getCurrentComponentInfo: function () {
return currentOwnerInDEV; return currentOwnerInDEV;
} }
......
...@@ -291,13 +291,23 @@ function processReply( ...@@ -291,13 +291,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -306,9 +316,8 @@ function processReply( ...@@ -306,9 +316,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -429,7 +438,7 @@ function processReply( ...@@ -429,7 +438,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -934,7 +943,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -934,7 +943,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -525,13 +525,23 @@ ...@@ -525,13 +525,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -540,9 +550,8 @@ ...@@ -540,9 +550,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -697,7 +706,7 @@ ...@@ -697,7 +706,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1623,7 +1632,7 @@ ...@@ -1623,7 +1632,7 @@
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -312,13 +312,23 @@ function processReply( ...@@ -312,13 +312,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -327,9 +337,8 @@ function processReply( ...@@ -327,9 +337,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -450,7 +459,7 @@ function processReply( ...@@ -450,7 +459,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1117,7 +1126,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1117,7 +1126,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -525,13 +525,23 @@ ...@@ -525,13 +525,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -540,9 +550,8 @@ ...@@ -540,9 +550,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -697,7 +706,7 @@ ...@@ -697,7 +706,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1623,7 +1632,7 @@ ...@@ -1623,7 +1632,7 @@
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -313,13 +313,23 @@ function processReply( ...@@ -313,13 +313,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -328,9 +338,8 @@ function processReply( ...@@ -328,9 +338,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -451,7 +460,7 @@ function processReply( ...@@ -451,7 +460,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1118,7 +1127,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1118,7 +1127,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
"neo-async": "^2.6.1" "neo-async": "^2.6.1"
}, },
"peerDependencies": { "peerDependencies": {
"react": "19.1.0-canary-ea9251e1-20251202", "react": "19.1.0-canary-86a61a43-20251209",
"react-dom": "19.1.0-canary-ea9251e1-20251202" "react-dom": "19.1.0-canary-86a61a43-20251209"
} }
} }
\ No newline at end of file
...@@ -509,13 +509,23 @@ ...@@ -509,13 +509,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -524,9 +534,8 @@ ...@@ -524,9 +534,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -681,7 +690,7 @@ ...@@ -681,7 +690,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1445,7 +1454,7 @@ ...@@ -1445,7 +1454,7 @@
return response; return response;
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
...@@ -2920,10 +2929,10 @@ ...@@ -2920,10 +2929,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.1.0-experimental-ea9251e1-20251202", version: "19.1.0-experimental-86a61a43-20251209",
rendererPackageName: "react-server-dom-webpack", rendererPackageName: "react-server-dom-webpack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-experimental-ea9251e1-20251202", reconcilerVersion: "19.1.0-experimental-86a61a43-20251209",
getCurrentComponentInfo: function () { getCurrentComponentInfo: function () {
return currentOwnerInDEV; return currentOwnerInDEV;
} }
......
...@@ -304,13 +304,23 @@ function processReply( ...@@ -304,13 +304,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -319,9 +329,8 @@ function processReply( ...@@ -319,9 +329,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -442,7 +451,7 @@ function processReply( ...@@ -442,7 +451,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -950,7 +959,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -950,7 +959,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -530,13 +530,23 @@ ...@@ -530,13 +530,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -545,9 +555,8 @@ ...@@ -545,9 +555,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -702,7 +711,7 @@ ...@@ -702,7 +711,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1655,7 +1664,7 @@ ...@@ -1655,7 +1664,7 @@
return response; return response;
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -316,13 +316,23 @@ function processReply( ...@@ -316,13 +316,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -331,9 +341,8 @@ function processReply( ...@@ -331,9 +341,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -454,7 +463,7 @@ function processReply( ...@@ -454,7 +463,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1124,7 +1133,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1124,7 +1133,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -530,13 +530,23 @@ ...@@ -530,13 +530,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -545,9 +555,8 @@ ...@@ -545,9 +555,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -702,7 +711,7 @@ ...@@ -702,7 +711,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1655,7 +1664,7 @@ ...@@ -1655,7 +1664,7 @@
return response; return response;
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -317,13 +317,23 @@ function processReply( ...@@ -317,13 +317,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -332,9 +342,8 @@ function processReply( ...@@ -332,9 +342,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -455,7 +464,7 @@ function processReply( ...@@ -455,7 +464,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1125,7 +1134,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1125,7 +1134,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
else throw moduleExports.reason; else throw moduleExports.reason;
if ("*" === metadata.name) return moduleExports; if ("*" === metadata.name) return moduleExports;
if ("" === metadata.name) return moduleExports.default; if ("" === metadata.name) return moduleExports.default;
if (hasOwnProperty.call(moduleExports, metadata.name)) hasOwnProperty.call(moduleExports, metadata.name);
return moduleExports[metadata.name]; return moduleExports[metadata.name];
} }
function prepareDestinationWithChunks( function prepareDestinationWithChunks(
...@@ -493,13 +493,23 @@ ...@@ -493,13 +493,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -508,9 +518,8 @@ ...@@ -508,9 +518,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -665,7 +674,7 @@ ...@@ -665,7 +674,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1618,7 +1627,7 @@ ...@@ -1618,7 +1627,7 @@
return response; return response;
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -70,7 +70,7 @@ function requireModule(metadata) { ...@@ -70,7 +70,7 @@ function requireModule(metadata) {
else throw moduleExports.reason; else throw moduleExports.reason;
if ("*" === metadata.name) return moduleExports; if ("*" === metadata.name) return moduleExports;
if ("" === metadata.name) return moduleExports.default; if ("" === metadata.name) return moduleExports.default;
if (hasOwnProperty.call(moduleExports, metadata.name)) hasOwnProperty.call(moduleExports, metadata.name);
return moduleExports[metadata.name]; return moduleExports[metadata.name];
} }
function prepareDestinationWithChunks(moduleLoading, chunks, nonce$jscomp$0) { function prepareDestinationWithChunks(moduleLoading, chunks, nonce$jscomp$0) {
...@@ -283,13 +283,23 @@ function processReply( ...@@ -283,13 +283,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -298,9 +308,8 @@ function processReply( ...@@ -298,9 +308,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -421,7 +430,7 @@ function processReply( ...@@ -421,7 +430,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1091,7 +1100,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1091,7 +1100,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
"webpack-sources": "^3.2.0" "webpack-sources": "^3.2.0"
}, },
"peerDependencies": { "peerDependencies": {
"react": "0.0.0-experimental-ea9251e1-20251202", "react": "0.0.0-experimental-86a61a43-20251209",
"react-dom": "0.0.0-experimental-ea9251e1-20251202", "react-dom": "0.0.0-experimental-86a61a43-20251209",
"webpack": "^5.59.0" "webpack": "^5.59.0"
} }
} }
\ No newline at end of file
...@@ -507,13 +507,23 @@ ...@@ -507,13 +507,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -522,9 +532,8 @@ ...@@ -522,9 +532,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -679,7 +688,7 @@ ...@@ -679,7 +688,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1416,7 +1425,7 @@ ...@@ -1416,7 +1425,7 @@
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
...@@ -2671,10 +2680,10 @@ ...@@ -2671,10 +2680,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.1.0-canary-ea9251e1-20251202", version: "19.1.0-canary-86a61a43-20251209",
rendererPackageName: "react-server-dom-webpack", rendererPackageName: "react-server-dom-webpack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-canary-ea9251e1-20251202", reconcilerVersion: "19.1.0-canary-86a61a43-20251209",
getCurrentComponentInfo: function () { getCurrentComponentInfo: function () {
return currentOwnerInDEV; return currentOwnerInDEV;
} }
......
...@@ -303,13 +303,23 @@ function processReply( ...@@ -303,13 +303,23 @@ function processReply(
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var partJSON$28 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var partJSON$28 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, partJSON$28); partValue.append(formFieldPrefix + promiseId, partJSON$28);
pendingParts--; pendingParts--;
...@@ -318,9 +328,8 @@ function processReply( ...@@ -318,9 +328,8 @@ function processReply(
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -441,7 +450,7 @@ function processReply( ...@@ -441,7 +450,7 @@ function processReply(
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -946,7 +955,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -946,7 +955,7 @@ function parseModelString(response, parentObject, key, value) {
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -528,13 +528,23 @@ ...@@ -528,13 +528,23 @@
pendingParts--; pendingParts--;
} }
} }
parentReference = writtenObjects.get(value);
if ("function" === typeof value.then) { if ("function" === typeof value.then) {
if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null;
else return parentReference;
null === formData && (formData = new FormData()); null === formData && (formData = new FormData());
pendingParts++; pendingParts++;
var promiseId = nextPartId++; var promiseId = nextPartId++;
key = "$@" + promiseId.toString(16);
writtenObjects.set(value, key);
value.then(function (partValue) { value.then(function (partValue) {
try { try {
var _partJSON3 = serializeModel(partValue, promiseId); var previousReference = writtenObjects.get(partValue);
var _partJSON3 =
void 0 !== previousReference
? JSON.stringify(previousReference)
: serializeModel(partValue, promiseId);
partValue = formData; partValue = formData;
partValue.append(formFieldPrefix + promiseId, _partJSON3); partValue.append(formFieldPrefix + promiseId, _partJSON3);
pendingParts--; pendingParts--;
...@@ -543,9 +553,8 @@ ...@@ -543,9 +553,8 @@
reject(reason); reject(reason);
} }
}, reject); }, reject);
return "$@" + promiseId.toString(16); return key;
} }
parentReference = writtenObjects.get(value);
if (void 0 !== parentReference) if (void 0 !== parentReference)
if (modelRoot === value) modelRoot = null; if (modelRoot === value) modelRoot = null;
else return parentReference; else return parentReference;
...@@ -700,7 +709,7 @@ ...@@ -700,7 +709,7 @@
null === formData && (formData = new FormData()), null === formData && (formData = new FormData()),
(parentReference = nextPartId++), (parentReference = nextPartId++),
formData.set(formFieldPrefix + parentReference, key), formData.set(formFieldPrefix + parentReference, key),
"$F" + parentReference.toString(16) "$h" + parentReference.toString(16)
); );
if ( if (
void 0 !== temporaryReferences && void 0 !== temporaryReferences &&
...@@ -1626,7 +1635,7 @@ ...@@ -1626,7 +1635,7 @@
return getChunk(response, parentObject); return getChunk(response, parentObject);
case "S": case "S":
return Symbol.for(value.slice(2)); return Symbol.for(value.slice(2));
case "F": case "h":
return ( return (
(value = value.slice(2)), (value = value.slice(2)),
getOutlinedModel( getOutlinedModel(
......
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
"webpack-sources": "^3.2.0" "webpack-sources": "^3.2.0"
}, },
"peerDependencies": { "peerDependencies": {
"react": "19.1.0-canary-ea9251e1-20251202", "react": "19.1.0-canary-86a61a43-20251209",
"react-dom": "19.1.0-canary-ea9251e1-20251202", "react-dom": "19.1.0-canary-86a61a43-20251209",
"webpack": "^5.59.0" "webpack": "^5.59.0"
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment