@sentry/replay 8.0.0-alpha.5 → 10.58.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 (268) hide show
  1. package/LICENSE +18 -11
  2. package/README.md +8 -17
  3. package/build/npm/cjs/index.js +8390 -0
  4. package/build/npm/cjs/index.js.map +1 -0
  5. package/build/npm/cjs/worker-bundler.js +1 -0
  6. package/build/npm/esm/index.js +8387 -0
  7. package/build/npm/esm/index.js.map +1 -0
  8. package/build/npm/esm/package.json +1 -0
  9. package/build/npm/esm/worker-bundler.js +1 -0
  10. package/{types → build/npm/types}/constants.d.ts +3 -2
  11. package/build/npm/types/constants.d.ts.map +1 -0
  12. package/{types → build/npm/types}/coreHandlers/handleAfterSendEvent.d.ts +1 -1
  13. package/{types → build/npm/types}/coreHandlers/handleAfterSendEvent.d.ts.map +1 -1
  14. package/{types → build/npm/types}/coreHandlers/handleBeforeSendEvent.d.ts +1 -1
  15. package/{types → build/npm/types}/coreHandlers/handleBeforeSendEvent.d.ts.map +1 -1
  16. package/{types → build/npm/types}/coreHandlers/handleBreadcrumbs.d.ts +1 -1
  17. package/{types → build/npm/types}/coreHandlers/handleBreadcrumbs.d.ts.map +1 -1
  18. package/{types → build/npm/types}/coreHandlers/handleClick.d.ts +2 -2
  19. package/{types → build/npm/types}/coreHandlers/handleClick.d.ts.map +1 -1
  20. package/{types → build/npm/types}/coreHandlers/handleDom.d.ts +1 -1
  21. package/{types → build/npm/types}/coreHandlers/handleDom.d.ts.map +1 -1
  22. package/{types → build/npm/types}/coreHandlers/handleGlobalEvent.d.ts +1 -1
  23. package/{types → build/npm/types}/coreHandlers/handleGlobalEvent.d.ts.map +1 -1
  24. package/{types → build/npm/types}/coreHandlers/handleHistory.d.ts +1 -1
  25. package/{types → build/npm/types}/coreHandlers/handleHistory.d.ts.map +1 -1
  26. package/{types → build/npm/types}/coreHandlers/handleKeyboardEvent.d.ts +1 -1
  27. package/{types → build/npm/types}/coreHandlers/handleKeyboardEvent.d.ts.map +1 -1
  28. package/{types → build/npm/types}/coreHandlers/handleNetworkBreadcrumbs.d.ts +1 -1
  29. package/{types → build/npm/types}/coreHandlers/handleNetworkBreadcrumbs.d.ts.map +1 -1
  30. package/build/npm/types/coreHandlers/performanceObserver.d.ts.map +1 -0
  31. package/{types → build/npm/types}/coreHandlers/util/addBreadcrumbEvent.d.ts +1 -1
  32. package/{types → build/npm/types}/coreHandlers/util/addBreadcrumbEvent.d.ts.map +1 -1
  33. package/{types → build/npm/types}/coreHandlers/util/addFeedbackBreadcrumb.d.ts +1 -1
  34. package/{types → build/npm/types}/coreHandlers/util/addFeedbackBreadcrumb.d.ts.map +1 -1
  35. package/{types → build/npm/types}/coreHandlers/util/addNetworkBreadcrumb.d.ts.map +1 -1
  36. package/{types → build/npm/types}/coreHandlers/util/domUtils.d.ts +1 -1
  37. package/{types → build/npm/types}/coreHandlers/util/domUtils.d.ts.map +1 -1
  38. package/{types → build/npm/types}/coreHandlers/util/fetchUtils.d.ts +4 -3
  39. package/build/npm/types/coreHandlers/util/fetchUtils.d.ts.map +1 -0
  40. package/{types → build/npm/types}/coreHandlers/util/getAttributesToRecord.d.ts.map +1 -1
  41. package/{types → build/npm/types}/coreHandlers/util/networkUtils.d.ts +2 -3
  42. package/build/npm/types/coreHandlers/util/networkUtils.d.ts.map +1 -0
  43. package/{types → build/npm/types}/coreHandlers/util/onWindowOpen.d.ts.map +1 -1
  44. package/{types → build/npm/types}/coreHandlers/util/shouldSampleForBufferEvent.d.ts +2 -2
  45. package/{types → build/npm/types}/coreHandlers/util/shouldSampleForBufferEvent.d.ts.map +1 -1
  46. package/{types → build/npm/types}/coreHandlers/util/xhrUtils.d.ts +4 -3
  47. package/build/npm/types/coreHandlers/util/xhrUtils.d.ts.map +1 -0
  48. package/{types → build/npm/types}/eventBuffer/EventBufferArray.d.ts +2 -0
  49. package/build/npm/types/eventBuffer/EventBufferArray.d.ts.map +1 -0
  50. package/{types → build/npm/types}/eventBuffer/EventBufferCompressionWorker.d.ts +5 -3
  51. package/build/npm/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +1 -0
  52. package/{types → build/npm/types}/eventBuffer/EventBufferProxy.d.ts +5 -1
  53. package/build/npm/types/eventBuffer/EventBufferProxy.d.ts.map +1 -0
  54. package/{types → build/npm/types}/eventBuffer/WorkerHandler.d.ts +3 -1
  55. package/build/npm/types/eventBuffer/WorkerHandler.d.ts.map +1 -0
  56. package/{types → build/npm/types}/eventBuffer/index.d.ts +2 -2
  57. package/build/npm/types/eventBuffer/index.d.ts.map +1 -0
  58. package/{types → build/npm/types}/integration.d.ts +26 -13
  59. package/build/npm/types/integration.d.ts.map +1 -0
  60. package/{types → build/npm/types}/replay.d.ts +32 -27
  61. package/build/npm/types/replay.d.ts.map +1 -0
  62. package/{types → build/npm/types}/session/Session.d.ts.map +1 -1
  63. package/build/npm/types/session/fetchSession.d.ts +6 -0
  64. package/build/npm/types/session/fetchSession.d.ts.map +1 -0
  65. package/{types → build/npm/types}/session/loadOrCreateSession.d.ts +1 -2
  66. package/build/npm/types/session/loadOrCreateSession.d.ts.map +1 -0
  67. package/{types → build/npm/types}/types/performance.d.ts +16 -4
  68. package/{types → build/npm/types}/types/performance.d.ts.map +1 -1
  69. package/{types → build/npm/types}/types/replay.d.ts +53 -42
  70. package/build/npm/types/types/replay.d.ts.map +1 -0
  71. package/{types → build/npm/types}/types/replayFrame.d.ts +14 -7
  72. package/build/npm/types/types/replayFrame.d.ts.map +1 -0
  73. package/{types → build/npm/types}/types/request.d.ts +1 -1
  74. package/build/npm/types/types/request.d.ts.map +1 -0
  75. package/{types-ts3.8 → build/npm/types}/types/rrweb.d.ts +64 -60
  76. package/{types → build/npm/types}/types/rrweb.d.ts.map +1 -1
  77. package/{types → build/npm/types}/util/addEvent.d.ts.map +1 -1
  78. package/{types → build/npm/types}/util/addGlobalListeners.d.ts.map +1 -1
  79. package/build/npm/types/util/createPerformanceEntries.d.ts +52 -0
  80. package/build/npm/types/util/createPerformanceEntries.d.ts.map +1 -0
  81. package/{types → build/npm/types}/util/createPerformanceSpans.d.ts.map +1 -1
  82. package/{types → build/npm/types}/util/createReplayEnvelope.d.ts +1 -1
  83. package/{types → build/npm/types}/util/createReplayEnvelope.d.ts.map +1 -1
  84. package/{types → build/npm/types}/util/debounce.d.ts.map +1 -1
  85. package/{types → build/npm/types}/util/eventUtils.d.ts +1 -1
  86. package/{types → build/npm/types}/util/eventUtils.d.ts.map +1 -1
  87. package/{types → build/npm/types}/util/getPrivacyOptions.d.ts +3 -3
  88. package/build/npm/types/util/getPrivacyOptions.d.ts.map +1 -0
  89. package/build/npm/types/util/getRecordingSamplingOptions.d.ts +10 -0
  90. package/build/npm/types/util/getRecordingSamplingOptions.d.ts.map +1 -0
  91. package/{types → build/npm/types}/util/handleRecordingEmit.d.ts +1 -0
  92. package/build/npm/types/util/handleRecordingEmit.d.ts.map +1 -0
  93. package/{types → build/npm/types}/util/isRrwebError.d.ts +1 -1
  94. package/{types → build/npm/types}/util/isRrwebError.d.ts.map +1 -1
  95. package/build/npm/types/util/logger.d.ts +24 -0
  96. package/build/npm/types/util/logger.d.ts.map +1 -0
  97. package/{types → build/npm/types}/util/maskAttribute.d.ts +2 -0
  98. package/{types → build/npm/types}/util/maskAttribute.d.ts.map +1 -1
  99. package/{types → build/npm/types}/util/prepareRecordingData.d.ts +1 -1
  100. package/{types → build/npm/types}/util/prepareRecordingData.d.ts.map +1 -1
  101. package/{types → build/npm/types}/util/prepareReplayEvent.d.ts +2 -5
  102. package/build/npm/types/util/prepareReplayEvent.d.ts.map +1 -0
  103. package/build/npm/types/util/resetReplayIdOnDynamicSamplingContext.d.ts +14 -0
  104. package/build/npm/types/util/resetReplayIdOnDynamicSamplingContext.d.ts.map +1 -0
  105. package/build/npm/types/util/rrweb.d.ts +7 -0
  106. package/build/npm/types/util/rrweb.d.ts.map +1 -0
  107. package/{types → build/npm/types}/util/sendReplay.d.ts.map +1 -1
  108. package/{types → build/npm/types}/util/sendReplayRequest.d.ts +8 -2
  109. package/build/npm/types/util/sendReplayRequest.d.ts.map +1 -0
  110. package/{types → build/npm/types}/util/shouldFilterRequest.d.ts.map +1 -1
  111. package/build/npm/types/worker-bundler.d.ts +2 -0
  112. package/build/npm/types/worker-bundler.d.ts.map +1 -0
  113. package/{types-ts3.8 → build/npm/types-ts3.8}/constants.d.ts +3 -2
  114. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleAfterSendEvent.d.ts +1 -1
  115. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleBeforeSendEvent.d.ts +1 -1
  116. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleBreadcrumbs.d.ts +1 -1
  117. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleClick.d.ts +2 -2
  118. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleDom.d.ts +1 -1
  119. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleGlobalEvent.d.ts +1 -1
  120. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleHistory.d.ts +1 -1
  121. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleKeyboardEvent.d.ts +1 -1
  122. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleNetworkBreadcrumbs.d.ts +1 -1
  123. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addBreadcrumbEvent.d.ts +1 -1
  124. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addFeedbackBreadcrumb.d.ts +1 -1
  125. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/domUtils.d.ts +1 -1
  126. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/fetchUtils.d.ts +4 -3
  127. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/networkUtils.d.ts +2 -6
  128. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/shouldSampleForBufferEvent.d.ts +2 -2
  129. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/xhrUtils.d.ts +4 -3
  130. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferArray.d.ts +2 -0
  131. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferCompressionWorker.d.ts +5 -3
  132. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferProxy.d.ts +4 -1
  133. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/WorkerHandler.d.ts +3 -1
  134. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/index.d.ts +2 -2
  135. package/{types-ts3.8 → build/npm/types-ts3.8}/integration.d.ts +26 -13
  136. package/{types-ts3.8 → build/npm/types-ts3.8}/replay.d.ts +32 -27
  137. package/{types-ts3.8 → build/npm/types-ts3.8}/session/fetchSession.d.ts +1 -1
  138. package/{types-ts3.8 → build/npm/types-ts3.8}/session/loadOrCreateSession.d.ts +1 -2
  139. package/{types-ts3.8 → build/npm/types-ts3.8}/types/performance.d.ts +16 -4
  140. package/{types-ts3.8 → build/npm/types-ts3.8}/types/replay.d.ts +53 -42
  141. package/{types-ts3.8 → build/npm/types-ts3.8}/types/replayFrame.d.ts +14 -7
  142. package/{types-ts3.8 → build/npm/types-ts3.8}/types/request.d.ts +1 -1
  143. package/{types → build/npm/types-ts3.8}/types/rrweb.d.ts +64 -60
  144. package/build/npm/types-ts3.8/util/createPerformanceEntries.d.ts +52 -0
  145. package/{types-ts3.8 → build/npm/types-ts3.8}/util/createReplayEnvelope.d.ts +1 -1
  146. package/{types-ts3.8 → build/npm/types-ts3.8}/util/eventUtils.d.ts +1 -1
  147. package/{types-ts3.8 → build/npm/types-ts3.8}/util/getPrivacyOptions.d.ts +3 -3
  148. package/build/npm/types-ts3.8/util/getRecordingSamplingOptions.d.ts +10 -0
  149. package/{types-ts3.8 → build/npm/types-ts3.8}/util/handleRecordingEmit.d.ts +1 -0
  150. package/{types-ts3.8 → build/npm/types-ts3.8}/util/isRrwebError.d.ts +1 -1
  151. package/build/npm/types-ts3.8/util/logger.d.ts +24 -0
  152. package/{types-ts3.8 → build/npm/types-ts3.8}/util/maskAttribute.d.ts +2 -0
  153. package/{types-ts3.8 → build/npm/types-ts3.8}/util/prepareRecordingData.d.ts +1 -1
  154. package/{types-ts3.8 → build/npm/types-ts3.8}/util/prepareReplayEvent.d.ts +2 -5
  155. package/build/npm/types-ts3.8/util/resetReplayIdOnDynamicSamplingContext.d.ts +14 -0
  156. package/build/npm/types-ts3.8/util/rrweb.d.ts +7 -0
  157. package/{types-ts3.8 → build/npm/types-ts3.8}/util/sendReplayRequest.d.ts +8 -2
  158. package/build/npm/types-ts3.8/worker-bundler.d.ts +2 -0
  159. package/package.json +65 -27
  160. package/cjs/index.js +0 -9382
  161. package/cjs/index.js.map +0 -1
  162. package/esm/index.js +0 -9375
  163. package/esm/index.js.map +0 -1
  164. package/esm/package.json +0 -1
  165. package/types/constants.d.ts.map +0 -1
  166. package/types/coreHandlers/performanceObserver.d.ts.map +0 -1
  167. package/types/coreHandlers/util/fetchUtils.d.ts.map +0 -1
  168. package/types/coreHandlers/util/networkUtils.d.ts.map +0 -1
  169. package/types/coreHandlers/util/xhrUtils.d.ts.map +0 -1
  170. package/types/eventBuffer/EventBufferArray.d.ts.map +0 -1
  171. package/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +0 -1
  172. package/types/eventBuffer/EventBufferProxy.d.ts.map +0 -1
  173. package/types/eventBuffer/WorkerHandler.d.ts.map +0 -1
  174. package/types/eventBuffer/index.d.ts.map +0 -1
  175. package/types/integration.d.ts.map +0 -1
  176. package/types/replay.d.ts.map +0 -1
  177. package/types/session/fetchSession.d.ts +0 -6
  178. package/types/session/fetchSession.d.ts.map +0 -1
  179. package/types/session/index.d.ts +0 -2
  180. package/types/session/index.d.ts.map +0 -1
  181. package/types/session/loadOrCreateSession.d.ts.map +0 -1
  182. package/types/types/replay.d.ts.map +0 -1
  183. package/types/types/replayFrame.d.ts.map +0 -1
  184. package/types/types/request.d.ts.map +0 -1
  185. package/types/util/createPerformanceEntries.d.ts +0 -13
  186. package/types/util/createPerformanceEntries.d.ts.map +0 -1
  187. package/types/util/getPrivacyOptions.d.ts.map +0 -1
  188. package/types/util/handleRecordingEmit.d.ts.map +0 -1
  189. package/types/util/log.d.ts +0 -10
  190. package/types/util/log.d.ts.map +0 -1
  191. package/types/util/prepareReplayEvent.d.ts.map +0 -1
  192. package/types/util/sendReplayRequest.d.ts.map +0 -1
  193. package/types-ts3.8/session/index.d.ts +0 -2
  194. package/types-ts3.8/util/createPerformanceEntries.d.ts +0 -13
  195. package/types-ts3.8/util/log.d.ts +0 -10
  196. /package/{types → build/npm/types}/coreHandlers/performanceObserver.d.ts +0 -0
  197. /package/{types → build/npm/types}/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -0
  198. /package/{types → build/npm/types}/coreHandlers/util/getAttributesToRecord.d.ts +0 -0
  199. /package/{types → build/npm/types}/coreHandlers/util/onWindowOpen.d.ts +0 -0
  200. /package/{types → build/npm/types}/debug-build.d.ts +0 -0
  201. /package/{types → build/npm/types}/debug-build.d.ts.map +0 -0
  202. /package/{types → build/npm/types}/eventBuffer/error.d.ts +0 -0
  203. /package/{types → build/npm/types}/eventBuffer/error.d.ts.map +0 -0
  204. /package/{types → build/npm/types}/index.d.ts +0 -0
  205. /package/{types → build/npm/types}/index.d.ts.map +0 -0
  206. /package/{types → build/npm/types}/session/Session.d.ts +0 -0
  207. /package/{types → build/npm/types}/session/clearSession.d.ts +0 -0
  208. /package/{types → build/npm/types}/session/clearSession.d.ts.map +0 -0
  209. /package/{types → build/npm/types}/session/createSession.d.ts +0 -0
  210. /package/{types → build/npm/types}/session/createSession.d.ts.map +0 -0
  211. /package/{types → build/npm/types}/session/saveSession.d.ts +0 -0
  212. /package/{types → build/npm/types}/session/saveSession.d.ts.map +0 -0
  213. /package/{types → build/npm/types}/session/shouldRefreshSession.d.ts +0 -0
  214. /package/{types → build/npm/types}/session/shouldRefreshSession.d.ts.map +0 -0
  215. /package/{types → build/npm/types}/types/index.d.ts +0 -0
  216. /package/{types → build/npm/types}/types/index.d.ts.map +0 -0
  217. /package/{types → build/npm/types}/util/addEvent.d.ts +0 -0
  218. /package/{types → build/npm/types}/util/addGlobalListeners.d.ts +0 -0
  219. /package/{types → build/npm/types}/util/addMemoryEntry.d.ts +0 -0
  220. /package/{types → build/npm/types}/util/addMemoryEntry.d.ts.map +0 -0
  221. /package/{types → build/npm/types}/util/createBreadcrumb.d.ts +0 -0
  222. /package/{types → build/npm/types}/util/createBreadcrumb.d.ts.map +0 -0
  223. /package/{types → build/npm/types}/util/createPerformanceSpans.d.ts +0 -0
  224. /package/{types → build/npm/types}/util/debounce.d.ts +0 -0
  225. /package/{types → build/npm/types}/util/getReplay.d.ts +0 -0
  226. /package/{types → build/npm/types}/util/getReplay.d.ts.map +0 -0
  227. /package/{types → build/npm/types}/util/hasSessionStorage.d.ts +0 -0
  228. /package/{types → build/npm/types}/util/hasSessionStorage.d.ts.map +0 -0
  229. /package/{types → build/npm/types}/util/isExpired.d.ts +0 -0
  230. /package/{types → build/npm/types}/util/isExpired.d.ts.map +0 -0
  231. /package/{types → build/npm/types}/util/isSampled.d.ts +0 -0
  232. /package/{types → build/npm/types}/util/isSampled.d.ts.map +0 -0
  233. /package/{types → build/npm/types}/util/isSessionExpired.d.ts +0 -0
  234. /package/{types → build/npm/types}/util/isSessionExpired.d.ts.map +0 -0
  235. /package/{types → build/npm/types}/util/sendReplay.d.ts +0 -0
  236. /package/{types → build/npm/types}/util/shouldFilterRequest.d.ts +0 -0
  237. /package/{types → build/npm/types}/util/throttle.d.ts +0 -0
  238. /package/{types → build/npm/types}/util/throttle.d.ts.map +0 -0
  239. /package/{types → build/npm/types}/util/timestamp.d.ts +0 -0
  240. /package/{types → build/npm/types}/util/timestamp.d.ts.map +0 -0
  241. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/performanceObserver.d.ts +0 -0
  242. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -0
  243. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/getAttributesToRecord.d.ts +0 -0
  244. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/onWindowOpen.d.ts +0 -0
  245. /package/{types-ts3.8 → build/npm/types-ts3.8}/debug-build.d.ts +0 -0
  246. /package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/error.d.ts +0 -0
  247. /package/{types-ts3.8 → build/npm/types-ts3.8}/index.d.ts +0 -0
  248. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/Session.d.ts +0 -0
  249. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/clearSession.d.ts +0 -0
  250. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/createSession.d.ts +0 -0
  251. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/saveSession.d.ts +0 -0
  252. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/shouldRefreshSession.d.ts +0 -0
  253. /package/{types-ts3.8 → build/npm/types-ts3.8}/types/index.d.ts +0 -0
  254. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addEvent.d.ts +0 -0
  255. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addGlobalListeners.d.ts +0 -0
  256. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addMemoryEntry.d.ts +0 -0
  257. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/createBreadcrumb.d.ts +0 -0
  258. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/createPerformanceSpans.d.ts +0 -0
  259. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/debounce.d.ts +0 -0
  260. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/getReplay.d.ts +0 -0
  261. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/hasSessionStorage.d.ts +0 -0
  262. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isExpired.d.ts +0 -0
  263. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isSampled.d.ts +0 -0
  264. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isSessionExpired.d.ts +0 -0
  265. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/sendReplay.d.ts +0 -0
  266. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/shouldFilterRequest.d.ts +0 -0
  267. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/throttle.d.ts +0 -0
  268. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/timestamp.d.ts +0 -0
