@react-native-firebase/app 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,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
+ ## [21.10.1](https://github.com/invertase/react-native-firebase/compare/v21.10.0...v21.10.1) (2025-02-18)
7
+
8
+ ### Performance Improvements
9
+
10
+ - only create deprecation message if we will use it ([70c57f4](https://github.com/invertase/react-native-firebase/commit/70c57f44597a04885f5b112c25b5251d94192615))
11
+
6
12
  ## [21.10.0](https://github.com/invertase/react-native-firebase/compare/v21.9.0...v21.10.0) (2025-02-11)
7
13
 
8
14
  **Note:** Version bump only for package @react-native-firebase/app
@@ -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.10.0";
21
+ public static String VERSION = "21.10.1";
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.10.0";
21
+ NSString* const RNFBVersionString = @"21.10.1";
@@ -224,11 +224,13 @@ export function deprecationConsoleWarning(nameSpace, methodName, instanceName, i
224
224
  const instanceMap = moduleMap[instanceName];
225
225
  const deprecatedMethod = instanceMap[methodName];
226
226
  if (instanceMap && deprecatedMethod) {
227
- const message = createMessage(nameSpace, methodName, instanceName);
228
-
229
227
  if (!globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS) {
230
228
  // eslint-disable-next-line no-console
231
- console.warn(message);
229
+ console.warn(createMessage(nameSpace, methodName, instanceName));
230
+
231
+ if (globalThis.RNFB_MODULAR_DEPRECATION_STRICT_MODE === true) {
232
+ throw new Error('Deprecated API usage detected while in strict mode.');
233
+ }
232
234
  }
233
235
  }
234
236
  }
@@ -253,9 +255,12 @@ export function createMessage(
253
255
  const replacementMethodName = instance[methodName];
254
256
 
255
257
  if (replacementMethodName !== NO_REPLACEMENT) {
256
- return modularDeprecationMessage + ` Please use \`${replacementMethodName}\` instead.`;
258
+ return (
259
+ modularDeprecationMessage +
260
+ `. Method called was \`${methodName}\`. Please use \`${replacementMethodName}\` instead.`
261
+ );
257
262
  } else {
258
- return modularDeprecationMessage;
263
+ return modularDeprecationMessage + `. Method called was \`${methodName}\``;
259
264
  }
260
265
  }
261
266
  }
@@ -371,5 +376,9 @@ export function warnIfNotModularCall(args, replacementMethodName = '') {
371
376
  if (!globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS) {
372
377
  // eslint-disable-next-line no-console
373
378
  console.warn(message);
379
+
380
+ if (globalThis.RNFB_MODULAR_DEPRECATION_STRICT_MODE === true) {
381
+ throw new Error('Deprecated API usage detected while in strict mode.');
382
+ }
374
383
  }
375
384
  }
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/app",
3
- "version": "21.10.0",
3
+ "version": "21.10.1",
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",
@@ -57,11 +57,11 @@
57
57
  "react-native": "*"
58
58
  },
59
59
  "dependencies": {
60
- "firebase": "11.3.0"
60
+ "firebase": "11.3.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@react-native-async-storage/async-storage": "^2.1.1",
64
- "expo": "^52.0.32"
64
+ "expo": "^52.0.35"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "expo": {
@@ -90,5 +90,5 @@
90
90
  "firebaseAppDistributionGradle": "5.1.1"
91
91
  }
92
92
  },
93
- "gitHead": "3fd30c09b2eb7d60a6ac7f6f906673a12b7bc1a7"
93
+ "gitHead": "153637d27bb98b1f44a4b27fe1f8ec133bdbfb6d"
94
94
  }