@logspace/sdk 1.1.8 → 1.1.10
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/logspace.esm.js +77 -4
- package/logspace.esm.js.map +1 -1
- package/logspace.iife.js +1 -1
- package/logspace.iife.js.map +1 -1
- package/logspace.umd.js +1 -1
- package/logspace.umd.js.map +1 -1
- package/package.json +1 -1
- package/sdk/storage/indexed-db.d.ts +10 -0
- package/sdk/types.d.ts +9 -7
package/package.json
CHANGED
|
@@ -69,6 +69,16 @@ export declare function updatePendingSessionRetry(sessionId: string): Promise<vo
|
|
|
69
69
|
* Clean up old pending sessions (older than 7 days or too many retries)
|
|
70
70
|
*/
|
|
71
71
|
export declare function cleanupOldPendingSessions(): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Calculate exponential backoff interval based on retry count
|
|
74
|
+
* Returns milliseconds to wait before next retry
|
|
75
|
+
* Pattern: 1min, 2min, 4min, 8min, 16min, 32min, 60min (capped)
|
|
76
|
+
*/
|
|
77
|
+
export declare function getBackoffInterval(retryCount: number): number;
|
|
78
|
+
/**
|
|
79
|
+
* Check if a session is ready for retry based on exponential backoff
|
|
80
|
+
*/
|
|
81
|
+
export declare function isReadyForRetry(session: StoredSession): boolean;
|
|
72
82
|
/**
|
|
73
83
|
* Close database connection
|
|
74
84
|
*/
|
package/sdk/types.d.ts
CHANGED
|
@@ -9,11 +9,12 @@ export type { eventWithTime };
|
|
|
9
9
|
export type RecordingType = 'video' | 'rrweb';
|
|
10
10
|
/**
|
|
11
11
|
* Recording quality preset - controls rrweb recording fidelity vs size tradeoff
|
|
12
|
-
* - 'low':
|
|
13
|
-
* - 'medium':
|
|
14
|
-
* - 'high':
|
|
12
|
+
* - 'low': Smallest size, basic replay (good for very long sessions)
|
|
13
|
+
* - 'medium': Smaller size, less detailed replay (good for long sessions)
|
|
14
|
+
* - 'high': Balanced quality and size (recommended default)
|
|
15
|
+
* - 'extrahigh': Full fidelity recording (larger files)
|
|
15
16
|
*/
|
|
16
|
-
export type RecordingQuality = 'low' | 'medium' | 'high';
|
|
17
|
+
export type RecordingQuality = 'low' | 'medium' | 'high' | 'extrahigh';
|
|
17
18
|
/**
|
|
18
19
|
* SDK Session state
|
|
19
20
|
*/
|
|
@@ -278,9 +279,10 @@ export interface LogSpaceConfig {
|
|
|
278
279
|
*/
|
|
279
280
|
apiKey?: string;
|
|
280
281
|
/** Recording quality preset - simplifies rrweb configuration
|
|
281
|
-
* - 'low':
|
|
282
|
-
* - 'medium':
|
|
283
|
-
* - 'high':
|
|
282
|
+
* - 'low': Smallest size, basic replay (good for very long sessions)
|
|
283
|
+
* - 'medium': Smaller size, less detailed replay (good for long sessions)
|
|
284
|
+
* - 'high': Balanced quality and size (recommended)
|
|
285
|
+
* - 'extrahigh': Full fidelity recording (larger files)
|
|
284
286
|
* Individual rrweb settings will override quality preset values.
|
|
285
287
|
* @default 'medium'
|
|
286
288
|
*/
|