@react-native-firebase/storage 21.7.3 → 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 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.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
+
6
12
  ## [21.7.3](https://github.com/invertase/react-native-firebase/compare/v21.7.2...v21.7.3) (2025-02-08)
7
13
 
8
14
  ### Bug Fixes
@@ -28,7 +28,7 @@
28
28
  * @typedef {import('@firebase/app').FirebaseApp} FirebaseApp
29
29
  */
30
30
 
31
- import { firebase } from '..';
31
+ import { getApp } from '@react-native-firebase/app';
32
32
 
33
33
  /**
34
34
  * Returns a Storage instance for the given app.
@@ -39,17 +39,17 @@ import { firebase } from '..';
39
39
  export function getStorage(app, bucketUrl) {
40
40
  if (app) {
41
41
  if (bucketUrl != null) {
42
- return firebase.app(app.name).storage(bucketUrl);
42
+ return getApp(app.name).storage(bucketUrl);
43
43
  }
44
44
 
45
- return firebase.app(app.name).storage();
45
+ return getApp(app.name).storage();
46
46
  }
47
47
 
48
48
  if (bucketUrl != null) {
49
- return firebase.app().storage(bucketUrl);
49
+ return getApp().storage(bucketUrl);
50
50
  }
51
51
 
52
- return firebase.app().storage();
52
+ return getApp().storage();
53
53
  }
54
54
 
55
55
  /**
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '21.7.3';
2
+ module.exports = '21.7.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/storage",
3
- "version": "21.7.3",
3
+ "version": "21.7.4",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - React Native Firebase provides native integration with Cloud Storage, providing support to upload and download files directly from your device and from your Firebase Cloud Storage bucket.",
6
6
  "main": "lib/index.js",
@@ -29,10 +29,10 @@
29
29
  "download"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@react-native-firebase/app": "21.7.3"
32
+ "@react-native-firebase/app": "21.7.4"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "e1446c8737b4df5067fcc4f99ca30b0a3afcc8e5"
37
+ "gitHead": "82c4c7391fee6597726e5363d78400f11a644e47"
38
38
  }