@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.
Files changed (104) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/RNSentry.podspec +1 -1
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +3 -0
  5. package/dist/js/NativeRNSentry.d.ts +8 -8
  6. package/dist/js/NativeRNSentry.d.ts.map +1 -1
  7. package/dist/js/breadcrumb.d.ts +1 -1
  8. package/dist/js/breadcrumb.d.ts.map +1 -1
  9. package/dist/js/client.js.map +1 -1
  10. package/dist/js/integrations/debugsymbolicator.d.ts +1 -1
  11. package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
  12. package/dist/js/integrations/debugsymbolicator.js +2 -2
  13. package/dist/js/integrations/debugsymbolicator.js.map +1 -1
  14. package/dist/js/integrations/devicecontext.js.map +1 -1
  15. package/dist/js/integrations/eventorigin.js.map +1 -1
  16. package/dist/js/integrations/reactnativeinfo.d.ts +1 -0
  17. package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
  18. package/dist/js/integrations/reactnativeinfo.js +31 -1
  19. package/dist/js/integrations/reactnativeinfo.js.map +1 -1
  20. package/dist/js/integrations/release.js.map +1 -1
  21. package/dist/js/integrations/rewriteframes.d.ts.map +1 -1
  22. package/dist/js/integrations/rewriteframes.js +9 -1
  23. package/dist/js/integrations/rewriteframes.js.map +1 -1
  24. package/dist/js/integrations/sdkinfo.d.ts +1 -1
  25. package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
  26. package/dist/js/measurements.d.ts +1 -1
  27. package/dist/js/measurements.d.ts.map +1 -1
  28. package/dist/js/misc.d.ts +1 -1
  29. package/dist/js/misc.d.ts.map +1 -1
  30. package/dist/js/misc.js.map +1 -1
  31. package/dist/js/options.d.ts +9 -3
  32. package/dist/js/options.d.ts.map +1 -1
  33. package/dist/js/options.js.map +1 -1
  34. package/dist/js/profiling/hermes.d.ts +2 -2
  35. package/dist/js/profiling/hermes.d.ts.map +1 -1
  36. package/dist/js/profiling/integration.d.ts +4 -1
  37. package/dist/js/profiling/integration.d.ts.map +1 -1
  38. package/dist/js/profiling/integration.js +20 -13
  39. package/dist/js/profiling/integration.js.map +1 -1
  40. package/dist/js/profiling/utils.js +1 -1
  41. package/dist/js/profiling/utils.js.map +1 -1
  42. package/dist/js/sdk.d.ts.map +1 -1
  43. package/dist/js/sdk.js +5 -4
  44. package/dist/js/sdk.js.map +1 -1
  45. package/dist/js/tools/ModulesCollector.js +8 -8
  46. package/dist/js/tools/ModulesCollector.js.map +1 -1
  47. package/dist/js/touchevents.d.ts +2 -2
  48. package/dist/js/touchevents.d.ts.map +1 -1
  49. package/dist/js/touchevents.js.map +1 -1
  50. package/dist/js/tracing/gesturetracing.js.map +1 -1
  51. package/dist/js/tracing/nativeframes.js.map +1 -1
  52. package/dist/js/tracing/reactnativenavigation.d.ts +1 -1
  53. package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
  54. package/dist/js/tracing/reactnativenavigation.js.map +1 -1
  55. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  56. package/dist/js/tracing/reactnativetracing.js +4 -6
  57. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  58. package/dist/js/tracing/reactnavigation.js.map +1 -1
  59. package/dist/js/tracing/reactnavigationv4.js.map +1 -1
  60. package/dist/js/tracing/routingInstrumentation.d.ts +2 -2
  61. package/dist/js/tracing/routingInstrumentation.d.ts.map +1 -1
  62. package/dist/js/tracing/routingInstrumentation.js.map +1 -1
  63. package/dist/js/tracing/stalltracking.d.ts +1 -1
  64. package/dist/js/tracing/stalltracking.d.ts.map +1 -1
  65. package/dist/js/tracing/stalltracking.js.map +1 -1
  66. package/dist/js/tracing/transaction.d.ts +1 -1
  67. package/dist/js/tracing/transaction.d.ts.map +1 -1
  68. package/dist/js/tracing/transaction.js.map +1 -1
  69. package/dist/js/tracing/types.d.ts +2 -2
  70. package/dist/js/tracing/types.d.ts.map +1 -1
  71. package/dist/js/transports/native.d.ts +1 -1
  72. package/dist/js/transports/native.d.ts.map +1 -1
  73. package/dist/js/user.d.ts +1 -1
  74. package/dist/js/user.d.ts.map +1 -1
  75. package/dist/js/utils/safe.d.ts +1 -1
  76. package/dist/js/utils/safe.d.ts.map +1 -1
  77. package/dist/js/version.d.ts +1 -1
  78. package/dist/js/version.d.ts.map +1 -1
  79. package/dist/js/version.js +1 -1
  80. package/dist/js/version.js.map +1 -1
  81. package/dist/js/wrapper.js +1 -1
  82. package/dist/js/wrapper.js.map +1 -1
  83. package/ios/RNSentry.mm +1 -1
  84. package/package.json +15 -15
  85. package/ts3.8/dist/js/NativeRNSentry.d.ts +8 -8
  86. package/ts3.8/dist/js/breadcrumb.d.ts +1 -1
  87. package/ts3.8/dist/js/integrations/debugsymbolicator.d.ts +1 -1
  88. package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +1 -0
  89. package/ts3.8/dist/js/integrations/sdkinfo.d.ts +1 -1
  90. package/ts3.8/dist/js/measurements.d.ts +1 -1
  91. package/ts3.8/dist/js/misc.d.ts +1 -1
  92. package/ts3.8/dist/js/options.d.ts +9 -3
  93. package/ts3.8/dist/js/profiling/hermes.d.ts +2 -2
  94. package/ts3.8/dist/js/profiling/integration.d.ts +4 -1
  95. package/ts3.8/dist/js/touchevents.d.ts +2 -2
  96. package/ts3.8/dist/js/tracing/reactnativenavigation.d.ts +1 -1
  97. package/ts3.8/dist/js/tracing/routingInstrumentation.d.ts +2 -2
  98. package/ts3.8/dist/js/tracing/stalltracking.d.ts +1 -1
  99. package/ts3.8/dist/js/tracing/transaction.d.ts +1 -1
  100. package/ts3.8/dist/js/tracing/types.d.ts +2 -2
  101. package/ts3.8/dist/js/transports/native.d.ts +1 -1
  102. package/ts3.8/dist/js/user.d.ts +1 -1
  103. package/ts3.8/dist/js/utils/safe.d.ts +1 -1
  104. 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 scope sync from Java to NDK on Android */
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 declare type StackFrameId = number;
3
- export declare type MicrosecondsSinceBoot = string;
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 { EventProcessor, Hub, Integration } from '@sentry/types';
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 declare type TouchEventBoundaryProps = {
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 | undefined) => React.FunctionComponent;
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
- declare type ComponentType = 'Component' | 'TopBarTitle' | 'TopBarBackground' | 'TopBarButton';
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 declare type TransactionCreator = (context: TransactionContext) => Transaction | undefined;
5
- export declare type OnConfirmRoute = (context: TransactionContext) => void;
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 declare type StallTrackingOptions = {
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/types/tracing/idletransaction';
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 declare type RouteChangeContextData = {
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 declare type BeforeNavigate = (context: TransactionContext) => TransactionContext;
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 declare type BaseNativeTransport = BaseTransportOptions;
4
+ export type BaseNativeTransport = BaseTransportOptions;
5
5
  export interface BaseNativeTransportOptions {
6
6
  bufferSize?: number;
7
7
  }
@@ -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 declare type RequiredKeysUser = {
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
- declare type DangerTypesWithoutCallSignature = Object | null | undefined;
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.
@@ -1,4 +1,4 @@
1
1
  export declare const SDK_PACKAGE_NAME = "npm:@sentry/react-native";
2
2
  export declare const SDK_NAME = "sentry.javascript.react-native";
3
- export declare const SDK_VERSION = "5.9.1";
3
+ export declare const SDK_VERSION = "5.10.0";
4
4
  //# sourceMappingURL=version.d.ts.map