@glimt/record 0.0.88 → 0.0.89
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/record.cjs +12 -4
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +12 -4
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +12 -4
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +22 -22
- package/dist/record.umd.min.cjs.map +3 -3
- package/package.json +2 -2
package/dist/record.umd.cjs
CHANGED
|
@@ -10400,7 +10400,7 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
|
|
|
10400
10400
|
__publicField(this, "exitMutTracker");
|
|
10401
10401
|
__publicField(this, "interval", 50);
|
|
10402
10402
|
__publicField(this, "exitInterval", 100);
|
|
10403
|
-
__publicField(this, "mutThreshold",
|
|
10403
|
+
__publicField(this, "mutThreshold", 500);
|
|
10404
10404
|
__publicField(this, "inGlobalStorm", false);
|
|
10405
10405
|
__publicField(this, "currentStormStartedAt", -1);
|
|
10406
10406
|
__publicField(this, "stormTimeLimit", 5e3);
|
|
@@ -10431,6 +10431,10 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
|
|
|
10431
10431
|
this.resetExitTracker();
|
|
10432
10432
|
this.currentStormStartedAt = -1;
|
|
10433
10433
|
}
|
|
10434
|
+
unregisterBuffer(bufId) {
|
|
10435
|
+
if (!bufId || !(bufId in this.handleStormFinishMethods)) return;
|
|
10436
|
+
delete this.handleStormFinishMethods[bufId];
|
|
10437
|
+
}
|
|
10434
10438
|
stormStopped(stoppedByBuffer) {
|
|
10435
10439
|
if (this.debounceTimeout) clearTimeout(this.debounceTimeout);
|
|
10436
10440
|
this.inGlobalStorm = false;
|
|
@@ -10698,7 +10702,7 @@ class MutationBuffer {
|
|
|
10698
10702
|
__publicField(this, "stormBatches", []);
|
|
10699
10703
|
__publicField(this, "stormInfo", null);
|
|
10700
10704
|
__publicField(this, "stormSettings", {
|
|
10701
|
-
batchSize:
|
|
10705
|
+
batchSize: 250,
|
|
10702
10706
|
//was 300
|
|
10703
10707
|
timeout: 50,
|
|
10704
10708
|
//was 50
|
|
@@ -10783,8 +10787,8 @@ class MutationBuffer {
|
|
|
10783
10787
|
}
|
|
10784
10788
|
if (this.stormInfo != null || muts.length >= this.stormSettings.batchSize) {
|
|
10785
10789
|
this.handleStormMutations(muts);
|
|
10790
|
+
return;
|
|
10786
10791
|
}
|
|
10787
|
-
return;
|
|
10788
10792
|
}
|
|
10789
10793
|
for (const mut of muts) {
|
|
10790
10794
|
this.processMutation(mut);
|
|
@@ -11197,7 +11201,7 @@ class MutationBuffer {
|
|
|
11197
11201
|
const n2 = m.removedNodes[i2];
|
|
11198
11202
|
const nodeId = this.mirror.getId(n2);
|
|
11199
11203
|
if (isIgnored(n2, this.mirror, this.slimDOMOptions) || !isSerialized(n2, this.mirror)) {
|
|
11200
|
-
|
|
11204
|
+
continue;
|
|
11201
11205
|
}
|
|
11202
11206
|
if (this.addedSet.has(n2)) {
|
|
11203
11207
|
deepDelete(this.addedSet, n2);
|
|
@@ -11307,6 +11311,10 @@ class MutationBuffer {
|
|
|
11307
11311
|
reset() {
|
|
11308
11312
|
this.shadowDomManager.reset();
|
|
11309
11313
|
this.canvasManager.reset();
|
|
11314
|
+
this.unregisterBuffer();
|
|
11315
|
+
}
|
|
11316
|
+
unregisterBuffer() {
|
|
11317
|
+
mutationRateLimiter.unregisterBuffer(this.bufId);
|
|
11310
11318
|
}
|
|
11311
11319
|
}
|
|
11312
11320
|
function deepDelete(addsSet, n2) {
|