@react-native-firebase/database 21.7.1 → 21.7.3
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 +10 -0
- package/README.md +1 -1
- package/lib/DatabaseDataSnapshot.js +1 -1
- package/lib/index.d.ts +0 -8
- 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,16 @@
|
|
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.3](https://github.com/invertase/react-native-firebase/compare/v21.7.2...v21.7.3) (2025-02-08)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **auth:** resolve type issue when migrating to v9 ([#8277](https://github.com/invertase/react-native-firebase/issues/8277)) ([f4e44ad](https://github.com/invertase/react-native-firebase/commit/f4e44ad50ec85604b7ba0ea835490f473ed5447c))
|
11
|
+
|
12
|
+
## [21.7.2](https://github.com/invertase/react-native-firebase/compare/v21.7.1...v21.7.2) (2025-02-05)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @react-native-firebase/database
|
15
|
+
|
6
16
|
## [21.7.1](https://github.com/invertase/react-native-firebase/compare/v21.7.0...v21.7.1) (2025-01-20)
|
7
17
|
|
8
18
|
**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
@@ -17,8 +17,6 @@
|
|
17
17
|
|
18
18
|
import { ReactNativeFirebase } from '@react-native-firebase/app';
|
19
19
|
|
20
|
-
export type FirebaseApp = ReactNativeFirebase.FirebaseApp;
|
21
|
-
|
22
20
|
/**
|
23
21
|
* Firebase Database package for React Native.
|
24
22
|
*
|
@@ -74,7 +72,6 @@ export namespace FirebaseDatabaseTypes {
|
|
74
72
|
* });
|
75
73
|
* ```
|
76
74
|
*/
|
77
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
78
75
|
TIMESTAMP: object;
|
79
76
|
|
80
77
|
/**
|
@@ -90,7 +87,6 @@ export namespace FirebaseDatabaseTypes {
|
|
90
87
|
*
|
91
88
|
* @param delta The amount to modify the current value atomically.
|
92
89
|
*/
|
93
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
94
90
|
increment(delta: number): object;
|
95
91
|
}
|
96
92
|
|
@@ -381,7 +377,6 @@ export namespace FirebaseDatabaseTypes {
|
|
381
377
|
* @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
378
|
*/
|
383
379
|
transaction(
|
384
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
385
380
|
transactionUpdate: (currentData: any) => any | undefined,
|
386
381
|
onComplete?: (error: Error | null, committed: boolean, finalResult: DataSnapshot) => void,
|
387
382
|
applyLocally?: boolean,
|
@@ -787,7 +782,6 @@ export namespace FirebaseDatabaseTypes {
|
|
787
782
|
/**
|
788
783
|
* Returns a JSON-serializable representation of this object.
|
789
784
|
*/
|
790
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
791
785
|
toJSON(): object;
|
792
786
|
|
793
787
|
/**
|
@@ -1077,7 +1071,6 @@ export namespace FirebaseDatabaseTypes {
|
|
1077
1071
|
/**
|
1078
1072
|
* Returns a JSON-serializable representation of this object.
|
1079
1073
|
*/
|
1080
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
1081
1074
|
toJSON(): object | null;
|
1082
1075
|
|
1083
1076
|
/**
|
@@ -1303,7 +1296,6 @@ export default defaultExport;
|
|
1303
1296
|
* Attach namespace to `firebase.` and `FirebaseApp.`.
|
1304
1297
|
*/
|
1305
1298
|
declare module '@react-native-firebase/app' {
|
1306
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
1307
1299
|
namespace ReactNativeFirebase {
|
1308
1300
|
import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp;
|
1309
1301
|
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.3';
|
@@ -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.3",
|
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.3"
|
29
29
|
},
|
30
30
|
"publishConfig": {
|
31
31
|
"access": "public"
|
32
32
|
},
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "e1446c8737b4df5067fcc4f99ca30b0a3afcc8e5"
|
34
34
|
}
|