|
4 | 4 |
|
5 | 5 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott |
6 | 6 |
|
| 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 | + |
7 | 77 | ## 10.56.0 |
8 | 78 |
|
9 | 79 | ### Important Changes |
|
0 commit comments