@sentry/react-native 3.2.2 → 3.2.3

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,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ # Unreleased
4
+
5
+ - fix(ios): tracesSampler becomes NSNull in iOS and the app cannot be started #1872
6
+
7
+ ## 3.2.3
8
+
9
+ ### Various fixes & improvements
10
+
11
+ - fix(ios): tracesSampler becomes NSNull in iOS and the app cannot be started (#1872) by @marandaneto
12
+
3
13
  ## 3.2.2
4
14
 
5
15
  - Bump Sentry Android SDK to 5.3.0 #1860
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.4.8'
20
+ s.dependency 'Sentry', '7.5.1'
21
21
 
22
22
  s.source_files = 'ios/RNSentry.{h,m}'
23
23
  s.public_header_files = 'ios/RNSentry.h'
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_NAME = "sentry.javascript.react-native";
2
- export declare const SDK_VERSION = "3.2.2";
2
+ export declare const SDK_VERSION = "3.2.3";
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 = "3.2.2";
2
+ export const SDK_VERSION = "3.2.3";
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 = \"3.2.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 = \"3.2.3\";\n"]}
package/ios/RNSentry.m CHANGED
@@ -62,7 +62,14 @@ RCT_EXPORT_METHOD(initNativeSdk:(NSDictionary *_Nonnull)options
62
62
  return event;
63
63
  };
64
64
 
65
- [options setValue:beforeSend forKey:@"beforeSend"];
65
+ NSMutableDictionary * mutableOptions =[options mutableCopy];
66
+ [mutableOptions setValue:beforeSend forKey:@"beforeSend"];
67
+
68
+ // remove performance traces sample rate and traces sampler since we don't want to synchronize these configurations
69
+ // to the Native SDKs.
70
+ // The user could tho initialize the SDK manually and set themselves.
71
+ [mutableOptions removeObjectForKey:@"tracesSampleRate"];
72
+ [mutableOptions removeObjectForKey:@"tracesSampler"];
66
73
 
67
74
  sentryOptions = [[SentryOptions alloc] initWithDict:options didFailWithError:&error];
68
75
  if (error) {
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": "3.2.2",
5
+ "version": "3.2.3",
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",