react-server-dom-webpack 19.2.0-canary-526dd340-20250602 → 19.2.0-canary-37054867-20250604

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.
@@ -1855,6 +1855,7 @@
1855
1855
  response,
1856
1856
  errorInfo.stack,
1857
1857
  env,
1858
+ !1,
1858
1859
  Error.bind(
1859
1860
  null,
1860
1861
  errorInfo.message ||
@@ -2008,10 +2009,20 @@
2008
2009
  }
2009
2010
  return fn;
2010
2011
  }
2011
- function buildFakeCallStack(response, stack, environmentName, innerCall) {
2012
+ function buildFakeCallStack(
2013
+ response,
2014
+ stack,
2015
+ environmentName,
2016
+ useEnclosingLine,
2017
+ innerCall
2018
+ ) {
2012
2019
  for (var i = 0; i < stack.length; i++) {
2013
2020
  var frame = stack[i],
2014
- frameKey = frame.join("-") + "-" + environmentName,
2021
+ frameKey =
2022
+ frame.join("-") +
2023
+ "-" +
2024
+ environmentName +
2025
+ (useEnclosingLine ? "-e" : "-n"),
2015
2026
  fn = fakeFunctionCache.get(frameKey);
2016
2027
  if (void 0 === fn) {
2017
2028
  fn = frame[0];
@@ -2030,8 +2041,8 @@
2030
2041
  findSourceMapURL,
2031
2042
  line,
2032
2043
  col,
2033
- enclosingLine,
2034
- frame,
2044
+ useEnclosingLine ? line : enclosingLine,
2045
+ useEnclosingLine ? col : frame,
2035
2046
  environmentName
2036
2047
  );
2037
2048
  fakeFunctionCache.set(frameKey, fn);
@@ -2054,7 +2065,8 @@
2054
2065
  }
2055
2066
  function initializeFakeTask(response, debugInfo, childEnvironmentName) {
2056
2067
  if (!supportsCreateTask || null == debugInfo.stack) return null;
2057
- var stack = debugInfo.stack,
2068
+ var useEnclosingLine = void 0 === debugInfo.key,
2069
+ stack = debugInfo.stack,
2058
2070
  env =
2059
2071
  null == debugInfo.env ? response._rootEnvironmentName : debugInfo.env;
2060
2072
  if (env !== childEnvironmentName)
@@ -2068,7 +2080,8 @@
2068
2080
  debugInfo,
2069
2081
  stack,
2070
2082
  '"use ' + childEnvironmentName.toLowerCase() + '"',
2071
- env
2083
+ env,
2084
+ useEnclosingLine
2072
2085
  )
2073
2086
  );
2074
2087
  childEnvironmentName = debugInfo.debugTask;
@@ -2081,13 +2094,31 @@
2081
2094
  response,
2082
2095
  childEnvironmentName,
2083
2096
  stack,
2084
- "<" + (debugInfo.name || "...") + ">",
2085
- env
2097
+ void 0 !== debugInfo.key
2098
+ ? "<" + (debugInfo.name || "...") + ">"
2099
+ : void 0 !== debugInfo.name
2100
+ ? debugInfo.name || "unknown"
2101
+ : "await " + (debugInfo.awaited.name || "unknown"),
2102
+ env,
2103
+ useEnclosingLine
2086
2104
  ));
2087
2105
  }
