@sentry/replay 7.94.1 → 7.96.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.
package/esm/index.js CHANGED
@@ -9126,8 +9126,14 @@ const DEFAULT_NETWORK_HEADERS = ['content-length', 'content-type', 'accept'];
9126
9126
 
9127
9127
  let _initialized = false;
9128
9128
 
9129
+ const replayIntegration = ((options) => {
9130
+ // eslint-disable-next-line deprecation/deprecation
9131
+ return new Replay(options);
9132
+ }) ;
9133
+
9129
9134
  /**
9130
9135
  * The main replay integration class, to be passed to `init({ integrations: [] })`.
9136
+ * @deprecated Use `replayIntegration()` instead.
9131
9137
  */
9132
9138
  class Replay {
9133
9139
  /**
@@ -9202,6 +9208,7 @@ class Replay {
9202
9208
  // eslint-disable-next-line deprecation/deprecation
9203
9209
  ignoreClass,
9204
9210
  } = {}) {
9211
+ // eslint-disable-next-line deprecation/deprecation
9205
9212
  this.name = Replay.id;
9206
9213
 
9207
9214
  const privacyOptions = getPrivacyOptions({
@@ -9510,5 +9517,5 @@ function _getMergedNetworkHeaders(headers) {
9510
9517
  return [...DEFAULT_NETWORK_HEADERS, ...headers.map(header => header.toLowerCase())];
9511
9518
  }
9512
9519
 
9513
- export { Replay };
9520
+ export { Replay, replayIntegration };
9514
9521
  //# sourceMappingURL=index.js.map