@openreplay/tracker 18.0.7-beta.0 → 18.0.7

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/lib/index.js CHANGED
@@ -3343,10 +3343,6 @@ class Observer {
3343
3343
  this.throttledSetNodeData.clear();
3344
3344
  this.generation++;
3345
3345
  }
3346
- /** Clear pending throttled-trailing setNodeData calls. Called from
3347
- * top-level observe() before re-snapshotting so the second snapshot's
3348
- * emissions fire as fresh first-calls instead of being deduped against
3349
- * stale lastCalls entries from the previous snapshot. */
3350
3346
  resetThrottledSetNodeData() {
3351
3347
  this.throttledSetNodeData.clear();
3352
3348
  }
@@ -3624,13 +3620,6 @@ class TopObserver extends Observer {
3624
3620
  observer.handleShadowRoot(shadow);
3625
3621
  return shadow;
3626
3622
  };
3627
- // Reset the throttled setNodeData state before re-snapshotting. Without this,
3628
- // a re-snapshot triggered by restart() (e.g. auth token age) within the throttle
3629
- // window (30ms) of the previous snapshot would dedupe its setNodeData emissions
3630
- // against the previous snapshot's lastCalls and queue trailing fires whose
3631
- // args reflect the post-restart DOM state (often empty for antd v5 cssinjs
3632
- // placeholders). Disconnecting first would also work but observe() isn't
3633
- // always preceded by disconnect().
3634
3623
  this.resetThrottledSetNodeData();
3635
3624
  this.app.nodes.clear();
3636
3625
  // Can observe documentElement (<html>) here, because it is not supposed to be changing.
@@ -4020,7 +4009,7 @@ class App {
4020
4009
  this.stopCallbacks = [];
4021
4010
  this.commitCallbacks = [];
4022
4011
  this.activityState = ActivityState.NotActive;
4023
- this.version = '18.0.7-beta.0'; // TODO: version compatability check inside each plugin.
4012
+ this.version = '18.0.7'; // TODO: version compatability check inside each plugin.
4024
4013
  this.socketMode = false;
4025
4014
  this.compressionThreshold = 24 * 1000;
4026
4015
  this.bc = null;
@@ -9017,7 +9006,7 @@ class ConstantProperties {
9017
9006
  user_id: this.user_id,
9018
9007
  distinct_id: this.deviceId,
9019
9008
  sdk_edition: 'web',
9020
- sdk_version: '18.0.7-beta.0',
9009
+ sdk_version: '18.0.7',
9021
9010
  timezone: getUTCOffsetString(),
9022
9011
  search_engine: this.searchEngine,
9023
9012
  };
@@ -9719,7 +9708,7 @@ class API {
9719
9708
  this.signalStartIssue = (reason, missingApi) => {
9720
9709
  const doNotTrack = this.checkDoNotTrack();
9721
9710
  console.log("Tracker couldn't start due to:", JSON.stringify({
9722
- trackerVersion: '18.0.7-beta.0',
9711
+ trackerVersion: '18.0.7',
9723
9712
  projectKey: this.options.projectKey,
9724
9713
  doNotTrack,
9725
9714
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,