2088
- function buildFakeTask(response, ownerTask, stack, taskName, env) {
2106
+ function buildFakeTask(
2107
+ response,
2108
+ ownerTask,
2109
+ stack,
2110
+ taskName,
2111
+ env,
2112
+ useEnclosingLine
2113
+ ) {
2089
2114
  taskName = console.createTask.bind(console, taskName);
2090
- stack = buildFakeCallStack(response, stack, env, taskName);
2115
+ stack = buildFakeCallStack(
2116
+ response,
2117
+ stack,
2118
+ env,
2119
+ useEnclosingLine,
2120
+ taskName
2121
+ );
2091
2122
  return null === ownerTask
2092
2123
  ? ((response = getRootTask(response, env)),
2093
2124
  null != response ? response.run(stack) : stack())
@@ -2319,6 +2350,7 @@
2319
2350
  function () {}
2320
2351
  );
2321
2352
  break;
2353
+ case 74:
2322
2354
  case 87:
2323
2355
  resolveConsoleEntry(response, row);
2324
2356
  break;
@@ -2396,7 +2428,13 @@
2396
2428
  supportsCreateTask &&
2397
2429
  null !== stack &&
2398
2430
  ((type = console.createTask.bind(console, getTaskName(type))),
2399
- (stack = buildFakeCallStack(response, stack, validated, type)),
2431
+ (stack = buildFakeCallStack(
2432
+ response,
2433
+ stack,
2434
+ validated,
2435
+ !1,
2436
+ type
2437
+ )),
2400
2438
  (type =
2401
2439
  null === key
2402
2440
  ? null
@@ -2649,6 +2687,7 @@
2649
2687
  response,
2650
2688
  stack,
2651
2689
  environmentName,
2690
+ !1,
2652
2691
  fakeJSXCallSite
2653
2692
  )();
2654
2693
  }
@@ -2713,6 +2752,7 @@
2713
2752
  response,
2714
2753
  stackTrace,
2715
2754
  env,
2755
+ !1,
2716
2756
  JSCompiler_inline_result
2717
2757
  );
2718
2758
  if (null != owner) {
@@ -2746,10 +2786,10 @@
2746
2786
  return hook.checkDCE ? !0 : !1;
2747
2787
  })({
2748
2788
  bundleType: 1,
2749
- version: "19.2.0-canary-526dd340-20250602",
2789
+ version: "19.2.0-canary-37054867-20250604",
2750
2790
  rendererPackageName: "react-server-dom-webpack",
2751
2791
  currentDispatcherRef: ReactSharedInternals,
2752
- reconcilerVersion: "19.2.0-canary-526dd340-20250602",
2792
+ reconcilerVersion: "19.2.0-canary-37054867-20250604",
2753
2793
  getCurrentComponentInfo: function () {
2754
2794
  return currentOwnerInDEV;
2755
2795
  }
@@ -1431,6 +1431,7 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) {
1431
1431
  break;
1432
1432
  case 78:
1433
1433
  case 68:
1434
+ case 74:
1434
1435
  case 87:
1435
1436
  throw Error(
1436
1437
  "Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client."
@@ -2075,6 +2075,7 @@
2075
2075
  response,
2076
2076
  errorInfo.stack,
2077
2077
  env,
2078
+ !1,
2078
2079
  Error.bind(
2079
2080
  null,
2080
2081
  errorInfo.message ||
@@ -2228,10 +2229,20 @@
2228
2229
  }
2229
2230
  return fn;
2230
2231
  }
2231
- function buildFakeCallStack(response, stack, environmentName, innerCall) {
2232
+ function buildFakeCallStack(
2233
+ response,
2234
+ stack,
2235
+ environmentName,
2236
+ useEnclosingLine,
2237
+ innerCall
2238
+ ) {
2232
2239
  for (var i = 0; i < stack.length; i++) {
2233
2240
  var frame = stack[i],
2234
- frameKey = frame.join("-") + "-" + environmentName,
2241
+ frameKey =
2242
+ frame.join("-") +
2243
+ "-" +
2244
+ environmentName +
2245
+ (useEnclosingLine ? "-e" : "-n"),
2235
2246
  fn = fakeFunctionCache.get(frameKey);
2236
2247
  if (void 0 === fn) {
2237
2248
  fn = frame[0];
@@ -2250,8 +2261,8 @@
2250
2261
  findSourceMapURL,
2251
2262
  line,
2252
2263
  col,
2253
- enclosingLine,
2254
- frame,
2264
+ useEnclosingLine ? line : enclosingLine,
2265
+ useEnclosingLine ? col : frame,
2255
2266
  environmentName
2256
2267
  );
2257
2268
  fakeFunctionCache.set(frameKey, fn);
@@ -2274,7 +2285,8 @@
2274
2285
  }
2275
2286
  function initializeFakeTask(response, debugInfo, childEnvironmentName) {
2276
2287
  if (!supportsCreateTask || null == debugInfo.stack) return null;
2277
- var stack = debugInfo.stack,
2288
+ var useEnclosingLine = void 0 === debugInfo.key,
2289
+ stack = debugInfo.stack,
2278
2290
  env =
2279
2291
  null == debugInfo.env ? response._rootEnvironmentName : debugInfo.env;
2280
2292
  if (env !== childEnvironmentName)
@@ -2288,7 +2300,8 @@
2288
2300
  debugInfo,
2289
2301
  stack,
2290
2302
  '"use ' + childEnvironmentName.toLowerCase() + '"',
2291
- env
2303
+ env,
2304
+ useEnclosingLine
2292
2305
  )
2293
2306
  );
2294
2307
  childEnvironmentName = debugInfo.debugTask;
@@ -2301,13 +2314,31 @@
2301
2314
  response,
2302
2315
  childEnvironmentName,
2303
2316
  stack,
2304
- "<" + (debugInfo.name || "...") + ">",
2305
- env
2317
+ void 0 !== debugInfo.key
2318
+ ? "<" + (debugInfo.name || "...") + ">"
2319
+ : void 0 !== debugInfo.name
2320
+ ? debugInfo.name || "unknown"
2321
+ : "await " + (debugInfo.awaited.name || "unknown"),
2322
+ env,
2323
+ useEnclosingLine
2306
2324
  ));
2307
2325
  }
