@sentry/replay 10.68.0 → 11.0.0-alpha.0

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.
Files changed (94) hide show
  1. package/build/npm/cjs/index.js +5 -8
  2. package/build/npm/cjs/index.js.map +1 -1
  3. package/build/npm/esm/index.js +5 -8
  4. package/build/npm/esm/index.js.map +1 -1
  5. package/build/npm/esm/package.json +1 -1
  6. package/build/npm/types/coreHandlers/handleClick.d.ts.map +1 -1
  7. package/build/npm/types/coreHandlers/handleDom.d.ts.map +1 -1
  8. package/build/npm/types/coreHandlers/util/addFeedbackBreadcrumb.d.ts.map +1 -1
  9. package/build/npm/types/eventBuffer/EventBufferArray.d.ts.map +1 -1
  10. package/build/npm/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +1 -1
  11. package/build/npm/types/eventBuffer/EventBufferProxy.d.ts.map +1 -1
  12. package/build/npm/types/eventBuffer/WorkerHandler.d.ts.map +1 -1
  13. package/build/npm/types/eventBuffer/error.d.ts.map +1 -1
  14. package/build/npm/types/integration.d.ts.map +1 -1
  15. package/build/npm/types/replay.d.ts.map +1 -1
  16. package/build/npm/types/util/createPerformanceEntries.d.ts.map +1 -1
  17. package/build/npm/types/util/sendReplayRequest.d.ts.map +1 -1
  18. package/package.json +8 -17
  19. package/build/npm/types-ts3.8/constants.d.ts +0 -28
  20. package/build/npm/types-ts3.8/coreHandlers/handleAfterSendEvent.d.ts +0 -9
  21. package/build/npm/types-ts3.8/coreHandlers/handleBeforeSendEvent.d.ts +0 -9
  22. package/build/npm/types-ts3.8/coreHandlers/handleBreadcrumbs.d.ts +0 -14
  23. package/build/npm/types-ts3.8/coreHandlers/handleClick.d.ts +0 -47
  24. package/build/npm/types-ts3.8/coreHandlers/handleDom.d.ts +0 -11
  25. package/build/npm/types-ts3.8/coreHandlers/handleGlobalEvent.d.ts +0 -7
  26. package/build/npm/types-ts3.8/coreHandlers/handleHistory.d.ts +0 -7
  27. package/build/npm/types-ts3.8/coreHandlers/handleKeyboardEvent.d.ts +0 -7
  28. package/build/npm/types-ts3.8/coreHandlers/handleNetworkBreadcrumbs.d.ts +0 -16
  29. package/build/npm/types-ts3.8/coreHandlers/handleProcessSegmentSpan.d.ts +0 -6
  30. package/build/npm/types-ts3.8/coreHandlers/performanceObserver.d.ts +0 -7
  31. package/build/npm/types-ts3.8/coreHandlers/util/addBreadcrumbEvent.d.ts +0 -7
  32. package/build/npm/types-ts3.8/coreHandlers/util/addFeedbackBreadcrumb.d.ts +0 -7
  33. package/build/npm/types-ts3.8/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -4
  34. package/build/npm/types-ts3.8/coreHandlers/util/addSegmentDetailsToContext.d.ts +0 -3
  35. package/build/npm/types-ts3.8/coreHandlers/util/domUtils.d.ts +0 -15
  36. package/build/npm/types-ts3.8/coreHandlers/util/fetchUtils.d.ts +0 -23
  37. package/build/npm/types-ts3.8/coreHandlers/util/getAttributesToRecord.d.ts +0 -5
  38. package/build/npm/types-ts3.8/coreHandlers/util/networkUtils.d.ts +0 -21
  39. package/build/npm/types-ts3.8/coreHandlers/util/onWindowOpen.d.ts +0 -8
  40. package/build/npm/types-ts3.8/coreHandlers/util/shouldSampleForBufferEvent.d.ts +0 -9
  41. package/build/npm/types-ts3.8/coreHandlers/util/xhrUtils.d.ts +0 -36
  42. package/build/npm/types-ts3.8/debug-build.d.ts +0 -7
  43. package/build/npm/types-ts3.8/eventBuffer/EventBufferArray.d.ts +0 -30
  44. package/build/npm/types-ts3.8/eventBuffer/EventBufferCompressionWorker.d.ts +0 -52
  45. package/build/npm/types-ts3.8/eventBuffer/EventBufferProxy.d.ts +0 -45
  46. package/build/npm/types-ts3.8/eventBuffer/WorkerHandler.d.ts +0 -29
  47. package/build/npm/types-ts3.8/eventBuffer/error.d.ts +0 -5
  48. package/build/npm/types-ts3.8/eventBuffer/index.d.ts +0 -11
  49. package/build/npm/types-ts3.8/index.d.ts +0 -4
  50. package/build/npm/types-ts3.8/integration.d.ts +0 -117
  51. package/build/npm/types-ts3.8/replay.d.ts +0 -320
  52. package/build/npm/types-ts3.8/session/Session.d.ts +0 -8
  53. package/build/npm/types-ts3.8/session/clearSession.d.ts +0 -6
  54. package/build/npm/types-ts3.8/session/createSession.d.ts +0 -14
  55. package/build/npm/types-ts3.8/session/fetchSession.d.ts +0 -6
  56. package/build/npm/types-ts3.8/session/loadOrCreateSession.d.ts +0 -11
  57. package/build/npm/types-ts3.8/session/saveSession.d.ts +0 -6
  58. package/build/npm/types-ts3.8/session/shouldRefreshSession.d.ts +0 -7
  59. package/build/npm/types-ts3.8/types/index.d.ts +0 -6
  60. package/build/npm/types-ts3.8/types/performance.d.ts +0 -136
  61. package/build/npm/types-ts3.8/types/replay.d.ts +0 -487
  62. package/build/npm/types-ts3.8/types/replayFrame.d.ts +0 -188
  63. package/build/npm/types-ts3.8/types/request.d.ts +0 -15
  64. package/build/npm/types-ts3.8/types/rrweb.d.ts +0 -64
  65. package/build/npm/types-ts3.8/util/addEvent.d.ts +0 -20
  66. package/build/npm/types-ts3.8/util/addGlobalListeners.d.ts +0 -6
  67. package/build/npm/types-ts3.8/util/addMemoryEntry.d.ts +0 -7
  68. package/build/npm/types-ts3.8/util/createBreadcrumb.d.ts +0 -6
  69. package/build/npm/types-ts3.8/util/createPerformanceEntries.d.ts +0 -52
  70. package/build/npm/types-ts3.8/util/createPerformanceSpans.d.ts +0 -6
  71. package/build/npm/types-ts3.8/util/createReplayEnvelope.d.ts +0 -7
  72. package/build/npm/types-ts3.8/util/debounce.d.ts +0 -30
  73. package/build/npm/types-ts3.8/util/eventUtils.d.ts +0 -10
  74. package/build/npm/types-ts3.8/util/getPrivacyOptions.d.ts +0 -17
  75. package/build/npm/types-ts3.8/util/getRecordingSamplingOptions.d.ts +0 -10
  76. package/build/npm/types-ts3.8/util/getReplay.d.ts +0 -6
  77. package/build/npm/types-ts3.8/util/handleRecordingEmit.d.ts +0 -15
  78. package/build/npm/types-ts3.8/util/hasSessionStorage.d.ts +0 -3
  79. package/build/npm/types-ts3.8/util/isExpired.d.ts +0 -6
  80. package/build/npm/types-ts3.8/util/isRrwebError.d.ts +0 -6
  81. package/build/npm/types-ts3.8/util/isSampled.d.ts +0 -8
  82. package/build/npm/types-ts3.8/util/isSessionExpired.d.ts +0 -10
  83. package/build/npm/types-ts3.8/util/logger.d.ts +0 -24
  84. package/build/npm/types-ts3.8/util/maskAttribute.d.ts +0 -17
  85. package/build/npm/types-ts3.8/util/prepareRecordingData.d.ts +0 -9
  86. package/build/npm/types-ts3.8/util/prepareReplayEvent.d.ts +0 -11
  87. package/build/npm/types-ts3.8/util/resetReplayIdOnDynamicSamplingContext.d.ts +0 -14
  88. package/build/npm/types-ts3.8/util/rrweb.d.ts +0 -7
  89. package/build/npm/types-ts3.8/util/sendReplay.d.ts +0 -9
  90. package/build/npm/types-ts3.8/util/sendReplayRequest.d.ts +0 -27
  91. package/build/npm/types-ts3.8/util/shouldFilterRequest.d.ts +0 -7
  92. package/build/npm/types-ts3.8/util/throttle.d.ts +0 -12
  93. package/build/npm/types-ts3.8/util/timestamp.d.ts +0 -9
  94. package/build/npm/types-ts3.8/worker-bundler.d.ts +0 -2
