@coralogix/browser 2.8.4 → 2.8.5

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.5 (2025-06-25)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **web vitals:** add missing PerformanceNavigationTiming fields to LT event
6
+
1
7
  ## 2.8.4 (2025-05-29)
2
8
 
3
9
  ### 🩹 Fixes & Improvements
package/index.esm2.js CHANGED
@@ -1698,24 +1698,8 @@ var CoralogixWebVitalsInstrumentation = /** @class */ (function (_super) {
1698
1698
  var loadingPageObserver = new PerformanceObserver(function (list) {
1699
1699
  var loadTimeMetric;
1700
1700
  list.getEntries().forEach(function (entry) {
1701
- var _a = entry, duration = _a.duration, name = _a.name, type = _a.type, activationStart = _a.activationStart, domComplete = _a.domComplete, domContentLoadedEventEnd = _a.domContentLoadedEventEnd, domContentLoadedEventStart = _a.domContentLoadedEventStart, domInteractive = _a.domInteractive, loadEventEnd = _a.loadEventEnd, loadEventStart = _a.loadEventStart, redirectCount = _a.redirectCount, unloadEventStart = _a.unloadEventStart, unloadEventEnd = _a.unloadEventEnd;
1702
- loadTimeMetric = {
1703
- name: 'LT',
1704
- id: generateWebVitalUniqueID(),
1705
- value: duration,
1706
- url: name,
1707
- navigationType: type,
1708
- activationStart: activationStart,
1709
- domComplete: domComplete,
1710
- domContentLoadedEventEnd: domContentLoadedEventEnd,
1711
- domContentLoadedEventStart: domContentLoadedEventStart,
1712
- domInteractive: domInteractive,
1713
- loadEventEnd: loadEventEnd,
1714
- loadEventStart: loadEventStart,
1715
- redirectCount: redirectCount,
1716
- unloadEventStart: unloadEventStart,
1717
- unloadEventEnd: unloadEventEnd,
1718
- };
1701
+ var _a = entry, duration = _a.duration, name = _a.name, type = _a.type;
1702
+ loadTimeMetric = __assign(__assign({}, deepClone(entry)), { name: 'LT', id: generateWebVitalUniqueID(), value: duration, url: name, navigationType: type });
1719
1703
  if (duration) {
1720
1704
  _this.onReport(loadTimeMetric);
1721
1705
  }
@@ -4217,7 +4201,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
4217
4201
  return resolvedUrlBlueprinters;
4218
4202
  }
4219
4203
 
4220
- var SDK_VERSION = '2.8.4';
4204
+ var SDK_VERSION = '2.8.5';
4221
4205
 
4222
4206
  function shouldDropEvent(cxRumEvent, options) {
4223
4207
  if (isDocumentErrorWithoutMessage(cxRumEvent)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.8.4";
1
+ export declare const SDK_VERSION = "2.8.5";