@coralogix/browser 3.0.1 → 3.0.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.0.2 (2026-01-20)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - Revert mutation counter limit that could cause incomplete session recordings
6
+
1
7
  ## 3.0.1 (2026-01-18)
2
8
 
3
9
  ### 🩹 Fixes
package/index.esm2.js CHANGED
@@ -4138,7 +4138,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
4138
4138
  return resolvedUrlBlueprinters;
4139
4139
  }
4140
4140
 
4141
- var SDK_VERSION = '3.0.1';
4141
+ var SDK_VERSION = '3.0.2';
4142
4142
 
4143
4143
  function shouldDropEvent(cxRumEvent, options) {
4144
4144
  if (isDocumentErrorWithoutMessage(cxRumEvent)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
@@ -1484,7 +1484,6 @@ var SessionRecorder = (function () {
1484
1484
  this.isErrorOccurred = false;
1485
1485
  this.debugMode = !!((_a = getSdkConfig()) === null || _a === void 0 ? void 0 : _a.debug);
1486
1486
  this._recordingStopDueToTimeout = false;
1487
- this.mutationCallbackCount = 0;
1488
1487
  this.handleRecordEvent = function (event, isCheckout) {
1489
1488
  if (!_this.recordingStopped) {
1490
1489
  if (_this.onlySessionWithErrorMode) {
@@ -1607,7 +1606,6 @@ var SessionRecorder = (function () {
1607
1606
  if (this.debugMode) {
1608
1607
  console.debug('Coralogix Browser SDK - Session recording started');
1609
1608
  }
1610
- this.mutationCallbackCount = 0;
1611
1609
  this.startMutationObserver();
1612
1610
  this.resetBatching();
1613
1611
  this.recordingStopped = false;
@@ -1657,9 +1655,8 @@ var SessionRecorder = (function () {
1657
1655
  var _this = this;
1658
1656
  this.stopMutationObserver();
1659
1657
  this.mutationObserver = new MutationObserver(function (mutations) {
1660
- _this.mutationCallbackCount++;
1661
- if (_this.mutationCallbackCount > _this.maxMutations) {
1662
- var message = "Coralogix Browser SDK - Recording stopped due to too many mutations ".concat(_this.mutationCallbackCount);
1658
+ if (mutations.length > _this.maxMutations) {
1659
+ var message = "Coralogix Browser SDK - Recording stopped due to too many mutations ".concat(mutations.length);
1663
1660
  console.warn(message);
1664
1661
  reportInternalEvent('recording-stop', message);
1665
1662
  _this.stopRecording();
@@ -25,7 +25,6 @@ export declare class SessionRecorder {
25
25
  private request;
26
26
  private workerManager;
27
27
  private isWorkerReady;
28
- private mutationCallbackCount;
29
28
  constructor(sessionManager: SessionManager, recordConfig: SessionRecordingConfig);
30
29
  getSessionHasScreenshot(): boolean;
31
30
  getSessionHasRecording(): boolean;
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.0.1";
1
+ export declare const SDK_VERSION = "3.0.2";