Skip to content

Commit 5c7d64e

Browse files
author
Luca Forstner
authored
Merge branch 'v9' into lforst-server-sessions
2 parents 74ac9c3 + f792e64 commit 5c7d64e

File tree

137 files changed

+1784
-1186
lines changed

Some content is hidden

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

137 files changed

+1784
-1186
lines changed

.craft.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,12 @@ targets:
142142
id: '@sentry-internal/eslint-config-sdk'
143143
includeNames: /^sentry-internal-eslint-config-sdk-\d.*\.tgz$/
144144

145-
# AWS Lambda Layer target
145+
# TODO(v9): Remove this target
146+
# NOTE: We publish the v8 layer under its own name so people on v8 can still get patches
147+
# whenever we release a new v8 version—otherwise we would overwrite the current major lambda layer.
146148
- name: aws-lambda-layer
147149
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
148-
layerName: SentryNodeServerlessSDK
150+
layerName: SentryNodeServerlessSDKv8
149151
compatibleRuntimes:
150152
- name: node
151153
versions:
@@ -157,13 +159,10 @@ targets:
157159
- nodejs20.x
158160
license: MIT
159161

160-
# NOTE: We publish the v8 layer under its own name so people on v8 can still get patches
161-
# whenever we release a new v8 version—otherwise we would overwrite the current major lambda layer.
162-
163162
# AWS Lambda Layer target
164163
- name: aws-lambda-layer
165164
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
166-
layerName: SentryNodeServerlessSDKv8
165+
layerName: SentryNodeServerlessSDK
167166
compatibleRuntimes:
168167
- name: node
169168
versions:

