react-server-dom-webpack 19.0.0-rc-ab2135c7-20240724 → 19.0.0-rc-14a4699f-20240725

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.
@@ -472,8 +472,12 @@
472
472
  "\n " + objKind + "\n " + objectOrArray)
473
473
  : "\n " + objKind;
474
474
  }
475
- function isNotExternal(stackFrame) {
476
- return !externalRegExp.test(stackFrame[1]);
475
+ function defaultFilterStackFrame(filename) {
476
+ return (
477
+ "" !== filename &&
478
+ !filename.startsWith("node:") &&
479
+ !filename.includes("node_modules")
480
+ );
477
481
  }
478
482
  function getCurrentStackInDEV() {
479
483
  return "";
@@ -488,8 +492,9 @@
488
492
  onError,
489
493
  identifierPrefix,
490
494
  onPostpone,
495
+ temporaryReferences,
491
496
  environmentName,
492
- temporaryReferences
497
+ filterStackFrame
493
498
  ) {
494
499
  if (
495
500
  null !== ReactSharedInternalsServer.A &&
@@ -538,6 +543,10 @@
538
543
  return environmentName;
539
544
  }
540
545
  : environmentName;
546
+ this.filterStackFrame =
547
+ void 0 === filterStackFrame
548
+ ? defaultFilterStackFrame
549
+ : filterStackFrame;
541
550
  this.didWarnForKey = null;
542
551
  model = createTask(this, model, null, !1, abortSet, null);
543
552
  pingedTasks.push(model);
@@ -765,7 +774,7 @@
765
774
  lazyType._debugInfo = wakeable._debugInfo || [];
766
775
  return lazyType;
767
776
  }
768
- function callWithDebugContextInDEV(task, callback, arg) {
777
+ function callWithDebugContextInDEV(request, task, callback, arg) {
769
778
  currentOwner = { env: task.environmentName, owner: task.debugOwner };
770
779
  try {
771
780
  return callback(arg);
@@ -794,12 +803,7 @@
794
803
  task.environmentName = componentEnv;
795
804
  }
796
805
  prepareToUseHooksForComponent(prevThenableState, componentDebugInfo);
797
- props = callComponentInDEV(
798
- Component,
799
- props,
800
- componentDebugInfo,
801
- task.debugTask
802
- );
806
+ props = callComponentInDEV(Component, props, componentDebugInfo);
803
807
  if (1 === request.status) throw AbortSigil;
804
808
  if (
805
809
  "object" === typeof props &&
@@ -831,7 +835,7 @@
831
835
  Object.prototype.toString.call(Component) &&
832
836
  "[object Generator]" ===
833
837
  Object.prototype.toString.call(iterableChild)) ||
834
- callWithDebugContextInDEV(task, function () {
838
+ callWithDebugContextInDEV(request, task, function () {
835
839
  console.error(
836
840
  "Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
837
841
  );
@@ -854,7 +858,7 @@
854
858
  Object.prototype.toString.call(Component) &&
855
859
  "[object AsyncGenerator]" ===
856
860
  Object.prototype.toString.call(_iterableChild)) ||
857
- callWithDebugContextInDEV(task, function () {
861
+ callWithDebugContextInDEV(request, task, function () {
858
862
  console.error(
859
863
  "Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
860
864
  );
@@ -870,10 +874,10 @@
870
874
  ? (task.keyPath =
871
875
  null === prevThenableState ? key : prevThenableState + "," + key)
872
876
  : null === prevThenableState && (task.implicitSlot = !0);
873
- request = renderModelDestructive(request, task, emptyRoot, "", props);
877
+ key = renderModelDestructive(request, task, emptyRoot, "", props);
874
878
  task.keyPath = prevThenableState;
875
879
  task.implicitSlot = componentDebugID;
876
- return request;
880
+ return key;
877
881
  }
878
882
  function renderFragment(request, task, children) {
879
883
  for (var i = 0; i < children.length; i++) {
@@ -1032,7 +1036,7 @@
1032
1036
  "object" !== typeof originalValue ||
1033
1037
  originalValue === value ||
1034
1038
  originalValue instanceof Date ||
1035
- callWithDebugContextInDEV(task, function () {
1039
+ callWithDebugContextInDEV(request, task, function () {
1036
1040
  "Object" !== objectName(originalValue)
1037
1041
  ? "string" === typeof jsxChildrenParents.get(parent)
1038
1042
  ? console.error(
@@ -1457,10 +1461,11 @@
1457
1461
  elementReference = value[ASYNC_ITERATOR];
1458
1462
  if ("function" === typeof elementReference)
1459
1463
  return renderAsyncFragment(request, task, value, elementReference);
1460
- request = getPrototypeOf(value);
1464
+ elementReference = getPrototypeOf(value);
1461
1465
  if (
1462
- request !== ObjectPrototype &&
1463
- (null === request || null !== getPrototypeOf(request))
1466
+ elementReference !== ObjectPrototype &&
1467
+ (null === elementReference ||
1468
+ null !== getPrototypeOf(elementReference))
1464
1469
  )
1465
1470
  throw Error(
1466
1471
  "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
@@ -1478,7 +1483,7 @@
1478
1483
  )
1479
1484
  return { name: value.name, env: value.env, owner: value.owner };
1480
1485
  if ("Object" !== objectName(value))
1481
- callWithDebugContextInDEV(task, function () {
1486
+ callWithDebugContextInDEV(request, task, function () {
1482
1487
  console.error(
1483
1488
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1484
1489
  objectName(value),
@@ -1486,7 +1491,7 @@
1486
1491
  );
1487
1492
  });
1488
1493
  else if (!isSimpleObject(value))
1489
- callWithDebugContextInDEV(task, function () {
1494
+ callWithDebugContextInDEV(request, task, function () {
1490
1495
  console.error(
1491
1496
  "Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
1492
1497
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1495,7 +1500,7 @@
1495
1500
  else if (Object.getOwnPropertySymbols) {
1496
1501
  var symbols = Object.getOwnPropertySymbols(value);
1497
1502
  0 < symbols.length &&
1498
- callWithDebugContextInDEV(task, function () {
1503
+ callWithDebugContextInDEV(request, task, function () {
1499
1504
  console.error(
1500
1505
  "Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
1501
1506
  symbols[0].description,
@@ -1596,7 +1601,7 @@
1596
1601
  var onError = request.onError;
1597
1602
  var errorDigest =
1598
1603
  null !== task
1599
- ? callWithDebugContextInDEV(task, onError, error)
1604
+ ? callWithDebugContextInDEV(request, task, onError, error)
1600
1605
  : onError(error);
1601
1606
  } finally {
1602
1607
  currentRequest = prevRequest;
@@ -1620,6 +1625,7 @@
1620
1625
  try {
1621
1626
  if (error instanceof Error) {
1622
1627
  var message = String(error.message);
1628
+ var filterStackFrame = request.filterStackFrame;
1623
1629
  a: {
1624
1630
  var previousPrepare = Error.prepareStackTrace;
1625
1631
  Error.prepareStackTrace = prepareStackTrace;
@@ -1657,16 +1663,21 @@
1657
1663
  ]);
1658
1664
  }
1659
1665
  }
1660
- var stack$jscomp$0 = stack.filter(isNotExternal);
1661
- for (frames = 0; frames < stack$jscomp$0.length; frames++) {
1662
- var callsite = stack$jscomp$0[frames],
1666
+ for (frames = 0; frames < stack.length; frames++) {
1667
+ var callsite = stack[frames],
1668
+ functionName = callsite[0],
1663
1669
  url = callsite[1];
1664
1670
  if (url.startsWith("rsc://React/")) {
1665
- var suffixIdx = url.lastIndexOf("?");
1666
- -1 < suffixIdx && (callsite[1] = url.slice(12, suffixIdx));
1671
+ var envIdx = url.indexOf("/", 12),
1672
+ suffixIdx = url.lastIndexOf("?");
1673
+ -1 < envIdx &&
1674
+ -1 < suffixIdx &&
1675
+ (url = callsite[1] = url.slice(envIdx + 1, suffixIdx));
1667
1676
  }
1677
+ filterStackFrame(url, functionName) ||
1678
+ (stack.splice(frames, 1), frames--);
1668
1679
  }
1669
- var stack$jscomp$1 = stack$jscomp$0;
1680
+ var stack$jscomp$0 = stack;
1670
1681
  var errorEnv = error.environmentName;
1671
1682
  "string" === typeof errorEnv && (env = errorEnv);
1672
1683
  } else
@@ -1674,14 +1685,16 @@
1674
1685
  "object" === typeof error && null !== error
1675
1686
  ? describeObjectForErrorMessage(error)
1676
1687
  : String(error)),
1677
- (stack$jscomp$1 = []);
1688
+ (stack$jscomp$0 = []);
1678
1689
  } catch (x) {
1679
- message = "An error occurred but serializing the error message failed.";
1690
+ (message =
1691
+ "An error occurred but serializing the error message failed."),
1692
+ (stack$jscomp$0 = []);
1680
1693
  }
1681
1694
  digest = {
1682
1695
  digest: digest,
1683
1696
  message: message,
1684
- stack: stack$jscomp$1,
1697
+ stack: stack$jscomp$0,
1685
1698
  env: env
1686
1699
  };
1687
1700
  id = id.toString(16) + ":E" + stringify(digest) + "\n";
@@ -3124,7 +3137,7 @@
3124
3137
  }
3125
3138
  };
3126
3139
  var frameRegExp =
3127
- /^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/,
3140
+ /^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
3128
3141
  TEMPORARY_REFERENCE_TAG = Symbol.for("react.temporary.reference"),
3129
3142
  proxyHandlers = {
3130
3143
  get: function (target, name) {
@@ -3307,7 +3320,6 @@
3307
3320
  jsxPropsParents = new WeakMap(),
3308
3321
  jsxChildrenParents = new WeakMap(),
3309
3322
  CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
3310
- externalRegExp = /\/node_modules\/|^node:|^$/,
3311
3323
  ObjectPrototype = Object.prototype,
3312
3324
  stringify = JSON.stringify,
3313
3325
  AbortSigil = {},
@@ -3445,8 +3457,9 @@
3445
3457
  options ? options.onError : void 0,
3446
3458
  options ? options.identifierPrefix : void 0,
3447
3459
  options ? options.onPostpone : void 0,
3460
+ options ? options.temporaryReferences : void 0,
3448
3461
  options ? options.environmentName : void 0,
3449
- options ? options.temporaryReferences : void 0
3462
+ options ? options.filterStackFrame : void 0
3450
3463
  );
3451
3464
  if (options && options.signal) {
3452
3465
  var signal = options.signal;
@@ -713,7 +713,6 @@ function RequestInstance(
713
713
  onError,
714
714
  identifierPrefix,
715
715
  onPostpone,
716
- environmentName,
717
716
  temporaryReferences
718
717
  ) {
719
718
  if (
@@ -722,9 +721,9 @@ function RequestInstance(
722
721
  )
723
722
  throw Error("Currently React only supports one RSC renderer at a time.");
724
723
  ReactSharedInternalsServer.A = DefaultAsyncDispatcher;
725
- var abortSet = new Set();
726
- environmentName = [];
727
- var hints = new Set();
724
+ var abortSet = new Set(),
725
+ pingedTasks = [],
726
+ hints = new Set();
728
727
  this.status = 0;
729
728
  this.flushScheduled = !1;
730
729
  this.destination = this.fatalError = null;
@@ -734,7 +733,7 @@ function RequestInstance(
734
733
  this.hints = hints;
735
734
  this.abortListeners = new Set();
736
735
  this.abortableTasks = abortSet;
737
- this.pingedTasks = environmentName;
736
+ this.pingedTasks = pingedTasks;
738
737
  this.completedImportChunks = [];
739
738
  this.completedHintChunks = [];
740
739
  this.completedRegularChunks = [];
@@ -750,7 +749,7 @@ function RequestInstance(
750
749
  this.onError = void 0 === onError ? defaultErrorHandler : onError;
751
750
  this.onPostpone = void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
752
751
  model = createTask(this, model, null, !1, abortSet);
753
- environmentName.push(model);
752
+ pingedTasks.push(model);
754
753
  }
755
754
  var currentRequest = null;
756
755
  function serializeThenable(request, task, thenable) {
@@ -2655,7 +2654,6 @@ exports.renderToReadableStream = function (model, webpackMap, options) {
2655
2654
  options ? options.onError : void 0,
2656
2655
  options ? options.identifierPrefix : void 0,
2657
2656
  options ? options.onPostpone : void 0,
2658
- options ? options.environmentName : void 0,
2659
2657
  options ? options.temporaryReferences : void 0
2660
2658
  );
2661
2659
  if (options && options.signal) {
@@ -468,8 +468,12 @@
468
468
  "\n " + objKind + "\n " + objectOrArray)
469
469
  : "\n " + objKind;
470
470
  }
471
- function isNotExternal(stackFrame) {
472
- return !externalRegExp.test(stackFrame[1]);
471
+ function defaultFilterStackFrame(filename) {
472
+ return (
473
+ "" !== filename &&
474
+ !filename.startsWith("node:") &&
475
+ !filename.includes("node_modules")
476
+ );
473
477
  }
474
478
  function getCurrentStackInDEV() {
475
479
  return "";
@@ -484,8 +488,9 @@
484
488
  onError,
485
489
  identifierPrefix,
486
490
  onPostpone,
491
+ temporaryReferences,
487
492
  environmentName,
488
- temporaryReferences
493
+ filterStackFrame
489
494
  ) {
490
495
  if (
491
496
  null !== ReactSharedInternalsServer.A &&
@@ -534,6 +539,10 @@
534
539
  return environmentName;
535
540
  }
536
541
  : environmentName;
542
+ this.filterStackFrame =
543
+ void 0 === filterStackFrame
544
+ ? defaultFilterStackFrame
545
+ : filterStackFrame;
537
546
  this.didWarnForKey = null;
538
547
  model = createTask(this, model, null, !1, abortSet, null);
539
548
  pingedTasks.push(model);
@@ -769,7 +778,7 @@
769
778
  lazyType._debugInfo = wakeable._debugInfo || [];
770
779
  return lazyType;
771
780
  }
772
- function callWithDebugContextInDEV(task, callback, arg) {
781
+ function callWithDebugContextInDEV(request, task, callback, arg) {
773
782
  currentOwner = { env: task.environmentName, owner: task.debugOwner };
774
783
  try {
775
784
  return callback(arg);
@@ -798,12 +807,15 @@
798
807
  task.environmentName = componentEnv;
799
808
  }
800
809
  prepareToUseHooksForComponent(prevThenableState, componentDebugInfo);
801
- props = callComponentInDEV(
802
- Component,
803
- props,
804
- componentDebugInfo,
805
- task.debugTask
806
- );
810
+ props = supportsComponentStorage
811
+ ? componentStorage.run(
812
+ componentDebugInfo,
813
+ callComponentInDEV,
814
+ Component,
815
+ props,
816
+ componentDebugInfo
817
+ )
818
+ : callComponentInDEV(Component, props, componentDebugInfo);
807
819
  if (1 === request.status) throw AbortSigil;
808
820
  if (
809
821
  "object" === typeof props &&
@@ -835,7 +847,7 @@
835
847
  Object.prototype.toString.call(Component) &&
836
848
  "[object Generator]" ===
837
849
  Object.prototype.toString.call(iterableChild)) ||
838
- callWithDebugContextInDEV(task, function () {
850
+ callWithDebugContextInDEV(request, task, function () {
839
851
  console.error(
840
852
  "Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
841
853
  );
@@ -858,7 +870,7 @@
858
870
  Object.prototype.toString.call(Component) &&
859
871
  "[object AsyncGenerator]" ===
860
872
  Object.prototype.toString.call(_iterableChild)) ||
861
- callWithDebugContextInDEV(task, function () {
873
+ callWithDebugContextInDEV(request, task, function () {
862
874
  console.error(
863
875
  "Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
864
876
  );
@@ -874,10 +886,10 @@
874
886
  ? (task.keyPath =
875
887
  null === prevThenableState ? key : prevThenableState + "," + key)
876
888
  : null === prevThenableState && (task.implicitSlot = !0);
877
- request = renderModelDestructive(request, task, emptyRoot, "", props);
889
+ key = renderModelDestructive(request, task, emptyRoot, "", props);
878
890
  task.keyPath = prevThenableState;
879
891
  task.implicitSlot = componentDebugID;
880
- return request;
892
+ return key;
881
893
  }
882
894
  function renderFragment(request, task, children) {
883
895
  for (var i = 0; i < children.length; i++) {
@@ -1036,7 +1048,7 @@
1036
1048
  "object" !== typeof originalValue ||
1037
1049
  originalValue === value ||
1038
1050
  originalValue instanceof Date ||
1039
- callWithDebugContextInDEV(task, function () {
1051
+ callWithDebugContextInDEV(request, task, function () {
1040
1052
  "Object" !== objectName(originalValue)
1041
1053
  ? "string" === typeof jsxChildrenParents.get(parent)
1042
1054
  ? console.error(
@@ -1461,10 +1473,11 @@
1461
1473
  elementReference = value[ASYNC_ITERATOR];
1462
1474
  if ("function" === typeof elementReference)
1463
1475
  return renderAsyncFragment(request, task, value, elementReference);
1464
- request = getPrototypeOf(value);
1476
+ elementReference = getPrototypeOf(value);
1465
1477
  if (
1466
- request !== ObjectPrototype &&
1467
- (null === request || null !== getPrototypeOf(request))
1478
+ elementReference !== ObjectPrototype &&
1479
+ (null === elementReference ||
1480
+ null !== getPrototypeOf(elementReference))
1468
1481
  )
1469
1482
  throw Error(
1470
1483
  "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
@@ -1482,7 +1495,7 @@
1482
1495
  )
1483
1496
  return { name: value.name, env: value.env, owner: value.owner };
1484
1497
  if ("Object" !== objectName(value))
1485
- callWithDebugContextInDEV(task, function () {
1498
+ callWithDebugContextInDEV(request, task, function () {
1486
1499
  console.error(
1487
1500
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1488
1501
  objectName(value),
@@ -1490,7 +1503,7 @@
1490
1503
  );
1491
1504
  });
1492
1505
  else if (!isSimpleObject(value))
1493
- callWithDebugContextInDEV(task, function () {
1506
+ callWithDebugContextInDEV(request, task, function () {
1494
1507
  console.error(
1495
1508
  "Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
1496
1509
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1499,7 +1512,7 @@
1499
1512
  else if (Object.getOwnPropertySymbols) {
1500
1513
  var symbols = Object.getOwnPropertySymbols(value);
1501
1514
  0 < symbols.length &&
1502
- callWithDebugContextInDEV(task, function () {
1515
+ callWithDebugContextInDEV(request, task, function () {
1503
1516
  console.error(
1504
1517
  "Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
1505
1518
  symbols[0].description,
@@ -1604,11 +1617,12 @@
1604
1617
  ? requestStorage.run(
1605
1618
  void 0,
1606
1619
  callWithDebugContextInDEV,
1620
+ request,
1607
1621
  task,
1608
1622
  onError,
1609
1623
  error
1610
1624
  )
1611
- : callWithDebugContextInDEV(task, onError, error)
1625
+ : callWithDebugContextInDEV(request, task, onError, error)
1612
1626
  : supportsRequestStorage
1613
1627
  ? requestStorage.run(void 0, onError, error)
1614
1628
  : onError(error);
@@ -1634,6 +1648,7 @@
1634
1648
  try {
1635
1649
  if (error instanceof Error) {
1636
1650
  var message = String(error.message);
1651
+ var filterStackFrame = request.filterStackFrame;
1637
1652
  a: {
1638
1653
  var previousPrepare = Error.prepareStackTrace;
1639
1654
  Error.prepareStackTrace = prepareStackTrace;
@@ -1671,16 +1686,21 @@
1671
1686
  ]);
1672
1687
  }
1673
1688
  }
1674
- var stack$jscomp$0 = stack.filter(isNotExternal);
1675
- for (frames = 0; frames < stack$jscomp$0.length; frames++) {
1676
- var callsite = stack$jscomp$0[frames],
1689
+ for (frames = 0; frames < stack.length; frames++) {
1690
+ var callsite = stack[frames],
1691
+ functionName = callsite[0],
1677
1692
  url = callsite[1];
1678
1693
  if (url.startsWith("rsc://React/")) {
1679
- var suffixIdx = url.lastIndexOf("?");
1680
- -1 < suffixIdx && (callsite[1] = url.slice(12, suffixIdx));
1694
+ var envIdx = url.indexOf("/", 12),
1695
+ suffixIdx = url.lastIndexOf("?");
1696
+ -1 < envIdx &&
1697
+ -1 < suffixIdx &&
1698
+ (url = callsite[1] = url.slice(envIdx + 1, suffixIdx));
1681
1699
  }
1700
+ filterStackFrame(url, functionName) ||
1701
+ (stack.splice(frames, 1), frames--);
1682
1702
  }
1683
- var stack$jscomp$1 = stack$jscomp$0;
1703
+ var stack$jscomp$0 = stack;
1684
1704
  var errorEnv = error.environmentName;
1685
1705
  "string" === typeof errorEnv && (env = errorEnv);
1686
1706
  } else
@@ -1688,14 +1708,16 @@
1688
1708
  "object" === typeof error && null !== error
1689
1709
  ? describeObjectForErrorMessage(error)
1690
1710
  : String(error)),
1691
- (stack$jscomp$1 = []);
1711
+ (stack$jscomp$0 = []);
1692
1712
  } catch (x) {
1693
- message = "An error occurred but serializing the error message failed.";
1713
+ (message =
1714
+ "An error occurred but serializing the error message failed."),
1715
+ (stack$jscomp$0 = []);
1694
1716
  }
1695
1717
  digest = {
1696
1718
  digest: digest,
1697
1719
  message: message,
1698
- stack: stack$jscomp$1,
1720
+ stack: stack$jscomp$0,
1699
1721
  env: env
1700
1722
  };
1701
1723
  id = id.toString(16) + ":E" + stringify(digest) + "\n";
@@ -3132,7 +3154,7 @@
3132
3154
  }
3133
3155
  };
3134
3156
  var frameRegExp =
3135
- /^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/,
3157
+ /^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
3136
3158
  supportsRequestStorage = "function" === typeof AsyncLocalStorage,
3137
3159
  requestStorage = supportsRequestStorage ? new AsyncLocalStorage() : null,
3138
3160
  supportsComponentStorage = supportsRequestStorage,
@@ -3302,14 +3324,7 @@
3302
3324
  ) {
3303
3325
  currentOwner = componentDebugInfo;
3304
3326
  try {
3305
- return supportsComponentStorage
3306
- ? componentStorage.run(
3307
- componentDebugInfo,
3308
- Component,
3309
- props,
3310
- void 0
3311
- )
3312
- : Component(props, void 0);
3327
+ return Component(props, void 0);
3313
3328
  } finally {
3314
3329
  currentOwner = null;
3315
3330
  }
@@ -3337,7 +3352,6 @@
3337
3352
  jsxPropsParents = new WeakMap(),
3338
3353
  jsxChildrenParents = new WeakMap(),
3339
3354
  CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
3340
- externalRegExp = /\/node_modules\/|^node:|^$/,
3341
3355
  ObjectPrototype = Object.prototype,
3342
3356
  stringify = JSON.stringify,
3343
3357
  AbortSigil = {},
@@ -3467,8 +3481,9 @@
3467
3481
  options ? options.onError : void 0,
3468
3482
  options ? options.identifierPrefix : void 0,
3469
3483
  options ? options.onPostpone : void 0,
3484
+ options ? options.temporaryReferences : void 0,
3470
3485
  options ? options.environmentName : void 0,
3471
- options ? options.temporaryReferences : void 0
3486
+ options ? options.filterStackFrame : void 0
3472
3487
  );
3473
3488
  if (options && options.signal) {
3474
3489
  var signal = options.signal;
@@ -710,7 +710,6 @@ function RequestInstance(
710
710
  onError,
711
711
  identifierPrefix,
712
712
  onPostpone,
713
- environmentName,
714
713
  temporaryReferences
715
714
  ) {
716
715
  if (
@@ -719,9 +718,9 @@ function RequestInstance(
719
718
  )
720
719
  throw Error("Currently React only supports one RSC renderer at a time.");
721
720
  ReactSharedInternalsServer.A = DefaultAsyncDispatcher;
722
- var abortSet = new Set();
723
- environmentName = [];
724
- var hints = new Set();
721
+ var abortSet = new Set(),
722
+ pingedTasks = [],
723
+ hints = new Set();
725
724
  this.status = 0;
726
725
  this.flushScheduled = !1;
727
726
  this.destination = this.fatalError = null;
@@ -731,7 +730,7 @@ function RequestInstance(
731
730
  this.hints = hints;
732
731
  this.abortListeners = new Set();
733
732
  this.abortableTasks = abortSet;
734
- this.pingedTasks = environmentName;
733
+ this.pingedTasks = pingedTasks;
735
734
  this.completedImportChunks = [];
736
735
  this.completedHintChunks = [];
737
736
  this.completedRegularChunks = [];
@@ -747,7 +746,7 @@ function RequestInstance(
747
746
  this.onError = void 0 === onError ? defaultErrorHandler : onError;
748
747
  this.onPostpone = void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
749
748
  model = createTask(this, model, null, !1, abortSet);
750
- environmentName.push(model);
749
+ pingedTasks.push(model);
751
750
  }
752
751
  var currentRequest = null;
753
752
  function resolveRequest() {
@@ -2657,7 +2656,6 @@ exports.renderToReadableStream = function (model, webpackMap, options) {
2657
2656
  options ? options.onError : void 0,
2658
2657
  options ? options.identifierPrefix : void 0,
2659
2658
  options ? options.onPostpone : void 0,
2660
- options ? options.environmentName : void 0,
2661
2659
  options ? options.temporaryReferences : void 0
2662
2660
  );
2663
2661
  if (options && options.signal) {