@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 CHANGED
@@ -10359,7 +10359,7 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10359
10359
  __publicField(this, "exitMutTracker");
10360
10360
  __publicField(this, "interval", 50);
10361
10361
  __publicField(this, "exitInterval", 100);
10362
- __publicField(this, "mutThreshold", 250);
10362
+ __publicField(this, "mutThreshold", 500);
10363
10363
  __publicField(this, "inGlobalStorm", false);
10364
10364
  __publicField(this, "currentStormStartedAt", -1);
10365
10365
  __publicField(this, "stormTimeLimit", 5e3);
@@ -10390,6 +10390,10 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10390
10390
  this.resetExitTracker();
10391
10391
  this.currentStormStartedAt = -1;
10392
10392
  }
10393
+ unregisterBuffer(bufId) {
10394
+ if (!bufId || !(bufId in this.handleStormFinishMethods)) return;
10395
+ delete this.handleStormFinishMethods[bufId];
10396
+ }
10393
10397
  stormStopped(stoppedByBuffer) {
10394
10398
  if (this.debounceTimeout) clearTimeout(this.debounceTimeout);
10395
10399
  this.inGlobalStorm = false;
@@ -10657,7 +10661,7 @@ class MutationBuffer {
10657
10661
  __publicField(this, "stormBatches", []);
10658
10662
  __publicField(this, "stormInfo", null);
10659
10663
  __publicField(this, "stormSettings", {
10660
- batchSize: 50,
10664
+ batchSize: 250,
10661
10665
  //was 300
10662
10666
  timeout: 50,
10663
10667
  //was 50
@@ -10742,8 +10746,8 @@ class MutationBuffer {
10742
10746
  }
10743
10747
  if (this.stormInfo != null || muts.length >= this.stormSettings.batchSize) {
10744
10748
  this.handleStormMutations(muts);
10749
+ return;
10745
10750
  }
10746
- return;
10747
10751
  }
10748
10752
  for (const mut of muts) {
10749
10753
  this.processMutation(mut);
@@ -11156,7 +11160,7 @@ class MutationBuffer {
11156
11160
  const n2 = m.removedNodes[i2];
11157
11161
  const nodeId = this.mirror.getId(n2);
11158
11162
  if (isIgnored(n2, this.mirror, this.slimDOMOptions) || !isSerialized(n2, this.mirror)) {
11159
- return;
11163
+ continue;
11160
11164
  }
11161
11165
  if (this.addedSet.has(n2)) {
11162
11166
  deepDelete(this.addedSet, n2);
@@ -11266,6 +11270,10 @@ class MutationBuffer {
11266
11270
  reset() {
11267
11271
  this.shadowDomManager.reset();
11268
11272
  this.canvasManager.reset();
11273
+ this.unregisterBuffer();
11274
+ }
11275
+ unregisterBuffer() {
11276
+ mutationRateLimiter.unregisterBuffer(this.bufId);
11269
11277
  }
11270
11278
  }
11271
11279
  function deepDelete(addsSet, n2) {