@sentry/react-native 5.31.1 → 5.33.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 +71 -0
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +18 -11
- package/android/src/main/java/io/sentry/react/RNSentryOnDrawReporterManager.java +18 -1
- package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +2 -2
- package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +2 -2
- package/dist/js/NativeRNSentry.d.ts +1 -1
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +2 -2
- package/dist/js/client.js.map +1 -1
- package/dist/js/index.d.ts +1 -1
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +1 -3
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/default.d.ts.map +1 -1
- package/dist/js/integrations/default.js +2 -1
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/options.d.ts +34 -2
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/profiling/integration.d.ts +11 -3
- package/dist/js/profiling/integration.d.ts.map +1 -1
- package/dist/js/profiling/integration.js +15 -7
- package/dist/js/profiling/integration.js.map +1 -1
- package/dist/js/tools/metroconfig.d.ts +10 -1
- package/dist/js/tools/metroconfig.d.ts.map +1 -1
- package/dist/js/tools/metroconfig.js +42 -2
- package/dist/js/tools/metroconfig.js.map +1 -1
- package/dist/js/tracing/index.d.ts +3 -3
- package/dist/js/tracing/index.d.ts.map +1 -1
- package/dist/js/tracing/index.js +3 -3
- package/dist/js/tracing/index.js.map +1 -1
- package/dist/js/tracing/reactnativenavigation.d.ts +6 -0
- package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnativenavigation.js +6 -0
- package/dist/js/tracing/reactnativenavigation.js.map +1 -1
- package/dist/js/tracing/reactnativetracing.d.ts +6 -8
- package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
- package/dist/js/tracing/reactnativetracing.js +23 -15
- package/dist/js/tracing/reactnativetracing.js.map +1 -1
- package/dist/js/tracing/reactnavigation.d.ts +4 -0
- package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnavigation.js +6 -0
- package/dist/js/tracing/reactnavigation.js.map +1 -1
- package/dist/js/tracing/reactnavigationv4.d.ts +2 -0
- package/dist/js/tracing/reactnavigationv4.d.ts.map +1 -1
- package/dist/js/tracing/reactnavigationv4.js +2 -0
- package/dist/js/tracing/reactnavigationv4.js.map +1 -1
- package/dist/js/tracing/routingInstrumentation.d.ts +8 -2
- package/dist/js/tracing/routingInstrumentation.d.ts.map +1 -1
- package/dist/js/tracing/routingInstrumentation.js +3 -2
- package/dist/js/tracing/routingInstrumentation.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts +1 -1
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +2 -2
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry.mm +7 -3
- package/package.json +2 -2
- package/src/js/NativeRNSentry.ts +1 -1
- package/ts3.8/dist/js/NativeRNSentry.d.ts +1 -1
- package/ts3.8/dist/js/index.d.ts +1 -1
- package/ts3.8/dist/js/options.d.ts +34 -2
- package/ts3.8/dist/js/profiling/integration.d.ts +11 -3
- package/ts3.8/dist/js/tracing/index.d.ts +3 -3
- package/ts3.8/dist/js/tracing/reactnativenavigation.d.ts +6 -0
- package/ts3.8/dist/js/tracing/reactnativetracing.d.ts +6 -8
- package/ts3.8/dist/js/tracing/reactnavigation.d.ts +4 -0
- package/ts3.8/dist/js/tracing/reactnavigationv4.d.ts +2 -0
- package/ts3.8/dist/js/tracing/routingInstrumentation.d.ts +8 -2
- package/ts3.8/dist/js/version.d.ts +1 -1
- package/ts3.8/dist/js/wrapper.d.ts +1 -1
|
@@ -5,6 +5,7 @@ import type { RoutingInstrumentationInstance } from '../tracing/routingInstrumen
|
|
|
5
5
|
import { NativeFramesInstrumentation } from './nativeframes';
|
|
6
6
|
import { StallTrackingInstrumentation } from './stalltracking';
|
|
7
7
|
import type { BeforeNavigate } from './types';
|
|
8
|
+
export declare const reactNativeTracingIntegration: (options?: Partial<ReactNativeTracingOptions>) => ReactNativeTracing;
|
|
8
9
|
export interface ReactNativeTracingOptions extends RequestInstrumentationOptions {
|
|
9
10
|
/**
|
|
10
11
|
* @deprecated Replaced by idleTimeoutMs
|
|
@@ -53,27 +54,24 @@ export interface ReactNativeTracingOptions extends RequestInstrumentationOptions
|
|
|
53
54
|
*/
|
|
54
55
|
beforeNavigate: BeforeNavigate;
|
|
55
56
|
/**
|
|
56
|
-
*
|
|
57
|
-
* an app start transaction will be started.
|
|
58
|
-
*
|
|
59
|
-
* Default: true
|
|
57
|
+
* @deprecated Use `Sentry.init({ enableAppStartTracking })` instead.
|
|
60
58
|
*/
|
|
61
59
|
enableAppStartTracking: boolean;
|
|
62
60
|
/**
|
|
63
|
-
*
|
|
61
|
+
* @deprecated Use `Sentry.init({ enableNativeFramesTracking })` instead.
|
|
64
62
|
*/
|
|
65
63
|
enableNativeFramesTracking: boolean;
|
|
66
64
|
/**
|
|
67
|
-
*
|
|
65
|
+
* @deprecated Use `Sentry.init({ enableStallTracking })` instead.
|
|
68
66
|
*/
|
|
69
67
|
enableStallTracking: boolean;
|
|
70
68
|
/**
|
|
71
|
-
*
|
|
69
|
+
* @deprecated Use `Sentry.init({ enableUserInteractionTracing })` instead.
|
|
72
70
|
*/
|
|
73
71
|
enableUserInteractionTracing: boolean;
|
|
74
72
|
}
|
|
75
73
|
/**
|
|
76
|
-
*
|
|
74
|
+
* @deprecated Use `Sentry.reactNativeTracingIntegration()` instead.
|
|
77
75
|
*/
|
|
78
76
|
export declare class ReactNativeTracing implements Integration {
|
|
79
77
|
/**
|
|
@@ -31,6 +31,10 @@ interface ReactNavigationOptions {
|
|
|
31
31
|
* - `_onStateChange` is then called AFTER the state change happens due to a dispatch and sets the route context onto the active transaction.
|
|
32
32
|
* - If `_onStateChange` isn't called within `STATE_CHANGE_TIMEOUT_DURATION` of the dispatch, then the transaction is not sampled and finished.
|
|
33
33
|
*/
|
|
34
|
+
export declare const reactNavigationIntegration: (options?: Partial<ReactNavigationOptions>) => ReactNavigationInstrumentation;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Please use `Sentry.reactNavigationIntegration()`
|
|
37
|
+
*/
|
|
34
38
|
export declare class ReactNavigationInstrumentation extends InternalRoutingInstrumentation {
|
|
35
39
|
static instrumentationName: string;
|
|
36
40
|
readonly name: string;
|
|
@@ -35,6 +35,8 @@ interface ReactNavigationV4Options {
|
|
|
35
35
|
/**
|
|
36
36
|
* Instrumentation for React-Navigation V4.
|
|
37
37
|
* Register the app container with `registerAppContainer` to use, or see docs for more details.
|
|
38
|
+
*
|
|
39
|
+
* @deprecated Support for `react-navigation@4` and older will be removed in the next major version of the SDK. Please upgrade to `react-navigation@5` or newer.
|
|
38
40
|
*/
|
|
39
41
|
declare class ReactNavigationV4Instrumentation extends InternalRoutingInstrumentation {
|
|
40
42
|
static instrumentationName: string;
|
|
@@ -3,6 +3,11 @@ import type { Transaction, TransactionContext } from '@sentry/types';
|
|
|
3
3
|
import type { BeforeNavigate } from './types';
|
|
4
4
|
export type TransactionCreator = (context: TransactionContext) => Transaction | undefined;
|
|
5
5
|
export type OnConfirmRoute = (context: TransactionContext) => void;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `Integration` from `@sentry/types` and `startIdleTransaction` from `@sentry/core` instead.
|
|
8
|
+
*
|
|
9
|
+
* Or use `startIdleNavigationSpan` from `@sentry/react-native@^6`.
|
|
10
|
+
*/
|
|
6
11
|
export interface RoutingInstrumentationInstance {
|
|
7
12
|
/**
|
|
8
13
|
* Name of the routing instrumentation
|
|
@@ -27,8 +32,9 @@ export interface RoutingInstrumentationInstance {
|
|
|
27
32
|
onRouteWillChange(context: TransactionContext): Transaction | undefined;
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
35
|
+
* @deprecated Use `Integration` from `@sentry/types` and `startIdleTransaction` from `@sentry/core` instead.
|
|
36
|
+
*
|
|
37
|
+
* Or use `startIdleNavigationSpan` from `@sentry/react-native@^6`.
|
|
32
38
|
*/
|
|
33
39
|
export declare class RoutingInstrumentation implements RoutingInstrumentationInstance {
|
|
34
40
|
static instrumentationName: string;
|
|
@@ -55,7 +55,7 @@ interface SentryNativeWrapper {
|
|
|
55
55
|
nativeCrash(): void;
|
|
56
56
|
fetchModules(): Promise<Record<string, string> | null>;
|
|
57
57
|
fetchViewHierarchy(): PromiseLike<Uint8Array | null>;
|
|
58
|
-
startProfiling(): boolean;
|
|
58
|
+
startProfiling(platformProfilers: boolean): boolean;
|
|
59
59
|
stopProfiling(): {
|
|
60
60
|
hermesProfile: Hermes.Profile;
|
|
61
61
|
nativeProfile?: NativeProfileEvent;
|