@sentry/react-native 4.1.2 → 4.2.1

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 CHANGED
@@ -1,10 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Fixes
6
+
7
+ - SENTRY_DIST accepts non-number values on Android ([#2395](https://github.com/getsentry/sentry-react-native/pull/2395))
8
+
9
+ ### Features
10
+
11
+ - Bump Cocoa SDK to v7.22.0 ([#2392](https://github.com/getsentry/sentry-react-native/pull/2392))
12
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7220)
13
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.21.0...7.22.0)
14
+
15
+ ## 4.2.0
16
+
17
+ ### Features
18
+
19
+ - Bump Cocoa SDK to v7.21.0 ([#2374](https://github.com/getsentry/sentry-react-native/pull/2374))
20
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7210)
21
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.20.0...7.21.0)
22
+ - Bump Android SDK to v6.3.0 ([#2380](https://github.com/getsentry/sentry-react-native/pull/2380))
23
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#630)
24
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.1.4...6.3.0)
25
+ - Bump JavaScript SDK to v7.7.0 ([#2375](https://github.com/getsentry/sentry-react-native/pull/2375))
26
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#770)
27
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.6.0...7.7.0)
28
+
29
+ ## 4.1.3
30
+
31
+ ### Fixes
32
+
33
+ - Solve reference to private cocoa SDK class ([#2369](https://github.com/getsentry/sentry-react-native/pull/2369))
34
+
3
35
  ## 4.1.2
4
36
 
5
37
  ### Fixes
6
38
 
7
39
  - Set default unit for measurements ([#2360](https://github.com/getsentry/sentry-react-native/pull/2360))
40
+ - When using SENTRY_DIST env. var. on Android, SDK fails to convert to an Integer ([#2365](https://github.com/getsentry/sentry-react-native/pull/2365))
8
41
 
9
42
  ### Features
10
43
 
@@ -12,10 +45,6 @@
12
45
  - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#760)
13
46
  - [diff](https://github.com/getsentry/sentry-javascript/compare/7.5.1...7.6.0)
14
47
 
15
- ### Fixes
16
-
17
- - When using SENTRY_DIST env. var. on Android, SDK fails to convert to an Integer ([#2365](https://github.com/getsentry/sentry-react-native/pull/2365))
18
-
19
48
  ## 4.1.1
20
49
 
21
50
  ### Features
package/README.md CHANGED
@@ -75,6 +75,12 @@ If you are coming from `react-native-sentry` which was our SDK `< 1.0` you shoul
75
75
 
76
76
  ## Blog posts
77
77
 
78
+ [Introducing Mobile Screenshots and Suspect Commits](https://blog.sentry.io/2022/07/07/introducing-mobile-screenshots-and-suspect-commits).
79
+
80
+ [Tips for Optimizing React Native Application Performance - Part 2: Using Sentry SDK for Performance Monitoring](https://blog.sentry.io/2022/06/28/tips-for-optimizing-react-native-application-performance-part-2-using-sentry).
81
+
82
+ [Tips for Optimizing React Native Application Performance: Part 1](https://blog.sentry.io/2022/06/01/tips-for-optimizing-react-native-application-performance-part-1).
83
+
78
84
  [Tracking Stability in a Bluetooth Low Energy-Based React-Native App](https://blog.sentry.io/2022/02/22/tracking-stability-in-a-bluetooth-low-energy-based-react-native-app).
79
85
 
80
86
  [Mobile Vitals - Four Metrics Every Mobile Developer Should Care About](https://blog.sentry.io/2021/08/23/mobile-vitals-four-metrics-every-mobile-developer-should-care-about/).
package/RNSentry.podspec CHANGED
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.preserve_paths = '*.js'
18
18
 
19
19
  s.dependency 'React-Core'
20
- s.dependency 'Sentry', '7.20.0'
20
+ s.dependency 'Sentry', '7.22.0'
21
21
 
22
22
  s.source_files = 'ios/RNSentry.{h,m}'
23
23
  s.public_header_files = 'ios/RNSentry.h'
@@ -24,5 +24,5 @@ android {
24
24
 
25
25
  dependencies {
26
26
  implementation 'com.facebook.react:react-native:+'
27
- api 'io.sentry:sentry-android:6.1.4'
27
+ api 'io.sentry:sentry-android:6.3.0'
28
28
  }
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_NAME = "sentry.javascript.react-native";
2
- export declare const SDK_VERSION = "4.1.2";
2
+ export declare const SDK_VERSION = "4.2.1";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export const SDK_NAME = 'sentry.javascript.react-native';
2
- export const SDK_VERSION = '4.1.2';
2
+ export const SDK_VERSION = '4.2.1';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC","sourcesContent":["export const SDK_NAME = 'sentry.javascript.react-native';\nexport const SDK_VERSION = '4.1.2';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC","sourcesContent":["export const SDK_NAME = 'sentry.javascript.react-native';\nexport const SDK_VERSION = '4.2.1';\n"]}
package/ios/RNSentry.m CHANGED
@@ -8,7 +8,10 @@
8
8
 
9
9
  #import <Sentry/Sentry.h>
10
10
  #import <Sentry/SentryScreenFrames.h>
11
- #import <Sentry/SentryTraceContext.h>
11
+
12
+ @interface SentryTraceContext : NSObject
13
+ - (nullable instancetype)initWithDict:(NSDictionary<NSString *, id> *)dictionary;
14
+ @end
12
15
 
13
16
  @interface SentrySDK (RNSentry)
14
17
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sentry/react-native",
3
3
  "homepage": "https://github.com/getsentry/sentry-react-native",
4
4
  "repository": "https://github.com/getsentry/sentry-react-native",
5
- "version": "4.1.2",
5
+ "version": "4.2.1",
6
6
  "description": "Official Sentry SDK for react-native",
7
7
  "typings": "dist/js/index.d.ts",
8
8
  "types": "dist/js/index.d.ts",
@@ -40,20 +40,20 @@
40
40
  "react-native": ">=0.56.0"
41
41
  },
42
42
  "dependencies": {
43
- "@sentry/browser": "7.6.0",
43
+ "@sentry/browser": "7.7.0",
44
44
  "@sentry/cli": "1.74.4",
45
- "@sentry/core": "7.6.0",
46
- "@sentry/hub": "7.6.0",
47
- "@sentry/integrations": "7.6.0",
48
- "@sentry/react": "7.6.0",
49
- "@sentry/tracing": "7.6.0",
50
- "@sentry/types": "7.6.0",
51
- "@sentry/utils": "7.6.0",
45
+ "@sentry/core": "7.7.0",
46
+ "@sentry/hub": "7.7.0",
47
+ "@sentry/integrations": "7.7.0",
48
+ "@sentry/react": "7.7.0",
49
+ "@sentry/tracing": "7.7.0",
50
+ "@sentry/types": "7.7.0",
51
+ "@sentry/utils": "7.7.0",
52
52
  "@sentry/wizard": "1.2.17"
53
53
  },
54
54
  "devDependencies": {
55
- "@sentry-internal/eslint-config-sdk": "7.6.0",
56
- "@sentry-internal/eslint-plugin-sdk": "7.6.0",
55
+ "@sentry-internal/eslint-config-sdk": "7.7.0",
56
+ "@sentry-internal/eslint-plugin-sdk": "7.7.0",
57
57
  "@sentry/typescript": "^5.20.1",
58
58
  "@types/jest": "^26.0.15",
59
59
  "@types/react": "^16.9.49",
package/sentry.gradle CHANGED
@@ -68,18 +68,17 @@ gradle.projectsEvaluated {
68
68
 
69
69
  try {
70
70
  if (versionCode instanceof String) {
71
- versionCode = Integer.parseInt(versionCode);
71
+ versionCode = Integer.parseInt(versionCode)
72
+ versionCode = Math.abs(versionCode)
72
73
  }
73
74
  } catch (NumberFormatException e) {
74
- project.logger.info("versionCode: '$versionCode' isn't an Integer, but it must be.")
75
+ project.logger.info("versionCode: '$versionCode' isn't an Integer, using the plain value.")
75
76
  }
76
77
 
77
- def absVersionCode = Math.abs(versionCode)
78
-
79
78
  // The Sentry server distinguishes source maps by release (`--release` in the command
80
79
  // below) and distribution identifier (`--dist` below). Give the task a unique name
81
80
  // based on where we're uploading to.
82
- def nameCliTask = "${bundleTask.name}_SentryUpload_${releaseName}_${absVersionCode}"
81
+ def nameCliTask = "${bundleTask.name}_SentryUpload_${releaseName}_${versionCode}"
83
82
 
84
83
  // If several outputs have the same releaseName and versionCode, we'd do the exact same
85
84
  // upload for each of them. No need to repeat.