Commit 477d4ec4 authored by Josh Story's avatar Josh Story Committed by Zack Tanner

Update React Version (#32)

parent eeb6db33
...@@ -12,16 +12,6 @@ ...@@ -12,16 +12,6 @@
"production" !== process.env.NODE_ENV && "production" !== process.env.NODE_ENV &&
(function () { (function () {
function _defineProperty(obj, key, value) { function _defineProperty(obj, key, value) {
a: if ("object" == typeof key && key) {
var e = key[Symbol.toPrimitive];
if (void 0 !== e) {
key = e.call(key, "string");
if ("object" != typeof key) break a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
key = String(key);
}
key = "symbol" == typeof key ? key : key + "";
key in obj key in obj
? Object.defineProperty(obj, key, { ? Object.defineProperty(obj, key, {
value: value, value: value,
...@@ -512,13 +502,23 @@ ...@@ -512,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--;
...@@ -527,9 +527,8 @@ ...@@ -527,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;
...@@ -687,7 +686,7 @@ ...@@ -687,7 +686,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 &&
...@@ -1458,7 +1457,7 @@ ...@@ -1458,7 +1457,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(
...@@ -2926,10 +2925,10 @@ ...@@ -2926,10 +2925,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.2.0-experimental-1c1fae3d-20251202", version: "19.2.0-experimental-fecec200-20251209",
rendererPackageName: "react-server-dom-turbopack", rendererPackageName: "react-server-dom-turbopack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-experimental-1c1fae3d-20251202", reconcilerVersion: "19.2.0-experimental-fecec200-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;
...@@ -433,7 +442,7 @@ function processReply( ...@@ -433,7 +442,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(
......
...@@ -12,16 +12,6 @@ ...@@ -12,16 +12,6 @@
"production" !== process.env.NODE_ENV && "production" !== process.env.NODE_ENV &&
(function () { (function () {
function _defineProperty(obj, key, value) { function _defineProperty(obj, key, value) {
a: if ("object" == typeof key && key) {
var e = key[Symbol.toPrimitive];
if (void 0 !== e) {
key = e.call(key, "string");
if ("object" != typeof key) break a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
key = String(key);
}
key = "symbol" == typeof key ? key : key + "";
key in obj key in obj
? Object.defineProperty(obj, key, { ? Object.defineProperty(obj, key, {
value: value, value: value,
...@@ -537,13 +527,23 @@ ...@@ -537,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--;
...@@ -552,9 +552,8 @@ ...@@ -552,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;
...@@ -712,7 +711,7 @@ ...@@ -712,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 &&
...@@ -1677,7 +1676,7 @@ ...@@ -1677,7 +1676,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;
...@@ -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 &&
...@@ -1131,7 +1140,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1131,7 +1140,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(
......
...@@ -12,16 +12,6 @@ ...@@ -12,16 +12,6 @@
"production" !== process.env.NODE_ENV && "production" !== process.env.NODE_ENV &&
(function () { (function () {
function _defineProperty(obj, key, value) { function _defineProperty(obj, key, value) {
a: if ("object" == typeof key && key) {
var e = key[Symbol.toPrimitive];
if (void 0 !== e) {
key = e.call(key, "string");
if ("object" != typeof key) break a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
key = String(key);
}
key = "symbol" == typeof key ? key : key + "";
key in obj key in obj
? Object.defineProperty(obj, key, { ? Object.defineProperty(obj, key, {
value: value, value: value,
...@@ -537,13 +527,23 @@ ...@@ -537,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--;
...@@ -552,9 +552,8 @@ ...@@ -552,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;
...@@ -712,7 +711,7 @@ ...@@ -712,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 &&
...@@ -1677,7 +1676,7 @@ ...@@ -1677,7 +1676,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;
...@@ -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 &&
...@@ -1132,7 +1141,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1132,7 +1141,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-1c1fae3d-20251202", "react": "0.0.0-experimental-fecec200-20251209",
"react-dom": "0.0.0-experimental-1c1fae3d-20251202" "react-dom": "0.0.0-experimental-fecec200-20251209"
} }
} }
\ No newline at end of file
...@@ -12,16 +12,6 @@ ...@@ -12,16 +12,6 @@
"production" !== process.env.NODE_ENV && "production" !== process.env.NODE_ENV &&
(function () { (function () {
function _defineProperty(obj, key, value) { function _defineProperty(obj, key, value) {
a: if ("object" == typeof key && key) {
var e = key[Symbol.toPrimitive];
if (void 0 !== e) {
key = e.call(key, "string");
if ("object" != typeof key) break a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
key = String(key);
}
key = "symbol" == typeof key ? key : key + "";
key in obj key in obj
? Object.defineProperty(obj, key, { ? Object.defineProperty(obj, key, {
value: value, value: value,
...@@ -510,13 +500,23 @@ ...@@ -510,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--;
...@@ -525,9 +525,8 @@ ...@@ -525,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;
...@@ -685,7 +684,7 @@ ...@@ -685,7 +684,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 &&
...@@ -1429,7 +1428,7 @@ ...@@ -1429,7 +1428,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(
...@@ -2677,10 +2676,10 @@ ...@@ -2677,10 +2676,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.2.0-canary-1c1fae3d-20251202", version: "19.2.0-canary-fecec200-20251209",
rendererPackageName: "react-server-dom-turbopack", rendererPackageName: "react-server-dom-turbopack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-canary-1c1fae3d-20251202", reconcilerVersion: "19.2.0-canary-fecec200-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;
...@@ -432,7 +441,7 @@ function processReply( ...@@ -432,7 +441,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 &&
...@@ -942,7 +951,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -942,7 +951,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(
......
...@@ -12,16 +12,6 @@ ...@@ -12,16 +12,6 @@
"production" !== process.env.NODE_ENV && "production" !== process.env.NODE_ENV &&
(function () { (function () {
function _defineProperty(obj, key, value) { function _defineProperty(obj, key, value) {
a: if ("object" == typeof key && key) {
var e = key[Symbol.toPrimitive];
if (void 0 !== e) {
key = e.call(key, "string");
if ("object" != typeof key) break a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
key = String(key);
}
key = "symbol" == typeof key ? key : key + "";
key in obj key in obj
? Object.defineProperty(obj, key, { ? Object.defineProperty(obj, key, {
value: value, value: value,
...@@ -535,13 +525,23 @@ ...@@ -535,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--;
...@@ -550,9 +550,8 @@ ...@@ -550,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;
...@@ -710,7 +709,7 @@ ...@@ -710,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 &&
...@@ -1648,7 +1647,7 @@ ...@@ -1648,7 +1647,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;
...@@ -453,7 +462,7 @@ function processReply( ...@@ -453,7 +462,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 &&
...@@ -1127,7 +1136,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1127,7 +1136,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(
......
...@@ -12,16 +12,6 @@ ...@@ -12,16 +12,6 @@
"production" !== process.env.NODE_ENV && "production" !== process.env.NODE_ENV &&
(function () { (function () {
function _defineProperty(obj, key, value) { function _defineProperty(obj, key, value) {
a: if ("object" == typeof key && key) {
var e = key[Symbol.toPrimitive];
if (void 0 !== e) {
key = e.call(key, "string");
if ("object" != typeof key) break a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
key = String(key);
}
key = "symbol" == typeof key ? key : key + "";
key in obj key in obj
? Object.defineProperty(obj, key, { ? Object.defineProperty(obj, key, {
value: value, value: value,
...@@ -535,13 +525,23 @@ ...@@ -535,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--;
...@@ -550,9 +550,8 @@ ...@@ -550,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;
...@@ -710,7 +709,7 @@ ...@@ -710,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 &&
...@@ -1648,7 +1647,7 @@ ...@@ -1648,7 +1647,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;
...@@ -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 &&
...@@ -1128,7 +1137,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1128,7 +1137,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.2.0-canary-1c1fae3d-20251202", "react": "19.2.0-canary-fecec200-20251209",
"react-dom": "19.2.0-canary-1c1fae3d-20251202" "react-dom": "19.2.0-canary-fecec200-20251209"
} }
} }
\ No newline at end of file
...@@ -12,16 +12,6 @@ ...@@ -12,16 +12,6 @@
"production" !== process.env.NODE_ENV && "production" !== process.env.NODE_ENV &&
(function () { (function () {
function _defineProperty(obj, key, value) { function _defineProperty(obj, key, value) {
a: if ("object" == typeof key && key) {
var e = key[Symbol.toPrimitive];
if (void 0 !== e) {
key = e.call(key, "string");
if ("object" != typeof key) break a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
key = String(key);
}
key = "symbol" == typeof key ? key : key + "";
key in obj key in obj
? Object.defineProperty(obj, key, { ? Object.defineProperty(obj, key, {
value: value, value: value,
...@@ -519,13 +509,23 @@ ...@@ -519,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--;
...@@ -534,9 +534,8 @@ ...@@ -534,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;
...@@ -694,7 +693,7 @@ ...@@ -694,7 +693,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 &&
...@@ -1465,7 +1464,7 @@ ...@@ -1465,7 +1464,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(
...@@ -2941,10 +2940,10 @@ ...@@ -2941,10 +2940,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.2.0-experimental-1c1fae3d-20251202", version: "19.2.0-experimental-fecec200-20251209",
rendererPackageName: "react-server-dom-webpack", rendererPackageName: "react-server-dom-webpack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-experimental-1c1fae3d-20251202", reconcilerVersion: "19.2.0-experimental-fecec200-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;
...@@ -445,7 +454,7 @@ function processReply( ...@@ -445,7 +454,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 &&
...@@ -958,7 +967,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -958,7 +967,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(
......
...@@ -12,16 +12,6 @@ ...@@ -12,16 +12,6 @@
"production" !== process.env.NODE_ENV && "production" !== process.env.NODE_ENV &&
(function () { (function () {
function _defineProperty(obj, key, value) { function _defineProperty(obj, key, value) {
a: if ("object" == typeof key && key) {
var e = key[Symbol.toPrimitive];
if (void 0 !== e) {
key = e.call(key, "string");
if ("object" != typeof key) break a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
key = String(key);
}
key = "symbol" == typeof key ? key : key + "";
key in obj key in obj
? Object.defineProperty(obj, key, { ? Object.defineProperty(obj, key, {
value: value, value: value,
...@@ -540,13 +530,23 @@ ...@@ -540,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--;
...@@ -555,9 +555,8 @@ ...@@ -555,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;
...@@ -715,7 +714,7 @@ ...@@ -715,7 +714,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 &&
...@@ -1680,7 +1679,7 @@ ...@@ -1680,7 +1679,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;
...@@ -457,7 +466,7 @@ function processReply( ...@@ -457,7 +466,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 &&
...@@ -1134,7 +1143,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1134,7 +1143,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(
......
...@@ -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;
...@@ -458,7 +467,7 @@ function processReply( ...@@ -458,7 +467,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 &&
...@@ -1135,7 +1144,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1135,7 +1144,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-1c1fae3d-20251202", "react": "0.0.0-experimental-fecec200-20251209",
"react-dom": "0.0.0-experimental-1c1fae3d-20251202", "react-dom": "0.0.0-experimental-fecec200-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