@react-native-firebase/analytics 14.2.2 → 14.3.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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [14.3.1](https://github.com/invertase/react-native-firebase/compare/v14.3.0...v14.3.1) (2022-02-07)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/analytics
9
+
10
+ # [14.3.0](https://github.com/invertase/react-native-firebase/compare/v14.2.4...v14.3.0) (2022-01-26)
11
+
12
+ **Note:** Version bump only for package @react-native-firebase/analytics
13
+
14
+ ## [14.2.4](https://github.com/invertase/react-native-firebase/compare/v14.2.3...v14.2.4) (2022-01-24)
15
+
16
+ **Note:** Version bump only for package @react-native-firebase/analytics
17
+
18
+ ## [14.2.3](https://github.com/invertase/react-native-firebase/compare/v14.2.2...v14.2.3) (2022-01-20)
19
+
20
+ ### Bug Fixes
21
+
22
+ - **analytics, ios:** Convert NSNull values to nil in order to correctly remove user properties ([dbc79c3](https://github.com/invertase/react-native-firebase/commit/dbc79c31810bf9bea4c3a782432c9b5625ad3d5f)), closes [#4931](https://github.com/invertase/react-native-firebase/issues/4931)
23
+
6
24
  ## [14.2.2](https://github.com/invertase/react-native-firebase/compare/v14.2.1...v14.2.2) (2022-01-06)
7
25
 
8
26
  **Note:** Version bump only for package @react-native-firebase/analytics
@@ -66,7 +66,7 @@ RCT_EXPORT_METHOD(setUserId
66
66
  : (RCTPromiseResolveBlock)resolve rejecter
67
67
  : (RCTPromiseRejectBlock)reject) {
68
68
  @try {
69
- [FIRAnalytics setUserID:id];
69
+ [FIRAnalytics setUserID:[self convertNSNullToNil:id]];
70
70
  } @catch (NSException *exception) {
71
71
  return [RNFBSharedUtils rejectPromiseWithExceptionDict:reject exception:exception];
72
72
  }
@@ -79,7 +79,7 @@ RCT_EXPORT_METHOD(setUserProperty
79
79
  : (RCTPromiseResolveBlock)resolve rejecter
80
80
  : (RCTPromiseRejectBlock)reject) {
81
81
  @try {
82
- [FIRAnalytics setUserPropertyString:value forName:name];
82
+ [FIRAnalytics setUserPropertyString:[self convertNSNullToNil:value] forName:name];
83
83
  } @catch (NSException *exception) {
84
84
  return [RNFBSharedUtils rejectPromiseWithExceptionDict:reject exception:exception];
85
85
  }
@@ -92,7 +92,7 @@ RCT_EXPORT_METHOD(setUserProperties
92
92
  : (RCTPromiseRejectBlock)reject) {
93
93
  @try {
94
94
  [properties enumerateKeysAndObjectsUsingBlock:^(id key, id value, BOOL *stop) {
95
- [FIRAnalytics setUserPropertyString:value forName:key];
95
+ [FIRAnalytics setUserPropertyString:[self convertNSNullToNil:value] forName:key];
96
96
  }];
97
97
  } @catch (NSException *exception) {
98
98
  return [RNFBSharedUtils rejectPromiseWithExceptionDict:reject exception:exception];
@@ -162,4 +162,10 @@ RCT_EXPORT_METHOD(setDefaultEventParameters
162
162
  return [newParams copy];
163
163
  }
164
164
 
165
+ /// Converts null values received over the bridge from NSNull to nil
166
+ /// @param value Nullable string value
167
+ - (NSString *)convertNSNullToNil:(NSString *)value {
168
+ return [value isEqual:[NSNull null]] ? nil : value;
169
+ }
170
+
165
171
  @end
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- module.exports = '14.2.2';
2
+ module.exports = '14.3.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/analytics",
3
- "version": "14.2.2",
3
+ "version": "14.3.1",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and more.",
6
6
  "main": "lib/index.js",
@@ -22,10 +22,10 @@
22
22
  "analytics"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@react-native-firebase/app": "14.2.2"
25
+ "@react-native-firebase/app": "14.3.1"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "7b0de31e45be9ca7571583e77d1b06c3088df053"
30
+ "gitHead": "211b7531b731a1fd7feb11ee1d1822470a31eac2"
31
31
  }