@react-native-firebase/remote-config 23.0.1 → 23.1.1
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 +11 -0
- package/lib/index.js +2 -7
- package/lib/version.js +1 -1
- package/lib/web/RNFBConfigModule.js +4 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
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
|
+
## [23.1.1](https://github.com/invertase/react-native-firebase/compare/v23.1.0...v23.1.1) (2025-08-22)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **remote-config, other:** return friendly error for onConfigUpdated ([959c4cf](https://github.com/invertase/react-native-firebase/commit/959c4cf98496e6e6f25416d33fa794007bd34119))
|
11
|
+
- validate listenerOrObserver callbacks in auth, app-check, remote-config ([06dcae4](https://github.com/invertase/react-native-firebase/commit/06dcae44e29f18e7716727479fd6e6d048336d91))
|
12
|
+
|
13
|
+
## [23.1.0](https://github.com/invertase/react-native-firebase/compare/v23.0.1...v23.1.0) (2025-08-19)
|
14
|
+
|
15
|
+
**Note:** Version bump only for package @react-native-firebase/remote-config
|
16
|
+
|
6
17
|
## [23.0.1](https://github.com/invertase/react-native-firebase/compare/v23.0.0...v23.0.1) (2025-08-12)
|
7
18
|
|
8
19
|
**Note:** Version bump only for package @react-native-firebase/remote-config
|
package/lib/index.js
CHANGED
@@ -22,6 +22,7 @@ import {
|
|
22
22
|
isString,
|
23
23
|
isUndefined,
|
24
24
|
isIOS,
|
25
|
+
parseListenerOrObserver,
|
25
26
|
} from '@react-native-firebase/app/lib/common';
|
26
27
|
import Value from './RemoteConfigValue';
|
27
28
|
import {
|
@@ -247,7 +248,7 @@ class FirebaseConfigModule extends FirebaseModule {
|
|
247
248
|
* @returns {function} unsubscribe listener
|
248
249
|
*/
|
249
250
|
onConfigUpdated(listenerOrObserver) {
|
250
|
-
const listener =
|
251
|
+
const listener = parseListenerOrObserver(listenerOrObserver);
|
251
252
|
let unsubscribed = false;
|
252
253
|
const subscription = this.emitter.addListener(
|
253
254
|
this.eventNameForApp('on_config_updated'),
|
@@ -287,12 +288,6 @@ class FirebaseConfigModule extends FirebaseModule {
|
|
287
288
|
};
|
288
289
|
}
|
289
290
|
|
290
|
-
_parseListener(listenerOrObserver) {
|
291
|
-
return typeof listenerOrObserver === 'object'
|
292
|
-
? listenerOrObserver.next.bind(listenerOrObserver)
|
293
|
-
: listenerOrObserver;
|
294
|
-
}
|
295
|
-
|
296
291
|
_updateFromConstants(constants) {
|
297
292
|
// Wrapped this as we update using sync getters initially for `defaultConfig` & `settings`
|
298
293
|
if (constants.lastFetchTime) {
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '23.
|
2
|
+
module.exports = '23.1.1';
|
@@ -9,7 +9,7 @@ import {
|
|
9
9
|
makeIDBAvailable,
|
10
10
|
setCustomSignals,
|
11
11
|
} from '@react-native-firebase/app/lib/internal/web/firebaseRemoteConfig';
|
12
|
-
import { guard } from '@react-native-firebase/app/lib/internal/web/utils';
|
12
|
+
import { guard, getWebError } from '@react-native-firebase/app/lib/internal/web/utils';
|
13
13
|
|
14
14
|
let configSettingsForInstance = {
|
15
15
|
// [APP_NAME]: RemoteConfigSettings
|
@@ -121,4 +121,7 @@ export default {
|
|
121
121
|
return resultAndConstants(remoteConfig, null);
|
122
122
|
});
|
123
123
|
},
|
124
|
+
onConfigUpdated() {
|
125
|
+
return getWebError('unsupported', 'Not supported by the Firebase Javascript SDK.');
|
126
|
+
},
|
124
127
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/remote-config",
|
3
|
-
"version": "23.
|
3
|
+
"version": "23.1.1",
|
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": "23.
|
28
|
-
"@react-native-firebase/app": "23.
|
27
|
+
"@react-native-firebase/analytics": "23.1.1",
|
28
|
+
"@react-native-firebase/app": "23.1.1"
|
29
29
|
},
|
30
30
|
"publishConfig": {
|
31
31
|
"access": "public",
|
32
32
|
"provenance": true
|
33
33
|
},
|
34
|
-
"gitHead": "
|
34
|
+
"gitHead": "1cdb412427e0c909ede08f5fed5c6b512e9fb5d5"
|
35
35
|
}
|