Skip to content

Commit 9f0f6c8

Browse files
authored
chore(deps): Bumps JavaScript SDK to v8.41.0 (#4351)
1 parent 9385d74 commit 9f0f6c8

File tree

6 files changed

+109
-109
lines changed

6 files changed

+109
-109
lines changed

Diff for: CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
- Navigation Span should have no parent by default ([#4326](https://github.com/getsentry/sentry-react-native/pull/4326))
4343
- Disable HTTP Client Errors on iOS ([#4347](https://github.com/getsentry/sentry-react-native/pull/4347))
4444

45+
### Changes
46+
47+
- Falsy values of `options.environment` (empty string, undefined...) default to `production`
48+
4549
### Dependencies
4650

4751
- Bump CLI from v2.38.2 to v2.39.1 ([#4305](https://github.com/getsentry/sentry-react-native/pull/4305), [#4316](https://github.com/getsentry/sentry-react-native/pull/4316))
@@ -50,6 +54,9 @@
5054
- Bump Android SDK from v7.18.0 to v7.18.1 ([#4329](https://github.com/getsentry/sentry-react-native/pull/4329))
5155
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7181)
5256
- [diff](https://github.com/getsentry/sentry-java/compare/7.18.0...7.18.1)
57+
- Bump JavaScript SDK from v8.40.0 to v8.41.0 ([#4351](https://github.com/getsentry/sentry-react-native/pull/4351))
58+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#8410)
59+
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.40.0...8.41.0)
5360

5461
## 6.4.0
5562

Diff for: dev-packages/e2e-tests/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@babel/preset-env": "^7.25.3",
1515
"@babel/preset-typescript": "^7.18.6",
1616
"@sentry/react-native": "6.4.0",
17-
"@sentry/utils": "8.40.0",
17+
"@sentry/utils": "8.41.0",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

Diff for: packages/core/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@
6666
},
6767
"dependencies": {
6868
"@sentry/babel-plugin-component-annotate": "2.20.1",
69-
"@sentry/browser": "8.40.0",
69+
"@sentry/browser": "8.41.0",
7070
"@sentry/cli": "2.39.1",
71-
"@sentry/core": "8.40.0",
72-
"@sentry/react": "8.40.0",
73-
"@sentry/types": "8.40.0",
74-
"@sentry/utils": "8.40.0"
71+
"@sentry/core": "8.41.0",
72+
"@sentry/react": "8.41.0",
73+
"@sentry/types": "8.41.0",
74+
"@sentry/utils": "8.41.0"
7575
},
7676
"devDependencies": {
7777
"@babel/core": "^7.25.2",
7878
"@expo/metro-config": "0.19.5",
7979
"@mswjs/interceptors": "^0.25.15",
8080
"@react-native/babel-preset": "0.76.3",
81-
"@sentry-internal/eslint-config-sdk": "8.40.0",
82-
"@sentry-internal/eslint-plugin-sdk": "8.40.0",
83-
"@sentry-internal/typescript": "8.40.0",
81+
"@sentry-internal/eslint-config-sdk": "8.41.0",
82+
"@sentry-internal/eslint-plugin-sdk": "8.41.0",
83+
"@sentry-internal/typescript": "8.41.0",
8484
"@sentry/wizard": "3.36.0",
8585
"@testing-library/react-native": "^12.7.2",
8686
"@types/jest": "^29.5.3",

Diff for: packages/core/test/profiling/integration.test.ts

+6-13
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { getClient, spanToJSON } from '@sentry/core';
77
import type { Envelope, Event, Integration, Profile, Span, ThreadCpuProfile, Transport } from '@sentry/types';
88

99
import * as Sentry from '../../src/js';
10-
import type { NativeDeviceContextsResponse } from '../../src/js/NativeRNSentry';
1110
import { getDebugMetadata } from '../../src/js/profiling/debugid';
1211
import type { HermesProfilingOptions } from '../../src/js/profiling/integration';
1312
import { hermesProfilingIntegration } from '../../src/js/profiling/integration';
@@ -79,9 +78,6 @@ describe('profiling integration', () => {
7978
describe('environment', () => {
8079
beforeEach(() => {
8180
(getDefaultEnvironment as jest.Mock).mockReturnValue('mocked');
82-
mockWrapper.NATIVE.fetchNativeDeviceContexts.mockResolvedValue(<NativeDeviceContextsResponse>{
83-
environment: 'native',
84-
});
8581
});
8682

8783
const expectTransactionWithEnvironment = (envelope: Envelope | undefined, env: string | undefined) => {
@@ -114,31 +110,28 @@ describe('profiling integration', () => {
114110
expectProfileWithEnvironment(envelope, 'mocked');
115111
});
116112

117-
test('should use native environment for transaction and profile if user value is nullish', () => {
113+
test('should use production environment (default JS) for transaction and profile if user value is nullish', () => {
118114
mock = initTestClient({ withProfiling: true, environment: '' });
119115

120116
Sentry.startSpan({ name: 'test-name' }, () => {});
121117

122118
jest.runAllTimers();
123119

124120
const envelope: Envelope | undefined = mock.transportSendMock.mock.lastCall?.[0];
125-
expectTransactionWithEnvironment(envelope, 'native');
126-
expectProfileWithEnvironment(envelope, 'native');
121+
expectTransactionWithEnvironment(envelope, 'production');
122+
expectProfileWithEnvironment(envelope, 'production');
127123
});
128124

129-
test('should keep nullish for transaction and profile uses default', () => {
130-
mockWrapper.NATIVE.fetchNativeDeviceContexts.mockResolvedValue(<NativeDeviceContextsResponse>{
131-
environment: undefined,
132-
});
125+
test('should use production environment (default JS) for transaction and profile if user value is undefined', () => {
133126
mock = initTestClient({ withProfiling: true, environment: undefined });
134127

135128
Sentry.startSpan({ name: 'test-name' }, () => {});
136129

137130
jest.runAllTimers();
138131

139132
const envelope: Envelope | undefined = mock.transportSendMock.mock.lastCall?.[0];
140-
expectTransactionWithEnvironment(envelope, undefined);
141-
expectProfileWithEnvironment(envelope, 'mocked');
133+
expectTransactionWithEnvironment(envelope, 'production');
134+
expectProfileWithEnvironment(envelope, 'production');
142135
});
143136

144137
test('should keep custom environment for transaction and profile', () => {

Diff for: samples/react-native-macos/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"@react-navigation/bottom-tabs": "^6.5.12",
1717
"@react-navigation/native": "^6.1.9",
1818
"@react-navigation/stack": "^6.3.20",
19-
"@sentry/react": "8.40.0",
19+
"@sentry/react": "8.41.0",
2020
"@sentry/react-native": "6.4.0",
21-
"@sentry/types": "8.40.0",
22-
"@sentry/utils": "8.40.0",
21+
"@sentry/types": "8.41.0",
22+
"@sentry/utils": "8.41.0",
2323
"delay": "^6.0.0",
2424
"react": "18.2.0",
2525
"react-native": "0.73.9",

0 commit comments

Comments
 (0)