2308
- function buildFakeTask(response, ownerTask, stack, taskName, env) {
2326
+ function buildFakeTask(
2327
+ response,
2328
+ ownerTask,
2329
+ stack,
2330
+ taskName,
2331
+ env,
2332
+ useEnclosingLine
2333
+ ) {
2309
2334
  taskName = console.createTask.bind(console, taskName);
2310
- stack = buildFakeCallStack(response, stack, env, taskName);
2335
+ stack = buildFakeCallStack(
2336
+ response,
2337
+ stack,
2338
+ env,
2339
+ useEnclosingLine,
2340
+ taskName
2341
+ );
2311
2342
  return null === ownerTask
2312
2343
  ? ((response = getRootTask(response, env)),
2313
2344
  null != response ? response.run(stack) : stack())
@@ -2539,6 +2570,7 @@
2539
2570
  function () {}
2540
2571
  );
2541
2572
  break;
2573
+ case 74:
2542
2574
  case 87:
2543
2575
  resolveConsoleEntry(response, row);
2544
2576
  break;
@@ -2616,7 +2648,13 @@
2616
2648
  supportsCreateTask &&
2617
2649
  null !== stack &&
2618
2650
  ((type = console.createTask.bind(console, getTaskName(type))),
2619
- (stack = buildFakeCallStack(response, stack, validated, type)),
2651
+ (stack = buildFakeCallStack(
2652
+ response,
2653
+ stack,
2654
+ validated,
2655
+ !1,
2656
+ type
2657
+ )),
2620
2658
  (type =
2621
2659
  null === key
2622
2660
  ? null
@@ -2869,6 +2907,7 @@
2869
2907
  response,
2870
2908
  stack,
2871
2909
  environmentName,
2910
+ !1,
2872
2911
  fakeJSXCallSite
2873
2912
  )();
2874
2913
  }
@@ -2933,6 +2972,7 @@
2933
2972
  response,
2934
2973
  stackTrace,
2935
2974
  env,
2975
+ !1,
2936
2976
  JSCompiler_inline_result
2937
2977
  );
