@openreplay/tracker 17.2.8 → 17.2.9

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.
@@ -171,11 +171,10 @@ export default class App {
171
171
  parentActive: boolean;
172
172
  checkStatus: () => boolean;
173
173
  parentCrossDomainFrameListener: (event: MessageEvent) => void;
174
- /**
175
- * context ids for iframes,
176
- * order is not so important as long as its consistent
177
- * */
178
174
  trackedFrames: string[];
175
+ private frameLastSeen;
176
+ private readonly FRAME_STALE_MS;
177
+ private pruneStaleFrames;
179
178
  crossDomainIframeListener: (event: MessageEvent) => void;
180
179
  /**
181
180
  * { command : [remaining iframes] }
@@ -290,6 +289,7 @@ export default class App {
290
289
  * */
291
290
  uploadOfflineRecording(): Promise<void>;
292
291
  prevOpts: StartOptions;
292
+ private userStartCallback?;
293
293
  private _start;
294
294
  restartCanvasTracking: () => void;
295
295
  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
  /**
@@ -171,11 +171,10 @@ export default class App {
171
171
  parentActive: boolean;
172
172
  checkStatus: () => boolean;
173
173
  parentCrossDomainFrameListener: (event: MessageEvent) => void;
174
- /**
175
- * context ids for iframes,
176
- * order is not so important as long as its consistent
177
- * */
178
174
  trackedFrames: string[];
175
+ private frameLastSeen;
176
+ private readonly FRAME_STALE_MS;
177
+ private pruneStaleFrames;
179
178
  crossDomainIframeListener: (event: MessageEvent) => void;
180
179
  /**
181
180
  * { command : [remaining iframes] }
@@ -290,6 +289,7 @@ export default class App {
290
289
  * */
291
290
  uploadOfflineRecording(): Promise<void>;
292
291
  prevOpts: StartOptions;
292
+ private userStartCallback?;
293
293
  private _start;
294
294
  restartCanvasTracking: () => void;
295
295
  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": "17.2.8",
4
+ "version": "17.2.9",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"