@react-native-firebase/app 21.7.2 → 21.7.4

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,16 @@
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.7.4](https://github.com/invertase/react-native-firebase/compare/v21.7.3...v21.7.4) (2025-02-08)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/app
9
+
10
+ ## [21.7.3](https://github.com/invertase/react-native-firebase/compare/v21.7.2...v21.7.3) (2025-02-08)
11
+
12
+ ### Bug Fixes
13
+
14
+ - use same deprecation message everywhere, correct tests for new message ([684081b](https://github.com/invertase/react-native-firebase/commit/684081b7bdc17bc314fce827972dca5b1a58e01b))
15
+
6
16
  ## [21.7.2](https://github.com/invertase/react-native-firebase/compare/v21.7.1...v21.7.2) (2025-02-05)
7
17
 
8
18
  ### Bug Fixes
@@ -18,5 +18,5 @@ package io.invertase.firebase.app;
18
18
  */
19
19
  // generated file - do not modify or commit
20
20
  public class ReactNativeFirebaseVersion {
21
- public static String VERSION = "21.7.2";
21
+ public static String VERSION = "21.7.4";
22
22
  }
@@ -18,4 +18,4 @@
18
18
  #import <React/RCTVersion.h>
19
19
 
20
20
  // generated file - do not modify or commit
21
- NSString* const RNFBVersionString = @"21.7.2";
21
+ NSString* const RNFBVersionString = @"21.7.4";
@@ -213,9 +213,9 @@ const mapOfDeprecationReplacements = {
213
213
  },
214
214
  };
215
215
 
216
- const v8deprecationMessage =
217
- 'This v8 method is deprecated and will be removed in the next major release ' +
218
- 'as part of move to match Firebase Web modular v9 SDK API.';
216
+ const modularDeprecationMessage =
217
+ 'This method is deprecated (as well as all React Native Firebase namespaced API) and will be removed in the next major release ' +
218
+ 'as part of move to match Firebase Web modular SDK API. Please see migration guide for more details: https://rnfirebase.io/migrating-to-v22';
219
219
 
220
220
  export function deprecationConsoleWarning(nameSpace, methodName, instanceName, isModularMethod) {
221
221
  if (!isModularMethod) {
@@ -225,8 +225,11 @@ export function deprecationConsoleWarning(nameSpace, methodName, instanceName, i
225
225
  const deprecatedMethod = instanceMap[methodName];
226
226
  if (instanceMap && deprecatedMethod) {
227
227
  const message = createMessage(nameSpace, methodName, instanceName);
228
- // eslint-disable-next-line no-console
229
- console.warn(message);
228
+
229
+ if (!globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS) {
230
+ // eslint-disable-next-line no-console
231
+ console.warn(message);
232
+ }
230
233
  }
231
234
  }
232
235
  }
@@ -250,9 +253,9 @@ export function createMessage(
250
253
  const replacementMethodName = instance[methodName];
251
254
 
252
255
  if (replacementMethodName !== NO_REPLACEMENT) {
253
- return v8deprecationMessage + ` Please use \`${replacementMethodName}\` instead.`;
256
+ return modularDeprecationMessage + ` Please use \`${replacementMethodName}\` instead.`;
254
257
  } else {
255
- return v8deprecationMessage;
258
+ return modularDeprecationMessage;
256
259
  }
257
260
  }
258
261
  }
@@ -359,14 +362,14 @@ export function warnIfNotModularCall(args, replacementMethodName = '') {
359
362
  return;
360
363
  }
361
364
  }
362
- let message =
363
- 'This v8 method is deprecated and will be removed in the next major release ' +
364
- 'as part of move to match Firebase Web modular v9 SDK API.';
365
365
 
366
+ let message = modularDeprecationMessage;
366
367
  if (replacementMethodName.length > 0) {
367
368
  message += ` Please use \`${replacementMethodName}\` instead.`;
368
369
  }
369
370
 
370
- // eslint-disable-next-line no-console
371
- console.warn(message);
371
+ if (!globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS) {
372
+ // eslint-disable-next-line no-console
373
+ console.warn(message);
374
+ }
372
375
  }
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '21.7.2';
2
+ module.exports = '21.7.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/app",
3
- "version": "21.7.2",
3
+ "version": "21.7.4",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Storage and more.",
6
6
  "main": "lib/index.js",
@@ -90,5 +90,5 @@
90
90
  "firebaseAppDistributionGradle": "5.1.0"
91
91
  }
92
92
  },
93
- "gitHead": "209b36e4b469355e4d024ecdeb6c875f8bd8a187"
93
+ "gitHead": "82c4c7391fee6597726e5363d78400f11a644e47"
94
94
  }