@coralogix/browser 2.14.0 → 3.0.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,32 @@
1
+ # 3.0.0 (2025-12-25)
2
+
3
+ ### 🔥 Performance
4
+
5
+ - ⚠️ **browser:** disable TBT metric by default to reduce overhead.
6
+
7
+ ### ⚠️ Breaking Changes
8
+
9
+ - TBT web-vitals metric is no longer collected by default. Enable it explicitly via config.
10
+
11
+ **For example**:
12
+
13
+ **Before**
14
+ All Web Vitals instrumentation metrics are enabled by default.
15
+
16
+ **After**
17
+ To enable the **TBT** metric, explicitly configure it as shown below:
18
+
19
+ ```json
20
+ {
21
+ "instrumentations": {
22
+ "web_vitals": {
23
+ "metrics": {
24
+ "tbt": true
25
+ }
26
+ }
27
+ }
28
+ }
29
+ ```
1
30
  ## 2.14.0 (2025-12-07)
2
31
 
3
32
  ### 🚀 Features
package/README.md CHANGED
@@ -242,6 +242,24 @@ CoralogixRum.init({
242
242
  });
243
243
  ```
244
244
 
245
+ ##### Web Vitals: TBT metric
246
+
247
+ By default, the **TBT** (Total Blocking Time) metric is disabled.
248
+ To enable it, explicitly configure it as shown below:
249
+
250
+ ```json
251
+ {
252
+ "instrumentations": {
253
+ "web_vitals": {
254
+ "enabled": true,
255
+ "metrics": {
256
+ "tbt": true
257
+ }
258
+ }
259
+ }
260
+ }
261
+ ```
262
+
245
263
  ### Manually Capture Errors
246
264
 
247
265
  You can pass an Error object to capture it as an event.<br>
package/index.esm2.js CHANGED
@@ -1239,7 +1239,7 @@ var ALL_WEB_VITALS_METRICS = {
1239
1239
  fcp: true,
1240
1240
  inp: true,
1241
1241
  ttfb: true,
1242
- tbt: true,
1242
+ tbt: false,
1243
1243
  lt: true,
1244
1244
  };
1245
1245
  var LONGTASK_DURATION = 50;
@@ -1577,7 +1577,7 @@ var CoralogixWebVitalsInstrumentation = (function (_super) {
1577
1577
  };
1578
1578
  _this.metrics = isEmpty(config.metrics)
1579
1579
  ? ALL_WEB_VITALS_METRICS
1580
- : config.metrics;
1580
+ : __assign(__assign({}, ALL_WEB_VITALS_METRICS), config.metrics);
1581
1581
  if (!isPerformanceObserverSupported()) {
1582
1582
  return _this;
1583
1583
  }
@@ -4138,7 +4138,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
4138
4138
  return resolvedUrlBlueprinters;
4139
4139
  }
4140
4140
 
4141
- var SDK_VERSION = '2.14.0';
4141
+ var SDK_VERSION = '3.0.0';
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": "2.14.0",
3
+ "version": "3.0.0",
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.14.0";
1
+ export declare const SDK_VERSION = "3.0.0";