@sentry/react-native 5.4.0 → 5.4.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 +28 -0
- package/RNSentry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/dist/js/integrations/sdkinfo.d.ts +1 -1
- package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
- package/dist/js/integrations/sdkinfo.js +11 -8
- package/dist/js/integrations/sdkinfo.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/ios/RNSentry.mm +1 -1
- package/package.json +11 -11
- package/ts3.8/dist/js/integrations/sdkinfo.d.ts +1 -1
- package/ts3.8/dist/js/version.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.4.1
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- Store envelopes immediately during a fatal crash on iOS ([#3031](https://github.com/getsentry/sentry-react-native/pull/3031))
|
|
8
|
+
- Do not overwrite `_metadata` option by default `sdkInfo` ([#3036](https://github.com/getsentry/sentry-react-native/pull/3036))
|
|
9
|
+
|
|
10
|
+
### Dependencies
|
|
11
|
+
|
|
12
|
+
- Bump JavaScript SDK from v7.49.0 to v7.50.0 ([#3035](https://github.com/getsentry/sentry-react-native/pull/3035))
|
|
13
|
+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#7500)
|
|
14
|
+
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.49.0...7.50.0)
|
|
15
|
+
- Bump Cocoa SDK from v8.5.0 to v8.6.0 ([#3023](https://github.com/getsentry/sentry-react-native/pull/3023))
|
|
16
|
+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#860)
|
|
17
|
+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.5.0...8.6.0)
|
|
18
|
+
- Bump Android SDK from v6.17.0 to v6.18.1 ([#3017](https://github.com/getsentry/sentry-react-native/pull/3017))
|
|
19
|
+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6181)
|
|
20
|
+
- [diff](https://github.com/getsentry/sentry-java/compare/6.17.0...6.18.1)
|
|
21
|
+
- Bump CLI from v2.17.4 to v2.17.5 ([#3024](https://github.com/getsentry/sentry-react-native/pull/3024))
|
|
22
|
+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2175)
|
|
23
|
+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.17.4...2.17.5)
|
|
24
|
+
|
|
25
|
+
## 4.15.1
|
|
26
|
+
|
|
27
|
+
### Fixes
|
|
28
|
+
|
|
29
|
+
- Store envelopes immediately during a fatal crash on iOS ([#3030](https://github.com/getsentry/sentry-react-native/pull/3030))
|
|
30
|
+
|
|
3
31
|
## 5.4.0
|
|
4
32
|
|
|
5
33
|
### Features
|
package/RNSentry.podspec
CHANGED
package/android/build.gradle
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdkinfo.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/sdkinfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAW,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAMlG,aAAK,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;AAEnF,eAAO,MAAM,cAAc,EAAE,cAS5B,CAAC;AAEF,sCAAsC;AACtC,qBAAa,OAAQ,YAAW,WAAW;IACzC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAa;IAErC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAc;IAEjC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"sdkinfo.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/sdkinfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAW,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAMlG,aAAK,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;AAEnF,eAAO,MAAM,cAAc,EAAE,cAS5B,CAAC;AAEF,sCAAsC;AACtC,qBAAa,OAAQ,YAAW,WAAW;IACzC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAa;IAErC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAc;IAEjC,OAAO,CAAC,iBAAiB,CAAwB;IAEjD;;OAEG;IACI,SAAS,CAAC,uBAAuB,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,GAAG,IAAI;CA6B7E"}
|
|
@@ -19,19 +19,18 @@ export class SdkInfo {
|
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
21
21
|
this.name = SdkInfo.id;
|
|
22
|
-
this.
|
|
22
|
+
this._nativeSdkPackage = null;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @inheritDoc
|
|
26
26
|
*/
|
|
27
27
|
setupOnce(addGlobalEventProcessor) {
|
|
28
28
|
addGlobalEventProcessor((event) => __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
var _a;
|
|
30
29
|
// The native SDK info package here is only used on iOS as `beforeSend` is not called on `captureEnvelope`.
|
|
31
30
|
// this._nativeSdkInfo should be defined a following time so this call won't always be awaited.
|
|
32
|
-
if (NATIVE.platform === 'ios' && this.
|
|
31
|
+
if (NATIVE.platform === 'ios' && this._nativeSdkPackage === null) {
|
|
33
32
|
try {
|
|
34
|
-
this.
|
|
33
|
+
this._nativeSdkPackage = yield NATIVE.fetchNativeSdkInfo();
|
|
35
34
|
}
|
|
36
35
|
catch (e) {
|
|
37
36
|
// If this fails, go ahead as usual as we would rather have the event be sent with a package missing.
|
|
@@ -40,10 +39,14 @@ export class SdkInfo {
|
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
event.platform = event.platform || 'javascript';
|
|
43
|
-
event.sdk =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
event.sdk = event.sdk || {};
|
|
43
|
+
event.sdk.name = event.sdk.name || defaultSdkInfo.name;
|
|
44
|
+
event.sdk.version = event.sdk.version || defaultSdkInfo.version;
|
|
45
|
+
event.sdk.packages = [
|
|
46
|
+
// default packages are added by baseclient and should not be added here
|
|
47
|
+
...(event.sdk.packages || []),
|
|
48
|
+
...((this._nativeSdkPackage && [this._nativeSdkPackage]) || []),
|
|
49
|
+
];
|
|
47
50
|
return event;
|
|
48
51
|
}));
|
|
49
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdkinfo.js","sourceRoot":"","sources":["../../../src/js/integrations/sdkinfo.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIpC,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,WAAW;SACrB;KACF;IACD,OAAO,EAAE,WAAW;CACrB,CAAC;AAEF,sCAAsC;AACtC,MAAM,OAAO,OAAO;IAApB;QAME;;WAEG;QACI,SAAI,GAAW,OAAO,CAAC,EAAE,CAAC;QAEzB,
|
|
1
|
+
{"version":3,"file":"sdkinfo.js","sourceRoot":"","sources":["../../../src/js/integrations/sdkinfo.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAA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AAO,CAAC;YAChE,KAAK,CAAC,GAAG,CAAC,QAAQ,GAAG;gBACnB,wEAAwE;gBACxE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;gBAC7B,GAAG,CAAC,CAAC,IAAI,CAAC,iBAAiB,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAC;aAChE,CAAC;YAEF,OAAO,KAAK,CAAC;QACf,CAAC,CAAA,CAAC,CAAC;IACL,CAAC;;AA3CD;;GAEG;AACW,UAAE,GAAW,SAAS,CAAC","sourcesContent":["import type { EventProcessor, Integration, Package, SdkInfo as SdkInfoType } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { SDK_NAME, SDK_PACKAGE_NAME, SDK_VERSION } from '../version';\nimport { NATIVE } from '../wrapper';\n\ntype DefaultSdkInfo = Pick<Required<SdkInfoType>, 'name' | 'packages' | 'version'>;\n\nexport const defaultSdkInfo: DefaultSdkInfo = {\n name: SDK_NAME,\n packages: [\n {\n name: SDK_PACKAGE_NAME,\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n};\n\n/** Default SdkInfo instrumentation */\nexport class SdkInfo implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'SdkInfo';\n\n /**\n * @inheritDoc\n */\n public name: string = SdkInfo.id;\n\n private _nativeSdkPackage: Package | null = null;\n\n /**\n * @inheritDoc\n */\n public setupOnce(addGlobalEventProcessor: (e: EventProcessor) => void): void {\n addGlobalEventProcessor(async event => {\n // The native SDK info package here is only used on iOS as `beforeSend` is not called on `captureEnvelope`.\n // this._nativeSdkInfo should be defined a following time so this call won't always be awaited.\n if (NATIVE.platform === 'ios' && this._nativeSdkPackage === null) {\n try {\n this._nativeSdkPackage = await NATIVE.fetchNativeSdkInfo();\n } catch (e) {\n // If this fails, go ahead as usual as we would rather have the event be sent with a package missing.\n logger.warn(\n '[SdkInfo] Native SDK Info retrieval failed...something could be wrong with your Sentry installation:',\n );\n logger.warn(e);\n }\n }\n\n event.platform = event.platform || 'javascript';\n event.sdk = event.sdk || {};\n event.sdk.name = event.sdk.name || defaultSdkInfo.name;\n event.sdk.version = event.sdk.version || defaultSdkInfo.version;\n event.sdk.packages = [\n // default packages are added by baseclient and should not be added here\n ...(event.sdk.packages || []),\n ...((this._nativeSdkPackage && [this._nativeSdkPackage]) || []),\n ];\n\n return event;\n });\n }\n}\n"]}
|
package/dist/js/version.d.ts
CHANGED
package/dist/js/version.js
CHANGED
package/dist/js/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAC3D,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC","sourcesContent":["export const SDK_PACKAGE_NAME = 'npm:@sentry/react-native';\nexport const SDK_NAME = 'sentry.javascript.react-native';\nexport const SDK_VERSION = '5.4.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAC3D,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC","sourcesContent":["export const SDK_PACKAGE_NAME = 'npm:@sentry/react-native';\nexport const SDK_NAME = 'sentry.javascript.react-native';\nexport const SDK_VERSION = '5.4.1';\n"]}
|
package/ios/RNSentry.mm
CHANGED
|
@@ -317,7 +317,7 @@ RCT_EXPORT_METHOD(captureEnvelope:(NSArray * _Nonnull)bytes
|
|
|
317
317
|
#if DEBUG
|
|
318
318
|
[PrivateSentrySDKOnly captureEnvelope:envelope];
|
|
319
319
|
#else
|
|
320
|
-
if (options[@
|
|
320
|
+
if (options[@"store"]) {
|
|
321
321
|
// Storing to disk happens asynchronously with captureEnvelope
|
|
322
322
|
[PrivateSentrySDKOnly storeEnvelope:envelope];
|
|
323
323
|
} else {
|
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": "5.4.
|
|
5
|
+
"version": "5.4.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",
|
|
@@ -55,18 +55,18 @@
|
|
|
55
55
|
"react-native": ">=0.65.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@sentry/browser": "7.
|
|
59
|
-
"@sentry/cli": "2.17.
|
|
60
|
-
"@sentry/core": "7.
|
|
61
|
-
"@sentry/hub": "7.
|
|
62
|
-
"@sentry/integrations": "7.
|
|
63
|
-
"@sentry/react": "7.
|
|
64
|
-
"@sentry/types": "7.
|
|
65
|
-
"@sentry/utils": "7.
|
|
58
|
+
"@sentry/browser": "7.50.0",
|
|
59
|
+
"@sentry/cli": "2.17.5",
|
|
60
|
+
"@sentry/core": "7.50.0",
|
|
61
|
+
"@sentry/hub": "7.50.0",
|
|
62
|
+
"@sentry/integrations": "7.50.0",
|
|
63
|
+
"@sentry/react": "7.50.0",
|
|
64
|
+
"@sentry/types": "7.50.0",
|
|
65
|
+
"@sentry/utils": "7.50.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@sentry-internal/eslint-config-sdk": "7.
|
|
69
|
-
"@sentry-internal/eslint-plugin-sdk": "7.
|
|
68
|
+
"@sentry-internal/eslint-config-sdk": "7.50.0",
|
|
69
|
+
"@sentry-internal/eslint-plugin-sdk": "7.50.0",
|
|
70
70
|
"@sentry/typescript": "^5.20.1",
|
|
71
71
|
"@sentry/wizard": "3.0.0",
|
|
72
72
|
"@types/jest": "^29.2.5",
|