@sentry/replay
Advanced tools
Comparing version 7.67.0-beta.0 to 7.67.0
{ | ||
"name": "@sentry/replay", | ||
"version": "7.67.0-beta.0", | ||
"version": "7.67.0", | ||
"description": "User replays for Sentry", | ||
@@ -28,5 +28,5 @@ "main": "cjs/index.js", | ||
"@babel/core": "^7.17.5", | ||
"@sentry-internal/replay-worker": "7.67.0-beta.0", | ||
"@sentry-internal/rrweb": "2.0.0-alpha10.1", | ||
"@sentry-internal/rrweb-snapshot": "2.0.0-alpha10.1", | ||
"@sentry-internal/replay-worker": "7.67.0", | ||
"@sentry-internal/rrweb": "1.108.0", | ||
"@sentry-internal/rrweb-snapshot": "1.108.0", | ||
"jsdom-worker": "^0.2.1", | ||
@@ -36,5 +36,5 @@ "tslib": "^2.4.1 || ^1.9.3" | ||
"dependencies": { | ||
"@sentry/core": "7.67.0-beta.0", | ||
"@sentry/types": "7.67.0-beta.0", | ||
"@sentry/utils": "7.67.0-beta.0" | ||
"@sentry/core": "7.67.0", | ||
"@sentry/types": "7.67.0", | ||
"@sentry/utils": "7.67.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "engines": { |
@@ -8,3 +8,2 @@ export declare const WINDOW: import("@sentry/utils").InternalGlobal & Window; | ||
export declare const SESSION_IDLE_EXPIRE_DURATION = 900000; | ||
export declare const MAX_SESSION_LIFE = 3600000; | ||
/** Default flush delays */ | ||
@@ -25,4 +24,4 @@ export declare const DEFAULT_FLUSH_MIN_DELAY = 5000; | ||
export declare const MIN_REPLAY_DURATION_LIMIT = 15000; | ||
/** Default attributes to be ignored when `maskAllText` is enabled */ | ||
export declare const DEFAULT_IGNORED_ATTRIBUTES: string[]; | ||
/** The max. length of a replay. */ | ||
export declare const MAX_REPLAY_DURATION = 3600000; | ||
//# sourceMappingURL=constants.d.ts.map |
@@ -0,1 +1,2 @@ | ||
import type { INode } from '@sentry-internal/rrweb-snapshot'; | ||
import type { Breadcrumb } from '@sentry/types'; | ||
@@ -6,3 +7,3 @@ import type { ReplayContainer } from '../types'; | ||
/** Get the base DOM breadcrumb. */ | ||
export declare function getBaseDomBreadcrumb(target: Node | null, message: string): Breadcrumb; | ||
export declare function getBaseDomBreadcrumb(target: Node | INode | null, message: string): Breadcrumb; | ||
/** | ||
@@ -9,0 +10,0 @@ * An event handler to react to DOM events. |
@@ -28,3 +28,3 @@ import type { Integration } from '@sentry/types'; | ||
private _replay?; | ||
constructor({ flushMinDelay, flushMaxDelay, minReplayDuration, stickySession, useCompression, _experiments, sessionSampleRate, errorSampleRate, maskAllText, maskAllInputs, blockAllMedia, mutationBreadcrumbLimit, mutationLimit, slowClickTimeout, slowClickIgnoreSelectors, networkDetailAllowUrls, networkDetailDenyUrls, networkCaptureBodies, networkRequestHeaders, networkResponseHeaders, mask, maskAttributes, unmask, block, unblock, ignore, maskFn, beforeAddRecordingEvent, blockClass, blockSelector, maskInputOptions, maskTextClass, maskTextSelector, ignoreClass, }?: ReplayConfiguration); | ||
constructor({ flushMinDelay, flushMaxDelay, minReplayDuration, maxReplayDuration, stickySession, useCompression, _experiments, sessionSampleRate, errorSampleRate, maskAllText, maskAllInputs, blockAllMedia, mutationBreadcrumbLimit, mutationLimit, slowClickTimeout, slowClickIgnoreSelectors, networkDetailAllowUrls, networkDetailDenyUrls, networkCaptureBodies, networkRequestHeaders, networkResponseHeaders, mask, unmask, block, unblock, ignore, maskFn, beforeAddRecordingEvent, blockClass, blockSelector, maskInputOptions, maskTextClass, maskTextSelector, ignoreClass, }?: ReplayConfiguration); | ||
/** If replay has already been initialized */ | ||
@@ -31,0 +31,0 @@ protected get _isInitialized(): boolean; |
@@ -84,3 +84,3 @@ import type { ReplayRecordingMode, Transaction } from '@sentry/types'; | ||
*/ | ||
initializeSampling(previousSessionId?: string): void; | ||
initializeSampling(): void; | ||
/** | ||
@@ -226,8 +226,2 @@ * Start a replay regardless of sampling rate. Calling this will always | ||
/** | ||
* Refresh a session with a new one. | ||
* This stops the current session (without forcing a flush, as that would never work since we are expired), | ||
* and then does a new sampling based on the refreshed session. | ||
*/ | ||
private _refreshSession; | ||
/** | ||
* Adds listeners to record events for the replay | ||
@@ -234,0 +228,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import type { Session, SessionOptions, Timeouts } from '../types'; | ||
import type { Session, SessionOptions } from '../types'; | ||
/** | ||
@@ -6,7 +6,7 @@ * Get or create a session, when initializing the replay. | ||
*/ | ||
export declare function loadOrCreateSession({ timeouts, traceInternals, previousSessionId, }: { | ||
timeouts: Timeouts; | ||
export declare function loadOrCreateSession(currentSession: Session | undefined, { traceInternals, sessionIdleExpire, maxReplayDuration, }: { | ||
sessionIdleExpire: number; | ||
maxReplayDuration: number; | ||
traceInternals?: boolean; | ||
previousSessionId?: string; | ||
}, sessionOptions: SessionOptions): Session; | ||
//# sourceMappingURL=loadOrCreateSession.d.ts.map |
@@ -21,3 +21,2 @@ import type { Breadcrumb, FetchBreadcrumbHint, HandlerDataFetch, ReplayRecordingData, ReplayRecordingMode, SentryWrappedXMLHttpRequest, Transaction, XhrBreadcrumbHint } from '@sentry/types'; | ||
sessionIdleExpire: number; | ||
maxSessionLife: number; | ||
} | ||
@@ -155,2 +154,7 @@ /** | ||
/** | ||
* The max. duration (in ms) a replay session may be. | ||
* This is capped at max. 60min. | ||
*/ | ||
maxReplayDuration: number; | ||
/** | ||
* Callback before adding a custom recording event | ||
@@ -217,8 +221,3 @@ * | ||
} | ||
type OptionalReplayPluginOptions = Partial<ReplayPluginOptions> & { | ||
/** | ||
* Mask element attributes that are contained in list | ||
*/ | ||
maskAttributes?: string[]; | ||
}; | ||
type OptionalReplayPluginOptions = Partial<ReplayPluginOptions>; | ||
export interface DeprecatedPrivacyOptions { | ||
@@ -313,2 +312,7 @@ /** | ||
sampled: Sampled; | ||
/** | ||
* If this is false, the session should not be refreshed when it was inactive. | ||
* This can be the case if you had a buffered session which is now recording because an error happened. | ||
*/ | ||
shouldRefresh: boolean; | ||
} | ||
@@ -315,0 +319,0 @@ export type EventBufferType = 'sync' | 'worker'; |
@@ -6,2 +6,4 @@ import type { DeprecatedPrivacyOptions, ReplayIntegrationPrivacyOptions } from '../types'; | ||
unmaskTextSelector: string; | ||
maskInputSelector: string; | ||
unmaskInputSelector: string; | ||
blockSelector: string; | ||
@@ -8,0 +10,0 @@ unblockSelector: string; |
@@ -1,6 +0,10 @@ | ||
import type { Session, Timeouts } from '../types'; | ||
import type { Session } from '../types'; | ||
/** | ||
* Checks to see if session is expired | ||
*/ | ||
export declare function isSessionExpired(session: Session, timeouts: Timeouts, targetTime?: number): boolean; | ||
export declare function isSessionExpired(session: Session, { maxReplayDuration, sessionIdleExpire, targetTime, }: { | ||
maxReplayDuration: number; | ||
sessionIdleExpire: number; | ||
targetTime?: number; | ||
}): boolean; | ||
//# sourceMappingURL=isSessionExpired.d.ts.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
2195794
157
18099
+ Added@sentry/core@7.67.0(transitive)
+ Added@sentry/types@7.67.0(transitive)
+ Added@sentry/utils@7.67.0(transitive)
- Removed@sentry/core@7.67.0-beta.0(transitive)
- Removed@sentry/types@7.67.0-beta.0(transitive)
- Removed@sentry/utils@7.67.0-beta.0(transitive)
Updated@sentry/core@7.67.0
Updated@sentry/types@7.67.0
Updated@sentry/utils@7.67.0