@matthamlin/react-client 0.0.0-experimental-2a911f27-20250623 → 0.0.0-experimental-12eaef7e-20250623

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1165,11 +1165,10 @@
1165
1165
  }
1166
1166
  return null;
1167
1167
  }
1168
- function ReactPromise(status, value, reason, response) {
1168
+ function ReactPromise(status, value, reason) {
1169
1169
  this.status = status;
1170
1170
  this.value = value;
1171
1171
  this.reason = reason;
1172
- this._response = response;
1173
1172
  this._children = [];
1174
1173
  this._debugInfo = null;
1175
1174
  }
@@ -1192,11 +1191,11 @@
1192
1191
  throw chunk.reason;
1193
1192
  }
1194
1193
  }
1195
- function createPendingChunk(response) {
1196
- return new ReactPromise("pending", null, null, response);
1194
+ function createPendingChunk() {
1195
+ return new ReactPromise("pending", null, null);
1197
1196
  }
1198
1197
  function createErrorChunk(response, error) {
1199
- return new ReactPromise("rejected", null, error, response);
1198
+ return new ReactPromise("rejected", null, error);
1200
1199
  }
1201
1200
  function wakeChunk(listeners, value) {
1202
1201
  for (var i = 0; i < listeners.length; i++) (0, listeners[i])(value);
@@ -1242,25 +1241,26 @@
1242
1241
  (done ? '{"done":true,"value":' : '{"done":false,"value":') +
1243
1242
  value +
1244
1243
  "}",
1245
- null,
1246
1244
  response
1247
1245
  );
1248
1246
  }
