@sentry/react-native 6.9.1 → 6.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 (43) hide show
  1. package/RNSentry.podspec +1 -1
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
  4. package/dist/js/feedback/FeedbackWidget.js +3 -3
  5. package/dist/js/feedback/FeedbackWidget.js.map +1 -1
  6. package/dist/js/index.d.ts +1 -0
  7. package/dist/js/index.d.ts.map +1 -1
  8. package/dist/js/index.js +1 -0
  9. package/dist/js/index.js.map +1 -1
  10. package/dist/js/replay/mobilereplay.d.ts +23 -0
  11. package/dist/js/replay/mobilereplay.d.ts.map +1 -1
  12. package/dist/js/replay/mobilereplay.js +2 -0
  13. package/dist/js/replay/mobilereplay.js.map +1 -1
  14. package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
  15. package/dist/js/tracing/integrations/appStart.js +4 -3
  16. package/dist/js/tracing/integrations/appStart.js.map +1 -1
  17. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  18. package/dist/js/tracing/reactnativetracing.js +2 -1
  19. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  20. package/dist/js/tracing/reactnavigation.js +1 -1
  21. package/dist/js/tracing/reactnavigation.js.map +1 -1
  22. package/dist/js/tracing/span.d.ts +13 -1
  23. package/dist/js/tracing/span.d.ts.map +1 -1
  24. package/dist/js/tracing/span.js +23 -0
  25. package/dist/js/tracing/span.js.map +1 -1
  26. package/dist/js/version.d.ts +1 -1
  27. package/dist/js/version.d.ts.map +1 -1
  28. package/dist/js/version.js +1 -1
  29. package/dist/js/version.js.map +1 -1
  30. package/dist/js/wrapper.d.ts +6 -0
  31. package/dist/js/wrapper.d.ts.map +1 -1
  32. package/dist/js/wrapper.js +10 -0
  33. package/dist/js/wrapper.js.map +1 -1
  34. package/ios/RNSentryBreadcrumb.m +2 -1
  35. package/ios/RNSentryReplay.mm +3 -0
  36. package/ios/RNSentryVersion.m +1 -1
  37. package/package.json +4 -4
  38. package/plugin/build/withSentryAndroidGradlePlugin.js +4 -4
  39. package/ts3.8/dist/js/index.d.ts +1 -0
  40. package/ts3.8/dist/js/replay/mobilereplay.d.ts +23 -0
  41. package/ts3.8/dist/js/tracing/span.d.ts +13 -1
  42. package/ts3.8/dist/js/version.d.ts +1 -1
  43. package/ts3.8/dist/js/wrapper.d.ts +6 -0
@@ -1,4 +1,4 @@
1
- import type { Client, Scope, Span, StartSpanOptions } from '@sentry/core';
1
+ import type { Client, Scope, Span, SpanJSON, StartSpanOptions } from '@sentry/core';
2
2
  export declare const DEFAULT_NAVIGATION_SPAN_NAME = "Route Change";
3
3
  export declare const defaultIdleOptions: {
4
4
  /**
@@ -48,4 +48,16 @@ export declare function clearActiveSpanFromScope(scope: ScopeWithMaybeSpan): voi
48
48
  * Ensures that all created spans have an operation name.
49
49
  */
50
50
  export declare function addDefaultOpForSpanFrom(client: Client): void;
51
+ export declare const SPAN_THREAD_NAME = "thread.name";
52
+ export declare const SPAN_THREAD_NAME_MAIN = "main";
53
+ export declare const SPAN_THREAD_NAME_JAVASCRIPT = "javascript";
54
+ /**
55
+ * Adds Javascript thread info to spans.
56
+ * Ref: https://reactnative.dev/architecture/threading-model
57
+ */
58
+ export declare function addThreadInfoToSpan(client: Client): void;
59
+ /**
60
+ * Sets the Main thread info to the span.
61
+ */
62
+ export declare function setMainThreadInfo(spanJSON: SpanJSON): SpanJSON;
51
63
  //# sourceMappingURL=span.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 = "6.9.1";
3
+ export declare const SDK_VERSION = "6.10.0";
4
4
  //# sourceMappingURL=version.d.ts.map
@@ -80,5 +80,11 @@ interface SentryNativeWrapper {
80
80
  * Our internal interface for calling native functions
81
81
  */
82
82
  export declare const NATIVE: SentryNativeWrapper;
83
+ /**
84
+ * Fethces the data from the given uri in Uint8Array format.
85
+ * @param uri string
86
+ * @returns Uint8Array | null
87
+ */
88
+ export declare function getDataFromUri(uri: string): Promise<Uint8Array | null>;
83
89
  export {};
84
90
  //# sourceMappingURL=wrapper.d.ts.map