@react-native-firebase/remote-config 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 +8 -0
- package/lib/modular/index.js +29 -19
- package/lib/version.js +1 -1
- package/package.json +4 -4
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/remote-config
|
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/remote-config
|
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
|
**Note:** Version bump only for package @react-native-firebase/remote-config
|
package/lib/modular/index.js
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
|
18
18
|
import { getApp } from '@react-native-firebase/app';
|
19
19
|
|
20
|
+
import { MODULAR_DEPRECATION_ARG } from '@react-native-firebase/app/lib/common';
|
21
|
+
|
20
22
|
/**
|
21
23
|
* @typedef {import('@firebase/app').FirebaseApp} FirebaseApp
|
22
24
|
* @typedef {import('..').FirebaseRemoteConfigTypes.Module} RemoteConfig
|
@@ -49,7 +51,7 @@ export function getRemoteConfig(app) {
|
|
49
51
|
* @returns {Promise<boolean>}
|
50
52
|
*/
|
51
53
|
export function activate(remoteConfig) {
|
52
|
-
return remoteConfig.activate();
|
54
|
+
return remoteConfig.activate.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
53
55
|
}
|
54
56
|
|
55
57
|
/**
|
@@ -58,7 +60,7 @@ export function activate(remoteConfig) {
|
|
58
60
|
* @returns {Promise<void>}
|
59
61
|
*/
|
60
62
|
export function ensureInitialized(remoteConfig) {
|
61
|
-
return remoteConfig.ensureInitialized();
|
63
|
+
return remoteConfig.ensureInitialized.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
62
64
|
}
|
63
65
|
|
64
66
|
/**
|
@@ -68,7 +70,7 @@ export function ensureInitialized(remoteConfig) {
|
|
68
70
|
* @returns {Promise<boolean>}
|
69
71
|
*/
|
70
72
|
export function fetchAndActivate(remoteConfig) {
|
71
|
-
return remoteConfig.fetchAndActivate();
|
73
|
+
return remoteConfig.fetchAndActivate.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
72
74
|
}
|
73
75
|
|
74
76
|
/**
|
@@ -77,7 +79,7 @@ export function fetchAndActivate(remoteConfig) {
|
|
77
79
|
* @returns {Promise<void>}
|
78
80
|
*/
|
79
81
|
export function fetchConfig(remoteConfig) {
|
80
|
-
return remoteConfig.fetchConfig();
|
82
|
+
return remoteConfig.fetchConfig.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
81
83
|
}
|
82
84
|
|
83
85
|
/**
|
@@ -86,7 +88,7 @@ export function fetchConfig(remoteConfig) {
|
|
86
88
|
* @returns {ConfigValues}
|
87
89
|
*/
|
88
90
|
export function getAll(remoteConfig) {
|
89
|
-
return remoteConfig.getAll();
|
91
|
+
return remoteConfig.getAll.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
90
92
|
}
|
91
93
|
|
92
94
|
/**
|
@@ -96,7 +98,7 @@ export function getAll(remoteConfig) {
|
|
96
98
|
* @returns {boolean}
|
97
99
|
*/
|
98
100
|
export function getBoolean(remoteConfig, key) {
|
99
|
-
return remoteConfig.getBoolean(key);
|
101
|
+
return remoteConfig.getBoolean.call(remoteConfig, key, MODULAR_DEPRECATION_ARG);
|
100
102
|
}
|
101
103
|
|
102
104
|
/**
|
@@ -106,7 +108,7 @@ export function getBoolean(remoteConfig, key) {
|
|
106
108
|
* @returns {number}
|
107
109
|
*/
|
108
110
|
export function getNumber(remoteConfig, key) {
|
109
|
-
return remoteConfig.getNumber(key);
|
111
|
+
return remoteConfig.getNumber.call(remoteConfig, key, MODULAR_DEPRECATION_ARG);
|
110
112
|
}
|
111
113
|
|
112
114
|
/**
|
@@ -116,7 +118,7 @@ export function getNumber(remoteConfig, key) {
|
|
116
118
|
* @returns {string}
|
117
119
|
*/
|
118
120
|
export function getString(remoteConfig, key) {
|
119
|
-
return remoteConfig.getString(key);
|
121
|
+
return remoteConfig.getString.call(remoteConfig, key, MODULAR_DEPRECATION_ARG);
|
120
122
|
}
|
121
123
|
|
122
124
|
/**
|
@@ -126,7 +128,7 @@ export function getString(remoteConfig, key) {
|
|
126
128
|
* @returns {ConfigValue}
|
127
129
|
*/
|
128
130
|
export function getValue(remoteConfig, key) {
|
129
|
-
return remoteConfig.getValue(key);
|
131
|
+
return remoteConfig.getValue.call(remoteConfig, key, MODULAR_DEPRECATION_ARG);
|
130
132
|
}
|
131
133
|
|
132
134
|
/**
|
@@ -159,7 +161,7 @@ export function isSupported() {
|
|
159
161
|
* @returns {number}
|
160
162
|
*/
|
161
163
|
export function fetchTimeMillis(remoteConfig) {
|
162
|
-
return remoteConfig.fetchTimeMillis;
|
164
|
+
return remoteConfig.fetchTimeMillis.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
163
165
|
}
|
164
166
|
|
165
167
|
/**
|
@@ -169,7 +171,7 @@ export function fetchTimeMillis(remoteConfig) {
|
|
169
171
|
* @returns {ConfigSettings}
|
170
172
|
*/
|
171
173
|
export function settings(remoteConfig) {
|
172
|
-
return remoteConfig.settings;
|
174
|
+
return remoteConfig.settings.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
173
175
|
}
|
174
176
|
|
175
177
|
/**
|
@@ -178,7 +180,7 @@ export function settings(remoteConfig) {
|
|
178
180
|
* @returns {LastFetchStatusType}
|
179
181
|
*/
|
180
182
|
export function lastFetchStatus(remoteConfig) {
|
181
|
-
return remoteConfig.lastFetchStatus;
|
183
|
+
return remoteConfig.lastFetchStatus.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
182
184
|
}
|
183
185
|
|
184
186
|
/**
|
@@ -189,7 +191,7 @@ export function lastFetchStatus(remoteConfig) {
|
|
189
191
|
* @returns {Promise<void>}
|
190
192
|
*/
|
191
193
|
export function reset(remoteConfig) {
|
192
|
-
return remoteConfig.reset();
|
194
|
+
return remoteConfig.reset.call(remoteConfig, MODULAR_DEPRECATION_ARG);
|
193
195
|
}
|
194
196
|
|
195
197
|
/**
|
@@ -200,7 +202,7 @@ export function reset(remoteConfig) {
|
|
200
202
|
* @returns {Promise<void>}
|
201
203
|
*/
|
202
204
|
export function setConfigSettings(remoteConfig, settings) {
|
203
|
-
return remoteConfig.setConfigSettings(settings);
|
205
|
+
return remoteConfig.setConfigSettings.call(remoteConfig, settings, MODULAR_DEPRECATION_ARG);
|
204
206
|
}
|
205
207
|
|
206
208
|
/**
|
@@ -210,7 +212,7 @@ export function setConfigSettings(remoteConfig, settings) {
|
|
210
212
|
* @returns {Promise<void>}
|
211
213
|
*/
|
212
214
|
export function fetch(remoteConfig, expirationDurationSeconds) {
|
213
|
-
return remoteConfig.fetch(expirationDurationSeconds);
|
215
|
+
return remoteConfig.fetch.call(remoteConfig, expirationDurationSeconds, MODULAR_DEPRECATION_ARG);
|
214
216
|
}
|
215
217
|
|
216
218
|
/**
|
@@ -220,7 +222,7 @@ export function fetch(remoteConfig, expirationDurationSeconds) {
|
|
220
222
|
* @returns {Promise<void>}
|
221
223
|
*/
|
222
224
|
export function setDefaults(remoteConfig, defaults) {
|
223
|
-
return remoteConfig.setDefaults(defaults);
|
225
|
+
return remoteConfig.setDefaults.call(remoteConfig, defaults, MODULAR_DEPRECATION_ARG);
|
224
226
|
}
|
225
227
|
|
226
228
|
/**
|
@@ -230,7 +232,11 @@ export function setDefaults(remoteConfig, defaults) {
|
|
230
232
|
* @returns {Promise<null>}
|
231
233
|
*/
|
232
234
|
export function setDefaultsFromResource(remoteConfig, resourceName) {
|
233
|
-
return remoteConfig.setDefaultsFromResource(
|
235
|
+
return remoteConfig.setDefaultsFromResource.call(
|
236
|
+
remoteConfig,
|
237
|
+
resourceName,
|
238
|
+
MODULAR_DEPRECATION_ARG,
|
239
|
+
);
|
234
240
|
}
|
235
241
|
|
236
242
|
/**
|
@@ -241,7 +247,7 @@ export function setDefaultsFromResource(remoteConfig, resourceName) {
|
|
241
247
|
* @returns {function} unsubscribe listener
|
242
248
|
*/
|
243
249
|
export function onConfigUpdated(remoteConfig, callback) {
|
244
|
-
return remoteConfig.onConfigUpdated(callback);
|
250
|
+
return remoteConfig.onConfigUpdated.call(remoteConfig, callback, MODULAR_DEPRECATION_ARG);
|
245
251
|
}
|
246
252
|
|
247
253
|
/**
|
@@ -258,7 +264,11 @@ export async function setCustomSignals(remoteConfig, customSignals) {
|
|
258
264
|
);
|
259
265
|
}
|
260
266
|
}
|
261
|
-
return remoteConfig._promiseWithConstants
|
267
|
+
return remoteConfig._promiseWithConstants.call(
|
268
|
+
remoteConfig,
|
269
|
+
remoteConfig.native.setCustomSignals(customSignals),
|
270
|
+
MODULAR_DEPRECATION_ARG,
|
271
|
+
);
|
262
272
|
}
|
263
273
|
|
264
274
|
export { LastFetchStatus, ValueSource } from '../statics';
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '22.
|
2
|
+
module.exports = '22.3.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/remote-config",
|
3
|
-
"version": "22.
|
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 Remote Config, allowing you to change the appearance and/or functionality of your app without requiring an app update.",
|
6
6
|
"main": "lib/index.js",
|
@@ -24,12 +24,12 @@
|
|
24
24
|
"remote-config"
|
25
25
|
],
|
26
26
|
"peerDependencies": {
|
27
|
-
"@react-native-firebase/analytics": "22.
|
28
|
-
"@react-native-firebase/app": "22.
|
27
|
+
"@react-native-firebase/analytics": "22.3.0",
|
28
|
+
"@react-native-firebase/app": "22.3.0"
|
29
29
|
},
|
30
30
|
"publishConfig": {
|
31
31
|
"access": "public",
|
32
32
|
"provenance": true
|
33
33
|
},
|
34
|
-
"gitHead": "
|
34
|
+
"gitHead": "c04f2a3b681460edde5518812646cf5e0dd86627"
|
35
35
|
}
|