@react-native-firebase/perf 22.2.1 → 22.3.0
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 +4 -0
- package/lib/modular/index.js +11 -7
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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
|
+
## [22.3.0](https://github.com/invertase/react-native-firebase/compare/v22.2.1...v22.3.0) (2025-07-08)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @react-native-firebase/perf
|
9
|
+
|
6
10
|
## [22.2.1](https://github.com/invertase/react-native-firebase/compare/v22.2.0...v22.2.1) (2025-06-10)
|
7
11
|
|
8
12
|
**Note:** Version bump only for package @react-native-firebase/perf
|
package/lib/modular/index.js
CHANGED
@@ -23,9 +23,10 @@
|
|
23
23
|
* @typedef {import('..').FirebasePerformanceTypes.HttpMetric} HttpMetric
|
24
24
|
*/
|
25
25
|
|
26
|
-
import { isBoolean } from '@react-native-firebase/app/lib/common';
|
27
26
|
import { getApp } from '@react-native-firebase/app';
|
28
27
|
|
28
|
+
import { MODULAR_DEPRECATION_ARG } from '@react-native-firebase/app/lib/common';
|
29
|
+
|
29
30
|
/**
|
30
31
|
* Returns a Performance instance for the given app.
|
31
32
|
* @param app - FirebaseApp. Optional.
|
@@ -48,8 +49,11 @@ export function getPerformance(app) {
|
|
48
49
|
export async function initializePerformance(app, settings) {
|
49
50
|
const perf = getApp(app.name).perf();
|
50
51
|
|
51
|
-
if (settings &&
|
52
|
-
|
52
|
+
if (settings && settings.dataCollectionEnabled !== undefined) {
|
53
|
+
perf.dataCollectionEnabled = settings.dataCollectionEnabled;
|
54
|
+
}
|
55
|
+
if (settings && settings.instrumentationEnabled !== undefined) {
|
56
|
+
perf.instrumentationEnabled = settings.instrumentationEnabled;
|
53
57
|
}
|
54
58
|
|
55
59
|
return perf;
|
@@ -62,7 +66,7 @@ export async function initializePerformance(app, settings) {
|
|
62
66
|
* @returns {Trace}
|
63
67
|
*/
|
64
68
|
export function trace(perf, identifier) {
|
65
|
-
return perf.newTrace(identifier);
|
69
|
+
return perf.newTrace.call(perf, identifier, MODULAR_DEPRECATION_ARG);
|
66
70
|
}
|
67
71
|
|
68
72
|
/**
|
@@ -72,7 +76,7 @@ export function trace(perf, identifier) {
|
|
72
76
|
* @returns {HttpMetric}
|
73
77
|
*/
|
74
78
|
export function httpMetric(perf, identifier, httpMethod) {
|
75
|
-
return perf.newHttpMetric(identifier, httpMethod);
|
79
|
+
return perf.newHttpMetric.call(perf, identifier, httpMethod, MODULAR_DEPRECATION_ARG);
|
76
80
|
}
|
77
81
|
|
78
82
|
/**
|
@@ -84,7 +88,7 @@ export function httpMetric(perf, identifier, httpMethod) {
|
|
84
88
|
* @returns {ScreenTrace}
|
85
89
|
*/
|
86
90
|
export function newScreenTrace(perf, identifier) {
|
87
|
-
return perf.newScreenTrace(identifier);
|
91
|
+
return perf.newScreenTrace.call(perf, identifier, MODULAR_DEPRECATION_ARG);
|
88
92
|
}
|
89
93
|
/**
|
90
94
|
* Creates a ScreenTrace instance with the given identifier and immediately starts it.
|
@@ -95,5 +99,5 @@ export function newScreenTrace(perf, identifier) {
|
|
95
99
|
* @returns {Promise<ScreenTrace>}
|
96
100
|
*/
|
97
101
|
export function startScreenTrace(perf, identifier) {
|
98
|
-
return perf.startScreenTrace(identifier);
|
102
|
+
return perf.startScreenTrace.call(perf, identifier, MODULAR_DEPRECATION_ARG);
|
99
103
|
}
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '22.
|
2
|
+
module.exports = '22.3.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/perf",
|
3
|
-
"version": "22.
|
3
|
+
"version": "22.3.0",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "React Native Firebase - React Native Firebase provides native integration with Performance Monitoring to gain insight into key performance characteristics within your React Native application.",
|
6
6
|
"main": "lib/index.js",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"performance monitoring"
|
30
30
|
],
|
31
31
|
"peerDependencies": {
|
32
|
-
"@react-native-firebase/app": "22.
|
32
|
+
"@react-native-firebase/app": "22.3.0",
|
33
33
|
"expo": ">=47.0.0"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
@@ -44,5 +44,5 @@
|
|
44
44
|
"access": "public",
|
45
45
|
"provenance": true
|
46
46
|
},
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "c04f2a3b681460edde5518812646cf5e0dd86627"
|
48
48
|
}
|