2938
2978
  if (null != owner) {
@@ -1612,6 +1612,7 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) {
1612
1612
  break;
1613
1613
  case 78:
1614
1614
  case 68:
1615
+ case 74:
1615
1616
  case 87:
1616
1617
  throw Error(
1617
1618
  "Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client."
@@ -2075,6 +2075,7 @@
2075
2075
  response,
2076
2076
  errorInfo.stack,
2077
2077
  env,
2078
+ !1,
2078
2079
  Error.bind(
2079
2080
  null,
2080
2081
  errorInfo.message ||
@@ -2228,10 +2229,20 @@
2228
2229
  }
2229
2230
  return fn;
2230
2231
  }
2231
- function buildFakeCallStack(response, stack, environmentName, innerCall) {
2232
+ function buildFakeCallStack(
2233
+ response,
2234
+ stack,
2235
+ environmentName,
2236
+ useEnclosingLine,
2237
+ innerCall
2238
+ ) {
2232
2239
  for (var i = 0; i < stack.length; i++) {
2233
2240
  var frame = stack[i],
2234
- frameKey = frame.join("-") + "-" + environmentName,
2241
+ frameKey =
2242
+ frame.join("-") +
2243
+ "-" +
2244
+ environmentName +
2245
+ (useEnclosingLine ? "-e" : "-n"),
2235
2246
  fn = fakeFunctionCache.get(frameKey);
2236
2247
  if (void 0 === fn) {
2237
2248
  fn = frame[0];
@@ -2250,8 +2261,8 @@
2250
2261
  findSourceMapURL,
2251
2262
  line,
2252
2263
  col,
2253
- enclosingLine,
2254
- frame,
2264
+ useEnclosingLine ? line : enclosingLine,
2265
+ useEnclosingLine ? col : frame,
2255
2266
  environmentName
2256
2267
  );
2257
2268
  fakeFunctionCache.set(frameKey, fn);
@@ -2274,7 +2285,8 @@
2274
2285
  }
2275
2286
  function initializeFakeTask(response, debugInfo, childEnvironmentName) {
2276
2287
  if (!supportsCreateTask || null == debugInfo.stack) return null;
2277
- var stack = debugInfo.stack,
2288
+ var useEnclosingLine = void 0 === debugInfo.key,
2289
+ stack = debugInfo.stack,
2278
2290
  env =
2279
2291
  null == debugInfo.env ? response._rootEnvironmentName : debugInfo.env;
2280
2292
  if (env !== childEnvironmentName)
@@ -2288,7 +2300,8 @@
2288
2300
  debugInfo,
2289
2301
  stack,
2290
2302
  '"use ' + childEnvironmentName.toLowerCase() + '"',
2291
- env
2303
+ env,
2304
+ useEnclosingLine
2292
2305
  )
2293
2306
  );
2294
2307
  childEnvironmentName = debugInfo.debugTask;
@@ -2301,13 +2314,31 @@
2301
2314
  response,
2302
2315
  childEnvironmentName,
2303
2316
  stack,
2304
- "<" + (debugInfo.name || "...") + ">",
2305
- env
2317
+ void 0 !== debugInfo.key
2318
+ ? "<" + (debugInfo.name || "...") + ">"
2319
+ : void 0 !== debugInfo.name
2320
+ ? debugInfo.name || "unknown"
2321
+ : "await " + (debugInfo.awaited.name || "unknown"),
2322
+ env,
2323
+ useEnclosingLine
2306
2324
  ));
2307
2325
  }
