Skip to content

Commit 7655547

Browse files
committed
Bump: @sentry/javascript dependencies to 6.19.2
1 parent 40a54e1 commit 7655547

File tree

5 files changed

+143
-115
lines changed

5 files changed

+143
-115
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- fix: Respect given release if no dist is given during SDK init (#2163)
6+
- Bump: @sentry/javascript dependencies to 6.19.2 (#)
67

78
## 3.3.5
89

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@
4040
"react-native": ">=0.56.0"
4141
},
4242
"dependencies": {
43-
"@sentry/browser": "6.17.9",
44-
"@sentry/cli": "^1.72.0",
45-
"@sentry/core": "6.17.9",
46-
"@sentry/hub": "6.17.9",
47-
"@sentry/integrations": "6.17.9",
48-
"@sentry/react": "6.17.9",
49-
"@sentry/tracing": "6.17.9",
50-
"@sentry/types": "6.17.9",
51-
"@sentry/utils": "6.17.9",
43+
"@sentry/browser": "6.19.2",
44+
"@sentry/cli": "^1.74.2",
45+
"@sentry/core": "6.19.2",
46+
"@sentry/hub": "6.19.2",
47+
"@sentry/integrations": "6.19.2",
48+
"@sentry/react": "6.19.2",
49+
"@sentry/tracing": "6.19.2",
50+
"@sentry/types": "6.19.2",
51+
"@sentry/utils": "6.19.2",
5252
"@sentry/wizard": "^1.2.17"
5353
},
5454
"devDependencies": {
55-
"@sentry-internal/eslint-config-sdk": "6.17.9",
56-
"@sentry-internal/eslint-plugin-sdk": "6.17.9",
57-
"@sentry/typescript": "^5.20.0",
55+
"@sentry-internal/eslint-config-sdk": "6.19.2",
56+
"@sentry-internal/eslint-plugin-sdk": "6.19.2",
57+
"@sentry/typescript": "^5.20.1",
5858
"@types/jest": "^26.0.15",
5959
"@types/react": "^16.9.49",
6060
"@types/react-native": "^0.66.11",

sample/src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ Sentry.init({
6060
tracesSampleRate: 1.0,
6161
// Sets the `release` and `dist` on Sentry events. Make sure this matches EXACTLY with the values on your sourcemaps
6262
// otherwise they will not work.
63-
release: '[email protected]+1',
64-
dist: `1`,
63+
// release: '[email protected]+1',
64+
// dist: `1`,
65+
attachStacktrace: true,
6566
});
6667

6768
const Stack = createStackNavigator();

src/js/integrations/reactnativeerrorhandlers.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { eventFromException } from "@sentry/browser";
2-
import { getCurrentHub } from "@sentry/core";
3-
import { Integration, Severity } from "@sentry/types";
4-
import { addExceptionMechanism, getGlobalObject, logger } from "@sentry/utils";
1+
import { eventFromException } from '@sentry/browser';
2+
import { getCurrentHub } from '@sentry/core';
3+
import { Integration, Severity } from '@sentry/types';
4+
import { addExceptionMechanism, getGlobalObject, logger } from '@sentry/utils';
55

6-
import { ReactNativeClient } from "../client";
6+
import { ReactNativeClient } from '../client';
77

88
/** ReactNativeErrorHandlers Options */
99
interface ReactNativeErrorHandlersOptions {
@@ -25,7 +25,7 @@ export class ReactNativeErrorHandlers implements Integration {
2525
/**
2626
* @inheritDoc
2727
*/
28-
public static id: string = "ReactNativeErrorHandlers";
28+
public static id: string = 'ReactNativeErrorHandlers';
2929

3030
/**
3131
* @inheritDoc
@@ -79,16 +79,16 @@ export class ReactNativeErrorHandlers implements Integration {
7979
/* eslint-disable import/no-extraneous-dependencies,@typescript-eslint/no-var-requires */
8080
const {
8181
polyfillGlobal,
82-
} = require("react-native/Libraries/Utilities/PolyfillFunctions");
82+
} = require('react-native/Libraries/Utilities/PolyfillFunctions');
8383

8484
// Below, we follow the exact way React Native initializes its promise library, and we globally replace it.
85-
const Promise = require("promise/setimmediate/es6-extensions");
85+
const Promise = require('promise/setimmediate/es6-extensions');
8686

8787
// As of RN 0.67 only done and finally are used
88-
require("promise/setimmediate/done");
89-
require("promise/setimmediate/finally");
88+
require('promise/setimmediate/done');
89+
require('promise/setimmediate/finally');
9090

91-
polyfillGlobal("Promise", () => Promise);
91+
polyfillGlobal('Promise', () => Promise);
9292
/* eslint-enable import/no-extraneous-dependencies,@typescript-eslint/no-var-requires */
9393
}
9494
/**
@@ -99,7 +99,7 @@ export class ReactNativeErrorHandlers implements Integration {
9999
disable: () => void;
100100
enable: (arg: unknown) => void;
101101
// eslint-disable-next-line import/no-extraneous-dependencies,@typescript-eslint/no-var-requires
102-
} = require("promise/setimmediate/rejection-tracking");
102+
} = require('promise/setimmediate/rejection-tracking');
103103

104104
const promiseRejectionTrackingOptions: PromiseRejectionTrackingOptions = {
105105
onUnhandled: (id, rejection = {}) => {
@@ -112,7 +112,7 @@ export class ReactNativeErrorHandlers implements Integration {
112112
// eslint-disable-next-line no-console
113113
console.warn(
114114
`Promise Rejection Handled (id: ${id})\n` +
115-
"This means you can ignore any previous messages of the form " +
115+
'This means you can ignore any previous messages of the form ' +
116116
`"Possible Unhandled Promise Rejection (id: ${id}):"`
117117
);
118118
},
@@ -141,21 +141,21 @@ export class ReactNativeErrorHandlers implements Integration {
141141
private _checkPromiseAndWarn(): void {
142142
try {
143143
// eslint-disable-next-line @typescript-eslint/no-var-requires,import/no-extraneous-dependencies
144-
const Promise = require("promise/setimmediate/es6-extensions");
144+
const Promise = require('promise/setimmediate/es6-extensions');
145145

146146
const _global = getGlobalObject<{ Promise: typeof Promise }>();
147147

148148
if (Promise !== _global.Promise) {
149149
logger.warn(
150-
"Unhandled promise rejections will not be caught by Sentry. Read about how to fix this on our troubleshooting page."
150+
'Unhandled promise rejections will not be caught by Sentry. Read about how to fix this on our troubleshooting page.'
151151
);
152152
} else {
153-
logger.log("Unhandled promise rejections will be caught by Sentry.");
153+
logger.log('Unhandled promise rejections will be caught by Sentry.');
154154
}
155155
} catch (e) {
156156
// Do Nothing
157157
logger.warn(
158-
"Unhandled promise rejections will not be caught by Sentry. Read about how to fix this on our troubleshooting page."
158+
'Unhandled promise rejections will not be caught by Sentry. Read about how to fix this on our troubleshooting page.'
159159
);
160160
}
161161
}
@@ -176,7 +176,7 @@ export class ReactNativeErrorHandlers implements Integration {
176176
if (shouldHandleFatal) {
177177
if (handlingFatal) {
178178
logger.log(
179-
"Encountered multiple fatals in a row. The latest:",
179+
'Encountered multiple fatals in a row. The latest:',
180180
error
181181
);
182182
return;
@@ -189,7 +189,7 @@ export class ReactNativeErrorHandlers implements Integration {
189189

190190
if (!client) {
191191
logger.error(
192-
"Sentry client is missing, the error event might be lost.",
192+
'Sentry client is missing, the error event might be lost.',
193193
error
194194
);
195195

@@ -201,16 +201,16 @@ export class ReactNativeErrorHandlers implements Integration {
201201

202202
const options = client.getOptions();
203203

204-
const event = await eventFromException(options, error, {
204+
const event = await eventFromException(error, {
205205
originalException: error,
206-
});
206+
}, options.attachStacktrace);
207207

208208
if (isFatal) {
209209
event.level = Severity.Fatal;
210210

211211
addExceptionMechanism(event, {
212212
handled: false,
213-
type: "onerror",
213+
type: 'onerror',
214214
});
215215
}
216216

0 commit comments

Comments
 (0)