@react-native-firebase/crashlytics 21.12.2 → 21.12.3
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 +7 -0
- package/lib/handlers.js +15 -3
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,13 @@
|
|
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.12.3](https://github.com/invertase/react-native-firebase/compare/v21.12.2...v21.12.3) (2025-03-26)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **crashlytics): Revert "fix(crashlytics:** convert internal API usage to modular" ([4f7fb2e](https://github.com/invertase/react-native-firebase/commit/4f7fb2e383a803de6963dbd01cf2c623e431d1da))
|
11
|
+
- **crashlytics:** disable deprecation warnings for analytics in crashlytics ([b600a20](https://github.com/invertase/react-native-firebase/commit/b600a2099c2076689510193b74ac29c057d27d2a))
|
12
|
+
|
6
13
|
## [21.12.2](https://github.com/invertase/react-native-firebase/compare/v21.12.1...v21.12.2) (2025-03-23)
|
7
14
|
|
8
15
|
**Note:** Version bump only for package @react-native-firebase/crashlytics
|
package/lib/handlers.js
CHANGED
@@ -15,8 +15,8 @@
|
|
15
15
|
*
|
16
16
|
*/
|
17
17
|
|
18
|
+
import { firebase } from '@react-native-firebase/app';
|
18
19
|
import { isError, once } from '@react-native-firebase/app/lib/common';
|
19
|
-
import { getAnalytics, logEvent } from '@react-native-firebase/analytics';
|
20
20
|
import tracking from 'promise/setimmediate/rejection-tracking';
|
21
21
|
import StackTrace from 'stacktrace-js';
|
22
22
|
|
@@ -94,10 +94,20 @@ export const setGlobalErrorHandler = once(nativeModule => {
|
|
94
94
|
// Flag the Crashlytics backend that we have a fatal error, they will transform it
|
95
95
|
await nativeModule.setAttribute(FATAL_FLAG, fatalTime);
|
96
96
|
|
97
|
+
// remember our current deprecation warning state in case users
|
98
|
+
// have set it to non-default
|
99
|
+
const currentDeprecationWarningToggle =
|
100
|
+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS;
|
101
|
+
|
97
102
|
// Notify analytics, if it exists - throws error if not
|
98
103
|
try {
|
99
|
-
|
100
|
-
|
104
|
+
// FIXME - disable warnings and use the old namespaced style,
|
105
|
+
// See https://github.com/invertase/react-native-firebase/issues/8381
|
106
|
+
// Unfortunately, this fails completely when using modular!
|
107
|
+
// Did not matter if I did named imports above or dynamic require here.
|
108
|
+
// So temporarily reverting and silencing warnings instead
|
109
|
+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
|
110
|
+
await firebase.app().analytics().logEvent(
|
101
111
|
'app_exception', // 'app_exception' is reserved but we make an exception for JS->fatal transforms
|
102
112
|
{
|
103
113
|
fatal: 1, // as in firebase-android-sdk
|
@@ -107,6 +117,8 @@ export const setGlobalErrorHandler = once(nativeModule => {
|
|
107
117
|
} catch (_) {
|
108
118
|
// This just means analytics was not present, so we could not log the analytics event
|
109
119
|
// console.log('error logging analytics app_exception: ' + e);
|
120
|
+
} finally {
|
121
|
+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = currentDeprecationWarningToggle;
|
110
122
|
}
|
111
123
|
|
112
124
|
// If we are chaining to other handlers, just record the error, otherwise we need to crash with it
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '21.12.
|
2
|
+
module.exports = '21.12.3';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/crashlytics",
|
3
|
-
"version": "21.12.
|
3
|
+
"version": "21.12.3",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "React Native Firebase - Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. React Native Firebase provides automatic crash reporting for both native and JavaScript errors, including unhandled promise rejections.",
|
6
6
|
"main": "lib/index.js",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"crashlytics"
|
30
30
|
],
|
31
31
|
"peerDependencies": {
|
32
|
-
"@react-native-firebase/app": "21.12.
|
32
|
+
"@react-native-firebase/app": "21.12.3",
|
33
33
|
"expo": ">=47.0.0"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"publishConfig": {
|
47
47
|
"access": "public"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "ea8aeec70b59b191d42bc753d1353c6f705b3e4b"
|
50
50
|
}
|