@matthamlin/react-client 0.0.0-experimental-93f16680-20250605 → 0.0.0-experimental-428ab820-20250609

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.
@@ -2122,66 +2122,46 @@
2122
2122
  : rootTask
2123
2123
  : null;
2124
2124
  }
2125
- function initializeFakeTask(response, debugInfo, childEnvironmentName) {
2125
+ function initializeFakeTask(response, debugInfo) {
2126
2126
  if (!supportsCreateTask || null == debugInfo.stack) return null;
2127
+ var cachedEntry = debugInfo.debugTask;
2128
+ if (void 0 !== cachedEntry) return cachedEntry;
2127
2129
  var useEnclosingLine = void 0 === debugInfo.key,
2128
2130
  stack = debugInfo.stack,
2129
2131
  env =
2130
2132
  null == debugInfo.env ? response._rootEnvironmentName : debugInfo.env;
2131
- if (env !== childEnvironmentName)
2132
- return (
2133
- (debugInfo =
2134
- null == debugInfo.owner
2135
- ? null
2136
- : initializeFakeTask(response, debugInfo.owner, env)),
2137
- buildFakeTask(
2138
- response,
2139
- debugInfo,
2140
- stack,
2141
- '"use ' + childEnvironmentName.toLowerCase() + '"',
2142
- env,
2143
- useEnclosingLine
2144
- )
2145
- );
2146
- childEnvironmentName = debugInfo.debugTask;
2147
- if (void 0 !== childEnvironmentName) return childEnvironmentName;
2148
- childEnvironmentName =
2133
+ cachedEntry =
2134
+ null == debugInfo.owner || null == debugInfo.owner.env
2135
+ ? response._rootEnvironmentName
2136
+ : debugInfo.owner.env;
2137
+ var ownerTask =
2149
2138
  null == debugInfo.owner
2150
2139
  ? null
2151
- : initializeFakeTask(response, debugInfo.owner, env);
2152
- return (debugInfo.debugTask = buildFakeTask(
2153
- response,
2154
- childEnvironmentName,
2155
- stack,
2156
- void 0 !== debugInfo.key
2157
- ? "<" + (debugInfo.name || "...") + ">"
2158
- : void 0 !== debugInfo.name
2159
- ? debugInfo.name || "unknown"
2160
- : "await " + (debugInfo.awaited.name || "unknown"),
2161
- env,
2162
- useEnclosingLine
2163
- ));
2164
- }
2165
- function buildFakeTask(
2166
- response,
2167
- ownerTask,
2168
- stack,
2169
- taskName,
2170
- env,
2171
- useEnclosingLine
2172
- ) {
2173
- taskName = console.createTask.bind(console, taskName);
2174
- stack = buildFakeCallStack(
2140
+ : initializeFakeTask(response, debugInfo.owner);
2141
+ env =
2142
+ env !== cachedEntry
2143
+ ? '"use ' + env.toLowerCase() + '"'
2144
+ : void 0 !== debugInfo.key
2145
+ ? "<" + (debugInfo.name || "...") + ">"
2146
+ : void 0 !== debugInfo.name
2147
+ ? debugInfo.name || "unknown"
2148
+ : "await " + (debugInfo.awaited.name || "unknown");
2149
+ env = console.createTask.bind(console, env);
2150
+ useEnclosingLine = buildFakeCallStack(
2175
2151
  response,
2176
2152
  stack,
2177
- env,
2153
+ cachedEntry,
2178
2154
  useEnclosingLine,
2179
- taskName
2155
+ env
2180
2156
  );
2181
- return null === ownerTask
2182
- ? ((response = getRootTask(response, env)),
2183
- null != response ? response.run(stack) : stack())
2184
- : ownerTask.run(stack);
2157
+ null === ownerTask
2158
+ ? ((response = getRootTask(response, cachedEntry)),
2159
+ (response =
2160
+ null != response
2161
+ ? response.run(useEnclosingLine)
2162
+ : useEnclosingLine()))
2163
+ : (response = ownerTask.run(useEnclosingLine));
2164
+ return (debugInfo.debugTask = response);
2185
2165
  }
2186
2166
  function fakeJSXCallSite() {
2187
2167
  return Error("react-stack-top-frame");
@@ -2198,18 +2178,15 @@
2198
2178
  initializeFakeStack(response, debugInfo.owner));
2199
2179
  }
2200
2180
  function resolveDebugInfo(response, id, debugInfo) {
2201
- var env =
2202
- void 0 === debugInfo.env
2203
- ? response._rootEnvironmentName
2204
- : debugInfo.env;
2205
- void 0 !== debugInfo.stack &&
2206
- initializeFakeTask(response, debugInfo, env);
2207
- null === debugInfo.owner && null != response._debugRootOwner
2208
- ? ((env = debugInfo),
2209
- (env.owner = response._debugRootOwner),
2210
- (env.debugStack = response._debugRootStack))
2211
- : void 0 !== debugInfo.stack &&
2212
- initializeFakeStack(response, debugInfo);
2181
+ void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo);
2182
+ if (null == debugInfo.owner && null != response._debugRootOwner) {
2183
+ var _componentInfoOrAsyncInfo = debugInfo;
2184
+ _componentInfoOrAsyncInfo.owner = response._debugRootOwner;
2185
+ _componentInfoOrAsyncInfo.stack = null;
2186
+ _componentInfoOrAsyncInfo.debugStack = response._debugRootStack;
2187
+ _componentInfoOrAsyncInfo.debugTask = response._debugRootTask;
2188
+ } else
2189
+ void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo);
2213
2190
  "number" === typeof debugInfo.time &&
