@react-native-firebase/messaging 14.11.1 → 15.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,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
+ # [15.0.0](https://github.com/invertase/react-native-firebase/compare/v14.11.1...v15.0.0) (2022-06-20)
7
+
8
+ - fix(storage, android)!: android now updates customMetadata as a group ([d602436](https://github.com/invertase/react-native-firebase/commit/d602436795bfb78f24bc69c42880133505738c00))
9
+
10
+ ### BREAKING CHANGES
11
+
12
+ - android works like web+iOS now: customMetadata if passed in will be
13
+ updated as a single atomic unit, all keys at once. Any key you want to keep in customMetadata
14
+ must be passed in during update; any missing keys will be removed. Set customMetadata to null
15
+ in order to remove customMetadata entirely, omit it during update to leave it unchanged.
16
+
6
17
  ## [14.11.1](https://github.com/invertase/react-native-firebase/compare/v14.11.0...v14.11.1) (2022-06-17)
7
18
 
8
19
  ### Bug Fixes
@@ -122,7 +122,8 @@ public class ReactNativeFirebaseMessagingModule extends ReactNativeFirebaseModul
122
122
 
123
123
  @ReactMethod
124
124
  public void getToken(String appName, String senderId, Promise promise) {
125
- FirebaseMessaging messagingInstance = FirebaseApp.getInstance(appName).get(FirebaseMessaging.class);
125
+ FirebaseMessaging messagingInstance =
126
+ FirebaseApp.getInstance(appName).get(FirebaseMessaging.class);
126
127
  Tasks.call(getExecutor(), () -> Tasks.await(messagingInstance.getToken()))
127
128
  .addOnCompleteListener(
128
129
  task -> {
@@ -136,7 +137,8 @@ public class ReactNativeFirebaseMessagingModule extends ReactNativeFirebaseModul
136
137
 
137
138
  @ReactMethod
138
139
  public void deleteToken(String appName, String senderId, Promise promise) {
139
- FirebaseMessaging messagingInstance = FirebaseApp.getInstance(appName).get(FirebaseMessaging.class);
140
+ FirebaseMessaging messagingInstance =
141
+ FirebaseApp.getInstance(appName).get(FirebaseMessaging.class);
140
142
  Tasks.call(
141
143
  getExecutor(),
142
144
  () -> {
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '14.11.1';
2
+ module.exports = '15.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/messaging",
3
- "version": "14.11.1",
3
+ "version": "15.0.0",
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",
@@ -22,10 +22,10 @@
22
22
  "messaging"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@react-native-firebase/app": "14.11.1"
25
+ "@react-native-firebase/app": "15.0.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "b1a430bbf36a41076b33550fec113fa0e44583b4"
30
+ "gitHead": "7bb975c8c099083911a81e28050a2a5b50af2ee6"
31
31
  }