Skip to content

Commit 55f9343

Browse files
authored
Merge pull request #21369 from getsentry/prepare-release/10.57.0
meta(changelog): Update changelog for 10.57.0
2 parents c59a1d5 + 88d9d30 commit 55f9343

288 files changed

Lines changed: 3317 additions & 545 deletions

File tree

Some content is hidden

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

.claude/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"allow": [
55
"Bash(find:*)",
66
"Bash(ls:*)",
7-
"Bash(git:*)",
87
"Bash(git status:*)",
98
"Bash(git log:*)",
109
"Bash(git diff:*)",

.github/workflows/canary.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ jobs:
6969
fail-fast: false
7070
matrix:
7171
include:
72-
- test-application: 'angular-21'
72+
- test-application: 'angular-22'
7373
build-command: 'test:build-canary'
74-
label: 'angular-21 (next)'
74+
label: 'angular-22 (next)'
7575
- test-application: 'create-react-app'
7676
build-command: 'test:build-canary'
7777
label: 'create-react-app (canary)'

.size-limit.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ module.exports = [
120120
path: 'packages/browser/build/npm/esm/prod/index.js',
121121
import: createImport('init', 'sendFeedback'),
122122
gzip: true,
123-
limit: '37 KB',
123+
limit: '38 KB',
124124
disablePlugins: ['@size-limit/esbuild'],
125125
},
126126
{
@@ -162,7 +162,7 @@ module.exports = [
162162
import: createImport('init', 'ErrorBoundary'),
163163
ignore: ['react/jsx-runtime'],
164164
gzip: true,
165-
limit: '34 KB',
165+
limit: '35 KB',
166166
disablePlugins: ['@size-limit/esbuild'],
167167
},
168168
{
@@ -294,7 +294,7 @@ module.exports = [
294294
path: createCDNPath('bundle.tracing.logs.metrics.min.js'),
295295
gzip: false,
296296
brotli: false,
297-
limit: '153 KB',
297+
limit: '154 KB',
298298
disablePlugins: ['@size-limit/esbuild'],
299299
},
300300
{
@@ -310,31 +310,31 @@ module.exports = [
310310
path: createCDNPath('bundle.tracing.replay.min.js'),
311311
gzip: false,
312312
brotli: false,
313-
limit: '268 KB',
313+
limit: '269 KB',
314314
disablePlugins: ['@size-limit/esbuild'],
315315
},
316316
{
317317
name: 'CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed',
318318
path: createCDNPath('bundle.tracing.replay.logs.metrics.min.js'),
319319
gzip: false,
320320
brotli: false,
321-
limit: '272 KB',
321+
limit: '273 KB',
322322
disablePlugins: ['@size-limit/esbuild'],
323323
},
324324
{
325325
name: 'CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed',
326326
path: createCDNPath('bundle.tracing.replay.feedback.min.js'),
327327
gzip: false,
328328
brotli: false,
329-
limit: '282 KB',
329+
limit: '283 KB',
330330
disablePlugins: ['@size-limit/esbuild'],
331331
},
332332
{
333333
name: 'CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed',
334334
path: createCDNPath('bundle.tracing.replay.feedback.logs.metrics.min.js'),
335335
gzip: false,
336336
brotli: false,
337-
limit: '286 KB',
337+
limit: '287 KB',
338338
disablePlugins: ['@size-limit/esbuild'],
339339
},
340340
// Next.js SDK (ESM)
@@ -434,7 +434,7 @@ module.exports = [
434434
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
435435
gzip: false,
436436
brotli: false,
437-
limit: '173 KiB',
437+
limit: '175 KiB',
438438
disablePlugins: ['@size-limit/webpack'],
439439
webpack: false,
440440
modifyEsbuildConfig: function (config) {
@@ -454,7 +454,7 @@ module.exports = [
454454
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
455455
gzip: false,
456456
brotli: false,
457-
limit: '425 KiB',
457+
limit: '429 KiB',
458458
disablePlugins: ['@size-limit/webpack'],
459459
webpack: false,
460460
modifyEsbuildConfig: function (config) {

CHANGELOG.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,76 @@
44

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

7+
## 10.57.0
8+
9+
### Important Changes
10+
11+
- **feat(angular): Add support for Angular 22 ([#21330](https://github.com/getsentry/sentry-javascript/pull/21330))**
12+
13+
`@sentry/angular` now officially supports Angular 22.
14+
15+
- **ref(core): Deprecate `sendDefaultPii` in favor of `dataCollection` ([#21277](https://github.com/getsentry/sentry-javascript/pull/21277))**
16+
17+
`sendDefaultPii` is deprecated and will be removed in v11. The new `dataCollection` option lets you control each category of collected data.
18+
`sendDefaultPii: true` still works and maps to enabling all `dataCollection` categories.
19+
`dataCollection.userInfo` defaults to `true` when `dataCollection` is provided, meaning auto-populated `user.*` fields (e.g. IP address from a request) are collected by default.
20+
Data you set explicitly (like via `Sentry.setUser()`) is always sent regardless.
21+
When `dataCollection` is not set at all, the legacy `sendDefaultPii` behavior applies (`userInfo: false` by default) to preserve backward compatibility.
22+
23+
Note that an empty `dataCollection: {}` falls back to more permissive defaults than `sendDefaultPii: false`, so replicate the old behavior by opting out explicitly:
24+
25+
```js
26+
Sentry.init({
27+
dataCollection: {
28+
userInfo: false,
29+
genAI: { inputs: false, outputs: false },
30+
httpBodies: [],
31+
httpHeaders: { deny: ['forwarded', '-ip', 'remote-', 'via', '-user'] },
32+
cookies: { deny: ['forwarded', '-ip', 'remote-', 'via', '-user'] },
33+
queryParams: { deny: ['forwarded', '-ip', 'remote-', 'via', '-user'] },
34+
},
35+
});
36+
```
37+
38+
### Other Changes
39+
40+
- feat: Use `dataCollection.frameContextLines` for ContextLines integration ([#21323](https://github.com/getsentry/sentry-javascript/pull/21323))
41+
- feat(cloudflare): Auto instrument D1 based on env ([#21276](https://github.com/getsentry/sentry-javascript/pull/21276))
42+
- feat(core): Change default of `dataCollection.userInfo` to `true` ([#21348](https://github.com/getsentry/sentry-javascript/pull/21348))
43+
- feat(core): Default `dataCollection.httpBodies` to all valid body types ([#21352](https://github.com/getsentry/sentry-javascript/pull/21352))
44+
- feat(hono): Filter noisy transactions (`favicon` etc) ([#21365](https://github.com/getsentry/sentry-javascript/pull/21365))
45+
- fix(cloudflare): Don't track negatively sampled spans ([#21367](https://github.com/getsentry/sentry-javascript/pull/21367))
46+
- fix(core): Use `safeDateNow` calls for `new Date()` reads ([#21351](https://github.com/getsentry/sentry-javascript/pull/21351))
47+
- fix(nextjs): Shim `pinoIntegration` on edge runtime ([#21347](https://github.com/getsentry/sentry-javascript/pull/21347))
48+
- fix(node): Prevent PostgresJs integration from emitting duplicate spans per query ([#21364](https://github.com/getsentry/sentry-javascript/pull/21364))
49+
- fix(node-core): Read `__SENTRY_SERVER_MODULES__` lazily so Turbopack injection is honored ([#21339](https://github.com/getsentry/sentry-javascript/pull/21339))
50+
- fix(react): Detect React Router v6/v7 navigations in a layout effect to propagate the correct trace ([#21326](https://github.com/getsentry/sentry-javascript/pull/21326))
51+
- fix(react): Remove unused `react.componentStack` event context ([#21183](https://github.com/getsentry/sentry-javascript/pull/21183))
52+
- fix(replays): Record `sentry._internal.replay_is_buffering` for spans ([#21297](https://github.com/getsentry/sentry-javascript/pull/21297))
53+
54+
<details>
55+
<summary> <strong>Internal Changes</strong> </summary>
56+
57+
- chore: Bump volta node version from 20.19.2 to 20.19.5 ([#21359](https://github.com/getsentry/sentry-javascript/pull/21359))
58+
- chore: Remove git:\* allowed permissions ([#21328](https://github.com/getsentry/sentry-javascript/pull/21328))
59+
- chore(deps-dev): Bump eslint-plugin-regexp from 1.15.0 to 3.1.0 ([#21104](https://github.com/getsentry/sentry-javascript/pull/21104))
60+
- chore(deps-dev): Bump react-router from 7.13.0 to 7.15.0 ([#21337](https://github.com/getsentry/sentry-javascript/pull/21337))
61+
- chore(size-limit): weekly auto-bump ([#21344](https://github.com/getsentry/sentry-javascript/pull/21344))
62+
- docs(remix): Add notice about capturing http bodies for form data keys ([#21296](https://github.com/getsentry/sentry-javascript/pull/21296))
63+
- feat(deps): Bump @types/aws-lambda from 8.10.150 to 8.10.161 ([#21105](https://github.com/getsentry/sentry-javascript/pull/21105))
64+
- feat(deps): Bump axios from 1.15.2 to 1.16.0 ([#21251](https://github.com/getsentry/sentry-javascript/pull/21251))
65+
- feat(deps): Bump hono from 4.12.18 to 4.12.21 ([#21341](https://github.com/getsentry/sentry-javascript/pull/21341))
66+
- ref(browser): Split web vitals integration ([#21210](https://github.com/getsentry/sentry-javascript/pull/21210))
67+
- ref(node): Streamline lru-memoizer instrumentation ([#21350](https://github.com/getsentry/sentry-javascript/pull/21350))
68+
- ref(node): Streamline sql-common ([#21360](https://github.com/getsentry/sentry-javascript/pull/21360))
69+
- test(e2e): Migrate `sendDefaultPii` to `dataCollection` option ([#21288](https://github.com/getsentry/sentry-javascript/pull/21288))
70+
- test(nextjs): Remove assertion on conditional span ([#21329](https://github.com/getsentry/sentry-javascript/pull/21329))
71+
- test(node): Move node integration tests to data collection ([#21283](https://github.com/getsentry/sentry-javascript/pull/21283))
72+
73+
</details>
74+
75+
Work in this release was contributed by @zhongrenfei1-hub. Thank you for your contribution!
76+
777
## 10.56.0
878

979
### Important Changes

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@
6464
"@sentry-internal/replay": "10.56.0",
6565
"@sentry/opentelemetry": "10.56.0",
6666
"@supabase/supabase-js": "2.49.3",
67-
"axios": "1.15.2",
67+
"axios": "1.16.0",
6868
"babel-loader": "^10.1.1",
6969
"fflate": "0.8.2",
7070
"html-webpack-plugin": "^5.5.0",
7171
"webpack": "^5.95.0"
7272
},
7373
"devDependencies": {
7474
"@types/node": "^18.19.1",
75-
"eslint-plugin-regexp": "^1.15.0",
75+
"eslint-plugin-regexp": "^3.1.0",
7676
"glob": "^13.0.6"
7777
},
7878
"volta": {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as Sentry from '@sentry/browser';
2+
3+
window.Sentry = Sentry;
4+
5+
Sentry.init({
6+
dsn: 'https://public@dsn.ingest.sentry.io/1337',
7+
integrations: [
8+
Sentry.browserTracingIntegration({
9+
idleTimeout: 1000,
10+
}),
11+
],
12+
tracesSampleRate: 1,
13+
});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
</head>
6+
<body>
7+
<div>Rendered</div>
8+
</body>
9+
</html>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { expect } from '@playwright/test';
2+
import type { Event } from '@sentry/core';
3+
import { sentryTest } from '../../../../utils/fixtures';
4+
import { envelopeRequestParser, shouldSkipTracingTest, waitForTransactionRequest } from '../../../../utils/helpers';
5+
6+
sentryTest.beforeEach(({ browserName }) => {
7+
if (shouldSkipTracingTest() || browserName !== 'chromium') {
8+
sentryTest.skip();
9+
}
10+
});
11+
12+
// `connection.rtt` is recorded as a measurement, which is only flushed on the pageload
13+
// transaction. It must not leak onto navigation transactions.
14+
sentryTest(
15+
'records `connection.rtt` as a measurement on pageload but not on navigation transactions',
16+
async ({ getLocalTestUrl, page }) => {
17+
const pageloadRequestPromise = waitForTransactionRequest(page, event => event.contexts?.trace?.op === 'pageload');
18+
const url = await getLocalTestUrl({ testDir: __dirname });
19+
await page.goto(url);
20+
21+
const pageloadRequest = envelopeRequestParser(await pageloadRequestPromise) as Event;
22+
23+
const navigationRequestPromise = waitForTransactionRequest(
24+
page,
25+
event => event.contexts?.trace?.op === 'navigation',
26+
);
27+
await page.goto(`${url}#foo`);
28+
29+
const navigationRequest = envelopeRequestParser(await navigationRequestPromise) as Event;
30+
31+
expect(pageloadRequest.contexts?.trace?.op).toBe('pageload');
32+
expect(navigationRequest.contexts?.trace?.op).toBe('navigation');
33+
34+
expect(pageloadRequest.measurements?.['connection.rtt']?.value).toBeDefined();
35+
expect(navigationRequest.measurements?.['connection.rtt']).toBeUndefined();
36+
},
37+
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@sentry/bun": "10.56.0",
1717
"@sentry/hono": "10.56.0",
18-
"hono": "^4.12.18"
18+
"hono": "^4.12.21"
1919
},
2020
"devDependencies": {
2121
"@sentry-internal/test-utils": "10.56.0",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@actions/github": "^5.0.0"
1919
},
2020
"devDependencies": {
21-
"eslint-plugin-regexp": "^1.15.0"
21+
"eslint-plugin-regexp": "^3.1.0"
2222
},
2323
"volta": {
2424
"extends": "../../package.json"

0 commit comments

Comments
 (0)