1249
- function resolveIteratorResultChunk(chunk, value, done) {
1247
+ function resolveIteratorResultChunk(response, chunk, value, done) {
1250
1248
  resolveModelChunk(
1249
+ response,
1251
1250
  chunk,
1252
1251
  (done ? '{"done":true,"value":' : '{"done":false,"value":') +
1253
1252
  value +
1254
1253
  "}"
1255
1254
  );
1256
1255
  }
1257
- function resolveModelChunk(chunk, value) {
1256
+ function resolveModelChunk(response, chunk, value) {
1258
1257
  if ("pending" !== chunk.status) chunk.reason.enqueueModel(value);
1259
1258
  else {
1260
1259
  var resolveListeners = chunk.value,
1261
1260
  rejectListeners = chunk.reason;
1262
1261
  chunk.status = "resolved_model";
1263
1262
  chunk.value = value;
1263
+ chunk.reason = response;
1264
1264
  null !== resolveListeners &&
1265
1265
  (initializeModelChunk(chunk),
1266
1266
  wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners));
@@ -1281,13 +1281,14 @@
1281
1281
  var prevHandler = initializingHandler,
1282
1282
  prevChunk = initializingChunk;
1283
1283
  initializingHandler = null;
1284
- var resolvedModel = chunk.value;
1284
+ var resolvedModel = chunk.value,
1285
+ response = chunk.reason;
1285
1286
  chunk.status = "blocked";
1286
1287
  chunk.value = null;
1287
1288
  chunk.reason = null;
1288
1289
  initializingChunk = chunk;
1289
1290
  try {
1290
- var value = JSON.parse(resolvedModel, chunk._response._fromJSON),
1291
+ var value = JSON.parse(resolvedModel, response._fromJSON),
1291
1292
  resolveListeners = chunk.value;
1292
1293
  null !== resolveListeners &&
1293
1294
  ((chunk.value = null),
@@ -1384,7 +1385,7 @@
1384
1385
  chunk ||
1385
1386
  ((chunk = response._closed
1386
1387
  ? createErrorChunk(response, response._closedReason)
1387
- : createPendingChunk(response)),
1388
+ : createPendingChunk()),
1388
1389
  chunks.set(id, chunk));
1389
1390
  return chunk;
1390
1391
  }
@@ -1921,38 +1922,35 @@
1921
1922
  this._fromJSON = createFromJSONCallback(this);
1922
1923
  }
1923
1924
  function resolveDebugHalt(response, id) {
1924
- var chunks = response._chunks,
1925
- chunk = chunks.get(id);
1926
- chunk || chunks.set(id, (chunk = createPendingChunk(response)));
1925
+ response = response._chunks;
1926
+ var chunk = response.get(id);
1927
+ chunk || response.set(id, (chunk = createPendingChunk()));
1927
1928
  if ("pending" === chunk.status || "blocked" === chunk.status)
1928
- (response = chunk),
1929
- (response.status = "halted"),
1930
- (response.value = null),
1931
- (response.reason = null);
1929
+ (id = chunk),
1930
+ (id.status = "halted"),
1931
+ (id.value = null),
1932
+ (id.reason = null);
1932
1933
  }
1933
1934
  function resolveModel(response, id, model) {
1934
1935
  var chunks = response._chunks,
1935
1936
  chunk = chunks.get(id);
1936
1937
  chunk
1937
- ? resolveModelChunk(chunk, model)
1938
- : chunks.set(
1939
- id,
1940
- new ReactPromise("resolved_model", model, null, response)
1941
- );
1938
+ ? resolveModelChunk(response, chunk, model)
1939
+ : chunks.set(id, new ReactPromise("resolved_model", model, response));
1942
1940
  }
1943
1941
  function resolveText(response, id, text) {
1944
- var chunks = response._chunks,
1945
- chunk = chunks.get(id);
1942
+ response = response._chunks;
1943
+ var chunk = response.get(id);
1946
1944
  chunk && "pending" !== chunk.status
1947
1945
  ? chunk.reason.enqueueValue(text)
1948
- : chunks.set(id, new ReactPromise("fulfilled", text, null, response));
1946
+ : response.set(id, new ReactPromise("fulfilled", text, null));
1949
1947
  }
1950
1948
  function resolveBuffer(response, id, buffer) {
1951
- var chunks = response._chunks,
1952
- chunk = chunks.get(id);
1949
+ response = response._chunks;
1950
+ var chunk = response.get(id);
1953
1951
  chunk && "pending" !== chunk.status
1954
1952
  ? chunk.reason.enqueueValue(buffer)
1955
- : chunks.set(id, new ReactPromise("fulfilled", buffer, null, response));
1953
+ : response.set(id, new ReactPromise("fulfilled", buffer, null));
1956
1954
  }
1957
1955
  function resolveModule(response, id, model) {
1958
1956
  var chunks = response._chunks,
@@ -1967,14 +1965,14 @@
1967
1965
  response._nonce,
1968
1966
  model
1969
1967
  );
1970
- if ((model = preloadModule(clientReference))) {
1968
+ if ((response = preloadModule(clientReference))) {
1971
1969
  if (chunk) {
1972
1970
  var blockedChunk = chunk;
1973
1971
  blockedChunk.status = "blocked";
1974
1972
  } else
1975
- (blockedChunk = new ReactPromise("blocked", null, null, response)),
1973
+ (blockedChunk = new ReactPromise("blocked", null, null)),
1976
1974
  chunks.set(id, blockedChunk);
1977
- model.then(
1975
+ response.then(
1978
1976
  function () {
1979
1977
  return resolveModuleChunk(blockedChunk, clientReference);
1980
1978
  },
@@ -1987,28 +1985,20 @@
1987
1985
  ? resolveModuleChunk(chunk, clientReference)
1988
1986
  : chunks.set(
1989
1987
  id,
1990
- new ReactPromise(
1991
- "resolved_module",
1992
- clientReference,
1993
- null,
1994
- response
1995
- )
1988
+ new ReactPromise("resolved_module", clientReference, null)
1996
1989
  );
1997
1990
  }
1998
1991
  function resolveStream(response, id, stream, controller) {
1999
- var chunks = response._chunks,
2000
- chunk = chunks.get(id);
2001
- chunk
2002
- ? "pending" === chunk.status &&
2003
- ((response = chunk.value),
2004
- (chunk.status = "fulfilled"),
2005
- (chunk.value = stream),
2006
- (chunk.reason = controller),
2007
- null !== response && wakeChunk(response, chunk.value))
2008
- : chunks.set(
2009
- id,
2010
- new ReactPromise("fulfilled", stream, controller, response)
2011
- );
1992
+ var chunks = response._chunks;
1993
+ response = chunks.get(id);
1994
+ response
1995
+ ? "pending" === response.status &&
1996
+ ((id = response.value),
1997
+ (response.status = "fulfilled"),
1998
+ (response.value = stream),
1999
+ (response.reason = controller),
2000
+ null !== id && wakeChunk(id, response.value))
2001
+ : chunks.set(id, new ReactPromise("fulfilled", stream, controller));
2012
2002
  }
2013
2003
  function startReadableStream(response, id, type) {
2014
2004
  var controller = null;
@@ -2029,12 +2019,7 @@
2029
2019
  },
2030
2020
  enqueueModel: function (json) {
2031
2021
  if (null === previousBlockedChunk) {
2032
- var chunk = new ReactPromise(
2033
- "resolved_model",
2034
- json,
2035
- null,
2036
- response
2037
- );
2022
+ var chunk = new ReactPromise("resolved_model", json, response);
2038
2023
  initializeModelChunk(chunk);
2039
2024
  "fulfilled" === chunk.status
2040
2025
  ? controller.enqueue(chunk.value)
@@ -2049,7 +2034,7 @@
2049
2034
  (previousBlockedChunk = chunk));
2050
2035
  } else {
2051
2036
  chunk = previousBlockedChunk;
2052
- var _chunk3 = createPendingChunk(response);
2037
+ var _chunk3 = createPendingChunk();
2053
2038
  _chunk3.then(
2054
2039
  function (v) {
2055
2040
  return controller.enqueue(v);
@@ -2061,7 +2046,7 @@
2061
2046
  previousBlockedChunk = _chunk3;
2062
2047
  chunk.then(function () {
2063
2048
  previousBlockedChunk === _chunk3 && (previousBlockedChunk = null);
2064
- resolveModelChunk(_chunk3, json);
2049
+ resolveModelChunk(response, _chunk3, json);
2065
2050
  });
2066
2051
  }
2067
2052
  },
@@ -2112,10 +2097,9 @@
2112
2097
  return new ReactPromise(
2113
2098
  "fulfilled",
2114
2099
  { done: !0, value: void 0 },
2115
- null,
2116
- response
2100
+ null
2117
2101
  );
2118
- buffer[nextReadIndex] = createPendingChunk(response);
2102
+ buffer[nextReadIndex] = createPendingChunk();
2119
2103
  }
2120
2104
  return buffer[nextReadIndex++];
2121
2105
  });
@@ -2130,8 +2114,7 @@
2130
2114
  buffer[nextWriteIndex] = new ReactPromise(
2131
2115
  "fulfilled",
2132
2116
  { done: !1, value: value },
2133
- null,
2134
- response
2117
+ null
2135
2118
  );
2136
2119
  else {
2137
2120
  var chunk = buffer[nextWriteIndex],
@@ -2155,7 +2138,12 @@
2155
2138
  value,
2156
2139
  !1
2157
2140
  ))
2158
- : resolveIteratorResultChunk(buffer[nextWriteIndex], value, !1);
2141
+ : resolveIteratorResultChunk(
2142
+ response,
2143
+ buffer[nextWriteIndex],
2144
+ value,
2145
+ !1
2146
+ );
2159
2147
  nextWriteIndex++;
2160
2148
  },
2161
2149
  close: function (value) {
@@ -2166,9 +2154,15 @@
2166
2154
  value,
2167
2155
  !0
2168
2156
  ))
