Skip to content

Commit 26515b5

Browse files
Merge 63313a6 into d43b056
2 parents d43b056 + 63313a6 commit 26515b5

File tree

208 files changed

+3901
-1012
lines changed

Some content is hidden

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

208 files changed

+3901
-1012
lines changed

CHANGELOG.md

Lines changed: 271 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,215 @@
22

33
<!-- prettier-ignore-start -->
44
> [!IMPORTANT]
5-
> If you are upgrading to the `6.x` versions of the Sentry React Native SDK from `5.x` or below,
5+
> If you are upgrading to the `7.x` versions of the Sentry React Native SDK from `6.x` or below,
66
> make sure you follow our [migration guide](https://docs.sentry.io/platforms/react-native/migration/) first.
77
<!-- prettier-ignore-end -->
88
9+
## Unreleased
10+
11+
## Features
12+
13+
- Logs now contains more attributes like release, os and device information ([#5032](https://github.com/getsentry/sentry-react-native/pull/5032))
14+
15+
### Dependencies
16+
17+
- Bump Android SDK from v8.17.0 to v8.18.0 ([#5034](https://github.com/getsentry/sentry-react-native/pull/5034))
18+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8180)
19+
- [diff](https://github.com/getsentry/sentry-java/compare/8.17.0...8.18.0)
20+
21+
## 7.0.0-rc.1
22+
23+
### Various fixes & improvements
24+
25+
- fix(sdk): Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` (#4466) by @krystofwoldrich
26+
- fix(appStart): Align span description with other platforms (#4636) by @krystofwoldrich
27+
28+
## 7.0.0-beta.2
29+
30+
### Features
31+
32+
- Automatically detect Release name and version for Expo Web ([#4967](https://github.com/getsentry/sentry-react-native/pull/4967))
33+
34+
### Changes
35+
36+
- Expose `featureFlagsIntegration` ([#4984](https://github.com/getsentry/sentry-react-native/pull/4984))
37+
38+
### Breaking changes
39+
40+
- Tags formatting logic updated ([#4965](https://github.com/getsentry/sentry-react-native/pull/4965))
41+
Here are the altered/unaltered types, make sure to update your UI filters and alerts.
42+
43+
Unaltered: string, null, number, and undefined values remain unchanged.
44+
45+
Altered: Boolean values are now capitalized: true -> True, false -> False.
46+
47+
### Fixes
48+
49+
- tags with symbol are now logged ([#4965](https://github.com/getsentry/sentry-react-native/pull/4965))
50+
- ignoreError now filters Native errors ([#4948](https://github.com/getsentry/sentry-react-native/pull/4948))
51+
52+
You can use strings to filter errors or RegEx for filtering with a pattern.
53+
54+
example:
55+
56+
```typescript
57+
ignoreErrors: [
58+
'1234', // Will filter any error message that contains 1234.
59+
'.*1234', // Will not filter as regex, instead will filter messages that contains '.*1234"
60+
/.*1234/, // Regex will filter any error message that ends with 1234
61+
/.*1234.*/ // Regex will filter any error message that contains 1234.
62+
]
63+
```
64+
65+
### Dependencies
66+
67+
- Bump Android SDK from v8.14.0 to v8.17.0 ([#4953](https://github.com/getsentry/sentry-react-native/pull/4953), [#4955](https://github.com/getsentry/sentry-react-native/pull/4955), [#4987](https://github.com/getsentry/sentry-react-native/pull/4987))
68+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8170)
69+
- [diff](https://github.com/getsentry/sentry-java/compare/8.14.0...8.17.0)
70+
71+
## 7.0.0-beta.1
72+
73+
### Upgrading from 6.x to 7.0
74+
75+
Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK version 9. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.
76+
77+
Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.
78+
79+
### Major Changes
80+
81+
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
82+
- `Sentry.captureUserFeedback` removed, use `Sentry.captureFeedback` instead ([#4855](https://github.com/getsentry/sentry-react-native/pull/4855))
83+
84+
### Major Changes from Sentry JS SDK v9
85+
86+
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
87+
- `shutdownTimeout` moved from `core` to `@sentry/react-native`
88+
- `hasTracingEnabled` was renamed to `hasSpansEnabled`
89+
- You can no longer drop spans or return null on `beforeSendSpan` hook
90+
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
91+
92+
#### Removed types
93+
94+
- TransactionNamingScheme
95+
- Request
96+
- Scope (prefer using the Scope class)
97+
98+
#### Other removed items.
99+
100+
- `autoSessionTracking` from options.
101+
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
102+
- `enableTracing`. Instead, set `tracesSampleRate` to a value greater than `zero` to `enable tracing`, `0` to keep tracing integrations active without sampling, or `undefined` to disable the performance integration.
103+
- `getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
104+
- `spanId` from propagation `context`
105+
- metrics API
106+
- `transactionContext` from `samplingContext`
107+
- `@sentry/utils` package, the exports were moved to `@sentry/core`
108+
- Standalone `Client` interface & deprecate `BaseClient`
109+
110+
### Features
111+
112+
- Add experimental support for Log tracing ([#4827](https://github.com/getsentry/sentry-react-native/pull/4827))
113+
114+
To enable it add the following code to your Sentry Options:
115+
116+
```typescript
117+
Sentry.init({
118+
// other options...
119+
_experiments: {
120+
enableLogs: true,
121+
},
122+
});
123+
```
124+
125+
You can also filter the logs being collected by adding beforeSendLogs into `_experiments`
126+
127+
```typescript
128+
Sentry.init({
129+
// other options...
130+
_experiments: {
131+
enableLogs: true,
132+
beforeSendLog: (log) => {
133+
return log;
134+
},
135+
}
136+
});
137+
```
138+
139+
### Changes
140+
141+
- Expose `logger` and `consoleLoggingIntegration` ([#4930](https://github.com/getsentry/sentry-react-native/pull/4930))
142+
- Remove deprecated `appOwnership` constant use in Expo Go detection ([#4893](https://github.com/getsentry/sentry-react-native/pull/4893))
143+
- Disable AppStart and NativeFrames in unsupported environments (web, Expo Go) ([#4897](https://github.com/getsentry/sentry-react-native/pull/4897))
144+
145+
### Self Hosted
146+
147+
- It is recommended to use Sentry Self Hosted version `25.2.0` or new for React Native V7 or newer
148+
149+
### Dependencies
150+
151+
- Bump Android SDK from v8.13.2 to v8.14.0 ([#4929](https://github.com/getsentry/sentry-react-native/pull/4929), [#4934](https://github.com/getsentry/sentry-react-native/pull/4934))
152+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8140)
153+
- [diff](https://github.com/getsentry/sentry-java/compare/8.13.2...8.14.0)
154+
155+
## 7.0.0-beta.0
156+
157+
### Upgrading from 6.x to 7.0
158+
159+
Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK version 9. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.
160+
161+
Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.
162+
163+
### Major Changes
164+
165+
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
166+
- `Sentry.captureUserFeedback` removed, use `Sentry.captureFeedback` instead ([#4855](https://github.com/getsentry/sentry-react-native/pull/4855))
167+
168+
### Major Changes from Sentry JS SDK v9
169+
170+
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
171+
- `shutdownTimeout` moved from `core` to `@sentry/react-native`
172+
- `hasTracingEnabled` was renamed to `hasSpansEnabled`
173+
- You can no longer drop spans or return null on `beforeSendSpan` hook
174+
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
175+
176+
#### Removed types
177+
178+
- TransactionNamingScheme
179+
- Request
180+
- Scope (prefer using the Scope class)
181+
182+
#### Other removed items.
183+
184+
- `autoSessionTracking` from options.
185+
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
186+
- `enableTracing`. Instead, set `tracesSampleRate` to a value greater than `zero` to `enable tracing`, `0` to keep tracing integrations active without sampling, or `undefined` to disable the performance integration.
187+
- `getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
188+
- `spanId` from propagation `context`
189+
- metrics API
190+
- `transactionContext` from `samplingContext`
191+
- `@sentry/utils` package, the exports were moved to `@sentry/core`
192+
- Standalone `Client` interface & deprecate `BaseClient`
193+
194+
### Changes
195+
196+
- Use `Replay` interface for `browserReplayIntegration` return type ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))
197+
- Allow using `browserReplayIntegration` without `isWeb` guard ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))
198+
- The integration returns noop in non-browser environments
199+
- Use single `encodeUTF8` implementation through the SDK ([#4885](https://github.com/getsentry/sentry-react-native/pull/4885))
200+
- Use global `TextEncoder` (available with Hermes in React Native 0.74 or higher) to improve envelope encoding performance. ([#4874](https://github.com/getsentry/sentry-react-native/pull/4874))
201+
- `breadcrumbsIntegration` disables React Native incompatible options automatically ([#4886](https://github.com/getsentry/sentry-react-native/pull/4886))
202+
- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732))
203+
- Change `Cold/Warm App Start` span description to `Cold/Warm Start` ([#4636](https://github.com/getsentry/sentry-react-native/pull/4636))
204+
205+
### Dependencies
206+
207+
- Bump JavaScript SDK from v8.54.0 to v9.22.0 ([#4568](https://github.com/getsentry/sentry-react-native/pull/4568), [#4752](https://github.com/getsentry/sentry-react-native/pull/4752), [#4860](https://github.com/getsentry/sentry-react-native/pull/4860))
208+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/9.22.0/CHANGELOG.md)
209+
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.54.0...9.22.0)
210+
- Bump Android SDK from v7.20.1 to v8.13.2 ([#4490](https://github.com/getsentry/sentry-react-native/pull/4490), [#4847](https://github.com/getsentry/sentry-react-native/pull/4847))
211+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8132)
212+
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.13.2)
213+
9214
## 6.19.0
10215

11216
### Fixes
@@ -194,6 +399,71 @@
194399
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2460)
195400
- [diff](https://github.com/getsentry/sentry-cli/compare/2.45.0...2.46.0)
196401

402+
## 7.0.0-alpha.0
403+
404+
### Upgrading from 6.x to 7.0
405+
406+
Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK version 9. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.
407+
408+
Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.
409+
410+
### Fixes
411+
412+
- Expo Updates Context is passed to native after native init to be available for crashes ([#4808](https://github.com/getsentry/sentry-react-native/pull/4808))
413+
- Expo Updates Context values should all be lowercase ([#4809](https://github.com/getsentry/sentry-react-native/pull/4809))
414+
- Avoid duplicate network requests (fetch, xhr) by default ([#4816](https://github.com/getsentry/sentry-react-native/pull/4816))
415+
- `traceFetch` is disabled by default on mobile as RN uses a polyfill which will be traced by `traceXHR`
416+
417+
### Major Changes
418+
419+
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
420+
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
421+
- `shutdownTimeout` moved from `core` to `@sentry/react-native`
422+
- `hasTracingEnabled` was renamed to `hasSpansEnabled`
423+
- You can no longer drop spans or return null on `beforeSendSpan` hook
424+
425+
### Removed types
426+
427+
- TransactionNamingScheme
428+
- Request
429+
- Scope (prefer using the Scope class)
430+
431+
### Other removed items.
432+
433+
- `autoSessionTracking` from options.
434+
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
435+
- `enableTracing`. Instead, set `tracesSampleRate` to a value greater than `zero` to `enable tracing`, `0` to keep tracing integrations active without sampling, or `undefined` to disable the performance integration.
436+
- `getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
437+
- `spanId` from propagation `context`
438+
- metrics API
439+
- `transactionContext` from `samplingContext`
440+
- `@sentry/utils` package, the exports were moved to `@sentry/core`
441+
- Standalone `Client` interface & deprecate `BaseClient`
442+
443+
### Other Changes
444+
445+
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
446+
- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732))
447+
- Change `Cold/Warm App Start` span description to `Cold/Warm Start` ([#4636](https://github.com/getsentry/sentry-react-native/pull/4636))
448+
449+
### Dependencies
450+
451+
- Bump JavaScript SDK from v8.54.0 to v9.12.0 ([#4568](https://github.com/getsentry/sentry-react-native/pull/4568), [#4752](https://github.com/getsentry/sentry-react-native/pull/4752))
452+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/9.12.0/CHANGELOG.md)
453+
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.54.0...9.12.0)
454+
- Bump Android SDK from v7.20.1 to v8.11.1 ([#4490](https://github.com/getsentry/sentry-react-native/pull/4490))
455+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8111)
456+
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.11.1)
457+
- Bump CLI from v2.43.1 to v2.45.0 ([#4804](https://github.com/getsentry/sentry-react-native/pull/4804), [#4818](https://github.com/getsentry/sentry-react-native/pull/4818))
458+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2450)
459+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.43.1...2.45.0)
460+
- Bump Bundler Plugins from v3.3.1 to v3.4.0 ([#4805](https://github.com/getsentry/sentry-react-native/pull/4805))
461+
- [changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md#340)
462+
- [diff](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/3.3.1...3.4.0)
463+
- Bump Cocoa SDK from v8.49.2 to v8.50.0 ([#4807](https://github.com/getsentry/sentry-react-native/pull/4807))
464+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8500)
465+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.49.2...8.50.0)
466+
197467
## 6.14.0
198468

199469
### Fixes

dev-packages/e2e-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-e2e-tests",
3-
"version": "6.19.0",
3+
"version": "7.0.0-rc.1",
44
"private": true,
55
"description": "Sentry React Native End to End Tests Library",
66
"main": "dist/index.js",
@@ -13,8 +13,8 @@
1313
"devDependencies": {
1414
"@babel/preset-env": "^7.25.3",
1515
"@babel/preset-typescript": "^7.18.6",
16-
"@sentry/core": "8.55.0",
17-
"@sentry/react-native": "6.19.0",
16+
"@sentry/core": "9.22.0",
17+
"@sentry/react-native": "7.0.0-rc.1",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

dev-packages/type-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sentry-react-native-type-check",
33
"private": true,
4-
"version": "6.19.0",
4+
"version": "7.0.0-rc.1",
55
"scripts": {
66
"type-check": "./run-type-check.sh"
77
}

dev-packages/type-check/ts3.8-test/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ declare global {
33
interface IDBObjectStore {}
44
interface Window {
55
fetch: any;
6+
setTimeout: any;
7+
document: any;
68
}
79
interface ShadowRoot {}
810
interface BufferSource {}
@@ -19,6 +21,8 @@ declare global {
1921
redirectCount: number;
2022
}
2123
interface PerformanceEntry {}
24+
interface Performance {}
25+
interface PerformanceNavigationTiming {}
2226
}
2327

2428
declare module 'react-native' {

dev-packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-samples-utils",
3-
"version": "6.19.0",
3+
"version": "7.0.0-rc.1",
44
"description": "Internal Samples Utils",
55
"main": "index.js",
66
"license": "MIT",

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "6.19.0",
3+
"version": "7.0.0-rc.1",
44
"packages": [
55
"packages/*",
66
"dev-packages/*",

packages/core/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = {
4040
'@typescript-eslint/no-empty-function': 'off',
4141
'@typescript-eslint/no-explicit-any': 'off',
4242
'@typescript-eslint/unbound-method': 'off',
43+
'import/first': 'off',
4344
},
4445
},
4546
{

0 commit comments

Comments
 (0)