Skip to content

Commit 5c2d0de

Browse files
committed
Merge branch 'develop' into timfish/feat/anr-disable-callback
2 parents 74c8461 + 9c55aa0 commit 5c2d0de

File tree

1,042 files changed

+5611
-3891
lines changed

Some content is hidden

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

1,042 files changed

+5611
-3891
lines changed

.craft.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ targets:
55
# NPM Targets
66
## 1. Base Packages, node or browser SDKs depend on
77
## 1.1 Types
8+
# TODO(v9): Remove
89
- name: npm
910
id: '@sentry/types'
1011
includeNames: /^sentry-types-\d.*\.tgz$/
1112
## 1.2 Utils
13+
# TODO(v9): Remove
1214
- name: npm
1315
id: '@sentry/utils'
1416
includeNames: /^sentry-utils-\d.*\.tgz$/

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ jobs:
387387
if: github.event_name != 'pull_request'
388388

389389
- name: Compute test coverage
390-
uses: codecov/codecov-action@v4
390+
uses: codecov/codecov-action@v5
391391
with:
392392
token: ${{ secrets.CODECOV_TOKEN }}
393393

@@ -491,7 +491,7 @@ jobs:
491491
NODE_VERSION: ${{ matrix.node }}
492492

493493
- name: Compute test coverage
494-
uses: codecov/codecov-action@v4
494+
uses: codecov/codecov-action@v5
495495
with:
496496
token: ${{ secrets.CODECOV_TOKEN }}
497497

@@ -1408,6 +1408,10 @@ jobs:
14081408
key: ${{ needs.job_build.outputs.dependency_cache_key }}
14091409
enableCrossOsArchive: true
14101410

1411+
- name: Increase yarn network timeout on Windows
1412+
if: contains(matrix.os, 'windows')
1413+
run: yarn config set network-timeout 600000 -g
1414+
14111415
- name: Install dependencies
14121416
env:
14131417
SKIP_PLAYWRIGHT_BROWSER_INSTALL: "1"
@@ -1418,10 +1422,6 @@ jobs:
14181422
run: |
14191423
git config --global --add safe.directory "*"
14201424
1421-
- name: Increase yarn network timeout on Windows
1422-
if: contains(matrix.os, 'windows')
1423-
run: yarn config set network-timeout 600000 -g
1424-
14251425
- name: Setup python
14261426
uses: actions/setup-python@v5
14271427
if: ${{ !contains(matrix.container, 'alpine') }}

CHANGELOG.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,67 @@
1010

1111
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
1212

