@coralogix/react-native-plugin 0.2.3 → 0.2.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,16 @@
1
+ ## 0.2.5 (2025-12-08)
2
+
3
+ Fix: Resolved an issue where severity mapping bug by treating the value as Double instead of Int.
4
+
5
+ ## 0.2.4 (2025-12-07)
6
+
7
+ ### 🩹 Fixes
8
+
9
+
10
+ - Fixed network request duration reporting to use milliseconds instead of nanoseconds, ensuring accurate timing metrics in network request data
11
+ - Fixed severity 0, sometimes being sent as fallback to 0
12
+ - Patch: Bump Android native version to 2.6.2
13
+
1
14
  ## 0.2.3 (2025-12-04)
2
15
 
3
16
  ### 🩹 Fixes
@@ -75,7 +75,7 @@ dependencies {
75
75
  implementation "com.facebook.react:react-android"
76
76
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
77
77
 
78
- implementation "com.coralogix:android-sdk:2.6.1"
78
+ implementation "com.coralogix:android-sdk:2.6.2"
79
79
  }
80
80
 
81
81
  react {
@@ -395,6 +395,14 @@ class CxSdkModule(reactContext: ReactApplicationContext) :
395
395
  is Int -> writableMap.putInt(key, value)
396
396
  is Double -> writableMap.putDouble(key, value)
397
397
  is Float -> writableMap.putDouble(key, value.toDouble())
398
+ is Long -> {
399
+ if (key == "severity") {
400
+ writableMap.putInt(key, value.toInt())
401
+ } else {
402
+ writableMap.putString(key, value.toString())
403
+ }
404
+ }
405
+
398
406
  is String -> writableMap.putString(key, value)
399
407
  is Map<*, *> -> {
400
408
  @Suppress("UNCHECKED_CAST")
package/index.cjs.js CHANGED
@@ -219,7 +219,7 @@ function stopJsRefreshRateSampler() {
219
219
  appStateSub = null;
220
220
  }
221
221
 
222
- var version = "0.2.3";
222
+ var version = "0.2.5";
223
223
  var pkg = {
224
224
  version: version};
225
225
 
package/index.esm.js CHANGED
@@ -217,7 +217,7 @@ function stopJsRefreshRateSampler() {
217
217
  appStateSub = null;
218
218
  }
219
219
 
220
- var version = "0.2.3";
220
+ var version = "0.2.5";
221
221
  var pkg = {
222
222
  version: version};
223
223
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/react-native-plugin",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Official Coralogix React Native plugin",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",