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(
......
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