Skip to content

Commit 026acec

Browse files
authored
Merge branch 'develop' into aliu/launch-darkly-integration
2 parents 46eb462 + cb1c7ee commit 026acec

File tree

129 files changed

+1624
-592
lines changed

Some content is hidden

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

129 files changed

+1624
-592
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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') }}

.github/workflows/issue-package-label.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ jobs:
8383
"@sentry.solid": {
8484
"label": "Package: solidstart"
8585
},
86-
"@sentry.svelte": {
87-
"label": "Package: svelte"
88-
},
8986
"@sentry.sveltekit": {
9087
"label": "Package: sveltekit"
9188
},
89+
"@sentry.svelte": {
90+
"label": "Package: svelte"
91+
},
9292
"@sentry.vue": {
9393
"label": "Package: vue"
9494
},

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,59 @@
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

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/public-api/debug/test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ sentryTest('logs debug messages correctly', async ({ getLocalTestUrl, page }) =>
3434
'Sentry Logger [log]: Integration installed: Dedupe',
3535
'Sentry Logger [log]: Integration installed: HttpContext',
3636
'Sentry Logger [warn]: Discarded session because of missing or non-string release',
37+
'Sentry Logger [log]: Integration installed: BrowserSession',
3738
'test log',
3839
]
3940
: ['[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.', 'test log'],

dev-packages/browser-integration-tests/suites/replay/captureReplay/test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
3434
event_id: expect.stringMatching(/\w{32}/),
3535
environment: 'production',
3636
sdk: {
37-
integrations: [
37+
integrations: expect.arrayContaining([
3838
'InboundFilters',
3939
'FunctionToString',
4040
'BrowserApiErrors',
@@ -43,8 +43,9 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
4343
'LinkedErrors',
4444
'Dedupe',
4545
'HttpContext',
46+
'BrowserSession',
4647
'Replay',
47-
],
48+
]),
4849
version: SDK_VERSION,
4950
name: 'sentry.javascript.browser',
5051
},
@@ -71,7 +72,7 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
7172
event_id: expect.stringMatching(/\w{32}/),
7273
environment: 'production',
7374
sdk: {
74-
integrations: [
75+
integrations: expect.arrayContaining([
7576
'InboundFilters',
7677
'FunctionToString',
7778
'BrowserApiErrors',
@@ -80,8 +81,9 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
8081
'LinkedErrors',
8182
'Dedupe',
8283
'HttpContext',
84+
'BrowserSession',
8385
'Replay',
84-
],
86+
]),
8587
version: SDK_VERSION,
8688
name: 'sentry.javascript.browser',
8789
},

dev-packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
3434
event_id: expect.stringMatching(/\w{32}/),
3535
environment: 'production',
3636
sdk: {
37-
integrations: [
37+
integrations: expect.arrayContaining([
3838
'InboundFilters',
3939
'FunctionToString',
4040
'BrowserApiErrors',
@@ -43,8 +43,9 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
4343
'LinkedErrors',
4444
'Dedupe',
4545
'HttpContext',
46+
'BrowserSession',
4647
'Replay',
47-
],
48+
]),
4849
version: SDK_VERSION,
4950
name: 'sentry.javascript.browser',
5051
},
@@ -71,7 +72,7 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
7172
event_id: expect.stringMatching(/\w{32}/),
7273
environment: 'production',
7374
sdk: {
74-
integrations: [
75+
integrations: expect.arrayContaining([
7576
'InboundFilters',
7677
'FunctionToString',
7778
'BrowserApiErrors',
@@ -80,8 +81,9 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
8081
'LinkedErrors',
8182
'Dedupe',
8283
'HttpContext',
84+
'BrowserSession',
8385
'Replay',
84-
],
86+
]),
8587
version: SDK_VERSION,
8688
name: 'sentry.javascript.browser',
8789
},

dev-packages/browser-integration-tests/utils/replayEventTemplates.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const DEFAULT_REPLAY_EVENT = {
1616
event_id: expect.stringMatching(/\w{32}/),
1717
environment: 'production',
1818
sdk: {
19-
integrations: [
19+
integrations: expect.arrayContaining([
2020
'InboundFilters',
2121
'FunctionToString',
2222
'BrowserApiErrors',
@@ -25,8 +25,9 @@ const DEFAULT_REPLAY_EVENT = {
2525
'LinkedErrors',
2626
'Dedupe',
2727
'HttpContext',
28+
'BrowserSession',
2829
'Replay',
29-
],
30+
]),
3031
version: SDK_VERSION,
3132
name: 'sentry.javascript.browser',
3233
},

dev-packages/bundle-analyzer-scenarios/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundle-analyzer-scenarios",
3-
"version": "8.41.0",
3+
"version": "8.42.0",
44
"description": "Scenarios to test bundle analysis with",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",

dev-packages/clear-cache-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/clear-cache-gh-action",
33
"description": "An internal Github Action to clear GitHub caches.",
4-
"version": "8.41.0",
4+
"version": "8.42.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

0 commit comments

Comments
 (0)