Skip to content

Commit f916f2b

Browse files
authored
Bump: @sentry/javascript dependencies to 6.19.2 (#2175)
1 parent 3daf206 commit f916f2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1004
-981
lines changed

.eslintrc.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,51 @@ module.exports = {
22
root: true,
33
env: {
44
node: true,
5-
"react-native/react-native": true,
5+
'react-native/react-native': true,
66
},
7-
extends: ["@sentry-internal/sdk"],
8-
plugins: ["@sentry-internal/sdk"],
7+
extends: ['@sentry-internal/sdk'],
8+
plugins: ['@sentry-internal/sdk'],
99
parserOptions: {
10-
project: "./tsconfig.json",
10+
project: './tsconfig.json',
1111
},
1212
settings: {
13-
version: "detect", // React version. "detect" automatically picks the version you have installed.
13+
version: 'detect', // React version. "detect" automatically picks the version you have installed.
1414
},
1515
overrides: [
1616
{
1717
// Typescript Files
18-
files: ["*.ts", "*.tsx"],
19-
extends: ["plugin:react/recommended"],
20-
plugins: ["react", "react-native"],
18+
files: ['*.ts', '*.tsx'],
19+
extends: ['plugin:react/recommended'],
20+
plugins: ['react', 'react-native'],
2121
rules: {
22-
"@typescript-eslint/typedef": [
23-
"error",
22+
'@typescript-eslint/typedef': [
23+
'error',
2424
{ arrowParameter: false, variableDeclarationIgnoreFunction: true },
2525
],
2626
},
2727
},
2828
{
2929
// Test Files
30-
files: ["*.test.ts", "*.test.tsx", "*.test.js", "*.test.jsx"],
30+
files: ['*.test.ts', '*.test.tsx', '*.test.js', '*.test.jsx'],
3131
rules: {
32-
"@typescript-eslint/no-var-requires": "off",
33-
"@typescript-eslint/no-empty-function": "off",
34-
"@typescript-eslint/no-explicit-any": "off",
32+
'@typescript-eslint/no-var-requires': 'off',
33+
'@typescript-eslint/no-empty-function': 'off',
34+
'@typescript-eslint/no-explicit-any': 'off',
3535
},
3636
},
3737
{
3838
// Scripts
39-
files: ["scripts/*"],
39+
files: ['scripts/*'],
4040
parserOptions: {
4141
ecmaVersion: 2015,
4242
},
4343
rules: {
44-
"no-console": "off",
44+
'no-console': 'off',
4545
},
4646
},
4747
],
4848
rules: {
4949
// Bundle size isn't too much of an issue for React Native.
50-
"@sentry-internal/sdk/no-async-await": "off",
50+
'@sentry-internal/sdk/no-async-await': 'off',
5151
},
5252
};

CHANGELOG.md

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

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

78
## 3.3.5
89

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ["module:metro-react-native-babel-preset"],
2+
presets: ['module:metro-react-native-babel-preset'],
33
};

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",

react-native.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ module.exports = {
22
dependency: {
33
platforms: {
44
ios: {
5-
sharedLibraries: ["libz"]
5+
sharedLibraries: ['libz']
66
},
77
android: {
8-
packageInstance: "new RNSentryPackage()"
8+
packageInstance: 'new RNSentryPackage()'
99
}
1010
},
1111
hooks: {
1212
postlink:
13-
"node node_modules/@sentry/wizard/dist/bin.js -i reactNative -p ios android",
13+
'node node_modules/@sentry/wizard/dist/bin.js -i reactNative -p ios android',
1414
postunlink:
15-
"node node_modules/@sentry/wizard/dist/bin.js -i reactNative -p ios android --uninstall"
15+
'node node_modules/@sentry/wizard/dist/bin.js -i reactNative -p ios android --uninstall'
1616
}
1717
}
1818
};

sample/src/App.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ import ReduxScreen from './screens/ReduxScreen';
1919
import {store} from './reduxApp';
2020
import {SENTRY_INTERNAL_DSN} from './dsn';
2121

22-
const reactNavigationInstrumentation = new Sentry.ReactNavigationInstrumentation(
23-
{
22+
const reactNavigationInstrumentation =
23+
new Sentry.ReactNavigationInstrumentation({
2424
routeChangeTimeoutMs: 500, // How long it will wait for the route change to complete. Default is 1000ms
25-
},
26-
);
25+
});
2726
Sentry.init({
2827
// Replace the example DSN below with your own DSN:
2928
dsn: SENTRY_INTERNAL_DSN,
@@ -60,8 +59,9 @@ Sentry.init({
6059
tracesSampleRate: 1.0,
6160
// Sets the `release` and `dist` on Sentry events. Make sure this matches EXACTLY with the values on your sourcemaps
6261
// otherwise they will not work.
63-
release: '[email protected]+1',
64-
dist: `1`,
62+
// release: '[email protected]+1',
63+
// dist: `1`,
64+
attachStacktrace: true,
6565
});
6666

6767
const Stack = createStackNavigator();

sample/src/screens/HomeScreen.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ import {
99
View,
1010
} from 'react-native';
1111
import {StackNavigationProp} from '@react-navigation/stack';
12-
import {
13-
CommonActions,
14-
useNavigation,
15-
useNavigationState,
16-
} from '@react-navigation/native';
12+
import {CommonActions} from '@react-navigation/native';
1713

1814
import * as Sentry from '@sentry/react-native';
1915

sample/utils/fetchEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Event} from '@sentry/types';
33
import fetch from 'node-fetch';
44

55
const domain = 'sentry.io';
6-
const eventEndpoint = `/api/0/projects/sentry-sdks/sentry-react-native/events/`;
6+
const eventEndpoint = '/api/0/projects/sentry-sdks/sentry-react-native/events/';
77

88
interface ApiEvent extends Event {
99
/**

scripts/version-bump.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
const replace = require("replace-in-file");
1+
const replace = require('replace-in-file');
22

3-
const pjson = require("../package.json");
3+
const pjson = require('../package.json');
44

55
replace({
6-
files: ["src/js/version.ts"],
6+
files: ['src/js/version.ts'],
77
from: /\d+\.\d+.\d+(?:-\w+(?:\.\w+)?)?/g,
88
to: pjson.version,
99
})
1010
.then((changedFiles) => {
11-
console.log("Modified files:", changedFiles.join(", "));
11+
console.log('Modified files:', changedFiles.join(', '));
1212
})
1313
.catch((error) => {
14-
console.error("Error occurred:", error);
14+
console.error('Error occurred:', error);
1515
});

src/js/backend.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { BrowserBackend } from "@sentry/browser/dist/backend";
2-
import { BaseBackend, NoopTransport } from "@sentry/core";
3-
import { BrowserOptions, Transports } from "@sentry/react";
4-
import { Event, EventHint, Severity, Transport } from "@sentry/types";
1+
import { BrowserBackend } from '@sentry/browser/dist/backend';
2+
import { BaseBackend, NoopTransport } from '@sentry/core';
3+
import { BrowserOptions, Transports } from '@sentry/react';
4+
import { Event, EventHint, Severity, Transport } from '@sentry/types';
55
// @ts-ignore LogBox introduced in RN 0.63
6-
import { Alert, LogBox, YellowBox } from "react-native";
6+
import { Alert, LogBox, YellowBox } from 'react-native';
77

8-
import { ReactNativeOptions } from "./options";
9-
import { NativeTransport } from "./transports/native";
10-
import { NATIVE } from "./wrapper";
8+
import { ReactNativeOptions } from './options';
9+
import { NativeTransport } from './transports/native';
10+
import { NATIVE } from './wrapper';
1111

1212
/** The Sentry ReactNative SDK Backend. */
1313
export class ReactNativeBackend extends BaseBackend<BrowserOptions> {
@@ -22,10 +22,10 @@ export class ReactNativeBackend extends BaseBackend<BrowserOptions> {
2222
// YellowBox deprecated and replaced with with LogBox in RN 0.63
2323
if (LogBox) {
2424
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
25-
LogBox.ignoreLogs(["Require cycle:"]);
25+
LogBox.ignoreLogs(['Require cycle:']);
2626
} else {
2727
// eslint-disable-next-line deprecation/deprecation
28-
YellowBox.ignoreWarnings(["Require cycle:"]);
28+
YellowBox.ignoreWarnings(['Require cycle:']);
2929
}
3030

3131
void this._initNativeSdk();
@@ -110,8 +110,8 @@ export class ReactNativeBackend extends BaseBackend<BrowserOptions> {
110110
private _showCannotConnectDialog(): void {
111111
if (__DEV__ && this._options.enableNativeNagger) {
112112
Alert.alert(
113-
"Sentry",
114-
"Warning, could not connect to Sentry native SDK.\nIf you do not want to use the native component please pass `enableNative: false` in the options.\nVisit: https://docs.sentry.io/platforms/react-native/#linking for more details."
113+
'Sentry',
114+
'Warning, could not connect to Sentry native SDK.\nIf you do not want to use the native component please pass `enableNative: false` in the options.\nVisit: https://docs.sentry.io/platforms/react-native/#linking for more details.'
115115
);
116116
}
117117
}

src/js/client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { BaseClient } from "@sentry/core";
1+
import { BaseClient } from '@sentry/core';
22

3-
import { ReactNativeBackend } from "./backend";
4-
import { ReactNativeOptions } from "./options";
5-
import { NATIVE } from "./wrapper";
3+
import { ReactNativeBackend } from './backend';
4+
import { ReactNativeOptions } from './options';
5+
import { NATIVE } from './wrapper';
66

77
/**
88
* The Sentry React Native SDK Client.

src/js/definitions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Breadcrumb, Package } from "@sentry/types";
1+
import { Breadcrumb, Package } from '@sentry/types';
22

3-
import { ReactNativeOptions } from "./options";
3+
import { ReactNativeOptions } from './options';
44

55
export type NativeAppStartResponse = {
66
isColdStart: boolean;

src/js/index.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export {
1111
EventStatus,
1212
Thread,
1313
User,
14-
} from "@sentry/types";
14+
} from '@sentry/types';
1515

1616
export {
1717
addGlobalEventProcessor,
@@ -32,14 +32,14 @@ export {
3232
setUser,
3333
startTransaction,
3434
withScope,
35-
} from "@sentry/core";
35+
} from '@sentry/core';
3636

3737
// We need to import it so we patch the hub with global functions
3838
// aka. this has side effects
39-
import "@sentry/tracing";
39+
import '@sentry/tracing';
4040

4141
// Add the React Native SDK's own tracing extensions, this needs to happen AFTER @sentry/tracing's
42-
import { _addTracingExtensions } from "./measurements";
42+
import { _addTracingExtensions } from './measurements';
4343
_addTracingExtensions();
4444

4545
export {
@@ -50,14 +50,14 @@ export {
5050
Profiler,
5151
useProfiler,
5252
withProfiler,
53-
} from "@sentry/react";
53+
} from '@sentry/react';
5454

55-
import * as Integrations from "./integrations";
56-
import { SDK_NAME, SDK_VERSION } from "./version";
55+
import * as Integrations from './integrations';
56+
import { SDK_NAME, SDK_VERSION } from './version';
5757

58-
export { ReactNativeBackend } from "./backend";
59-
export { ReactNativeOptions } from "./options";
60-
export { ReactNativeClient } from "./client";
58+
export { ReactNativeBackend } from './backend';
59+
export { ReactNativeOptions } from './options';
60+
export { ReactNativeClient } from './client';
6161

6262
export {
6363
init,
@@ -69,8 +69,8 @@ export {
6969
nativeCrash,
7070
flush,
7171
close,
72-
} from "./sdk";
73-
export { TouchEventBoundary, withTouchEventBoundary } from "./touchevents";
72+
} from './sdk';
73+
export { TouchEventBoundary, withTouchEventBoundary } from './touchevents';
7474

7575
export {
7676
ReactNativeTracing,
@@ -81,6 +81,6 @@ export {
8181
ReactNativeNavigationInstrumentation,
8282
RoutingInstrumentation,
8383
ReactNavigationTransactionContext,
84-
} from "./tracing";
84+
} from './tracing';
8585

8686
export { Integrations, SDK_NAME, SDK_VERSION };

0 commit comments

Comments
 (0)