@react-native-firebase/database 21.12.0 → 21.12.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,12 @@
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.12.1](https://github.com/invertase/react-native-firebase/compare/v21.12.0...v21.12.1) (2025-03-22)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **database:** define increment in modular API ([#8377](https://github.com/invertase/react-native-firebase/issues/8377)) ([e13598b](https://github.com/invertase/react-native-firebase/commit/e13598bcb0d3612c6adddd2a684af2ae6a3fa9d3))
11
+
6
12
  ## [21.12.0](https://github.com/invertase/react-native-firebase/compare/v21.11.0...v21.12.0) (2025-03-03)
7
13
 
8
14
  **Note:** Version bump only for package @react-native-firebase/database
@@ -1,4 +1,7 @@
1
1
  import { getApp } from '@react-native-firebase/app';
2
+ import DatabaseStatics from '../DatabaseStatics';
3
+
4
+ const { ServerValue } = DatabaseStatics;
2
5
 
3
6
  /**
4
7
  * @typedef {import("..").FirebaseApp} FirebaseApp
@@ -109,7 +112,7 @@ export function getServerTime(db) {
109
112
  * @returns {object}
110
113
  */
111
114
  export function serverTimestamp() {
112
- return firebase.database.ServerValue.TIMESTAMP;
115
+ return ServerValue.TIMESTAMP;
113
116
  }
114
117
 
115
118
  /**
@@ -117,7 +120,7 @@ export function serverTimestamp() {
117
120
  * @returns {object}
118
121
  */
119
122
  export function increment(delta) {
120
- return firebase.database.ServerValue.increment(delta);
123
+ return ServerValue.increment(delta);
121
124
  }
122
125
 
123
126
  export * from './query';
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '21.12.0';
2
+ module.exports = '21.12.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/database",
3
- "version": "21.12.0",
3
+ "version": "21.12.1",
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.12.0"
28
+ "@react-native-firebase/app": "21.12.1"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "00a5540bc2d8007858dd01903d8f8c171587a766"
33
+ "gitHead": "6dc1da978ce5c9cd193a7903b218f7b741c02b9b"
34
34
  }