@react-native-firebase/messaging 21.10.0 → 21.10.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 CHANGED
@@ -3,6 +3,13 @@
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.10.1](https://github.com/invertase/react-native-firebase/compare/v21.10.0...v21.10.1) (2025-02-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **messaging, types:** export correct module types ([#8336](https://github.com/invertase/react-native-firebase/issues/8336)) ([b39f5a4](https://github.com/invertase/react-native-firebase/commit/b39f5a4b8d6c91971c94decd3c2dddeaca85a289))
11
+ - **messaging:** 3 statics not correctly exported ([#8318](https://github.com/invertase/react-native-firebase/issues/8318)) ([9a4b6e5](https://github.com/invertase/react-native-firebase/commit/9a4b6e54ed6dc8146334d0ccc88a7774bbd87569))
12
+
6
13
  ## [21.10.0](https://github.com/invertase/react-native-firebase/compare/v21.9.0...v21.10.0) (2025-02-11)
7
14
 
8
15
  ### Features
package/lib/index.js CHANGED
@@ -33,29 +33,13 @@ import {
33
33
  import { AppRegistry, Platform } from 'react-native';
34
34
  import remoteMessageOptions from './remoteMessageOptions';
35
35
  import version from './version';
36
+ import {
37
+ AuthorizationStatus,
38
+ NotificationAndroidPriority,
39
+ NotificationAndroidVisibility,
40
+ } from './statics';
36
41
 
37
- const statics = {
38
- AuthorizationStatus: {
39
- NOT_DETERMINED: -1,
40
- DENIED: 0,
41
- AUTHORIZED: 1,
42
- PROVISIONAL: 2,
43
- EPHEMERAL: 3,
44
- },
45
- NotificationAndroidPriority: {
46
- PRIORITY_MIN: -2,
47
- PRIORITY_LOW: -1,
48
- PRIORITY_DEFAULT: 0,
49
- PRIORITY_HIGH: 1,
50
- PRIORITY_MAX: 2,
51
- },
52
- NotificationAndroidVisibility: {
53
- VISIBILITY_SECRET: -1,
54
- VISIBILITY_PRIVATE: 0,
55
- VISIBILITY_PUBLIC: 1,
56
- },
57
- };
58
-
42
+ const statics = { AuthorizationStatus, NotificationAndroidPriority, NotificationAndroidVisibility };
59
43
  const namespace = 'messaging';
60
44
 
61
45
  const nativeModuleName = 'RNFBMessagingModule';
@@ -1,9 +1,13 @@
1
1
  import { FirebaseMessagingTypes } from '..';
2
2
  import { ReactNativeFirebase } from '@react-native-firebase/app';
3
3
 
4
- import Messaging = FirebaseStorageTypes.Module;
4
+ import Messaging = FirebaseMessagingTypes.Module;
5
5
  import FirebaseApp = ReactNativeFirebase.FirebaseApp;
6
6
 
7
+ export const AuthorizationStatus = FirebaseMessagingTypes.AuthorizationStatus;
8
+ export const NotificationAndroidPriority = FirebaseMessagingTypes.NotificationAndroidPriority;
9
+ export const NotificationAndroidVisibility = FirebaseMessagingTypes.NotificationAndroidVisibility;
10
+
7
11
  /**
8
12
  * Returns a Messaging instance for the given app.
9
13
  * @param app - The Firebase app instance. Optional.
@@ -336,3 +336,9 @@ export function isSupported(messaging) {
336
336
  export function experimentalSetDeliveryMetricsExportedToBigQueryEnabled(messaging, enabled) {
337
337
  return messaging.setDeliveryMetricsExportToBigQuery(enabled);
338
338
  }
339
+
340
+ export {
341
+ AuthorizationStatus,
342
+ NotificationAndroidPriority,
343
+ NotificationAndroidVisibility,
344
+ } from '../statics';
package/lib/statics.js ADDED
@@ -0,0 +1,21 @@
1
+ // shared between namespaced and modular API
2
+
3
+ export const AuthorizationStatus = {
4
+ NOT_DETERMINED: -1,
5
+ DENIED: 0,
6
+ AUTHORIZED: 1,
7
+ PROVISIONAL: 2,
8
+ EPHEMERAL: 3,
9
+ };
10
+ export const NotificationAndroidPriority = {
11
+ PRIORITY_MIN: -2,
12
+ PRIORITY_LOW: -1,
13
+ PRIORITY_DEFAULT: 0,
14
+ PRIORITY_HIGH: 1,
15
+ PRIORITY_MAX: 2,
16
+ };
17
+ export const NotificationAndroidVisibility = {
18
+ VISIBILITY_SECRET: -1,
19
+ VISIBILITY_PRIVATE: 0,
20
+ VISIBILITY_PUBLIC: 1,
21
+ };
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '21.10.0';
2
+ module.exports = '21.10.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/messaging",
3
- "version": "21.10.0",
3
+ "version": "21.10.1",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - React Native Firebase provides native integration of Firebase Cloud Messaging (FCM) for both Android & iOS. FCM is a cost free service, allowing for server-device and device-device communication. The React Native Firebase Messaging module provides a simple JavaScript API to interact with FCM.",
6
6
  "main": "lib/index.js",
@@ -24,11 +24,11 @@
24
24
  "messaging"
25
25
  ],
26
26
  "peerDependencies": {
27
- "@react-native-firebase/app": "21.10.0",
27
+ "@react-native-firebase/app": "21.10.1",
28
28
  "expo": ">=47.0.0"
29
29
  },
30
30
  "devDependencies": {
31
- "expo": "^52.0.32"
31
+ "expo": "^52.0.35"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "expo": {
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "3fd30c09b2eb7d60a6ac7f6f906673a12b7bc1a7"
41
+ "gitHead": "153637d27bb98b1f44a4b27fe1f8ec133bdbfb6d"
42
42
  }