@openreplay/tracker 18.0.1-beta.0 → 18.0.2

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.
@@ -172,11 +172,10 @@ export default class App {
172
172
  parentActive: boolean;
173
173
  checkStatus: () => boolean;
174
174
  parentCrossDomainFrameListener: (event: MessageEvent) => void;
175
- /**
176
- * context ids for iframes,
177
- * order is not so important as long as its consistent
178
- * */
179
175
  trackedFrames: string[];
176
+ private frameLastSeen;
177
+ private readonly FRAME_STALE_MS;
178
+ private pruneStaleFrames;
180
179
  crossDomainIframeListener: (event: MessageEvent) => void;
181
180
  /**
182
181
  * { command : [remaining iframes] }
@@ -291,6 +290,7 @@ export default class App {
291
290
  * */
292
291
  uploadOfflineRecording(): Promise<void>;
293
292
  prevOpts: StartOptions;
293
+ private userStartCallback?;
294
294
  private _start;
295
295
  restartCanvasTracking: () => void;
296
296
  flushBuffer: (buffer: Message[]) => Promise<unknown>;
@@ -28,6 +28,12 @@ export default abstract class Observer {
28
28
  private readonly inlineRemoteCss;
29
29
  private readonly inlinerOptions;
30
30
  private readonly domParser;
31
+ /**
32
+ * Bumped on every disconnect(). Stale async CSS-inlining callbacks from a
33
+ * previous session (e.g. agent reload → tracker restart) compare against
34
+ * this and bail instead of sending messages that reference vanished node ids.
35
+ */
36
+ private generation;
31
37
  constructor(app: App, isTopContext?: boolean, options?: Options);
32
38
  private clear;
33
39
  /**
@@ -172,11 +172,10 @@ export default class App {
172
172
  parentActive: boolean;
173
173
  checkStatus: () => boolean;
174
174
  parentCrossDomainFrameListener: (event: MessageEvent) => void;
175
- /**
176
- * context ids for iframes,
177
- * order is not so important as long as its consistent
178
- * */
179
175
  trackedFrames: string[];
176
+ private frameLastSeen;
177
+ private readonly FRAME_STALE_MS;
178
+ private pruneStaleFrames;
180
179
  crossDomainIframeListener: (event: MessageEvent) => void;
181
180
  /**
182
181
  * { command : [remaining iframes] }
@@ -291,6 +290,7 @@ export default class App {
291
290
  * */
292
291
  uploadOfflineRecording(): Promise<void>;
293
292
  prevOpts: StartOptions;
293
+ private userStartCallback?;
294
294
  private _start;
295
295
  restartCanvasTracking: () => void;
296
296
  flushBuffer: (buffer: Message[]) => Promise<unknown>;
@@ -28,6 +28,12 @@ export default abstract class Observer {
28
28
  private readonly inlineRemoteCss;
29
29
  private readonly inlinerOptions;
30
30
  private readonly domParser;
31
+ /**
32
+ * Bumped on every disconnect(). Stale async CSS-inlining callbacks from a
33
+ * previous session (e.g. agent reload → tracker restart) compare against
34
+ * this and bail instead of sending messages that reference vanished node ids.
35
+ */
36
+ private generation;
31
37
  constructor(app: App, isTopContext?: boolean, options?: Options);
32
38
  private clear;
33
39
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "18.0.1-beta.0",
4
+ "version": "18.0.2",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"