@react-native-firebase/remote-config 23.1.0 → 23.1.2

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,19 @@
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.2](https://github.com/invertase/react-native-firebase/compare/v23.1.1...v23.1.2) (2025-08-25)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **remote-config, other:** return proper error for onConfigUpdated ([aeb3ead](https://github.com/invertase/react-native-firebase/commit/aeb3ead98f3f7c58273436321c91e34f43383b5f))
11
+
12
+ ## [23.1.1](https://github.com/invertase/react-native-firebase/compare/v23.1.0...v23.1.1) (2025-08-22)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **remote-config, other:** return friendly error for onConfigUpdated ([959c4cf](https://github.com/invertase/react-native-firebase/commit/959c4cf98496e6e6f25416d33fa794007bd34119))
17
+ - validate listenerOrObserver callbacks in auth, app-check, remote-config ([06dcae4](https://github.com/invertase/react-native-firebase/commit/06dcae44e29f18e7716727479fd6e6d048336d91))
18
+
6
19
  ## [23.1.0](https://github.com/invertase/react-native-firebase/compare/v23.0.1...v23.1.0) (2025-08-19)
7
20
 
8
21
  **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 = this._parseListener(listenerOrObserver);
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.1.0';
2
+ module.exports = '23.1.2';
@@ -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,10 @@ export default {
121
121
  return resultAndConstants(remoteConfig, null);
122
122
  });
123
123
  },
124
+ onConfigUpdated() {
125
+ throw getWebError({
126
+ code: 'unsupported',
127
+ message: 'Not supported by the Firebase Javascript SDK.',
128
+ });
129
+ },
124
130
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/remote-config",
3
- "version": "23.1.0",
3
+ "version": "23.1.2",
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.1.0",
28
- "@react-native-firebase/app": "23.1.0"
27
+ "@react-native-firebase/analytics": "23.1.2",
28
+ "@react-native-firebase/app": "23.1.2"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public",
32
32
  "provenance": true
33
33
  },
34
- "gitHead": "b152d06e706e499464829f856804e29565118cc5"
34
+ "gitHead": "65b4f41cea31be5393aca14bcc78ce6e5255f51f"
35
35
  }