2169
- : resolveIteratorResultChunk(buffer[nextWriteIndex], value, !0);
2157
+ : resolveIteratorResultChunk(
2158
+ response,
2159
+ buffer[nextWriteIndex],
2160
+ value,
2161
+ !0
2162
+ );
2170
2163
  for (nextWriteIndex++; nextWriteIndex < buffer.length; )
2171
2164
  resolveIteratorResultChunk(
2165
+ response,
2172
2166
  buffer[nextWriteIndex++],
2173
2167
  '"$undefined"',
2174
2168
  !0
@@ -2178,7 +2172,7 @@
2178
2172
  closed = !0;
2179
2173
  for (
2180
2174
  nextWriteIndex === buffer.length &&
2181
- (buffer[nextWriteIndex] = createPendingChunk(response));
2175
+ (buffer[nextWriteIndex] = createPendingChunk());
2182
2176
  nextWriteIndex < buffer.length;
2183
2177
 
2184
2178
  )
@@ -2554,9 +2548,9 @@
2554
2548
  var chunks = response._chunks,
2555
2549
  chunk = chunks.get(id);
2556
2550
  chunk
2557
- ? (resolveModelChunk(chunk, model),
2551
+ ? (resolveModelChunk(response, chunk, model),
2558
2552
  "resolved_model" === chunk.status && initializeModelChunk(chunk))
2559
- : ((chunk = new ReactPromise("resolved_model", model, null, response)),
2553
+ : ((chunk = new ReactPromise("resolved_model", model, response)),
2560
2554
  chunks.set(id, chunk),
2561
2555
  initializeModelChunk(chunk));
2562
2556
  "fulfilled" === chunk.status
@@ -3005,7 +2999,7 @@
3005
2999
  response._timeOrigin = +row - performance.timeOrigin;
3006
3000
  break;
3007
3001
  case 68:
3008
- tag = new ReactPromise("resolved_model", row, null, response);
3002
+ tag = new ReactPromise("resolved_model", row, response);
3009
3003
  initializeModelChunk(tag);
3010
3004
  "fulfilled" === tag.status
3011
3005
  ? resolveDebugInfo(response, id, tag.value)
@@ -3136,7 +3130,7 @@
3136
3130
  (key._debugInfo = [stack]),
3137
3131
  (value = createLazyChunkWrapper(key)))
3138
3132
  : 0 < stack.deps &&
3139
- ((key = new ReactPromise("blocked", null, null, response)),
3133
+ ((key = new ReactPromise("blocked", null, null)),
3140
3134
  (stack.value = value),
3141
3135
  (stack.chunk = key),
3142
3136
  (value = Object.freeze.bind(Object, value.props)),
@@ -3358,7 +3352,7 @@
3358
3352
  version: rendererVersion,
3359
3353
  rendererPackageName: rendererPackageName,
3360
3354
  currentDispatcherRef: ReactSharedInternals,
3361
- reconcilerVersion: "19.2.0-experimental-2a911f27-20250623",
3355
+ reconcilerVersion: "19.2.0-experimental-12eaef7e-20250623",
3362
3356
  getCurrentComponentInfo: getCurrentOwnerInDEV
3363
3357
  };
3364
3358
  if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
@@ -557,11 +557,10 @@ module.exports = function ($$$config) {
557
557
  registerBoundServerReference(action, id, bound, encodeFormAction);
558
558
  return action;
559
559
  }
560
- function ReactPromise(status, value, reason, response) {
560
+ function ReactPromise(status, value, reason) {
561
561
  this.status = status;
562
562
  this.value = value;
563
563
  this.reason = reason;
564
- this._response = response;
565
564
  }
566
565
  function readChunk(chunk) {
567
566
  switch (chunk.status) {
@@ -582,11 +581,8 @@ module.exports = function ($$$config) {
582
581
  throw chunk.reason;
583
582
  }
584
583
  }
585
- function createPendingChunk(response) {
586
- return new ReactPromise("pending", null, null, response);
587
- }
588
584
  function createErrorChunk(response, error) {
589
- return new ReactPromise("rejected", null, error, response);
585
+ return new ReactPromise("rejected", null, error);
590
586
  }
591
587
  function wakeChunk(listeners, value) {
592
588
  for (var i = 0; i < listeners.length; i++) (0, listeners[i])(value);
@@ -630,23 +626,24 @@ module.exports = function ($$$config) {
630
626
  return new ReactPromise(
631
627
  "resolved_model",
632
628
  (done ? '{"done":true,"value":' : '{"done":false,"value":') + value + "}",
633
- null,
634
629
  response
635
630
  );
636
631
  }
637
- function resolveIteratorResultChunk(chunk, value, done) {
632
+ function resolveIteratorResultChunk(response, chunk, value, done) {
638
633
  resolveModelChunk(
634
+ response,
639
635
  chunk,
640
636
  (done ? '{"done":true,"value":' : '{"done":false,"value":') + value + "}"
641
637
  );
642
638
  }
643
- function resolveModelChunk(chunk, value) {
639
+ function resolveModelChunk(response, chunk, value) {
644
640
  if ("pending" !== chunk.status) chunk.reason.enqueueModel(value);
645
641
  else {
646
642
  var resolveListeners = chunk.value,
647
643
  rejectListeners = chunk.reason;
648
644
  chunk.status = "resolved_model";
649
645
  chunk.value = value;
646
+ chunk.reason = response;
650
647
  null !== resolveListeners &&
651
648
  (initializeModelChunk(chunk),
652
649
  wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners));
@@ -666,12 +663,13 @@ module.exports = function ($$$config) {
666
663
  function initializeModelChunk(chunk) {
667
664
  var prevHandler = initializingHandler;
668
665
  initializingHandler = null;
669
- var resolvedModel = chunk.value;
666
+ var resolvedModel = chunk.value,
667
+ response = chunk.reason;
670
668
  chunk.status = "blocked";
671
669
  chunk.value = null;
672
670
  chunk.reason = null;
673
671
  try {
674
- var value = JSON.parse(resolvedModel, chunk._response._fromJSON),
672
+ var value = JSON.parse(resolvedModel, response._fromJSON),
675
673
  resolveListeners = chunk.value;
676
674
  null !== resolveListeners &&
677
675
  ((chunk.value = null),
@@ -718,7 +716,7 @@ module.exports = function ($$$config) {
718
716
  chunk ||
719
717
  ((chunk = response._closed
720
718
  ? createErrorChunk(response, response._closedReason)
721
- : createPendingChunk(response)),
719
+ : new ReactPromise("pending", null, null)),
722
720
  chunks.set(id, chunk));
723
721
  return chunk;
724
722
  }
@@ -1085,11 +1083,11 @@ module.exports = function ($$$config) {
1085
1083
  this._fromJSON = createFromJSONCallback(this);
1086
1084
  }
1087
1085
  function resolveBuffer(response, id, buffer) {
1088
- var chunks = response._chunks,
1089
- chunk = chunks.get(id);
1086
+ response = response._chunks;
1087
+ var chunk = response.get(id);
1090
1088
  chunk && "pending" !== chunk.status
1091
1089
  ? chunk.reason.enqueueValue(buffer)
1092
- : chunks.set(id, new ReactPromise("fulfilled", buffer, null, response));
1090
+ : response.set(id, new ReactPromise("fulfilled", buffer, null));
1093
1091
  }
1094
1092
  function resolveModule(response, id, model) {
1095
1093
  var chunks = response._chunks,
@@ -1104,14 +1102,14 @@ module.exports = function ($$$config) {
1104
1102
  response._nonce,
1105
1103
  model
1106
1104
  );
1107
- if ((model = preloadModule(clientReference))) {
1105
+ if ((response = preloadModule(clientReference))) {
1108
1106
  if (chunk) {
1109
1107
  var blockedChunk = chunk;
1110
1108
  blockedChunk.status = "blocked";
1111
1109
  } else
1112
- (blockedChunk = new ReactPromise("blocked", null, null, response)),
1110
+ (blockedChunk = new ReactPromise("blocked", null, null)),
1113
1111
  chunks.set(id, blockedChunk);
1114
- model.then(
1112
+ response.then(
1115
1113
  function () {
1116
1114
  return resolveModuleChunk(blockedChunk, clientReference);
1117
1115
  },
@@ -1124,23 +1122,20 @@ module.exports = function ($$$config) {
1124
1122
  ? resolveModuleChunk(chunk, clientReference)
1125
1123
  : chunks.set(
1126
1124
  id,
1127
- new ReactPromise("resolved_module", clientReference, null, response)
1125
+ new ReactPromise("resolved_module", clientReference, null)
1128
1126
  );
1129
1127
  }
1130
1128
  function resolveStream(response, id, stream, controller) {
1131
- var chunks = response._chunks,
1132
- chunk = chunks.get(id);
1133
- chunk
1134
- ? "pending" === chunk.status &&
1135
- ((response = chunk.value),
1136
- (chunk.status = "fulfilled"),
1137
- (chunk.value = stream),
1138
- (chunk.reason = controller),
1139
- null !== response && wakeChunk(response, chunk.value))
1140
- : chunks.set(
1141
- id,
1142
- new ReactPromise("fulfilled", stream, controller, response)
1143
- );
1129
+ var chunks = response._chunks;
1130
+ response = chunks.get(id);
1131
+ response
1132
+ ? "pending" === response.status &&
1133
+ ((id = response.value),
1134
+ (response.status = "fulfilled"),
1135
+ (response.value = stream),
1136
+ (response.reason = controller),
1137
+ null !== id && wakeChunk(id, response.value))
1138
+ : chunks.set(id, new ReactPromise("fulfilled", stream, controller));
1144
1139
  }
1145
1140
  function startReadableStream(response, id, type) {
1146
1141
  var controller = null;
@@ -1161,7 +1156,7 @@ module.exports = function ($$$config) {
1161
1156
  },
1162
1157
  enqueueModel: function (json) {
1163
1158
  if (null === previousBlockedChunk) {
1164
- var chunk = new ReactPromise("resolved_model", json, null, response);
1159
+ var chunk = new ReactPromise("resolved_model", json, response);
1165
1160
  initializeModelChunk(chunk);
1166
1161
  "fulfilled" === chunk.status
1167
1162
  ? controller.enqueue(chunk.value)
@@ -1176,7 +1171,7 @@ module.exports = function ($$$config) {
1176
1171
  (previousBlockedChunk = chunk));
1177
1172
  } else {
1178
1173
  chunk = previousBlockedChunk;
1179
- var chunk$30 = createPendingChunk(response);
1174
+ var chunk$30 = new ReactPromise("pending", null, null);
1180
1175
  chunk$30.then(
1181
1176
  function (v) {
1182
1177
  return controller.enqueue(v);
@@ -1188,7 +1183,7 @@ module.exports = function ($$$config) {
1188
1183
  previousBlockedChunk = chunk$30;
1189
1184
  chunk.then(function () {
1190
1185
  previousBlockedChunk === chunk$30 && (previousBlockedChunk = null);
1191
- resolveModelChunk(chunk$30, json);
1186
+ resolveModelChunk(response, chunk$30, json);
1192
1187
  });
1193
1188
  }
1194
1189
  },
@@ -1236,10 +1231,9 @@ module.exports = function ($$$config) {
1236
1231
  return new ReactPromise(
1237
1232
  "fulfilled",
1238
1233
  { done: !0, value: void 0 },
1239
- null,
1240
- response
1234
+ null
1241
1235
  );
1242
- buffer[nextReadIndex] = createPendingChunk(response);
1236
+ buffer[nextReadIndex] = new ReactPromise("pending", null, null);
1243
1237
  }
1244
1238
  return buffer[nextReadIndex++];
1245
1239
  });
@@ -1254,8 +1248,7 @@ module.exports = function ($$$config) {
1254
1248
  buffer[nextWriteIndex] = new ReactPromise(
1255
1249
  "fulfilled",
1256
1250
  { done: !1, value: value },
1257
- null,
1258
- response
1251
+ null
1259
1252
  );
1260
1253
  else {
1261
1254
  var chunk = buffer[nextWriteIndex],
@@ -1275,7 +1268,12 @@ module.exports = function ($$$config) {
1275
1268
  value,
1276
1269
  !1
1277
1270
  ))
1278
- : resolveIteratorResultChunk(buffer[nextWriteIndex], value, !1);
1271
+ : resolveIteratorResultChunk(
1272
+ response,
1273
+ buffer[nextWriteIndex],
1274
+ value,
1275
+ !1
1276
+ );
1279
1277
  nextWriteIndex++;
1280
1278
  },
1281
1279
  close: function (value) {
@@ -1286,9 +1284,15 @@ module.exports = function ($$$config) {
1286
1284
  value,
1287
1285
  !0
1288
1286
  ))
1289
- : resolveIteratorResultChunk(buffer[nextWriteIndex], value, !0);
1287
+ : resolveIteratorResultChunk(
1288
+ response,
1289
+ buffer[nextWriteIndex],
1290
+ value,
1291
+ !0
1292
+ );
1290
1293
  for (nextWriteIndex++; nextWriteIndex < buffer.length; )
1291
1294
  resolveIteratorResultChunk(
1295
+ response,
1292
1296
  buffer[nextWriteIndex++],
1293
1297
  '"$undefined"',
1294
1298
  !0
@@ -1298,7 +1302,7 @@ module.exports = function ($$$config) {
1298
1302
  closed = !0;
1299
1303
  for (
1300
1304
  nextWriteIndex === buffer.length &&
1301
- (buffer[nextWriteIndex] = createPendingChunk(response));
1305
+ (buffer[nextWriteIndex] = new ReactPromise("pending", null, null));
1302
1306
  nextWriteIndex < buffer.length;
1303
1307
 
1304
1308
  )
@@ -1424,10 +1428,10 @@ module.exports = function ($$$config) {
1424
1428
  : tag.set(id, createErrorChunk(response, row));
1425
1429
  break;
1426
1430
  case 84:
1427
- tag = response._chunks;
1428
- (chunk = tag.get(id)) && "pending" !== chunk.status
1429
- ? chunk.reason.enqueueValue(row)
1430
- : tag.set(id, new ReactPromise("fulfilled", row, null, response));
1431
+ response = response._chunks;
1432
+ (tag = response.get(id)) && "pending" !== tag.status
1433
+ ? tag.reason.enqueueValue(row)
1434
+ : response.set(id, new ReactPromise("fulfilled", row, null));
1431
1435
  break;
1432
1436
  case 78:
1433
1437
  case 68:
@@ -1463,11 +1467,8 @@ module.exports = function ($$$config) {
1463
1467
  default:
1464
1468
  (tag = response._chunks),
1465
1469
  (chunk = tag.get(id))
1466
- ? resolveModelChunk(chunk, row)
1467
- : tag.set(
1468
- id,
1469
- new ReactPromise("resolved_model", row, null, response)
1470
- );
1470
+ ? resolveModelChunk(response, chunk, row)
1471
+ : tag.set(id, new ReactPromise("resolved_model", row, response));
1471
1472
  }
1472
1473
  }
1473
1474
  function createFromJSONCallback(response) {
@@ -1494,12 +1495,7 @@ module.exports = function ($$$config) {
1494
1495
  (key = createErrorChunk(response, value.value)),
1495
1496
  (key = createLazyChunkWrapper(key));
1496
1497
  else if (0 < value.deps) {
1497
- var blockedChunk = new ReactPromise(
1498
- "blocked",
1499
- null,
1500
- null,
1501
- response
1502
- );
1498
+ var blockedChunk = new ReactPromise("blocked", null, null);
1503
1499
  value.value = key;
1504
1500
  value.chunk = blockedChunk;
1505
1501
  key = createLazyChunkWrapper(blockedChunk);
@@ -1604,7 +1600,7 @@ module.exports = function ($$$config) {
1604
1600
  version: rendererVersion,
1605
1601
  rendererPackageName: rendererPackageName,
1606
1602
  currentDispatcherRef: ReactSharedInternals,
1607
- reconcilerVersion: "19.2.0-experimental-2a911f27-20250623",
1603
+ reconcilerVersion: "19.2.0-experimental-12eaef7e-20250623",
1608
1604
  getCurrentComponentInfo: getCurrentOwnerInDEV
1609
1605
  };
1610
1606
  if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@matthamlin/react-client",
3
3
  "description": "React package for consuming streaming models.",
4
- "version": "0.0.0-experimental-2a911f27-20250623",
4
+ "version": "0.0.0-experimental-12eaef7e-20250623",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -23,6 +23,6 @@
23
23
  "node": ">=0.10.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "react": "0.0.0-experimental-2a911f27-20250623"
26
+ "react": "0.0.0-experimental-12eaef7e-20250623"
27
27
  }
28
28
  }