@coralogix/browser 2.7.0 → 2.8.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,9 @@
1
+ ## 2.8.0 (2025-05-11)
2
+
3
+ ### 🚀 Features
4
+
5
+ Build CDN versions (ES5/ES2015)
6
+
1
7
  ## 2.7.0 (2025-05-05)
2
8
 
3
9
  🚀 Features
package/README.md CHANGED
@@ -893,9 +893,17 @@ You can choose your desired version.
893
893
 
894
894
  #### Specific Version (recommended)
895
895
 
896
+ By default, the CDN is built using the <b>ES2015 (ES6)</b> standard.<br>
897
+
896
898
  https://cdn.rum-ingress-coralogix.com/coralogix/browser/[version]/coralogix-browser-sdk.js \
897
899
  Replace [version] with a version from [Releases page](https://www.npmjs.com/package/@coralogix/browser?activeTab=versions).
898
900
 
901
+ #### ES5
902
+
903
+ If you are targeting legacy environments, make sure to use the ES5-compatible version.
904
+
905
+ https://cdn.rum-ingress-coralogix.com/coralogix/browser/[version]/coralogix-browser-sdk.es5.js
906
+
899
907
  > _**Note: CDN latest has no longer maintained, please use an explicit version instead.**_
900
908
 
901
909
  ### Add the CDN script to your application
package/index.esm2.js CHANGED
@@ -1536,7 +1536,7 @@ C.prototype.m = function (a) {
1536
1536
  this.f.set(a, performance.now());
1537
1537
  };
1538
1538
  C.prototype.l = function (a) {
1539
- this.f.delete(a);
1539
+ this.f["delete"](a);
1540
1540
  };
1541
1541
  C.prototype.B = function () {
1542
1542
  G(this, performance.now() + 5e3);
@@ -3277,7 +3277,7 @@ var CompositePropagator = /** @class */function () {
3277
3277
  };
3278
3278
  } finally {
3279
3279
  try {
3280
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3280
+ if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
3281
3281
  } finally {
3282
3282
  if (e_1) throw e_1.error;
3283
3283
  }
@@ -3387,14 +3387,14 @@ var TraceState = /** @class */function () {
3387
3387
  // use the faster one.
3388
3388
  var traceState = this._clone();
3389
3389
  if (traceState._internalState.has(key)) {
3390
- traceState._internalState.delete(key);
3390
+ traceState._internalState["delete"](key);
3391
3391
  }
3392
3392
  traceState._internalState.set(key, value);
3393
3393
  return traceState;
3394
3394
  };
3395
3395
  TraceState.prototype.unset = function (key) {
3396
3396
  var traceState = this._clone();
3397
- traceState._internalState.delete(key);
3397
+ traceState._internalState["delete"](key);
3398
3398
  return traceState;
3399
3399
  };
3400
3400
  TraceState.prototype.get = function (key) {
@@ -4212,7 +4212,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
4212
4212
  return resolvedUrlBlueprinters;
4213
4213
  }
4214
4214
 
4215
- var SDK_VERSION = '2.7.0';
4215
+ var SDK_VERSION = '2.8.0';
4216
4216
 
4217
4217
  function shouldDropEvent(cxRumEvent, options) {
4218
4218
  if (isDocumentErrorWithoutMessage(cxRumEvent)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
@@ -80,6 +80,15 @@ function _createForOfIteratorHelper(r, e) {
80
80
  }
81
81
  };
82
82
  }
83
+ function _extends() {
84
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
85
+ for (var e = 1; e < arguments.length; e++) {
86
+ var t = arguments[e];
87
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
88
+ }
89
+ return n;
90
+ }, _extends.apply(null, arguments);
91
+ }
83
92
  function _toPrimitive(t, r) {
84
93
  if ("object" != typeof t || !t) return t;
85
94
  var e = t[Symbol.toPrimitive];
@@ -247,7 +256,7 @@ var Mirror = /*#__PURE__*/function () {
247
256
  value: function removeNodeFromMap(n) {
248
257
  var _this = this;
249
258
  var id = this.getId(n);
250
- this.idNodeMap.delete(id);
259
+ this.idNodeMap["delete"](id);
251
260
  if (n.childNodes) {
252
261
  n.childNodes.forEach(function (childNode) {
253
262
  return _this.removeNodeFromMap(childNode);
@@ -889,7 +898,7 @@ function serializeElementNode(n, options) {
889
898
  width = _n$getBoundingClientR.width,
890
899
  height = _n$getBoundingClientR.height;
891
900
  attributes2 = {
892
- class: attributes2.class,
901
+ "class": attributes2["class"],
893
902
  rr_width: "".concat(width, "px"),
894
903
  rr_height: "".concat(height, "px")
895
904
  };
@@ -1026,7 +1035,7 @@ function serializeNodeWithId(n, options) {
1026
1035
  } else {
1027
1036
  id = genId();
1028
1037
  }
1029
- var serializedNode2 = Object.assign(_serializedNode, {
1038
+ var serializedNode2 = _extends(_serializedNode, {
1030
1039
  id: id
1031
1040
  });
1032
1041
  mirror.add(n, serializedNode2);
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.7.0";
1
+ export declare const SDK_VERSION = "2.8.0";