2308
- function buildFakeTask(response, ownerTask, stack, taskName, env) {
2326
+ function buildFakeTask(
2327
+ response,
2328
+ ownerTask,
2329
+ stack,
2330
+ taskName,
2331
+ env,
2332
+ useEnclosingLine
2333
+ ) {
2309
2334
  taskName = console.createTask.bind(console, taskName);
2310
- stack = buildFakeCallStack(response, stack, env, taskName);
2335
+ stack = buildFakeCallStack(
2336
+ response,
2337
+ stack,
2338
+ env,
2339
+ useEnclosingLine,
2340
+ taskName
2341
+ );
2311
2342
  return null === ownerTask
2312
2343
  ? ((response = getRootTask(response, env)),
2313
2344
  null != response ? response.run(stack) : stack())
@@ -2539,6 +2570,7 @@
2539
2570
  function () {}
2540
2571
  );
2541
2572
  break;
2573
+ case 74:
2542
2574
  case 87:
2543
2575
  resolveConsoleEntry(response, row);
2544
2576
  break;
@@ -2616,7 +2648,13 @@
2616
2648
  supportsCreateTask &&
2617
2649
  null !== stack &&
2618
2650
  ((type = console.createTask.bind(console, getTaskName(type))),
2619
- (stack = buildFakeCallStack(response, stack, validated, type)),
2651
+ (stack = buildFakeCallStack(
2652
+ response,
2653
+ stack,
2654
+ validated,
2655
+ !1,
2656
+ type
2657
+ )),
2620
2658
  (type =
2621
2659
  null === key
2622
2660
  ? null
@@ -2757,6 +2795,7 @@
2757
2795
  response,
2758
2796
  stack,
2759
2797
  environmentName,
2798
+ !1,
2760
2799
  fakeJSXCallSite
2761
2800
  )();
2762
2801
  }
@@ -2821,6 +2860,7 @@
2821
2860
  response,
2822
2861
  stackTrace,
2823
2862
  env,
2863
+ !1,
2824
2864
  JSCompiler_inline_result
2825
2865
  );
2826
2866
  if (null != owner) {
@@ -1615,6 +1615,7 @@ function processFullStringRow(response, id, tag, row) {
1615
1615
  break;
1616
1616
  case 78:
1617
1617
  case 68:
1618
+ case 74:
1618
1619
  case 87:
1619
1620
  throw Error(
1620
1621
  "Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client."
@@ -2037,6 +2037,7 @@
2037
2037
  response,
2038
2038
  errorInfo.stack,
2039
2039
  env,
2040
+ !1,
2040
2041
  Error.bind(
2041
2042
  null,
2042
2043
  errorInfo.message ||
@@ -2190,10 +2191,20 @@
2190
2191
  }
2191
2192
  return fn;
2192
2193
  }
2193
- function buildFakeCallStack(response, stack, environmentName, innerCall) {
2194
+ function buildFakeCallStack(
2195
+ response,
2196
+ stack,
2197
+ environmentName,
2198
+ useEnclosingLine,
2199
+ innerCall
2200
+ ) {
2194
2201
  for (var i = 0; i < stack.length; i++) {
2195
2202
  var frame = stack[i],
2196
- frameKey = frame.join("-") + "-" + environmentName,
2203
+ frameKey =
2204
+ frame.join("-") +
2205
+ "-" +
2206
+ environmentName +
2207
+ (useEnclosingLine ? "-e" : "-n"),
2197
2208
  fn = fakeFunctionCache.get(frameKey);
2198
2209
  if (void 0 === fn) {
2199
2210
  fn = frame[0];
@@ -2212,8 +2223,8 @@
2212
2223
  findSourceMapURL,
2213
2224
  line,
2214
2225
  col,
2215
- enclosingLine,
2216
- frame,
2226
+ useEnclosingLine ? line : enclosingLine,
2227
+ useEnclosingLine ? col : frame,
2217
2228
  environmentName
2218
2229
  );
2219
2230
  fakeFunctionCache.set(frameKey, fn);
@@ -2236,7 +2247,8 @@
2236
2247
  }
2237
2248
  function initializeFakeTask(response, debugInfo, childEnvironmentName) {
2238
2249
  if (!supportsCreateTask || null == debugInfo.stack) return null;
2239
- var stack = debugInfo.stack,
2250
+ var useEnclosingLine = void 0 === debugInfo.key,
2251
+ stack = debugInfo.stack,
2240
2252
  env =
2241
2253
  null == debugInfo.env ? response._rootEnvironmentName : debugInfo.env;
2242
2254
  if (env !== childEnvironmentName)
@@ -2250,7 +2262,8 @@
2250
2262
  debugInfo,
2251
2263
  stack,
2252
2264
  '"use ' + childEnvironmentName.toLowerCase() + '"',
2253
- env
2265
+ env,
2266
+ useEnclosingLine
2254
2267
  )
2255
2268
  );
2256
2269
  childEnvironmentName = debugInfo.debugTask;
@@ -2263,13 +2276,31 @@
2263
2276
  response,
2264
2277
  childEnvironmentName,
2265
2278
  stack,
2266
- "<" + (debugInfo.name || "...") + ">",
2267
- env
2279
+ void 0 !== debugInfo.key
2280
+ ? "<" + (debugInfo.name || "...") + ">"
2281
+ : void 0 !== debugInfo.name
2282
+ ? debugInfo.name || "unknown"
2283
+ : "await " + (debugInfo.awaited.name || "unknown"),
2284
+ env,
2285
+ useEnclosingLine
2268
2286
  ));
2269
2287
  }