2214
2191
  (debugInfo = { time: debugInfo.time + response._timeOrigin });
2215
2192
  response = getChunk(response, id);
@@ -2289,23 +2266,20 @@
2289
2266
  }
2290
2267
  }
2291
2268
  function initializeIOInfo(response, ioInfo) {
2292
- var env =
2293
- void 0 === ioInfo.env ? response._rootEnvironmentName : ioInfo.env;
2294
2269
  void 0 !== ioInfo.stack &&
2295
- (initializeFakeTask(response, ioInfo, env),
2270
+ (initializeFakeTask(response, ioInfo),
2296
2271
  initializeFakeStack(response, ioInfo));
2297
2272
  ioInfo.start += response._timeOrigin;
2298
2273
  ioInfo.end += response._timeOrigin;
2299
- env = ioInfo.start;
2300
- var endTime = ioInfo.end;
2274
+ var startTime = ioInfo.start,
2275
+ endTime = ioInfo.end;
2301
2276
  if (supportsUserTiming && 0 <= endTime) {
2302
2277
  var name = ioInfo.name,
2303
- env$jscomp$0 = ioInfo.env;
2278
+ env = ioInfo.env;
2304
2279
  response =
2305
- env$jscomp$0 === response._rootEnvironmentName ||
2306
- void 0 === env$jscomp$0
2280
+ env === response._rootEnvironmentName || void 0 === env
2307
2281
  ? name
2308
- : name + " [" + env$jscomp$0 + "]";
2282
+ : name + " [" + env + "]";
2309
2283
  ioInfo = ioInfo.debugTask;
2310
2284
  name = getIOColor(name);
2311
2285
  ioInfo
@@ -2313,7 +2287,7 @@
2313
2287
  console.timeStamp.bind(
2314
2288
  console,
2315
2289
  response,
2316
- 0 > env ? 0 : env,
2290
+ 0 > startTime ? 0 : startTime,
2317
2291
  endTime,
2318
2292
  "Server Requests \u269b",
2319
2293
  void 0,
@@ -2322,7 +2296,7 @@
2322
2296
  )
2323
2297
  : console.timeStamp(
2324
2298
  response,
2325
- 0 > env ? 0 : env,
2299
+ 0 > startTime ? 0 : startTime,
2326
2300
  endTime,
2327
2301
  "Server Requests \u269b",
2328
2302
  void 0,
@@ -2825,10 +2799,7 @@
2825
2799
  !1,
2826
2800
  type
2827
2801
  )),
2828
- (type =
2829
- null === key
2830
- ? null
2831
- : initializeFakeTask(response, key, validated)),
2802
+ (type = null === key ? null : initializeFakeTask(response, key)),
2832
2803
  null === type
2833
2804
  ? ((type = response._debugRootTask),
2834
2805
  (normalizedStackTrace =
@@ -3016,7 +2987,7 @@
3016
2987
  bindToConsole(methodName, args, env)
3017
2988
  );
3018
2989
  if (null != owner) {
3019
- var task = initializeFakeTask(response, owner, env);
2990
+ var task = initializeFakeTask(response, owner);
3020
2991
  initializeFakeStack(response, owner);
3021
2992
  if (null !== task) {
3022
2993
  task.run(callStack);
@@ -3071,7 +3042,7 @@
3071
3042
  version: rendererVersion,
3072
3043
  rendererPackageName: rendererPackageName,
3073
3044
  currentDispatcherRef: ReactSharedInternals,
3074
- reconcilerVersion: "19.2.0-experimental-93f16680-20250605",
3045
+ reconcilerVersion: "19.2.0-experimental-428ab820-20250609",
3075
3046
  getCurrentComponentInfo: getCurrentOwnerInDEV
3076
3047
  };
3077
3048
  if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
@@ -1601,7 +1601,7 @@ module.exports = function ($$$config) {
1601
1601
  version: rendererVersion,
1602
1602
  rendererPackageName: rendererPackageName,
1603
1603
  currentDispatcherRef: ReactSharedInternals,
1604
- reconcilerVersion: "19.2.0-experimental-93f16680-20250605",
1604
+ reconcilerVersion: "19.2.0-experimental-428ab820-20250609",
1605
1605
  getCurrentComponentInfo: getCurrentOwnerInDEV
1606
1606
  };
1607
1607
  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-93f16680-20250605",
4
+ "version": "0.0.0-experimental-428ab820-20250609",
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-93f16680-20250605"
26
+ "react": "0.0.0-experimental-428ab820-20250609"
27
27
  }
28
28
  }