mixpanel-react-native 3.2.1 → 3.3.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,5 +1,25 @@
1
1
  #
2
2
 
3
+ ## [v3.3.0](https://github.com/mixpanel/mixpanel-react-native/tree/v3.3.0) (2026-02-17)
4
+
5
+ ### Enhancements
6
+
7
+ - Set server URL during initialization using MixpanelOptions [\#368](https://github.com/mixpanel/mixpanel-react-native/pull/368)
8
+
9
+ #
10
+
11
+ ## [v3.2.2](https://github.com/mixpanel/mixpanel-react-native/tree/v3.2.2) (2026-01-17)
12
+
13
+ #
14
+
15
+ ## [v3.2.1](https://github.com/mixpanel/mixpanel-react-native/tree/v3.2.1) (2026-01-17)
16
+
17
+ ### Enhancements
18
+
19
+ - bump android to 8.2.5 [\#355](https://github.com/mixpanel/mixpanel-react-native/pull/355)
20
+
21
+ #
22
+
3
23
  ## [v3.2.0](https://github.com/mixpanel/mixpanel-react-native/tree/v3.2.0) (2026-01-17)
4
24
 
5
25
  ### Enhancements
@@ -552,6 +572,12 @@ This major release removes all remaining calls to Mixpanel's `/decide` API endpo
552
572
 
553
573
 
554
574
 
575
+
576
+
577
+
578
+
579
+
580
+
555
581
 
556
582
 
557
583
 
@@ -19,5 +19,5 @@ Pod::Spec.new do |s|
19
19
  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
20
20
 
21
21
  s.dependency "React-Core"
22
- s.dependency "Mixpanel-swift", '5.1.3'
22
+ s.dependency "Mixpanel-swift", '5.2.0'
23
23
  end
@@ -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:8.2.5'
44
+ implementation 'com.mixpanel.android:mixpanel-android:8.3.0'
45
45
  }
@@ -1,6 +1,7 @@
1
1
  package com.mixpanel.reactnative;
2
2
 
3
3
  import com.mixpanel.android.mpmetrics.MixpanelAPI;
4
+ import com.mixpanel.android.mpmetrics.MixpanelOptions;
4
5
 
5
6
  import com.facebook.react.bridge.Promise;
6
7
  import com.facebook.react.bridge.ReactApplicationContext;
@@ -36,8 +37,12 @@ public class MixpanelReactNativeModule extends ReactContextBaseJavaModule {
36
37
  public void initialize(String token, boolean trackAutomaticEvents, boolean optOutTrackingDefault, ReadableMap metadata, String serverURL, boolean useGzipCompression, Promise promise) throws JSONException {
37
38
  JSONObject mixpanelProperties = ReactNativeHelper.reactToJSON(metadata);
38
39
  AutomaticProperties.setAutomaticProperties(mixpanelProperties);
39
- MixpanelAPI instance = MixpanelAPI.getInstance(this.mReactContext, token, optOutTrackingDefault, mixpanelProperties, null, trackAutomaticEvents);
40
- instance.setServerURL(serverURL);
40
+ MixpanelOptions options = new MixpanelOptions.Builder()
41
+ .serverURL(serverURL)
42
+ .optOutTrackingDefault(optOutTrackingDefault)
43
+ .superProperties(mixpanelProperties)
44
+ .build();
45
+ MixpanelAPI instance = MixpanelAPI.getInstance(this.mReactContext, token, trackAutomaticEvents, options);
41
46
  if (useGzipCompression) {
42
47
  instance.setShouldGzipRequestPayload(true);
43
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mixpanel-react-native",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "description": "Official React Native Tracking Library for Mixpanel Analytics",
5
5
  "main": "index.js",
6
6
  "files": [