.size-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ module.exports = [
147147
path: 'packages/svelte/build/esm/index.js',
148148
import: createImport('init'),
149149
gzip: true,
150-
limit: '24 KB',
150+
limit: '25 KB',
151151
},
152152
// Browser CDN bundles
153153
{

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,43 @@
1010

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

13+
## 8.45.0
14+
15+
- feat(core): Add `handled` option to `captureConsoleIntegration` ([#14664](https://github.com/getsentry/sentry-javascript/pull/14664))
16+
- feat(browser): Attach virtual stack traces to `HttpClient` events ([#14515](https://github.com/getsentry/sentry-javascript/pull/14515))
17+
- feat(replay): Upgrade rrweb packages to 2.31.0 ([#14689](https://github.com/getsentry/sentry-javascript/pull/14689))
18+
- fix(aws-serverless): Remove v8 layer as it overwrites the current layer for docs ([#14679](https://github.com/getsentry/sentry-javascript/pull/14679))
19+
- fix(browser): Mark stack trace from `captureMessage` with `attachStacktrace: true` as synthetic ([#14668](https://github.com/getsentry/sentry-javascript/pull/14668))
20+
- fix(core): Mark stack trace from `captureMessage` with `attatchStackTrace: true` as synthetic ([#14670](https://github.com/getsentry/sentry-javascript/pull/14670))
21+
- fix(core): Set `level` in server runtime `captureException` ([#10587](https://github.com/getsentry/sentry-javascript/pull/10587))
22+
- fix(profiling-node): Guard invocation of native profiling methods ([#14676](https://github.com/getsentry/sentry-javascript/pull/14676))
23+
- fix(nuxt): Inline nitro-utils function ([#14680](https://github.com/getsentry/sentry-javascript/pull/14680))
24+
- fix(profiling-node): Ensure profileId is added to transaction event ([#14681](https://github.com/getsentry/sentry-javascript/pull/14681))
25+
- fix(react): Add React Router Descendant Routes support ([#14304](https://github.com/getsentry/sentry-javascript/pull/14304))
26+
- fix: Disable ANR and Local Variables if debugger is enabled via CLI args ([#14643](https://github.com/getsentry/sentry-javascript/pull/14643))
27+
28+
Work in this release was contributed by @anonrig and @Zih0. Thank you for your contributions!
29+
30+
## 8.44.0
31+
32+
### Deprecations
33+
34+
- **feat: Deprecate `autoSessionTracking` ([#14640](https://github.com/getsentry/sentry-javascript/pull/14640))**
35+
36+
Deprecates `autoSessionTracking`.
37+
To enable session tracking, it is recommended to unset `autoSessionTracking` and ensure that either, in browser environments
38+
the `browserSessionIntegration` is added, or in server environments the `httpIntegration` is added.
39+
40+
To disable session tracking, it is recommended to unset `autoSessionTracking` and to remove the `browserSessionIntegration` in
41+
browser environments, or in server environments configure the `httpIntegration` with the `trackIncomingRequestsAsSessions` option set to `false`.
42+
43+
### Other Changes
44+
45+
- feat: Reword log message around unsent spans ([#14641](https://github.com/getsentry/sentry-javascript/pull/14641))
46+
- feat(opentelemetry): Set `response` context for http.server spans ([#14634](https://github.com/getsentry/sentry-javascript/pull/14634))
47+
- fix(google-cloud-serverless): Update homepage link in package.json ([#14411](https://github.com/getsentry/sentry-javascript/pull/14411))
48+
- fix(nuxt): Add unbuild config to not fail on warn ([#14662](https://github.com/getsentry/sentry-javascript/pull/14662))
49+
1350
Work in this release was contributed by @robinvw1. Thank you for your contribution!
1451

1552
## 8.43.0

biome.json

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
6-
"useIgnoreFile": true
6+
"useIgnoreFile": true,
7+
"defaultBranch": "develop"
78
},
89
"organizeImports": {
910
"enabled": true
@@ -17,13 +18,15 @@
1718
"noUnusedVariables": "error",
1819
"noPrecisionLoss": "error"
1920
},
21+
"complexity": {
22+
"useRegexLiterals": "error"
23+
},
2024
"suspicious": {
2125
"all": false,
2226
"noControlCharactersInRegex": "error"
2327
},
2428
"nursery": {
25-
"noUnusedImports": "error",
26-
"useRegexLiterals": "error"
29+
"noUnusedImports": "error"
2730
},
2831
"performance": {
2932
"all": true,
@@ -32,17 +35,16 @@
3235
}
3336
},
3437
"ignore": [
35-
".vscode/*",
38+
".vscode",
3639
"**/*.json",
37-
".next/**/*",
38-
".svelte-kit/**/*",
3940
"**/fixtures/*/*.json",
4041
"**/*.min.js",
41-
".next/**",
42-
".svelte-kit/**",
43-
".angular/**",
42+
".next",
43+
".nuxt",
44+
".svelte-kit",
45+
".angular",
4446
"angular.json",
45-
"ember/instance-initializers/**",
47+
"ember/instance-initializers",
4648
"ember/types.d.ts",
4749
"solidstart/*.d.ts",
4850
"solidstart/client/",
@@ -92,6 +94,10 @@
9294
"json": {
9395
"formatter": {
9496
"enabled": true
97+
},
98+
"parser": {
99+
"allowComments": true,
100+
"allowTrailingCommas": true
95101
}
96102
}
97103
}

dev-packages/browser-integration-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-internal/browser-integration-tests",
3-
"version": "8.43.0",
3+
"version": "8.45.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -42,8 +42,8 @@
4242
"dependencies": {
4343
"@babel/preset-typescript": "^7.16.7",
4444
"@playwright/test": "^1.44.1",
45-
"@sentry-internal/rrweb": "2.30.0",
46-
"@sentry/browser": "8.43.0",
45+
"@sentry-internal/rrweb": "2.31.0",
46+
"@sentry/browser": "8.45.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/captureConsole/test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
3030
extra: {
3131
arguments: ['console log'],
3232
},
33+
message: 'console log',
3334
}),
3435
);
3536
expect(logEvent?.exception).toBeUndefined();
@@ -40,6 +41,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
4041
extra: {
4142
arguments: ['console warn'],
4243
},
44+
message: 'console warn',
4345
}),
4446
);
4547
expect(warnEvent?.exception).toBeUndefined();
@@ -50,6 +52,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
5052
extra: {
5153
arguments: ['console info'],
5254
},
55+
message: 'console info',
5356
}),
5457
);
5558
expect(infoEvent?.exception).toBeUndefined();
@@ -60,6 +63,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
6063
extra: {
6164
arguments: ['console error'],
6265
},
66+
message: 'console error',
6367
}),
6468
);
6569
expect(errorEvent?.exception).toBeUndefined();
@@ -70,6 +74,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
7074
extra: {
7175
arguments: ['console trace'],
7276
},
77+
message: 'console trace',
7378
}),
7479
);
7580
expect(traceEvent?.exception).toBeUndefined();
@@ -90,6 +95,11 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
9095
}),
9196
);
9297
expect(errorWithErrorEvent?.exception?.values?.[0].value).toBe('console error with error object');
98+
expect(errorWithErrorEvent?.exception?.values?.[0].mechanism).toEqual({
99+
// TODO (v9): Adjust to true after changing the integration's default value
100+
handled: false,
101+
type: 'console',
102+
});
93103
expect(traceWithErrorEvent).toEqual(
94104
expect.objectContaining({
95105
level: 'log',

dev-packages/browser-integration-tests/suites/integrations/httpclient/axios/test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ sentryTest(
4040
type: 'http.client',
4141
handled: false,
4242
},
43+
stacktrace: {
44+
frames: expect.arrayContaining([
45+
expect.objectContaining({
46+
filename: 'http://sentry-test.io/subject.bundle.js',
47+
function: '?',
48+
in_app: true,
49+
}),
50+
]),
51+
},
4352
},
4453
],
4554
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/simple/test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ sentryTest(
4242
type: 'http.client',
4343
handled: false,
4444
},
45+
stacktrace: {
46+
frames: expect.arrayContaining([
47+
expect.objectContaining({
48+
filename: 'http://sentry-test.io/subject.bundle.js',
49+
function: '?',
50+
in_app: true,
51+
}),
52+
]),
53+
},
4554
},
4655
],
4756
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequest/test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ sentryTest('works with a Request passed in', async ({ getLocalTestUrl, page }) =
3838
type: 'http.client',
3939
handled: false,
4040
},
41+
stacktrace: {
42+
frames: expect.arrayContaining([
43+
expect.objectContaining({
44+
filename: 'http://sentry-test.io/subject.bundle.js',
45+
function: '?',
46+
in_app: true,
47+
}),
48+
]),
49+
},
4150
},
4251
],
4352
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequestAndBodyAndOptions/test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ sentryTest(
4040
type: 'http.client',
4141
handled: false,
4242
},
43+
stacktrace: {
44+
frames: expect.arrayContaining([
45+
expect.objectContaining({
46+
filename: 'http://sentry-test.io/subject.bundle.js',
47+
function: '?',
48+
in_app: true,
49+
}),
50+
]),
51+
},
4352
},
4453
],
4554
},

0 commit comments

Comments
 (0)