@react-native-firebase/app 21.9.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 +10 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
- package/ios/RNFBApp/RNFBVersion.m +1 -1
- package/lib/common/index.js +14 -5
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/plugin/tsconfig.tsbuildinfo +1 -1
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.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
|
+
|
12
|
+
## [21.10.0](https://github.com/invertase/react-native-firebase/compare/v21.9.0...v21.10.0) (2025-02-11)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @react-native-firebase/app
|
15
|
+
|
6
16
|
## [21.9.0](https://github.com/invertase/react-native-firebase/compare/v21.8.0...v21.9.0) (2025-02-11)
|
7
17
|
|
8
18
|
### Features
|
package/lib/common/index.js
CHANGED
@@ -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(
|
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
|
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.
|
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.
|
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.
|
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.
|
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": "
|
93
|
+
"gitHead": "153637d27bb98b1f44a4b27fe1f8ec133bdbfb6d"
|
94
94
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["./src/index.ts","./src/android/
|
1
|
+
{"root":["./src/index.ts","./src/android/applyPlugin.ts","./src/android/buildscriptDependency.ts","./src/android/constants.ts","./src/android/copyGoogleServices.ts","./src/android/index.ts","./src/ios/appDelegate.ts","./src/ios/googleServicesPlist.ts","./src/ios/index.ts"],"version":"5.7.3"}
|