@@ -4944,11 +4944,7 @@ const handleDomListener = (replay) => {
4944
4944
  const isClick = handlerData.name === "click";
4945
4945
  const event = isClick ? handlerData.event : void 0;
4946
4946
  if (isClick && replay.clickDetector && event?.target && !event.altKey && !event.metaKey && !event.ctrlKey && !event.shiftKey) {
4947
- handleClick(
4948
- replay.clickDetector,
4949
- result,
4950
- getClickTargetNode(handlerData.event)
4951
- );
4947
+ handleClick(replay.clickDetector, result, getClickTargetNode(handlerData.event));
4952
4948
  }
4953
4949
  addBreadcrumbEvent(replay, result);
4954
4950
  };
@@ -5037,6 +5033,7 @@ function isInputElement(target) {
5037
5033
  const ENTRY_TYPES = {
5038
5034
  // @ts-expect-error TODO: entry type does not fit the create* functions entry type
5039
5035
  resource: createResourceEntry,
5036
+ // @ts-expect-error TODO: entry type does not fit the create* functions entry type
5040
5037
  paint: createPaintEntry,
5041
5038
  // @ts-expect-error TODO: entry type does not fit the create* functions entry type
5042
5039
  navigation: createNavigationEntry
@@ -6094,7 +6091,7 @@ function addFeedbackBreadcrumb(replay, event) {
6094
6091
  if (!event.timestamp) {
6095
6092
  return true;
6096
6093
  }
6097
- replay.throttledAddEvent({
6094
+ void replay.throttledAddEvent({
6098
6095
  type: EventType.Custom,
6099
6096
  timestamp: event.timestamp * 1e3,
6100
6097
  data: {
@@ -6592,7 +6589,7 @@ function _tryGetResponseText(response) {
6592
6589
  });
6593
6590
  }
6594
6591
  async function _getResponseText(response) {
6595
- return await response.text();
6592
+ return response.text();
6596
6593
  }
6597
6594
 
6598
6595
  async function captureXhrBreadcrumbToReplay(breadcrumb, hint, options) {
@@ -6804,7 +6801,7 @@ function addGlobalListeners(replay) {
6804
6801
 
6805
6802
  async function addMemoryEntry(replay) {
6806
6803
  try {
6807
- return Promise.all(
6804
+ return await Promise.all(
6808
6805
  createPerformanceSpans(replay, [
6809
6806
  // @ts-expect-error memory doesn't exist on type Performance as the API is non-standard (we check that it exists above)
6810
6807
  createMemoryEntry(WINDOW.performance.memory)