@react-native-firebase/storage 21.7.4 → 21.9.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,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.9.0](https://github.com/invertase/react-native-firebase/compare/v21.8.0...v21.9.0) (2025-02-11)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/storage
9
+
10
+ ## [21.8.0](https://github.com/invertase/react-native-firebase/compare/v21.7.4...v21.8.0) (2025-02-10)
11
+
12
+ ### Bug Fixes
13
+
14
+ - do not ship unit tests in released packages ([e71dadf](https://github.com/invertase/react-native-firebase/commit/e71dadfc1c0cad2e89c94100913af31ddf7d9c91))
15
+
6
16
  ## [21.7.4](https://github.com/invertase/react-native-firebase/compare/v21.7.3...v21.7.4) (2025-02-08)
7
17
 
8
18
  ### Bug Fixes
package/lib/index.js CHANGED
@@ -172,7 +172,7 @@ class FirebaseStorageModule extends FirebaseModule {
172
172
  _host = '10.0.2.2';
173
173
  // eslint-disable-next-line no-console
174
174
  console.log(
175
- 'Mapping storage host to "10.0.2.2" for android emulators. Use real IP on real devices.',
175
+ 'Mapping storage host to "10.0.2.2" for android emulators. Use real IP on real devices. You can bypass this behaviour with "android_bypass_emulator_url_remap" flag.',
176
176
  );
177
177
  }
178
178
  }
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '21.7.4';
2
+ module.exports = '21.9.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/storage",
3
- "version": "21.7.4",
3
+ "version": "21.9.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,10 +29,10 @@
29
29
  "download"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@react-native-firebase/app": "21.7.4"
32
+ "@react-native-firebase/app": "21.9.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "82c4c7391fee6597726e5363d78400f11a644e47"
37
+ "gitHead": "306d9c766ff5614fff6404be5c3dd4bcdb450754"
38
38
  }
@@ -1,167 +0,0 @@
1
- import { describe, expect, it } from '@jest/globals';
2
-
3
- import storage, {
4
- firebase,
5
- getStorage,
6
- connectStorageEmulator,
7
- ref,
8
- deleteObject,
9
- getBlob,
10
- getBytes,
11
- getDownloadURL,
12
- getMetadata,
13
- getStream,
14
- list,
15
- listAll,
16
- updateMetadata,
17
- uploadBytes,
18
- uploadBytesResumable,
19
- uploadString,
20
- refFromURL,
21
- setMaxOperationRetryTime,
22
- setMaxUploadRetryTime,
23
- putFile,
24
- writeToFile,
25
- toString,
26
- child,
27
- setMaxDownloadRetryTime,
28
- } from '../lib';
29
-
30
- describe('Storage', function () {
31
- describe('namespace', function () {
32
- it('accessible from firebase.app()', function () {
33
- const app = firebase.app();
34
- expect(app.storage).toBeDefined();
35
- expect(app.storage().useEmulator).toBeDefined();
36
- });
37
- });
38
-
39
- describe('useEmulator()', function () {
40
- it('useEmulator requires a string host', function () {
41
- // @ts-ignore because we pass an invalid argument...
42
- expect(() => storage().useEmulator()).toThrow(
43
- 'firebase.storage().useEmulator() takes a non-empty host',
44
- );
45
- expect(() => storage().useEmulator('', -1)).toThrow(
46
- 'firebase.storage().useEmulator() takes a non-empty host',
47
- );
48
- // @ts-ignore because we pass an invalid argument...
49
- expect(() => storage().useEmulator(123)).toThrow(
50
- 'firebase.storage().useEmulator() takes a non-empty host',
51
- );
52
- });
53
-
54
- it('useEmulator requires a host and port', function () {
55
- expect(() => storage().useEmulator('', 9000)).toThrow(
56
- 'firebase.storage().useEmulator() takes a non-empty host and port',
57
- );
58
- // No port
59
- // @ts-ignore because we pass an invalid argument...
60
- expect(() => storage().useEmulator('localhost')).toThrow(
61
- 'firebase.storage().useEmulator() takes a non-empty host and port',
62
- );
63
- });
64
-
65
- it('useEmulator -> remaps Android loopback to host', function () {
66
- const foo = storage().useEmulator('localhost', 9000);
67
- expect(foo).toEqual(['10.0.2.2', 9000]);
68
-
69
- const bar = storage().useEmulator('127.0.0.1', 9000);
70
- expect(bar).toEqual(['10.0.2.2', 9000]);
71
- });
72
- });
73
-
74
- describe('modular', function () {
75
- it('`getStorage` function is properly exposed to end user', function () {
76
- expect(getStorage).toBeDefined();
77
- });
78
-
79
- it('`connectStorageEmulator` function is properly exposed to end user', function () {
80
- expect(connectStorageEmulator).toBeDefined();
81
- });
82
-
83
- it('`ref` function is properly exposed to end user', function () {
84
- expect(ref).toBeDefined();
85
- });
86
-
87
- it('`deleteObject` function is properly exposed to end user', function () {
88
- expect(deleteObject).toBeDefined();
89
- });
90
-
91
- it('`getBlob` function is properly exposed to end user', function () {
92
- expect(getBlob).toBeDefined();
93
- });
94
-
95
- it('`getBytes` function is properly exposed to end user', function () {
96
- expect(getBytes).toBeDefined();
97
- });
98
-
99
- it('`getDownloadURL` function is properly exposed to end user', function () {
100
- expect(getDownloadURL).toBeDefined();
101
- });
102
-
103
- it('`getMetadata` function is properly exposed to end user', function () {
104
- expect(getMetadata).toBeDefined();
105
- });
106
-
107
- it('`getStream` function is properly exposed to end user', function () {
108
- expect(getStream).toBeDefined();
109
- });
110
-
111
- it('`list` function is properly exposed to end user', function () {
112
- expect(list).toBeDefined();
113
- });
114
-
115
- it('`listAll` function is properly exposed to end user', function () {
116
- expect(listAll).toBeDefined();
117
- });
118
-
119
- it('`updateMetadata` function is properly exposed to end user', function () {
120
- expect(updateMetadata).toBeDefined();
121
- });
122
-
123
- it('`uploadBytes` function is properly exposed to end user', function () {
124
- expect(uploadBytes).toBeDefined();
125
- });
126
-
127
- it('`uploadBytesResumable` function is properly exposed to end user', function () {
128
- expect(uploadBytesResumable).toBeDefined();
129
- });
130
-
131
- it('`uploadString` function is properly exposed to end user', function () {
132
- expect(uploadString).toBeDefined();
133
- });
134
-
135
- it('`refFromURL` function is properly exposed to end user', function () {
136
- expect(refFromURL).toBeDefined();
137
- });
138
-
139
- it('`setMaxOperationRetryTime` function is properly exposed to end user', function () {
140
- expect(setMaxOperationRetryTime).toBeDefined();
141
- });
142
-
143
- it('`setMaxUploadRetryTime` function is properly exposed to end user', function () {
144
- expect(setMaxUploadRetryTime).toBeDefined();
145
- });
146
-
147
- it('`putFile` function is properly exposed to end user', function () {
148
- expect(putFile).toBeDefined();
149
- });
150
-
151
- it('`writeToFile` function is properly exposed to end user', function () {
152
- expect(writeToFile).toBeDefined();
153
- });
154
-
155
- it('`toString` function is properly exposed to end user', function () {
156
- expect(toString).toBeDefined();
157
- });
158
-
159
- it('`child` function is properly exposed to end user', function () {
160
- expect(child).toBeDefined();
161
- });
162
-
163
- it('`setMaxDownloadRetryTime` function is properly exposed to end user', function () {
164
- expect(setMaxDownloadRetryTime).toBeDefined();
165
- });
166
- });
167
- });