@react-native-firebase/database 14.3.1 → 14.5.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 +18 -0
- package/ios/RNFBDatabase/RNFBDatabaseCommon.m +2 -2
- package/ios/RNFBDatabase/RNFBDatabaseModule.m +3 -2
- package/ios/RNFBDatabase/RNFBDatabaseQuery.h +1 -1
- package/ios/RNFBDatabase/RNFBDatabaseQuery.m +2 -2
- package/ios/RNFBDatabase/RNFBDatabaseQueryModule.m +1 -1
- package/ios/RNFBDatabase/RNFBDatabaseTransactionModule.m +2 -2
- package/lib/version.js +1 -1
- package/package.json +3 -3
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.5.0](https://github.com/invertase/react-native-firebase/compare/v14.4.0...v14.5.0) (2022-02-15)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @react-native-firebase/database
|
9
|
+
|
10
|
+
# [14.4.0](https://github.com/invertase/react-native-firebase/compare/v14.3.3...v14.4.0) (2022-02-13)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @react-native-firebase/database
|
13
|
+
|
14
|
+
## [14.3.3](https://github.com/invertase/react-native-firebase/compare/v14.3.2...v14.3.3) (2022-02-12)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @react-native-firebase/database
|
17
|
+
|
18
|
+
## [14.3.2](https://github.com/invertase/react-native-firebase/compare/v14.3.1...v14.3.2) (2022-02-10)
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
- **app, ios:** use NSInteger not NSInteger\* for prefs ([0148901](https://github.com/invertase/react-native-firebase/commit/01489010c920fc8e367a04f9decb8a8c94c5d8c1))
|
23
|
+
|
6
24
|
## [14.3.1](https://github.com/invertase/react-native-firebase/compare/v14.3.0...v14.3.1) (2022-02-07)
|
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
|
89
|
-
|
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
|
-
: (
|
80
|
-
[[RNFBPreferences shared] setIntegerValue:DATABASE_PERSISTENCE_CACHE_SIZE
|
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)
|
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)
|
116
|
-
_listeners[eventRegistrationKey] = @(
|
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
|
+
module.exports = '14.5.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/database",
|
3
|
-
"version": "14.
|
3
|
+
"version": "14.5.0",
|
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.
|
28
|
+
"@react-native-firebase/app": "14.5.0"
|
29
29
|
},
|
30
30
|
"publishConfig": {
|
31
31
|
"access": "public"
|
32
32
|
},
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "d9cf9c3ea364001d12de0e26693bc9e4e3e2c859"
|
34
34
|
}
|