@react-native-firebase/remote-config 22.4.0 → 23.0.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,12 @@
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.0.0](https://github.com/invertase/react-native-firebase/compare/v22.4.0...v23.0.0) (2025-08-07)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **remote-config:** type error in callback for modular `onConfigUpdated` ([#8614](https://github.com/invertase/react-native-firebase/issues/8614)) ([0d9947c](https://github.com/invertase/react-native-firebase/commit/0d9947c321241de8a43259591a4cbd7995c3fbea)), closes [#8613](https://github.com/invertase/react-native-firebase/issues/8613)
11
+
6
12
  ## [22.4.0](https://github.com/invertase/react-native-firebase/compare/v22.3.0...v22.4.0) (2025-07-10)
7
13
 
8
14
  **Note:** Version bump only for package @react-native-firebase/remote-config
package/lib/index.d.ts CHANGED
@@ -540,6 +540,17 @@ export namespace FirebaseRemoteConfigTypes {
540
540
  */
541
541
  reset(): Promise<void>;
542
542
  }
543
+
544
+ export type CallbackOrObserver<T extends (...args: any[]) => any> = T | { next: T };
545
+
546
+ export type OnConfigUpdatedListenerCallback = (
547
+ event?: { updatedKeys: string[] },
548
+ error?: {
549
+ code: string;
550
+ message: string;
551
+ nativeErrorMessage: string;
552
+ },
553
+ ) => void;
543
554
  }
544
555
 
545
556
  declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics<
@@ -554,17 +565,6 @@ export const firebase: ReactNativeFirebase.Module & {
554
565
  ): ReactNativeFirebase.FirebaseApp & { remoteConfig(): FirebaseRemoteConfigTypes.Module };
555
566
  };
556
567
 
557
- type CallbackOrObserver<T extends (...args: any[]) => any> = T | { next: T };
558
-
559
- type OnConfigUpdatedListenerCallback = (
560
- event?: { updatedKeys: string[] },
561
- error?: {
562
- code: string;
563
- message: string;
564
- nativeErrorMessage: string;
565
- },
566
- ) => void;
567
-
568
568
  export default defaultExport;
569
569
 
570
570
  export * from './modular';
@@ -27,6 +27,8 @@ import RemoteConfigLogLevel = FirebaseRemoteConfigTypes.RemoteConfigLogLevel;
27
27
  import FirebaseApp = ReactNativeFirebase.FirebaseApp;
28
28
  import LastFetchStatusInterface = FirebaseRemoteConfigTypes.LastFetchStatus;
29
29
  import ValueSourceInterface = FirebaseRemoteConfigTypes.ValueSource;
30
+ import CallbackOrObserver = FirebaseRemoteConfigTypes.CallbackOrObserver;
31
+ import OnConfigUpdatedListenerCallback = FirebaseRemoteConfigTypes.OnConfigUpdatedListenerCallback;
30
32
 
31
33
  export const LastFetchStatus: LastFetchStatusInterface;
32
34
  export const ValueSource: ValueSourceInterface;
@@ -210,7 +212,7 @@ export function setDefaultsFromResource(
210
212
  */
211
213
  export function onConfigUpdated(
212
214
  remoteConfig: RemoteConfig,
213
- callback: (config: ConfigValues) => void,
215
+ callback: CallbackOrObserver<OnConfigUpdatedListenerCallback>,
214
216
  ): () => void;
215
217
 
216
218
  /**
@@ -243,7 +243,7 @@ export function setDefaultsFromResource(remoteConfig, resourceName) {
243
243
  * Registers a listener to changes in the configuration.
244
244
  *
245
245
  * @param {RemoteConfig} remoteConfig - RemoteConfig instance
246
- * @param {function(ConfigValues): void} callback - function called on config change
246
+ * @param {CallbackOrObserver<OnConfigUpdatedListenerCallback>} callback - function called on config change
247
247
  * @returns {function} unsubscribe listener
248
248
  */
249
249
  export function onConfigUpdated(remoteConfig, callback) {
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '22.4.0';
2
+ module.exports = '23.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/remote-config",
3
- "version": "22.4.0",
3
+ "version": "23.0.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.4.0",
28
- "@react-native-firebase/app": "22.4.0"
27
+ "@react-native-firebase/analytics": "23.0.0",
28
+ "@react-native-firebase/app": "23.0.0"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public",
32
32
  "provenance": true
33
33
  },
34
- "gitHead": "7eaaf185aab15c7e4fc3c218af9be609fe7e0030"
34
+ "gitHead": "14c35416e62f3626d6c2aee2ffd000bd2337884b"
35
35
  }