@react-native-firebase/storage 22.2.0 → 22.3.0

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,14 @@
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
+ ## [22.3.0](https://github.com/invertase/react-native-firebase/compare/v22.2.1...v22.3.0) (2025-07-08)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/storage
9
+
10
+ ## [22.2.1](https://github.com/invertase/react-native-firebase/compare/v22.2.0...v22.2.1) (2025-06-10)
11
+
12
+ **Note:** Version bump only for package @react-native-firebase/storage
13
+
6
14
  ## [22.2.0](https://github.com/invertase/react-native-firebase/compare/v22.1.0...v22.2.0) (2025-05-12)
7
15
 
8
16
  ### Bug Fixes
package/lib/index.js CHANGED
@@ -15,7 +15,13 @@
15
15
  *
16
16
  */
17
17
 
18
- import { isAndroid, isNumber, isString } from '@react-native-firebase/app/lib/common';
18
+ import {
19
+ isAndroid,
20
+ isNumber,
21
+ isString,
22
+ createDeprecationProxy,
23
+ } from '@react-native-firebase/app/lib/common';
24
+
19
25
  import { setReactNativeModule } from '@react-native-firebase/app/lib/internal/nativeModule';
20
26
  import {
21
27
  createModuleNamespace,
@@ -91,8 +97,7 @@ class FirebaseStorageModule extends FirebaseModule {
91
97
  if (!isString(path)) {
92
98
  throw new Error("firebase.storage().ref(*) 'path' must be a string value.");
93
99
  }
94
-
95
- return new StorageReference(this, path);
100
+ return createDeprecationProxy(new StorageReference(this, path));
96
101
  }
97
102
 
98
103
  /**
@@ -29,6 +29,7 @@
29
29
  */
30
30
 
31
31
  import { getApp } from '@react-native-firebase/app';
32
+ import { MODULAR_DEPRECATION_ARG } from '@react-native-firebase/app/lib/common';
32
33
 
33
34
  /**
34
35
  * Returns a Storage instance for the given app.
@@ -61,7 +62,7 @@ export function getStorage(app, bucketUrl) {
61
62
  * @returns {void}
62
63
  */
63
64
  export function connectStorageEmulator(storage, host, port, options) {
64
- return storage.useEmulator(host, port, options);
65
+ return storage.useEmulator.call(storage, host, port, options, MODULAR_DEPRECATION_ARG);
65
66
  }
66
67
 
67
68
  /**
@@ -72,7 +73,7 @@ export function connectStorageEmulator(storage, host, port, options) {
72
73
  * @returns {Reference}
73
74
  */
74
75
  export function ref(storage, path) {
75
- return storage.ref(path);
76
+ return storage.ref.call(storage, path, MODULAR_DEPRECATION_ARG);
76
77
  }
77
78
 
78
79
  /**
@@ -81,7 +82,7 @@ export function ref(storage, path) {
81
82
  * @returns {Promise<void>}
82
83
  */
83
84
  export function deleteObject(storageRef) {
84
- return storageRef.delete();
85
+ return storageRef.delete.call(storageRef, MODULAR_DEPRECATION_ARG);
85
86
  }
86
87
 
87
88
  /**
@@ -111,7 +112,7 @@ export function getBytes(storageRef, maxDownloadSizeBytes) {
111
112
  * @returns {Promise<string>}
112
113
  */
113
114
  export function getDownloadURL(storageRef) {
114
- return storageRef.getDownloadURL();
115
+ return storageRef.getDownloadURL.call(storageRef, MODULAR_DEPRECATION_ARG);
115
116
  }
116
117
 
117
118
  /**
@@ -120,7 +121,7 @@ export function getDownloadURL(storageRef) {
120
121
  * @returns {Promise<FullMetadata>}
121
122
  */
122
123
  export function getMetadata(storageRef) {
123
- return storageRef.getMetadata();
124
+ return storageRef.getMetadata.call(storageRef, MODULAR_DEPRECATION_ARG);
124
125
  }
125
126
 
126
127
  /**
@@ -141,7 +142,7 @@ export function getStream(storageRef, maxDownloadSizeBytes) {
141
142
  * @returns {Promise<ListResult>}
142
143
  */
143
144
  export function list(storageRef, options) {
144
- return storageRef.list(options);
145
+ return storageRef.list.call(storageRef, options, MODULAR_DEPRECATION_ARG);
145
146
  }
146
147
 
147
148
  /**
@@ -150,7 +151,7 @@ export function list(storageRef, options) {
150
151
  * @returns {Promise<ListResult>}
151
152
  */
152
153
  export function listAll(storageRef) {
153
- return storageRef.listAll();
154
+ return storageRef.listAll.call(storageRef, MODULAR_DEPRECATION_ARG);
154
155
  }
155
156
 
156
157
  /**
@@ -160,7 +161,7 @@ export function listAll(storageRef) {
160
161
  * @returns {Promise<FullMetadata>}
161
162
  */
162
163
  export function updateMetadata(storageRef, metadata) {
163
- return storageRef.updateMetadata(metadata);
164
+ return storageRef.updateMetadata.call(storageRef, metadata, MODULAR_DEPRECATION_ARG);
164
165
  }
165
166
 
166
167
  /**
@@ -183,7 +184,7 @@ export async function uploadBytes(storageRef, data, metadata) {
183
184
  * @returns {Task}
184
185
  */
185
186
  export function uploadBytesResumable(storageRef, data, metadata) {
186
- return storageRef.put(data, metadata);
187
+ return storageRef.put.call(storageRef, data, metadata, MODULAR_DEPRECATION_ARG);
187
188
  }
188
189
 
189
190
  /**
@@ -195,7 +196,7 @@ export function uploadBytesResumable(storageRef, data, metadata) {
195
196
  * @returns {Task}
196
197
  */
197
198
  export function uploadString(storageRef, data, format, metadata) {
198
- return storageRef.putString(data, format, metadata);
199
+ return storageRef.putString.call(storageRef, data, format, metadata, MODULAR_DEPRECATION_ARG);
199
200
  }
200
201
 
201
202
  // Methods not on the Firebase JS SDK below
@@ -207,7 +208,7 @@ export function uploadString(storageRef, data, format, metadata) {
207
208
  * @returns {Reference}
208
209
  */
209
210
  export function refFromURL(storage, url) {
210
- return storage.refFromURL(url);
211
+ return storage.refFromURL.call(storage, url, MODULAR_DEPRECATION_ARG);
211
212
  }
212
213
 
213
214
  /**
@@ -217,7 +218,7 @@ export function refFromURL(storage, url) {
217
218
  * @returns {Promise<void>}
218
219
  */
219
220
  export function setMaxOperationRetryTime(storage, time) {
220
- return storage.setMaxOperationRetryTime(time);
221
+ return storage.setMaxOperationRetryTime.call(storage, time, MODULAR_DEPRECATION_ARG);
221
222
  }
222
223
 
223
224
  /**
@@ -227,7 +228,7 @@ export function setMaxOperationRetryTime(storage, time) {
227
228
  * @returns {Promise<void>}
228
229
  */
229
230
  export function setMaxUploadRetryTime(storage, time) {
230
- return storage.setMaxUploadRetryTime(time);
231
+ return storage.setMaxUploadRetryTime.call(storage, time, MODULAR_DEPRECATION_ARG);
231
232
  }
232
233
 
233
234
  /**
@@ -238,7 +239,7 @@ export function setMaxUploadRetryTime(storage, time) {
238
239
  * @returns {Task}
239
240
  */
240
241
  export function putFile(storageRef, filePath, metadata) {
241
- return storageRef.putFile(filePath, metadata);
242
+ return storageRef.putFile.call(storageRef, filePath, metadata, MODULAR_DEPRECATION_ARG);
242
243
  }
243
244
 
244
245
  /**
@@ -248,7 +249,7 @@ export function putFile(storageRef, filePath, metadata) {
248
249
  * @returns {Task}
249
250
  */
250
251
  export function writeToFile(storageRef, filePath) {
251
- return storageRef.writeToFile(filePath);
252
+ return storageRef.writeToFile.call(storageRef, filePath, MODULAR_DEPRECATION_ARG);
252
253
  }
253
254
 
254
255
  /**
@@ -257,7 +258,7 @@ export function writeToFile(storageRef, filePath) {
257
258
  * @returns {String}
258
259
  */
259
260
  export function toString(storageRef) {
260
- return storageRef.toString();
261
+ return storageRef.toString.call(storageRef, MODULAR_DEPRECATION_ARG);
261
262
  }
262
263
 
263
264
  /**
@@ -267,7 +268,7 @@ export function toString(storageRef) {
267
268
  * @returns {String}
268
269
  */
269
270
  export function child(storageRef, path) {
270
- return storageRef.child(path);
271
+ return storageRef.child.call(storageRef, path, MODULAR_DEPRECATION_ARG);
271
272
  }
272
273
 
273
274
  /**
@@ -277,7 +278,7 @@ export function child(storageRef, path) {
277
278
  * @returns {Promise<void>}
278
279
  */
279
280
  export function setMaxDownloadRetryTime(storage, time) {
280
- return storage.setMaxDownloadRetryTime(time);
281
+ return storage.setMaxDownloadRetryTime.call(storage, time, MODULAR_DEPRECATION_ARG);
281
282
  }
282
283
 
283
284
  export { StringFormat, TaskEvent, TaskState } from '../StorageStatics';
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '22.2.0';
2
+ module.exports = '22.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/storage",
3
- "version": "22.2.0",
3
+ "version": "22.3.0",
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,11 +29,11 @@
29
29
  "download"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@react-native-firebase/app": "22.2.0"
32
+ "@react-native-firebase/app": "22.3.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public",
36
36
  "provenance": true
37
37
  },
38
- "gitHead": "b302210509ceac8078b5fb9fd0b24e68f0641c6a"
38
+ "gitHead": "c04f2a3b681460edde5518812646cf5e0dd86627"
39
39
  }