@react-native-firebase/database 21.7.1 → 21.7.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/lib/DatabaseDataSnapshot.js +1 -1
- package/lib/index.d.ts +0 -6
- package/lib/modular/query.js +1 -0
- package/lib/version.js +1 -1
- package/lib/web/RNFBDatabaseModule.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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
|
+
## [21.7.2](https://github.com/invertase/react-native-firebase/compare/v21.7.1...v21.7.2) (2025-02-05)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @react-native-firebase/database
|
9
|
+
|
6
10
|
## [21.7.1](https://github.com/invertase/react-native-firebase/compare/v21.7.0...v21.7.1) (2025-01-20)
|
7
11
|
|
8
12
|
**Note:** Version bump only for package @react-native-firebase/database
|
package/README.md
CHANGED
@@ -50,7 +50,7 @@ yarn add @react-native-firebase/database
|
|
50
50
|
---
|
51
51
|
|
52
52
|
<p>
|
53
|
-
<img align="left" width="75px" src="https://static.invertase.io/assets/invertase-
|
53
|
+
<img align="left" width="75px" src="https://static.invertase.io/assets/invertase/invertase-rounded.png">
|
54
54
|
<p align="left">
|
55
55
|
Built and maintained with 💛 by <a href="https://invertase.io">Invertase</a>.
|
56
56
|
</p>
|
@@ -123,7 +123,7 @@ export default class DatabaseDataSnapshot {
|
|
123
123
|
|
124
124
|
// If the value is an array,
|
125
125
|
if (isArray(this._snapshot.value)) {
|
126
|
-
return this._snapshot.value.some((
|
126
|
+
return this._snapshot.value.some((_value, i) => {
|
127
127
|
const snapshot = this.child(i.toString());
|
128
128
|
return action(snapshot, i) === true;
|
129
129
|
});
|
package/lib/index.d.ts
CHANGED
@@ -74,7 +74,6 @@ export namespace FirebaseDatabaseTypes {
|
|
74
74
|
* });
|
75
75
|
* ```
|
76
76
|
*/
|
77
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
78
77
|
TIMESTAMP: object;
|
79
78
|
|
80
79
|
/**
|
@@ -90,7 +89,6 @@ export namespace FirebaseDatabaseTypes {
|
|
90
89
|
*
|
91
90
|
* @param delta The amount to modify the current value atomically.
|
92
91
|
*/
|
93
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
94
92
|
increment(delta: number): object;
|
95
93
|
}
|
96
94
|
|
@@ -381,7 +379,6 @@ export namespace FirebaseDatabaseTypes {
|
|
381
379
|
* @param applyLocally By default, events are raised each time the transaction update function runs. So if it is run multiple times, you may see intermediate states. You can set this to false to suppress these intermediate states and instead wait until the transaction has completed before events are raised.
|
382
380
|
*/
|
383
381
|
transaction(
|
384
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
385
382
|
transactionUpdate: (currentData: any) => any | undefined,
|
386
383
|
onComplete?: (error: Error | null, committed: boolean, finalResult: DataSnapshot) => void,
|
387
384
|
applyLocally?: boolean,
|
@@ -787,7 +784,6 @@ export namespace FirebaseDatabaseTypes {
|
|
787
784
|
/**
|
788
785
|
* Returns a JSON-serializable representation of this object.
|
789
786
|
*/
|
790
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
791
787
|
toJSON(): object;
|
792
788
|
|
793
789
|
/**
|
@@ -1077,7 +1073,6 @@ export namespace FirebaseDatabaseTypes {
|
|
1077
1073
|
/**
|
1078
1074
|
* Returns a JSON-serializable representation of this object.
|
1079
1075
|
*/
|
1080
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
1081
1076
|
toJSON(): object | null;
|
1082
1077
|
|
1083
1078
|
/**
|
@@ -1303,7 +1298,6 @@ export default defaultExport;
|
|
1303
1298
|
* Attach namespace to `firebase.` and `FirebaseApp.`.
|
1304
1299
|
*/
|
1305
1300
|
declare module '@react-native-firebase/app' {
|
1306
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
1307
1301
|
namespace ReactNativeFirebase {
|
1308
1302
|
import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp;
|
1309
1303
|
interface Module {
|
package/lib/modular/query.js
CHANGED
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '21.7.
|
2
|
+
module.exports = '21.7.2';
|
@@ -129,7 +129,7 @@ export default {
|
|
129
129
|
* @param {string} dbURL - The database URL, not used.
|
130
130
|
* @param {boolean} enabled - The logging enabled state.
|
131
131
|
*/
|
132
|
-
setLoggingEnabled(
|
132
|
+
setLoggingEnabled(_app, _dbURL, enabled) {
|
133
133
|
return guard(async () => {
|
134
134
|
enableLogging(enabled);
|
135
135
|
});
|
@@ -376,7 +376,7 @@ export default {
|
|
376
376
|
});
|
377
377
|
},
|
378
378
|
|
379
|
-
off(
|
379
|
+
off(_queryKey, eventRegistrationKey) {
|
380
380
|
const listener = listeners[eventRegistrationKey];
|
381
381
|
if (listener) {
|
382
382
|
listener();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/database",
|
3
|
-
"version": "21.7.
|
3
|
+
"version": "21.7.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": "21.7.
|
28
|
+
"@react-native-firebase/app": "21.7.2"
|
29
29
|
},
|
30
30
|
"publishConfig": {
|
31
31
|
"access": "public"
|
32
32
|
},
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "209b36e4b469355e4d024ecdeb6c875f8bd8a187"
|
34
34
|
}
|