mixpanel-react-native 3.0.0-beta.2 → 3.0.1
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/.github/workflows/node.js.yml +52 -46
- package/CHANGELOG.md +12 -0
- package/MixpanelReactNative.podspec +3 -3
- package/android/build.gradle +3 -3
- package/docs/Mixpanel.html +1 -1
- package/docs/MixpanelGroup.html +1 -1
- package/docs/People.html +1 -1
- package/docs/index.html +1 -1
- package/docs/index.js.html +3 -3
- package/index.js +2 -2
- package/logs/.b11bf985d66a037ca5688a574653f3bf76a28dfa-audit.json +11 -6
- package/logs/.c366df74eeb671df60a57a2075ae40a3dae2af25-audit.json +11 -6
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ name: Node.js CI
|
|
|
5
5
|
|
|
6
6
|
on:
|
|
7
7
|
push:
|
|
8
|
-
branches: [
|
|
8
|
+
branches: [master]
|
|
9
9
|
pull_request:
|
|
10
|
-
branches: [
|
|
10
|
+
branches: [master]
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
13
|
test_main_code:
|
|
@@ -17,14 +17,14 @@ jobs:
|
|
|
17
17
|
node-version: [18.x]
|
|
18
18
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
19
19
|
steps:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
- name: Checkout
|
|
21
|
+
uses: actions/checkout@v2
|
|
22
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
23
|
+
uses: actions/setup-node@v2
|
|
24
|
+
with:
|
|
25
|
+
node-version: ${{ matrix.node-version }}
|
|
26
|
+
- run: npm install
|
|
27
|
+
- run: npm test
|
|
28
28
|
|
|
29
29
|
test_android:
|
|
30
30
|
runs-on: macos-11
|
|
@@ -34,25 +34,32 @@ jobs:
|
|
|
34
34
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
35
35
|
|
|
36
36
|
steps:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
- name: Checkout
|
|
38
|
+
uses: actions/checkout@v2
|
|
39
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
40
|
+
uses: actions/setup-node@v2
|
|
41
|
+
with:
|
|
42
|
+
node-version: ${{ matrix.node-version }}
|
|
43
|
+
- run: npm install
|
|
44
|
+
- name: Test Integration - Install dependencies
|
|
45
|
+
working-directory: ./Samples/SimpleMixpanel
|
|
46
|
+
run: yarn install
|
|
47
|
+
- name: Setup Android
|
|
48
|
+
uses: reactivecircus/android-emulator-runner@v2.20.0
|
|
49
|
+
with:
|
|
50
|
+
api-level: 30
|
|
51
|
+
profile: Nexus 6
|
|
52
|
+
arch: x86_64
|
|
53
|
+
working-directory: ./Samples/SimpleMixpanel/android
|
|
54
|
+
script: ./gradlew
|
|
55
|
+
- name: Test Android
|
|
56
|
+
uses: reactivecircus/android-emulator-runner@v2.20.0
|
|
57
|
+
with:
|
|
58
|
+
api-level: 30
|
|
59
|
+
profile: Nexus 6
|
|
60
|
+
arch: x86_64
|
|
61
|
+
working-directory: ./Samples/SimpleMixpanel
|
|
62
|
+
script: yarn android
|
|
56
63
|
|
|
57
64
|
test_ios:
|
|
58
65
|
runs-on: macos-latest
|
|
@@ -61,20 +68,19 @@ jobs:
|
|
|
61
68
|
node-version: [18.x]
|
|
62
69
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
63
70
|
steps:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
- name: Checkout
|
|
72
|
+
uses: actions/checkout@v2
|
|
73
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
74
|
+
uses: actions/setup-node@v2
|
|
75
|
+
with:
|
|
76
|
+
node-version: ${{ matrix.node-version }}
|
|
77
|
+
- run: npm install
|
|
78
|
+
- name: Test Integration - Install dependencies
|
|
79
|
+
working-directory: ./Samples/SimpleMixpanel
|
|
80
|
+
run: yarn install
|
|
81
|
+
- name: Setup iOS
|
|
82
|
+
working-directory: ./Samples/SimpleMixpanel/ios
|
|
83
|
+
run: pod install --repo-update
|
|
84
|
+
- name: Test iOS
|
|
85
|
+
working-directory: ./Samples/SimpleMixpanel
|
|
86
|
+
run: yarn ios
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
#
|
|
2
2
|
|
|
3
|
+
## [v3.0.0](https://github.com/mixpanel/mixpanel-react-native/tree/v3.0.0) (2024-04-09)
|
|
4
|
+
|
|
5
|
+
This is the official release for Expo and React Native Web support. For more details, please refer to the release notes for versions [3.0.0-beta.2](https://github.com/mixpanel/mixpanel-react-native/blob/master/CHANGELOG.md#v300-beta2-2024-03-06) and [3.0.0-beta.1](https://github.com/mixpanel/mixpanel-react-native/blob/master/CHANGELOG.md#v300-beta1-2024-02-29).
|
|
6
|
+
|
|
7
|
+
### Enhancements
|
|
8
|
+
|
|
9
|
+
- bump ios version to 4.2.4 [\#228](https://github.com/mixpanel/mixpanel-react-native/pull/228)
|
|
10
|
+
|
|
11
|
+
#
|
|
12
|
+
|
|
3
13
|
## [v3.0.0-beta.2](https://github.com/mixpanel/mixpanel-react-native/tree/v3.0.0-beta.2) (2024-03-06)
|
|
4
14
|
|
|
5
15
|
### Enhancements
|
|
@@ -369,3 +379,5 @@ This major release removes all remaining calls to Mixpanel's `/decide` API endpo
|
|
|
369
379
|
- full API reference: https://mixpanel.github.io/mixpanel-react-native
|
|
370
380
|
|
|
371
381
|
|
|
382
|
+
|
|
383
|
+
|
|
@@ -16,8 +16,8 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.source_files = "ios/*.{swift,h,m}"
|
|
17
17
|
s.requires_arc = true
|
|
18
18
|
s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'index.js'
|
|
19
|
-
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
|
20
|
-
|
|
19
|
+
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
|
20
|
+
|
|
21
21
|
s.dependency "React-Core"
|
|
22
|
-
s.dependency "Mixpanel-swift", '4.2.
|
|
22
|
+
s.dependency "Mixpanel-swift", '4.2.5'
|
|
23
23
|
end
|
package/android/build.gradle
CHANGED
|
@@ -13,9 +13,9 @@ apply plugin: 'com.android.library'
|
|
|
13
13
|
android {
|
|
14
14
|
compileSdkVersion 33
|
|
15
15
|
buildToolsVersion "30.0.3"
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
|
|
20
20
|
namespace "com.mixpanel.reactnative"
|
|
21
21
|
}
|
|
@@ -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.
|
|
44
|
+
implementation 'com.mixpanel.android:mixpanel-android:7.5.0'
|
|
45
45
|
}
|
package/docs/Mixpanel.html
CHANGED
|
@@ -4516,7 +4516,7 @@ To clear all superProperties, use clearSuperProperties()
|
|
|
4516
4516
|
<br class="clear">
|
|
4517
4517
|
|
|
4518
4518
|
<footer>
|
|
4519
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on
|
|
4519
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:23 GMT-0700 (Pacific Daylight Time)
|
|
4520
4520
|
</footer>
|
|
4521
4521
|
|
|
4522
4522
|
<script> prettyPrint(); </script>
|
package/docs/MixpanelGroup.html
CHANGED
|
@@ -957,7 +957,7 @@ If the property exists and is not list-valued, the union will be ignored.
|
|
|
957
957
|
<br class="clear">
|
|
958
958
|
|
|
959
959
|
<footer>
|
|
960
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on
|
|
960
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:24 GMT-0700 (Pacific Daylight Time)
|
|
961
961
|
</footer>
|
|
962
962
|
|
|
963
963
|
<script> prettyPrint(); </script>
|
package/docs/People.html
CHANGED
|
@@ -1625,7 +1625,7 @@ If the property exists and is not list-valued, the union will be ignored.
|
|
|
1625
1625
|
<br class="clear">
|
|
1626
1626
|
|
|
1627
1627
|
<footer>
|
|
1628
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on
|
|
1628
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:24 GMT-0700 (Pacific Daylight Time)
|
|
1629
1629
|
</footer>
|
|
1630
1630
|
|
|
1631
1631
|
<script> prettyPrint(); </script>
|
package/docs/index.html
CHANGED
|
@@ -180,7 +180,7 @@ Please refer to our <a href="https://mixpanel.com/legal/app-store-privacy-detai
|
|
|
180
180
|
<br class="clear">
|
|
181
181
|
|
|
182
182
|
<footer>
|
|
183
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on
|
|
183
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:23 GMT-0700 (Pacific Daylight Time)
|
|
184
184
|
</footer>
|
|
185
185
|
|
|
186
186
|
<script> prettyPrint(); </script>
|
package/docs/index.js.html
CHANGED
|
@@ -328,7 +328,7 @@ export class Mixpanel {
|
|
|
328
328
|
if (!ObjectHelper.isValidOrUndefined(properties)) {
|
|
329
329
|
ObjectHelper.raiseError(PARAMS.PROPERTIES);
|
|
330
330
|
}
|
|
331
|
-
|
|
331
|
+
this.mixpanelImpl.track(this.token, eventName, {
|
|
332
332
|
...Helper.getMetaData(),
|
|
333
333
|
...properties,
|
|
334
334
|
});
|
|
@@ -371,7 +371,7 @@ export class Mixpanel {
|
|
|
371
371
|
if (!ObjectHelper.isValidOrUndefined(properties)) {
|
|
372
372
|
ObjectHelper.raiseError(PARAMS.PROPERTIES);
|
|
373
373
|
}
|
|
374
|
-
|
|
374
|
+
this.mixpanelImpl.trackWithGroups(
|
|
375
375
|
this.token,
|
|
376
376
|
eventName,
|
|
377
377
|
{
|
|
@@ -1048,7 +1048,7 @@ class ObjectHelper {
|
|
|
1048
1048
|
<br class="clear">
|
|
1049
1049
|
|
|
1050
1050
|
<footer>
|
|
1051
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on
|
|
1051
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:23 GMT-0700 (Pacific Daylight Time)
|
|
1052
1052
|
</footer>
|
|
1053
1053
|
|
|
1054
1054
|
<script> prettyPrint(); </script>
|
package/index.js
CHANGED
|
@@ -300,7 +300,7 @@ export class Mixpanel {
|
|
|
300
300
|
if (!ObjectHelper.isValidOrUndefined(properties)) {
|
|
301
301
|
ObjectHelper.raiseError(PARAMS.PROPERTIES);
|
|
302
302
|
}
|
|
303
|
-
|
|
303
|
+
this.mixpanelImpl.track(this.token, eventName, {
|
|
304
304
|
...Helper.getMetaData(),
|
|
305
305
|
...properties,
|
|
306
306
|
});
|
|
@@ -343,7 +343,7 @@ export class Mixpanel {
|
|
|
343
343
|
if (!ObjectHelper.isValidOrUndefined(properties)) {
|
|
344
344
|
ObjectHelper.raiseError(PARAMS.PROPERTIES);
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
this.mixpanelImpl.trackWithGroups(
|
|
347
347
|
this.token,
|
|
348
348
|
eventName,
|
|
349
349
|
{
|
|
@@ -6,14 +6,19 @@
|
|
|
6
6
|
"auditLog": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/.b11bf985d66a037ca5688a574653f3bf76a28dfa-audit.json",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
|
-
"date":
|
|
10
|
-
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/keplerCliNative-2024-
|
|
11
|
-
"hash": "
|
|
9
|
+
"date": 1712642656268,
|
|
10
|
+
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/keplerCliNative-2024-04-08.log",
|
|
11
|
+
"hash": "4a7d6370cb36e50ee6bfb367c333ac6a"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
"date":
|
|
15
|
-
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/keplerCliNative-2024-
|
|
16
|
-
"hash": "
|
|
14
|
+
"date": 1712687544944,
|
|
15
|
+
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/keplerCliNative-2024-04-09.log",
|
|
16
|
+
"hash": "4454643b08fa4b3a09ef5d6539ee436a"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"date": 1712859288027,
|
|
20
|
+
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/keplerCliNative-2024-04-11.log",
|
|
21
|
+
"hash": "049536ba3b6998b543a89803a4423598"
|
|
17
22
|
}
|
|
18
23
|
]
|
|
19
24
|
}
|
|
@@ -6,14 +6,19 @@
|
|
|
6
6
|
"auditLog": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/.c366df74eeb671df60a57a2075ae40a3dae2af25-audit.json",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
|
-
"date":
|
|
10
|
-
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/error-2024-
|
|
11
|
-
"hash": "
|
|
9
|
+
"date": 1712642656243,
|
|
10
|
+
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/error-2024-04-08.log",
|
|
11
|
+
"hash": "0f4712568f4da458d9d03b0df7856865"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
"date":
|
|
15
|
-
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/error-2024-
|
|
16
|
-
"hash": "
|
|
14
|
+
"date": 1712687544940,
|
|
15
|
+
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/error-2024-04-09.log",
|
|
16
|
+
"hash": "696a149d3d034bc6ffa19d00855be047"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"date": 1712859288022,
|
|
20
|
+
"name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/error-2024-04-11.log",
|
|
21
|
+
"hash": "2dc3b93023786f58062d972dec596a7e"
|
|
17
22
|
}
|
|
18
23
|
]
|
|
19
24
|
}
|