mixpanel-react-native 3.0.6 → 3.0.8

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,5 +1,22 @@
1
1
  #
2
2
 
3
+ ## [v3.0.8](https://github.com/mixpanel/mixpanel-react-native/tree/v3.0.8) (2024-11-21)
4
+
5
+ ### Fixes
6
+
7
+ - encodeURIComponent body JSON data [\#277](https://github.com/mixpanel/mixpanel-react-native/pull/277)
8
+
9
+ #
10
+
11
+ ## [v3.0.7](https://github.com/mixpanel/mixpanel-react-native/tree/v3.0.7) (2024-09-26)
12
+
13
+ ### Fixes
14
+
15
+ - Revert the minSDK to 21 [\#271](https://github.com/mixpanel/mixpanel-react-native/pull/271)
16
+ - revert android [\#267](https://github.com/mixpanel/mixpanel-react-native/pull/267)
17
+
18
+ #
19
+
3
20
  ## [v3.0.6](https://github.com/mixpanel/mixpanel-react-native/tree/v3.0.6) (2024-09-10)
4
21
 
5
22
  ### Enhancements
@@ -461,3 +478,7 @@ This major release removes all remaining calls to Mixpanel's `/decide` API endpo
461
478
 
462
479
 
463
480
 
481
+
482
+
483
+
484
+
@@ -1,7 +1,7 @@
1
1
  buildscript {
2
2
  ext {
3
3
  buildToolsVersion = "34.0.0"
4
- minSdkVersion = 23
4
+ minSdkVersion = 21
5
5
  compileSdkVersion = 34
6
6
  targetSdkVersion = 34
7
7
  ndkVersion = "26.1.10909125"
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "mixpanel-react-native": "file:../..",
14
14
  "react": "18.2.0",
15
- "react-native": "0.74.1"
15
+ "react-native": "0.73.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.20.0",
@@ -21,7 +21,7 @@ android {
21
21
  }
22
22
 
23
23
  defaultConfig {
24
- minSdkVersion 23
24
+ minSdkVersion 21
25
25
  targetSdkVersion 34
26
26
  versionCode 1
27
27
  versionName "1.0"
@@ -41,5 +41,5 @@ repositories {
41
41
 
42
42
  dependencies {
43
43
  implementation 'com.facebook.react:react-native:+'
44
- implementation 'com.mixpanel.android:mixpanel-android:7.5.3'
44
+ implementation 'com.mixpanel.android:mixpanel-android:7.5.2'
45
45
  }
@@ -26,7 +26,7 @@ export const MixpanelNetwork = (() => {
26
26
  headers: {
27
27
  "Content-Type": "application/x-www-form-urlencoded",
28
28
  },
29
- body: `data=${JSON.stringify(data)}`,
29
+ body: `data=${encodeURIComponent(JSON.stringify(data))}`,
30
30
  });
31
31
 
32
32
  const responseBody = await response.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mixpanel-react-native",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "description": "Official React Native Tracking Library for Mixpanel Analytics",
5
5
  "main": "index.js",
6
6
  "scripts": {