@sentry/react-native 5.11.1 → 5.13.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 (51) hide show
  1. package/CHANGELOG.md +61 -4
  2. package/RNSentry.podspec +1 -1
  3. package/android/build.gradle +1 -1
  4. package/dist/js/index.d.ts +1 -1
  5. package/dist/js/index.d.ts.map +1 -1
  6. package/dist/js/index.js +1 -1
  7. package/dist/js/index.js.map +1 -1
  8. package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
  9. package/dist/js/integrations/debugsymbolicator.js +1 -5
  10. package/dist/js/integrations/debugsymbolicator.js.map +1 -1
  11. package/dist/js/integrations/devicecontext.d.ts.map +1 -1
  12. package/dist/js/integrations/devicecontext.js +3 -0
  13. package/dist/js/integrations/devicecontext.js.map +1 -1
  14. package/dist/js/profiling/convertHermesProfile.d.ts +6 -1
  15. package/dist/js/profiling/convertHermesProfile.d.ts.map +1 -1
  16. package/dist/js/profiling/convertHermesProfile.js +38 -13
  17. package/dist/js/profiling/convertHermesProfile.js.map +1 -1
  18. package/dist/js/profiling/hermes.d.ts +3 -6
  19. package/dist/js/profiling/hermes.d.ts.map +1 -1
  20. package/dist/js/profiling/hermes.js +3 -10
  21. package/dist/js/profiling/hermes.js.map +1 -1
  22. package/dist/js/profiling/types.d.ts +3 -1
  23. package/dist/js/profiling/types.d.ts.map +1 -1
  24. package/dist/js/profiling/types.js.map +1 -1
  25. package/dist/js/profiling/utils.d.ts +5 -1
  26. package/dist/js/profiling/utils.d.ts.map +1 -1
  27. package/dist/js/profiling/utils.js +35 -5
  28. package/dist/js/profiling/utils.js.map +1 -1
  29. package/dist/js/sdk.d.ts.map +1 -1
  30. package/dist/js/sdk.js +4 -0
  31. package/dist/js/sdk.js.map +1 -1
  32. package/dist/js/tracing/reactnativetracing.d.ts +6 -0
  33. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  34. package/dist/js/tracing/reactnativetracing.js +15 -0
  35. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  36. package/dist/js/utils/environment.d.ts +2 -0
  37. package/dist/js/utils/environment.d.ts.map +1 -1
  38. package/dist/js/utils/environment.js +4 -0
  39. package/dist/js/utils/environment.js.map +1 -1
  40. package/dist/js/version.d.ts +1 -1
  41. package/dist/js/version.js +1 -1
  42. package/dist/js/version.js.map +1 -1
  43. package/package.json +12 -12
  44. package/ts3.8/dist/js/index.d.ts +1 -1
  45. package/ts3.8/dist/js/profiling/convertHermesProfile.d.ts +6 -1
  46. package/ts3.8/dist/js/profiling/hermes.d.ts +3 -6
  47. package/ts3.8/dist/js/profiling/types.d.ts +3 -1
  48. package/ts3.8/dist/js/profiling/utils.d.ts +5 -1
  49. package/ts3.8/dist/js/tracing/reactnativetracing.d.ts +6 -0
  50. package/ts3.8/dist/js/utils/environment.d.ts +2 -0
  51. package/ts3.8/dist/js/version.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- import type { Envelope, Event, Profile } from '@sentry/types';
1
+ import type { DebugImage, Envelope, Event, Profile } from '@sentry/types';
2
2
  import type { RawThreadCpuProfile } from './types';
3
3
  /**
4
4
  *
@@ -18,6 +18,10 @@ export declare function findProfiledTransactionsFromEnvelope(envelope: Envelope)
18
18
  * @returns {Profile | null}
19
19
  */
20
20
  export declare function createProfilingEvent(profile: RawThreadCpuProfile, event: Event): Profile | null;
21
+ /**
22
+ * Returns debug meta images of the loaded bundle.
23
+ */
24
+ export declare function getDebugMetadata(): DebugImage[];
21
25
  /**
22
26
  * Adds items to envelope if they are not already present - mutates the envelope.
23
27
  * @param envelope
@@ -98,6 +98,7 @@ export declare class ReactNativeTracing implements Integration {
98
98
  private _currentRoute?;
99
99
  private _hasSetTracePropagationTargets;
100
100
  private _hasSetTracingOrigins;
101
+ private _currentViewName;
101
102
  constructor(options?: Partial<ReactNativeTracingOptions>);
102
103
  /**
103
104
  * Registers routing and request instrumentation.
@@ -123,6 +124,11 @@ export declare class ReactNativeTracing implements Integration {
123
124
  elementId: string | undefined;
124
125
  op: string;
125
126
  }): TransactionType | undefined;
127
+ /**
128
+ * Sets the current view name into the app context.
129
+ * @param event Le event.
130
+ */
131
+ private _getCurrentViewEventProcessor;
126
132
  /**
127
133
  * Returns the App Start Duration in Milliseconds. Also returns undefined if not able do
128
134
  * define the duration.
@@ -10,4 +10,6 @@ export declare function getReactNativeVersion(): string;
10
10
  export declare function isExpo(): boolean;
11
11
  /** Returns Hermes Version if hermes is present in the runtime */
12
12
  export declare function getHermesVersion(): string | undefined;
13
+ /** Returns default environment based on __DEV__ */
14
+ export declare function getDefaultEnvironment(): 'development' | 'production';
13
15
  //# sourceMappingURL=environment.d.ts.map
@@ -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.11.1";
3
+ export declare const SDK_VERSION = "5.13.0";
4
4
  //# sourceMappingURL=version.d.ts.map