@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/cjs/entry.js +3 -14
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +3 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/observer/observer.d.ts +0 -4
- package/dist/lib/entry.js +3 -14
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +3 -14
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/observer/observer.d.ts +0 -4
- package/dist/types/main/app/observer/observer.d.ts +0 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -3347,10 +3347,6 @@ class Observer {
|
|
|
3347
3347
|
this.throttledSetNodeData.clear();
|
|
3348
3348
|
this.generation++;
|
|
3349
3349
|
}
|
|
3350
|
-
/** Clear pending throttled-trailing setNodeData calls. Called from
|
|
3351
|
-
* top-level observe() before re-snapshotting so the second snapshot's
|
|
3352
|
-
* emissions fire as fresh first-calls instead of being deduped against
|
|
3353
|
-
* stale lastCalls entries from the previous snapshot. */
|
|
3354
3350
|
resetThrottledSetNodeData() {
|
|
3355
3351
|
this.throttledSetNodeData.clear();
|
|
3356
3352
|
}
|
|
@@ -3628,13 +3624,6 @@ class TopObserver extends Observer {
|
|
|
3628
3624
|
observer.handleShadowRoot(shadow);
|
|
3629
3625
|
return shadow;
|
|
3630
3626
|
};
|
|
3631
|
-
// Reset the throttled setNodeData state before re-snapshotting. Without this,
|
|
3632
|
-
// a re-snapshot triggered by restart() (e.g. auth token age) within the throttle
|
|
3633
|
-
// window (30ms) of the previous snapshot would dedupe its setNodeData emissions
|
|
3634
|
-
// against the previous snapshot's lastCalls and queue trailing fires whose
|
|
3635
|
-
// args reflect the post-restart DOM state (often empty for antd v5 cssinjs
|
|
3636
|
-
// placeholders). Disconnecting first would also work but observe() isn't
|
|
3637
|
-
// always preceded by disconnect().
|
|
3638
3627
|
this.resetThrottledSetNodeData();
|
|
3639
3628
|
this.app.nodes.clear();
|
|
3640
3629
|
// Can observe documentElement (<html>) here, because it is not supposed to be changing.
|
|
@@ -4024,7 +4013,7 @@ class App {
|
|
|
4024
4013
|
this.stopCallbacks = [];
|
|
4025
4014
|
this.commitCallbacks = [];
|
|
4026
4015
|
this.activityState = ActivityState.NotActive;
|
|
4027
|
-
this.version = '18.0.7
|
|
4016
|
+
this.version = '18.0.7'; // TODO: version compatability check inside each plugin.
|
|
4028
4017
|
this.socketMode = false;
|
|
4029
4018
|
this.compressionThreshold = 24 * 1000;
|
|
4030
4019
|
this.bc = null;
|
|
@@ -9021,7 +9010,7 @@ class ConstantProperties {
|
|
|
9021
9010
|
user_id: this.user_id,
|
|
9022
9011
|
distinct_id: this.deviceId,
|
|
9023
9012
|
sdk_edition: 'web',
|
|
9024
|
-
sdk_version: '18.0.7
|
|
9013
|
+
sdk_version: '18.0.7',
|
|
9025
9014
|
timezone: getUTCOffsetString(),
|
|
9026
9015
|
search_engine: this.searchEngine,
|
|
9027
9016
|
};
|
|
@@ -9723,7 +9712,7 @@ class API {
|
|
|
9723
9712
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9724
9713
|
const doNotTrack = this.checkDoNotTrack();
|
|
9725
9714
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9726
|
-
trackerVersion: '18.0.7
|
|
9715
|
+
trackerVersion: '18.0.7',
|
|
9727
9716
|
projectKey: this.options.projectKey,
|
|
9728
9717
|
doNotTrack,
|
|
9729
9718
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|