package/LICENSE CHANGED
@@ -1,14 +1,21 @@
1
- Copyright (c) 2022 Sentry (https://sentry.io) and individual contributors. All rights reserved.
1
+ MIT License
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4
- documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
5
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
6
- persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ Copyright (c) 2022 Functional Software, Inc. dba Sentry
7
4
 
8
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
9
- Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
10
11
 
11
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
12
- WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
13
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
14
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -10,6 +10,11 @@
10
10
  [![npm dm](https://img.shields.io/npm/dm/@sentry/replay.svg)](https://www.npmjs.com/package/@sentry/replay)
11
11
  [![npm dt](https://img.shields.io/npm/dt/@sentry/replay.svg)](https://www.npmjs.com/package/@sentry/replay)
12
12
 
13
+ > [!NOTE]
14
+ > This package is an internal library published for use by Sentry-owned JavaScript SDK packages. It is re-exported from
15
+ > `@sentry/browser` and other browser-related SDKs like `@sentry/react` and `@sentry/vue`. It is not part of the public
16
+ > API contract and may change in any release. Do not rely on SemVer compatibility if you depend on it directly.
17
+
13
18
  ## Pre-requisites
14
19
 
15
20
  `@sentry/replay` requires Node 14+, and browsers newer than IE11.
@@ -69,7 +74,7 @@ Sentry.init({
69
74
 
70
75
  // Sometime later
71
76
  const { Replay } = await import('@sentry/browser');
72
- const client = Sentry.getCurrentHub().getClient<BrowserClient>();
77
+ const client = Sentry.getClient<BrowserClient>();
73
78
 
74
79
  // Client can be undefined
75
80
  client?.addIntegration(Sentry.replayIntegration());
@@ -102,9 +107,9 @@ Sentry.init({
102
107
  integrations: [replay]
103
108
  });
104
109
 
105
- const client = Sentry.getCurrentHub().getClient<BrowserClient>();
110
+ const client = Sentry.getClient<BrowserClient>();
106
111
 
107
- // Add replay integration, will start recoring
112
+ // Add replay integration, will start recording
108
113
  client?.addIntegration(replay);
109
114
 
110
115
  // Stop recording
@@ -209,20 +214,6 @@ The following options can be configured as options to the integration, in `Sentr
209
214
  | unmask | Array<string> | [] | Unmask all elements that match the given DOM selectors. Useful when using `maskAllText`. See [privacy](#masking) section for an example. |
210
215
  | ignore | Array<string> | `.sentry-ignore, [data-sentry-ignore]` | Ignores all events on the matching input fields. See [privacy](#ignoring) section for an example. |
211
216
 
212
- #### Deprecated options
213
-
214
- In order to streamline our privacy options, the following have been deprecated in favor for the respective options
215
- above.
216
-
217
- | deprecated key | replaced by | description |
218
- | ---------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
219
- | maskInputOptions | mask | Use CSS selectors in `mask` in order to mask all inputs of a certain type. For example, `input[type="address"]` |
220
- | blockSelector | block | The selector(s) can be moved directly in the `block` array. |
221
- | blockClass | block | Convert the class name to a CSS selector and add to `block` array. For example, `first-name` becomes `.first-name`. Regexes can be moved as-is. |
222
- | maskClass | mask | Convert the class name to a CSS selector and add to `mask` array. For example, `first-name` becomes `.first-name`. Regexes can be moved as-is. |
223
- | maskSelector | mask | The selector(s) can be moved directly in the `mask` array. |
224
- | ignoreClass | ignore | Convert the class name to a CSS selector and add to `ignore` array. For example, `first-name` becomes `.first-name`. Regexes can be moved as-is. |
225
-
226
217
  ## Privacy
227
218
 
228
219
  There are several ways to deal with PII. By default, the integration will mask all text content with `*` and block all