@corbado/observe 0.5.0-next.37-0eb15e7 → 0.5.1

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/dist/index.d.mts CHANGED
@@ -605,8 +605,6 @@ interface TrackerOptions {
605
605
  * It will be removed in a future release.
606
606
  */
607
607
  flushInterval?: number;
608
- /** Generates new Observe session ids; returned values must be UUID-compatible. Existing stored sessions are still reused. */
609
- sessionIdGenerator?: () => string;
610
608
  }
611
609
  declare class CorbadoTracker {
612
610
  private options;
@@ -672,7 +670,6 @@ declare class CorbadoTracker {
672
670
  */
673
671
  private resolveExperiments;
674
672
  private isTrackingBlocked;
675
- private createSessionId;
676
673
  private getSessionId;
677
674
  /**
678
675
  * Resolve the session id from localStorage so it survives reloads and is shared across tabs of the
@@ -688,7 +685,9 @@ declare class CorbadoTracker {
688
685
  * seq order matches `track()` call order within a tab. Every tracked event also bumps the
689
686
  * continuity session's `lastActiveAt`, so the inactivity window measures real user inactivity
690
687
  * instead of time-since-page-load (a long-lived active tab must not rotate the session on the next
691
- * reload).
688
+ * reload). An empty store while this load already has a session id means persistence is failing
689
+ * (or was cleared); the in-memory id is reused then — never re-minted — so a broken store degrades
690
+ * to one session per page load instead of one session per event.
692
691
  */
693
692
  private nextSeq;
694
693
  private updateDeviceDebounced;
package/dist/index.d.ts CHANGED
@@ -605,8 +605,6 @@ interface TrackerOptions {
605
605
  * It will be removed in a future release.
606
606
  */
607
607
  flushInterval?: number;
608
- /** Generates new Observe session ids; returned values must be UUID-compatible. Existing stored sessions are still reused. */
609
- sessionIdGenerator?: () => string;
610
608
  }
611
609
  declare class CorbadoTracker {
612
610
  private options;
@@ -672,7 +670,6 @@ declare class CorbadoTracker {
672
670
  */
673
671
  private resolveExperiments;
674
672
  private isTrackingBlocked;
675
- private createSessionId;
676
673
  private getSessionId;
677
674
  /**
678
675
  * Resolve the session id from localStorage so it survives reloads and is shared across tabs of the
@@ -688,7 +685,9 @@ declare class CorbadoTracker {
688
685
  * seq order matches `track()` call order within a tab. Every tracked event also bumps the
689
686
  * continuity session's `lastActiveAt`, so the inactivity window measures real user inactivity
690
687
  * instead of time-since-page-load (a long-lived active tab must not rotate the session on the next
691
- * reload).
688
+ * reload). An empty store while this load already has a session id means persistence is failing
689
+ * (or was cleared); the in-memory id is reused then — never re-minted — so a broken store degrades
690
+ * to one session per page load instead of one session per event.
692
691
  */
693
692
  private nextSeq;
694
693
  private updateDeviceDebounced;