Commit 9068d90e authored by Josh Story's avatar Josh Story Committed by Zack Tanner

Update React Version (#35)

parent 84f7ed4c
...@@ -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 &&
...@@ -1393,7 +1402,7 @@ ...@@ -1393,7 +1402,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(
...@@ -2653,10 +2662,10 @@ ...@@ -2653,10 +2662,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.0.0-experimental-2a3f1f8f-20251202", version: "19.0.0-experimental-ea190351-20251209",
rendererPackageName: "react-server-dom-turbopack", rendererPackageName: "react-server-dom-turbopack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.0.0-experimental-2a3f1f8f-20251202", reconcilerVersion: "19.0.0-experimental-ea190351-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 &&
...@@ -923,7 +932,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -923,7 +932,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 &&
...@@ -1607,7 +1616,7 @@ ...@@ -1607,7 +1616,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 &&
...@@ -1090,7 +1099,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1090,7 +1099,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 &&
...@@ -1607,7 +1616,7 @@ ...@@ -1607,7 +1616,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(
......
...@@ -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 &&
...@@ -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(
......
...@@ -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-2a3f1f8f-20251202", "react": "0.0.0-experimental-ea190351-20251209",
"react-dom": "0.0.0-experimental-2a3f1f8f-20251202" "react-dom": "0.0.0-experimental-ea190351-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 &&
...@@ -1363,7 +1372,7 @@ ...@@ -1363,7 +1372,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(
...@@ -2449,10 +2458,10 @@ ...@@ -2449,10 +2458,10 @@
return hook.checkDCE ? !0 : !1; return hook.checkDCE ? !0 : !1;
})({ })({
bundleType: 1, bundleType: 1,
version: "19.0.0-rc-2a3f1f8f-20251202", version: "19.0.0-rc-ea190351-20251209",
rendererPackageName: "react-server-dom-turbopack", rendererPackageName: "react-server-dom-turbopack",
currentDispatcherRef: ReactSharedInternals, currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.0.0-rc-2a3f1f8f-20251202", reconcilerVersion: "19.0.0-rc-ea190351-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 &&
...@@ -922,7 +931,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -922,7 +931,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 &&
...@@ -1571,7 +1580,7 @@ ...@@ -1571,7 +1580,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 &&
...@@ -1089,7 +1098,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1089,7 +1098,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 &&
...@@ -1571,7 +1580,7 @@ ...@@ -1571,7 +1580,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 &&
...@@ -1090,7 +1099,7 @@ function parseModelString(response, parentObject, key, value) { ...@@ -1090,7 +1099,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.0.0-rc-2a3f1f8f-20251202", "react": "19.0.0-rc-ea190351-20251209",
"react-dom": "19.0.0-rc-2a3f1f8f-20251202" "react-dom": "19.0.0-rc-ea190351-20251209"
} }
} }
\ No newline at end of file
...@@ -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-2a3f1f8f-20251202", "react": "0.0.0-experimental-ea190351-20251209",
"react-dom": "0.0.0-experimental-2a3f1f8f-20251202", "react-dom": "0.0.0-experimental-ea190351-20251209",
"webpack": "^5.59.0" "webpack": "^5.59.0"
} }
} }
\ No newline at end of file
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
"webpack-sources": "^3.2.0" "webpack-sources": "^3.2.0"
}, },
"peerDependencies": { "peerDependencies": {
"react": "19.0.0-rc-2a3f1f8f-20251202", "react": "19.0.0-rc-ea190351-20251209",
"react-dom": "19.0.0-rc-2a3f1f8f-20251202", "react-dom": "19.0.0-rc-ea190351-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