@react-native-firebase/database 14.2.3 → 14.3.2

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.2](https://github.com/invertase/react-native-firebase/compare/v14.3.1...v14.3.2) (2022-02-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **app, ios:** use NSInteger not NSInteger\* for prefs ([0148901](https://github.com/invertase/react-native-firebase/commit/01489010c920fc8e367a04f9decb8a8c94c5d8c1))
11
+
12
+ ## [14.3.1](https://github.com/invertase/react-native-firebase/compare/v14.3.0...v14.3.1) (2022-02-07)
13
+
14
+ **Note:** Version bump only for package @react-native-firebase/database
15
+
16
+ # [14.3.0](https://github.com/invertase/react-native-firebase/compare/v14.2.4...v14.3.0) (2022-01-26)
17
+
18
+ **Note:** Version bump only for package @react-native-firebase/database
19
+
20
+ ## [14.2.4](https://github.com/invertase/react-native-firebase/compare/v14.2.3...v14.2.4) (2022-01-24)
21
+
22
+ **Note:** Version bump only for package @react-native-firebase/database
23
+
6
24
  ## [14.2.3](https://github.com/invertase/react-native-firebase/compare/v14.2.2...v14.2.3) (2022-01-20)
7
25
 
8
26
  **Note:** Version bump only for package @react-native-firebase/database
@@ -85,8 +85,8 @@ NSString *const DATABASE_PERSISTENCE_CACHE_SIZE = @"firebase_database_persistenc
85
85
 
86
86
  // Persistence cache size
87
87
  if ([preferences contains:DATABASE_PERSISTENCE_CACHE_SIZE]) {
88
- NSInteger *cacheSizeBytes = [preferences getIntegerValue:DATABASE_PERSISTENCE_CACHE_SIZE
89
- defaultValue:(NSInteger *)10000000];
88
+ NSInteger cacheSizeBytes = [preferences getIntegerValue:DATABASE_PERSISTENCE_CACHE_SIZE
89
+ defaultValue:10000000];
90
90
  [firDatabase setPersistenceCacheSizeBytes:(NSUInteger)cacheSizeBytes];
91
91
  }
92
92
 
@@ -76,8 +76,9 @@ RCT_EXPORT_METHOD(setLoggingEnabled : (FIRApp *)firebaseApp : (NSString *)dbURL
76
76
  RCT_EXPORT_METHOD(setPersistenceCacheSizeBytes
77
77
  : (FIRApp *)firebaseApp
78
78
  : (NSString *)dbURL
79
- : (NSInteger *)bytes) {
80
- [[RNFBPreferences shared] setIntegerValue:DATABASE_PERSISTENCE_CACHE_SIZE integerValue:bytes];
79
+ : (NSNumber *_Nonnull)bytes) {
80
+ [[RNFBPreferences shared] setIntegerValue:DATABASE_PERSISTENCE_CACHE_SIZE
81
+ integerValue:[bytes intValue]];
81
82
  }
82
83
 
83
84
  @end
@@ -29,7 +29,7 @@
29
29
 
30
30
  - (BOOL)hasListeners;
31
31
 
32
- - (void)addEventListener:(NSString *)eventRegistrationKey:(FIRDatabaseHandle)listener;
32
+ - (void)addEventListener:(NSString *)eventRegistrationKey handle:(FIRDatabaseHandle)handle;
33
33
 
34
34
  - (void)removeEventListener:(NSString *)eventRegistrationKey;
35
35
 
@@ -112,8 +112,8 @@
112
112
  }
113
113
  }
114
114
 
115
- - (void)addEventListener:(NSString *)eventRegistrationKey:(FIRDatabaseHandle)listener {
116
- _listeners[eventRegistrationKey] = @(listener);
115
+ - (void)addEventListener:(NSString *)eventRegistrationKey handle:(FIRDatabaseHandle)handle {
116
+ _listeners[eventRegistrationKey] = @(handle);
117
117
  }
118
118
 
119
119
  - (void)removeEventListener:(NSString *)eventRegistrationKey {
@@ -133,7 +133,7 @@ RCT_EXPORT_MODULE();
133
133
  FIRDatabaseHandle handle = [databaseQuery.query observeEventType:firDataEventType
134
134
  andPreviousSiblingKeyWithBlock:andPreviousSiblingKeyWithBlock
135
135
  withCancelBlock:errorBlock];
136
- [databaseQuery addEventListener:eventRegistrationKey:handle];
136
+ [databaseQuery addEventListener:eventRegistrationKey handle:handle];
137
137
  }
138
138
  }
139
139
 
@@ -69,7 +69,7 @@ RCT_EXPORT_METHOD(transactionStart
69
69
  [RNFBDatabaseCommon getReferenceForDatabase:firDatabase path:path];
70
70
 
71
71
  id runTransactionBlock = ^FIRTransactionResult *(FIRMutableData *currentData) {
72
- dispatch_barrier_async(_transactionQueue, ^{
72
+ dispatch_barrier_async(self->_transactionQueue, ^{
73
73
  [transactions setValue:transactionState forKey:[transactionId stringValue]];
74
74
 
75
75
  [[RNFBRCTEventEmitter shared]
@@ -94,7 +94,7 @@ RCT_EXPORT_METHOD(transactionStart
94
94
  BOOL abort = [transactionState valueForKey:@"abort"] || timedout;
95
95
  id value = [transactionState valueForKey:@"value"];
96
96
 
97
- dispatch_barrier_async(_transactionQueue, ^{
97
+ dispatch_barrier_async(self->_transactionQueue, ^{
98
98
  [transactions removeObjectForKey:[transactionId stringValue]];
99
99
  });
100
100
 
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- module.exports = '14.2.3';
2
+ module.exports = '14.3.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/database",
3
- "version": "14.2.3",
3
+ "version": "14.3.2",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. React Native Firebase provides native integration with the Android & iOS Firebase SDKs, supporting both realtime data sync and offline capabilities.",
6
6
  "main": "lib/index.js",
@@ -25,10 +25,10 @@
25
25
  "realtome database"
26
26
  ],
27
27
  "peerDependencies": {
28
- "@react-native-firebase/app": "14.2.3"
28
+ "@react-native-firebase/app": "14.3.2"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "eb58323969bc7803b0695bd90cdb7dc3436179e1"
33
+ "gitHead": "861efd21f844d1ad37cdeceba31c9f48c515b8e0"
34
34
  }