@sentry/react-native 5.9.1 → 5.10.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 +29 -1
- package/RNSentry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +3 -0
- package/dist/js/NativeRNSentry.d.ts +8 -8
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/breadcrumb.d.ts +1 -1
- package/dist/js/breadcrumb.d.ts.map +1 -1
- package/dist/js/client.js.map +1 -1
- package/dist/js/integrations/debugsymbolicator.d.ts +1 -1
- package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +2 -2
- package/dist/js/integrations/debugsymbolicator.js.map +1 -1
- package/dist/js/integrations/devicecontext.js.map +1 -1
- package/dist/js/integrations/eventorigin.js.map +1 -1
- package/dist/js/integrations/reactnativeinfo.d.ts +1 -0
- package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeinfo.js +31 -1
- package/dist/js/integrations/reactnativeinfo.js.map +1 -1
- package/dist/js/integrations/release.js.map +1 -1
- package/dist/js/integrations/rewriteframes.d.ts.map +1 -1
- package/dist/js/integrations/rewriteframes.js +9 -1
- package/dist/js/integrations/rewriteframes.js.map +1 -1
- package/dist/js/integrations/sdkinfo.d.ts +1 -1
- package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
- package/dist/js/measurements.d.ts +1 -1
- package/dist/js/measurements.d.ts.map +1 -1
- package/dist/js/misc.d.ts +1 -1
- package/dist/js/misc.d.ts.map +1 -1
- package/dist/js/misc.js.map +1 -1
- package/dist/js/options.d.ts +9 -3
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/profiling/hermes.d.ts +2 -2
- package/dist/js/profiling/hermes.d.ts.map +1 -1
- package/dist/js/profiling/integration.d.ts +4 -1
- package/dist/js/profiling/integration.d.ts.map +1 -1
- package/dist/js/profiling/integration.js +20 -13
- package/dist/js/profiling/integration.js.map +1 -1
- package/dist/js/profiling/utils.js +1 -1
- package/dist/js/profiling/utils.js.map +1 -1
- package/dist/js/sdk.d.ts.map +1 -1
- package/dist/js/sdk.js +5 -4
- package/dist/js/sdk.js.map +1 -1
- package/dist/js/tools/ModulesCollector.js +8 -8
- package/dist/js/tools/ModulesCollector.js.map +1 -1
- package/dist/js/touchevents.d.ts +2 -2
- package/dist/js/touchevents.d.ts.map +1 -1
- package/dist/js/touchevents.js.map +1 -1
- package/dist/js/tracing/gesturetracing.js.map +1 -1
- package/dist/js/tracing/nativeframes.js.map +1 -1
- package/dist/js/tracing/reactnativenavigation.d.ts +1 -1
- package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnativenavigation.js.map +1 -1
- package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
- package/dist/js/tracing/reactnativetracing.js +4 -6
- package/dist/js/tracing/reactnativetracing.js.map +1 -1
- package/dist/js/tracing/reactnavigation.js.map +1 -1
- package/dist/js/tracing/reactnavigationv4.js.map +1 -1
- package/dist/js/tracing/routingInstrumentation.d.ts +2 -2
- package/dist/js/tracing/routingInstrumentation.d.ts.map +1 -1
- package/dist/js/tracing/routingInstrumentation.js.map +1 -1
- package/dist/js/tracing/stalltracking.d.ts +1 -1
- package/dist/js/tracing/stalltracking.d.ts.map +1 -1
- package/dist/js/tracing/stalltracking.js.map +1 -1
- package/dist/js/tracing/transaction.d.ts +1 -1
- package/dist/js/tracing/transaction.d.ts.map +1 -1
- package/dist/js/tracing/transaction.js.map +1 -1
- package/dist/js/tracing/types.d.ts +2 -2
- package/dist/js/tracing/types.d.ts.map +1 -1
- package/dist/js/transports/native.d.ts +1 -1
- package/dist/js/transports/native.d.ts.map +1 -1
- package/dist/js/user.d.ts +1 -1
- package/dist/js/user.d.ts.map +1 -1
- package/dist/js/utils/safe.d.ts +1 -1
- package/dist/js/utils/safe.d.ts.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.d.ts.map +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.js +1 -1
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry.mm +1 -1
- package/package.json +15 -15
- package/ts3.8/dist/js/NativeRNSentry.d.ts +8 -8
- package/ts3.8/dist/js/breadcrumb.d.ts +1 -1
- package/ts3.8/dist/js/integrations/debugsymbolicator.d.ts +1 -1
- package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +1 -0
- package/ts3.8/dist/js/integrations/sdkinfo.d.ts +1 -1
- package/ts3.8/dist/js/measurements.d.ts +1 -1
- package/ts3.8/dist/js/misc.d.ts +1 -1
- package/ts3.8/dist/js/options.d.ts +9 -3
- package/ts3.8/dist/js/profiling/hermes.d.ts +2 -2
- package/ts3.8/dist/js/profiling/integration.d.ts +4 -1
- package/ts3.8/dist/js/touchevents.d.ts +2 -2
- package/ts3.8/dist/js/tracing/reactnativenavigation.d.ts +1 -1
- package/ts3.8/dist/js/tracing/routingInstrumentation.d.ts +2 -2
- package/ts3.8/dist/js/tracing/stalltracking.d.ts +1 -1
- package/ts3.8/dist/js/tracing/transaction.d.ts +1 -1
- package/ts3.8/dist/js/tracing/types.d.ts +2 -2
- package/ts3.8/dist/js/transports/native.d.ts +1 -1
- package/ts3.8/dist/js/user.d.ts +1 -1
- package/ts3.8/dist/js/utils/safe.d.ts +1 -1
- package/ts3.8/dist/js/version.d.ts +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { BrowserTransportOptions } from '@sentry/browser/types/transports/types';
|
|
2
2
|
import type { ProfilerProps } from '@sentry/react/types/profiler';
|
|
3
|
-
import type { ClientOptions, Options } from '@sentry/types';
|
|
4
|
-
import type { CaptureContext } from '@sentry/types/types/scope';
|
|
3
|
+
import type { CaptureContext, ClientOptions, Options } from '@sentry/types';
|
|
5
4
|
import type { TouchEventBoundaryProps } from './touchevents';
|
|
6
5
|
export interface BaseReactNativeOptions {
|
|
7
6
|
/**
|
|
@@ -34,7 +33,14 @@ export interface BaseReactNativeOptions {
|
|
|
34
33
|
enableAutoSessionTracking?: boolean;
|
|
35
34
|
/** The interval to end a session if the App goes to the background. */
|
|
36
35
|
sessionTrackingIntervalMillis?: number;
|
|
37
|
-
/** Enable
|
|
36
|
+
/** Enable NDK on Android
|
|
37
|
+
*
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
enableNdk?: boolean;
|
|
41
|
+
/** Enable scope sync from Java to NDK on Android
|
|
42
|
+
* Only has an effect if `enableNdk` is `true`.
|
|
43
|
+
*/
|
|
38
44
|
enableNdkScopeSync?: boolean;
|
|
39
45
|
/** When enabled, all the threads are automatically attached to all logged events on Android */
|
|
40
46
|
attachThreads?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RawThreadCpuProfile } from './types';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type StackFrameId = number;
|
|
3
|
+
export type MicrosecondsSinceBoot = string;
|
|
4
4
|
export interface TraceEvent {
|
|
5
5
|
name: string;
|
|
6
6
|
ph: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Hub } from '@sentry/core';
|
|
2
|
+
import type { EventProcessor, Integration } from '@sentry/types';
|
|
2
3
|
export declare const MAX_PROFILE_DURATION_MS: number;
|
|
3
4
|
/**
|
|
4
5
|
* Profiling integration creates a profile for each transaction and adds it to the event envelope.
|
|
@@ -21,6 +22,8 @@ export declare class HermesProfiling implements Integration {
|
|
|
21
22
|
* @inheritDoc
|
|
22
23
|
*/
|
|
23
24
|
setupOnce(_: (e: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
|
25
|
+
private _startCurrentProfileForActiveTransaction;
|
|
26
|
+
private _startCurrentProfile;
|
|
24
27
|
private _shouldStartProfiling;
|
|
25
28
|
/**
|
|
26
29
|
* Starts a new profile and links it to the transaction.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type TouchEventBoundaryProps = {
|
|
3
3
|
/**
|
|
4
4
|
* The category assigned to the breadcrumb that is logged by the touch event.
|
|
5
5
|
*/
|
|
@@ -66,6 +66,6 @@ declare class TouchEventBoundary extends React.Component<TouchEventBoundaryProps
|
|
|
66
66
|
* @param WrappedComponent any React Component
|
|
67
67
|
* @param boundaryProps TouchEventBoundaryProps
|
|
68
68
|
*/
|
|
69
|
-
declare const withTouchEventBoundary: (InnerComponent: React.ComponentType<any>, boundaryProps?: TouchEventBoundaryProps
|
|
69
|
+
declare const withTouchEventBoundary: (InnerComponent: React.ComponentType<any>, boundaryProps?: TouchEventBoundaryProps) => React.FunctionComponent;
|
|
70
70
|
export { TouchEventBoundary, withTouchEventBoundary };
|
|
71
71
|
//# sourceMappingURL=touchevents.d.ts.map
|
|
@@ -22,7 +22,7 @@ interface ReactNativeNavigationOptions {
|
|
|
22
22
|
interface ComponentEvent {
|
|
23
23
|
componentId: string;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
type ComponentType = 'Component' | 'TopBarTitle' | 'TopBarBackground' | 'TopBarButton';
|
|
26
26
|
export interface ComponentWillAppearEvent extends ComponentEvent {
|
|
27
27
|
componentName: string;
|
|
28
28
|
passProps?: Record<string | number | symbol, unknown>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Hub } from '@sentry/core';
|
|
2
2
|
import type { Transaction, TransactionContext } from '@sentry/types';
|
|
3
3
|
import type { BeforeNavigate } from './types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type TransactionCreator = (context: TransactionContext) => Transaction | undefined;
|
|
5
|
+
export type OnConfirmRoute = (context: TransactionContext) => void;
|
|
6
6
|
export interface RoutingInstrumentationInstance {
|
|
7
7
|
/**
|
|
8
8
|
* Name of the routing instrumentation
|
|
@@ -15,7 +15,7 @@ export interface StallMeasurements extends Measurements {
|
|
|
15
15
|
unit: MeasurementUnit;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type StallTrackingOptions = {
|
|
19
19
|
/**
|
|
20
20
|
* How long in milliseconds an event loop iteration can be delayed for before being considered a "stall."
|
|
21
21
|
* @default 100
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BeforeFinishCallback } from '@sentry/core
|
|
1
|
+
import type { BeforeFinishCallback } from '@sentry/core';
|
|
2
2
|
/**
|
|
3
3
|
* Idle Transaction callback to only sample transactions with child spans.
|
|
4
4
|
* To avoid side effects of other callbacks this should be hooked as the last callback.
|
|
@@ -7,7 +7,7 @@ export interface ReactNavigationRoute {
|
|
|
7
7
|
export interface ReactNavigationCurrentRoute extends ReactNavigationRoute {
|
|
8
8
|
hasBeenSeen: boolean;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type RouteChangeContextData = {
|
|
11
11
|
previousRoute?: {
|
|
12
12
|
[key: string]: unknown;
|
|
13
13
|
name: string;
|
|
@@ -25,5 +25,5 @@ export interface ReactNavigationTransactionContext extends TransactionContext {
|
|
|
25
25
|
};
|
|
26
26
|
data: RouteChangeContextData;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export type BeforeNavigate = (context: TransactionContext) => TransactionContext;
|
|
29
29
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseTransportOptions, Envelope, Transport } from '@sentry/types';
|
|
2
2
|
import type { PromiseBuffer } from '@sentry/utils';
|
|
3
3
|
export declare const DEFAULT_BUFFER_SIZE = 30;
|
|
4
|
-
export
|
|
4
|
+
export type BaseNativeTransport = BaseTransportOptions;
|
|
5
5
|
export interface BaseNativeTransportOptions {
|
|
6
6
|
bufferSize?: number;
|
|
7
7
|
}
|
package/ts3.8/dist/js/user.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { User } from '@sentry/types';
|
|
2
2
|
/** Requires all the keys defined on User interface to be present on an object */
|
|
3
|
-
export
|
|
3
|
+
export type RequiredKeysUser = {
|
|
4
4
|
[P in keyof Required<User>]: User[P] | undefined;
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNativeOptions } from '../options';
|
|
2
|
-
|
|
2
|
+
type DangerTypesWithoutCallSignature = Object | null | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* Returns callback factory wrapped with try/catch
|
|
5
5
|
* or the original passed value is it's not a function.
|