@coralogix/browser 3.1.1 → 3.2.0

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,7 @@
1
+ ## 3.2.0 (2026-02-05)
2
+
3
+ - Create new zoneless CDN for Angular consumers
4
+
1
5
  ## 3.1.1 (2026-02-01)
2
6
 
3
7
  ### 🩹 Fixes
package/README.md CHANGED
@@ -1073,7 +1073,7 @@ window.CoralogixRum.init(...);
1073
1073
  // In case of warning from TSC
1074
1074
  declare global {
1075
1075
  interface Window {
1076
- CoralogixRum: CoralogixOtelWebType;
1076
+ CoralogixRum: any;
1077
1077
  }
1078
1078
  }
1079
1079
  ```
package/index.esm2.js CHANGED
@@ -593,9 +593,9 @@ var CoralogixErrorInstrumentation = (function (_super) {
593
593
  };
594
594
  CoralogixErrorInstrumentation.prototype.reportError = function (source, err, customData, labels) {
595
595
  return __awaiter(this, void 0, void 0, function () {
596
- var message, name, span, cleanMessage;
597
- return __generator(this, function (_a) {
598
- switch (_a.label) {
596
+ var message, name, span, cleanMessage, supportMfe;
597
+ return __generator(this, function (_b) {
598
+ switch (_b.label) {
599
599
  case 0:
600
600
  message = err.message, name = err.name;
601
601
  span = this.createSpan('error');
@@ -610,9 +610,16 @@ var CoralogixErrorInstrumentation = (function (_super) {
610
610
  if (labels) {
611
611
  setCustomLabelsForSpan(span, labels);
612
612
  }
613
+ supportMfe = getSdkConfig().supportMfe;
614
+ if (!supportMfe) return [3, 2];
613
615
  return [4, buildStacktrace(span, err)];
614
616
  case 1:
615
- _a.sent();
617
+ _b.sent();
618
+ return [3, 3];
619
+ case 2:
620
+ void buildStacktrace(span, err);
621
+ _b.label = 3;
622
+ case 3:
616
623
  span.end();
617
624
  return [2];
618
625
  }
@@ -4145,7 +4152,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
4145
4152
  return resolvedUrlBlueprinters;
4146
4153
  }
4147
4154
 
4148
- var SDK_VERSION = '3.1.1';
4155
+ var SDK_VERSION = '3.2.0';
4149
4156
 
4150
4157
  function shouldDropEvent(cxRumEvent, options) {
4151
4158
  if (isDocumentErrorWithoutMessage(cxRumEvent)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
@@ -1,6 +1 @@
1
- export interface BrowserWindowWithZoneJs extends Window {
2
- Zone?: {
3
- __symbol__?: (name: string) => string;
4
- };
5
- }
6
1
  export declare function getZoneJsOriginalDom<Target, Name extends keyof Target & string>(target: Target, name: Name): Target[Name];
@@ -0,0 +1,10 @@
1
+ export interface ZoneType {
2
+ root: ZoneType;
3
+ current: ZoneType;
4
+ __symbol__?: (name: string) => string;
5
+ run: <T>(fn: () => T) => T;
6
+ }
7
+ export declare function hasZoneJs(): boolean;
8
+ export declare function isInRootZone(): boolean;
9
+ export declare function runOutsideAngularZone<T>(fn: () => T): T;
10
+ export declare function patchAsyncApisForZone(): (() => void) | undefined;
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.1";
1
+ export declare const SDK_VERSION = "3.2.0";