2270
- function buildFakeTask(response, ownerTask, stack, taskName, env) {
2288
+ function buildFakeTask(
2289
+ response,
2290
+ ownerTask,
2291
+ stack,
2292
+ taskName,
2293
+ env,
2294
+ useEnclosingLine
2295
+ ) {
2271
2296
  taskName = console.createTask.bind(console, taskName);
2272
- stack = buildFakeCallStack(response, stack, env, taskName);
2297
+ stack = buildFakeCallStack(
2298
+ response,
2299
+ stack,
2300
+ env,
2301
+ useEnclosingLine,
2302
+ taskName
2303
+ );
2273
2304
  return null === ownerTask
2274
2305
  ? ((response = getRootTask(response, env)),
2275
2306
  null != response ? response.run(stack) : stack())
@@ -2501,6 +2532,7 @@
2501
2532
  function () {}
2502
2533
  );
2503
2534
  break;
2535
+ case 74:
2504
2536
  case 87:
2505
2537
  resolveConsoleEntry(response, row);
2506
2538
  break;
@@ -2578,7 +2610,13 @@
2578
2610
  supportsCreateTask &&
2579
2611
  null !== stack &&
2580
2612
  ((type = console.createTask.bind(console, getTaskName(type))),
2581
- (stack = buildFakeCallStack(response, stack, validated, type)),
2613
+ (stack = buildFakeCallStack(
2614
+ response,
2615
+ stack,
2616
+ validated,
2617
+ !1,
2618
+ type
2619
+ )),
2582
2620
  (type =
2583
2621
  null === key
2584
2622
  ? null
@@ -2719,6 +2757,7 @@
2719
2757
  response,
2720
2758
  stack,
2721
2759
  environmentName,
2760
+ !1,
2722
2761
  fakeJSXCallSite
2723
2762
  )();
2724
2763
  }
@@ -2783,6 +2822,7 @@
2783
2822
  response,
2784
2823
  stackTrace,
2785
2824
  env,
2825
+ !1,
2786
2826
  JSCompiler_inline_result
2787
2827
  );
2788
2828
  if (null != owner) {
@@ -1580,6 +1580,7 @@ function processFullStringRow(response, id, tag, row) {
1580
1580
  break;
1581
1581
  case 78:
1582
1582
  case 68:
1583
+ case 74:
1583
1584
  case 87:
1584
1585
  throw Error(
1585
1586
  "Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client."