@react-native-firebase/app
Advanced tools
Comparing version
@@ -216,5 +216,5 @@ /* | ||
const v8deprecationMessage = | ||
'This v8 method is deprecated and will be removed in the next major release ' + | ||
'as part of move to match Firebase Web modular v9 SDK API.'; | ||
const modularDeprecationMessage = | ||
'This method is deprecated (as well as all React Native Firebase namespaced API) and will be removed in the next major release ' + | ||
'as part of move to match Firebase Web modular SDK API. Please see migration guide for more details: https://rnfirebase.io/migrating-to-v22'; | ||
@@ -229,4 +229,7 @@ export function deprecationConsoleWarning(nameSpace, methodName, instanceName, isModularMethod) { | ||
const message = createMessage(nameSpace, methodName, instanceName); | ||
// eslint-disable-next-line no-console | ||
console.warn(message); | ||
if (!globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS) { | ||
// eslint-disable-next-line no-console | ||
console.warn(message); | ||
} | ||
} | ||
@@ -255,5 +258,5 @@ } | ||
if (replacementMethodName !== NO_REPLACEMENT) { | ||
return v8deprecationMessage + ` Please use \`${replacementMethodName}\` instead.`; | ||
return modularDeprecationMessage + ` Please use \`${replacementMethodName}\` instead.`; | ||
} else { | ||
return v8deprecationMessage; | ||
return modularDeprecationMessage; | ||
} | ||
@@ -365,6 +368,4 @@ } | ||
} | ||
let message = | ||
'This v8 method is deprecated and will be removed in the next major release ' + | ||
'as part of move to match Firebase Web modular v9 SDK API.'; | ||
let message = modularDeprecationMessage; | ||
if (replacementMethodName.length > 0) { | ||
@@ -374,4 +375,6 @@ message += ` Please use \`${replacementMethodName}\` instead.`; | ||
// eslint-disable-next-line no-console | ||
console.warn(message); | ||
if (!globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS) { | ||
// eslint-disable-next-line no-console | ||
console.warn(message); | ||
} | ||
} |
// Generated by genversion. | ||
module.exports = '21.7.2'; | ||
module.exports = '21.7.3'; |
{ | ||
"name": "@react-native-firebase/app", | ||
"version": "21.7.2", | ||
"version": "21.7.3", | ||
"author": "Invertase <oss@invertase.io> (http://invertase.io)", | ||
@@ -93,3 +93,3 @@ "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.", | ||
}, | ||
"gitHead": "209b36e4b469355e4d024ecdeb6c875f8bd8a187" | ||
"gitHead": "e1446c8737b4df5067fcc4f99ca30b0a3afcc8e5" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
524374
0.09%9511
0.02%