13+
Work in this release was contributed by @lsmurray. Thank you for your contribution!
14+
15+
## 8.42.0
16+
17+
### Important Changes
18+
19+
- **feat(react): React Router v7 support (library) ([#14513](https://github.com/getsentry/sentry-javascript/pull/14513))**
20+
21+
This release adds support for [React Router v7 (library mode)](https://reactrouter.com/home#react-router-as-a-library).
22+
Check out the docs on how to set up the integration: [Sentry React Router v7 Integration Docs](https://docs.sentry.io/platforms/javascript/guides/react/features/react-router/v7/)
23+
24+
### Deprecations
25+
26+
- **feat: Warn about source-map generation ([#14533](https://github.com/getsentry/sentry-javascript/pull/14533))**
27+
28+
In the next major version of the SDK we will change how source maps are generated when the SDK is added to an application.
29+
Currently, the implementation varies a lot between different SDKs and can be difficult to understand.
30+
Moving forward, our goal is to turn on source maps for every framework, unless we detect that they are explicitly turned off.
31+
Additionally, if we end up enabling source maps, we will emit a log message that we did so.
32+
33+
With this particular release, we are emitting warnings that source map generation will change in the future and we print instructions on how to prepare for the next major.
34+
35+
- **feat(nuxt): Deprecate `tracingOptions` in favor of `vueIntegration` ([#14530](https://github.com/getsentry/sentry-javascript/pull/14530))**
36+
37+
Currently it is possible to configure tracing options in two places in the Sentry Nuxt SDK:
38+
39+
- In `Sentry.init()`
40+
- Inside `tracingOptions` in `Sentry.init()`
41+
42+
For tree-shaking purposes and alignment with the Vue SDK, it is now recommended to instead use the newly exported `vueIntegration()` and its `tracingOptions` option to configure tracing options in the Nuxt SDK:
43+
44+
```ts
45+
// sentry.client.config.ts
46+
import * as Sentry from '@sentry/nuxt';
47+
48+
Sentry.init({
49+
// ...
50+
integrations: [
51+
Sentry.vueIntegration({
52+
tracingOptions: {
53+
trackComponents: true,
54+
},
55+
}),
56+
],
57+
});
58+
```
59+
60+
### Other Changes
61+
62+
- feat(browser-utils): Update `web-vitals` to v4.2.4 ([#14439](https://github.com/getsentry/sentry-javascript/pull/14439))
63+
- feat(nuxt): Expose `vueIntegration` ([#14526](https://github.com/getsentry/sentry-javascript/pull/14526))
64+
- fix(feedback): Handle css correctly in screenshot mode ([#14535](https://github.com/getsentry/sentry-javascript/pull/14535))
65+
1366
## 8.41.0
1467

1568
### Important Changes
1669

1770
- **meta(nuxt): Require minimum Nuxt v3.7.0 ([#14473](https://github.com/getsentry/sentry-javascript/pull/14473))**
1871

1972
We formalized that the Nuxt SDK is at minimum compatible with Nuxt version 3.7.0 and above.
20-
Additionally, the SDK requires the implicit `nitropack` dependency to satisfy version `^2.6.1` and `ofetch` to satisfy `^1.3.3`.
73+
Additionally, the SDK requires the implicit `nitropack` dependency to satisfy version `^2.10.0` and `ofetch` to satisfy `^1.4.0`.
2174
It is recommended to check your lock-files and manually upgrade these dependencies if they don't match the version ranges.
2275

2376
### Deprecations

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ below:
111111
Provides the integration for Session Replay.
112112
- [`@sentry/core`](https://github.com/getsentry/sentry-javascript/tree/master/packages/core): The base for all
113113
JavaScript SDKs with interfaces, type definitions and base classes.
114-
- [`@sentry/utils`](https://github.com/getsentry/sentry-javascript/tree/master/packages/utils): A set of helpers and
115-
utility functions useful for various SDKs.
116-
- [`@sentry/types`](https://github.com/getsentry/sentry-javascript/tree/master/packages/types): Types used in all
117-
packages.
118114

119115
## Bug Bounty Program
120116

biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
"angular.json",
4545
"ember/instance-initializers/**",
4646
"ember/types.d.ts",
47+
"solidstart/*.d.ts",
48+
"solidstart/client/",
49+
"solidstart/server/",
4750
".output",
4851
".vinxi"
4952
]

dev-packages/browser-integration-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "8.41.0",
3+
"version": "8.42.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -43,7 +43,7 @@
4343
"@babel/preset-typescript": "^7.16.7",
4444
"@playwright/test": "^1.44.1",
4545
"@sentry-internal/rrweb": "2.29.0",
46-
"@sentry/browser": "8.41.0",
46+
"@sentry/browser": "8.42.0",
4747
"axios": "1.7.7",
4848
"babel-loader": "^8.2.2",
4949
"html-webpack-plugin": "^5.5.0",

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/dom/click/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import type { Event } from '@sentry/types';
2+
import type { Event } from '@sentry/core';
33

44
import { sentryTest } from '../../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/dom/customEvent/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import type { Event } from '@sentry/types';
2+
import type { Event } from '@sentry/core';
33

44
import { sentryTest } from '../../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/dom/textInput/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import type { Event } from '@sentry/types';
2+
import type { Event } from '@sentry/core';
33

44
import { sentryTest } from '../../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/fetch/get/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import type { Event } from '@sentry/types';
2+
import type { Event } from '@sentry/core';
33

44
import { sentryTest } from '../../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';

0 commit comments

Comments
 (0)