@coralogix/browser 2.8.8 → 2.8.9

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
+ ## 2.8.9 (2025-07-24)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **sdk:** improve SDK shutdown handling
6
+
1
7
  ## 2.8.8 (2025-07-20)
2
8
 
3
9
  ### 🩹 Fixes
package/index.esm2.js CHANGED
@@ -1058,6 +1058,7 @@ var CoralogixFetchInstrumentation = (function (_super) {
1058
1058
  });
1059
1059
  });
1060
1060
  };
1061
+ CoralogixFetchInstrumentation.prototype.disable = function () { };
1061
1062
  return CoralogixFetchInstrumentation;
1062
1063
  }(FetchInstrumentation));
1063
1064
 
@@ -1112,6 +1113,7 @@ var CoralogixXhrInstrumentation = (function (_super) {
1112
1113
  Object.fromEntries(sanitizedHeaders);
1113
1114
  }
1114
1115
  };
1116
+ CoralogixXhrInstrumentation.prototype.disable = function () { };
1115
1117
  return CoralogixXhrInstrumentation;
1116
1118
  }(XMLHttpRequestInstrumentation));
1117
1119
 
@@ -3933,7 +3935,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
3933
3935
  return resolvedUrlBlueprinters;
3934
3936
  }
3935
3937
 
3936
- var SDK_VERSION = '2.8.8';
3938
+ var SDK_VERSION = '2.8.9';
3937
3939
 
3938
3940
  function shouldDropEvent(cxRumEvent, options) {
3939
3941
  if (isDocumentErrorWithoutMessage(cxRumEvent)) {
@@ -4656,7 +4658,7 @@ var CoralogixRum = {
4656
4658
  };
4657
4659
  },
4658
4660
  shutdown: function () {
4659
- var _a;
4661
+ var _a, _b;
4660
4662
  if (!isInited) {
4661
4663
  return;
4662
4664
  }
@@ -4670,6 +4672,9 @@ var CoralogixRum = {
4670
4672
  snapshotProcessor === null || snapshotProcessor === void 0 ? void 0 : snapshotProcessor.shutdown();
4671
4673
  exporter === null || exporter === void 0 ? void 0 : exporter.shutdown();
4672
4674
  isInited = false;
4675
+ if ((_b = getSdkConfig()) === null || _b === void 0 ? void 0 : _b.debug) {
4676
+ console.debug('Coralogix Browser SDK - shutdown has completed');
4677
+ }
4673
4678
  },
4674
4679
  setApplicationContext: function (applicationContext) {
4675
4680
  var _a;
@@ -4716,6 +4721,13 @@ var CoralogixRum = {
4716
4721
  (_a = getSessionRecorder()) === null || _a === void 0 ? void 0 : _a.stopRecording();
4717
4722
  },
4718
4723
  startSessionRecording: function () {
4724
+ var _a;
4725
+ if (!isInited) {
4726
+ if ((_a = getSdkConfig()) === null || _a === void 0 ? void 0 : _a.debug) {
4727
+ console.debug('Coralogix Browser SDK - CoralogixRum must be initiated before starting session recording');
4728
+ }
4729
+ return;
4730
+ }
4719
4731
  if (getSessionRecorder()) {
4720
4732
  getSessionRecorder().startRecording();
4721
4733
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "2.8.8",
3
+ "version": "2.8.9",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
@@ -9,4 +9,5 @@ export declare class CoralogixFetchInstrumentation extends FetchInstrumentation
9
9
  private setNetworkSpanAttributes;
10
10
  private setRequestAttributes;
11
11
  private setResponseAttributes;
12
+ disable(): void;
12
13
  }
@@ -8,4 +8,5 @@ export declare class CoralogixXhrInstrumentation extends XMLHttpRequestInstrumen
8
8
  constructor(config: XMLHttpRequestInstrumentationConfig);
9
9
  private setNetworkSpanAttributes;
10
10
  private setResponseAttributes;
11
+ disable(): void;
11
12
  }
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.8.8";
1
+ export declare const SDK_VERSION = "2.8.9";