@react-native-firebase/installations 21.7.2 → 21.7.4
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/lib/modular/index.js +7 -8
- package/lib/version.js +1 -1
- 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.4](https://github.com/invertase/react-native-firebase/compare/v21.7.3...v21.7.4) (2025-02-08)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- the init calls for modular should use modular getApp() ([79da98b](https://github.com/invertase/react-native-firebase/commit/79da98bf4ecf7860db61b2813b87673f1cd0adfd))
|
11
|
+
|
12
|
+
## [21.7.3](https://github.com/invertase/react-native-firebase/compare/v21.7.2...v21.7.3) (2025-02-08)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @react-native-firebase/installations
|
15
|
+
|
6
16
|
## [21.7.2](https://github.com/invertase/react-native-firebase/compare/v21.7.1...v21.7.2) (2025-02-05)
|
7
17
|
|
8
18
|
**Note:** Version bump only for package @react-native-firebase/installations
|
package/lib/modular/index.js
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
*
|
16
16
|
*/
|
17
17
|
|
18
|
-
import {
|
18
|
+
import { getApp } from '@react-native-firebase/app';
|
19
19
|
|
20
20
|
/**
|
21
21
|
* @typedef {import('..').FirebaseInstallationsTypes.Module} FirebaseInstallation
|
@@ -23,9 +23,9 @@ import { firebase } from '..';
|
|
23
23
|
|
24
24
|
export function getInstallations(app) {
|
25
25
|
if (app) {
|
26
|
-
return
|
26
|
+
return getApp(app.name).installations();
|
27
27
|
}
|
28
|
-
return
|
28
|
+
return getApp().installations();
|
29
29
|
}
|
30
30
|
|
31
31
|
/**
|
@@ -33,7 +33,7 @@ export function getInstallations(app) {
|
|
33
33
|
* @returns {Promise<void>}
|
34
34
|
*/
|
35
35
|
export function deleteInstallations(installations) {
|
36
|
-
return
|
36
|
+
return installations.delete();
|
37
37
|
}
|
38
38
|
|
39
39
|
/**
|
@@ -41,7 +41,7 @@ export function deleteInstallations(installations) {
|
|
41
41
|
* @returns {Promise<string>}
|
42
42
|
*/
|
43
43
|
export function getId(installations) {
|
44
|
-
return
|
44
|
+
return installations.getId();
|
45
45
|
}
|
46
46
|
|
47
47
|
/**
|
@@ -50,7 +50,7 @@ export function getId(installations) {
|
|
50
50
|
* @returns {Promise<string>}
|
51
51
|
*/
|
52
52
|
export function getToken(installations, forceRefresh) {
|
53
|
-
return
|
53
|
+
return installations.getToken(forceRefresh);
|
54
54
|
}
|
55
55
|
|
56
56
|
/**
|
@@ -58,7 +58,6 @@ export function getToken(installations, forceRefresh) {
|
|
58
58
|
* @param {(string) => void} callback
|
59
59
|
* @returns {() => void}
|
60
60
|
*/
|
61
|
-
|
62
|
-
export function onIdChange(installations, callback) {
|
61
|
+
export function onIdChange(_installations, _callback) {
|
63
62
|
throw new Error('onIdChange() is unsupported by the React Native Firebase SDK.');
|
64
63
|
}
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '21.7.
|
2
|
+
module.exports = '21.7.4';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/installations",
|
3
|
-
"version": "21.7.
|
3
|
+
"version": "21.7.4",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "React Native Firebase - Installations",
|
6
6
|
"main": "lib/index.js",
|
@@ -22,10 +22,10 @@
|
|
22
22
|
"installations"
|
23
23
|
],
|
24
24
|
"peerDependencies": {
|
25
|
-
"@react-native-firebase/app": "21.7.
|
25
|
+
"@react-native-firebase/app": "21.7.4"
|
26
26
|
},
|
27
27
|
"publishConfig": {
|
28
28
|
"access": "public"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "82c4c7391fee6597726e5363d78400f11a644e47"
|
31
31
|
}
|