mixpanel-react-native 3.0.7 → 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,13 @@
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
+
3
11
  ## [v3.0.7](https://github.com/mixpanel/mixpanel-react-native/tree/v3.0.7) (2024-09-26)
4
12
 
5
13
  ### Fixes
@@ -472,3 +480,5 @@ This major release removes all remaining calls to Mixpanel's `/decide` API endpo
472
480
 
473
481
 
474
482
 
483
+
484
+
@@ -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.7",
3
+ "version": "3.0.8",
4
4
  "description": "Official React Native Tracking Library for Mixpanel Analytics",
5
5
  "main": "index.js",
6
6
  "scripts": {