releases.shpreview

sendDefaultPii deprecated for dataCollection option

v10.57.0

5 features1 enhancement6 fixesThis release5 featuresNew capabilities1 enhancementImprovements to existing features6 fixesBug fixesAI-tallied from the release notes

Important Changes

  • feat(angular): Add support for Angular 22 (#21330)

    @sentry/angular now officially supports Angular 22.

  • ref(core): Deprecate sendDefaultPii in favor of dataCollection (#21277)

    sendDefaultPii is deprecated and will be removed in v11. The new dataCollection option lets you control each category of collected data. sendDefaultPii: true still works and maps to enabling all dataCollection categories. 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. Data you set explicitly (like via Sentry.setUser()) is always sent regardless. When dataCollection is not set at all, the legacy sendDefaultPii behavior applies (userInfo: false by default) to preserve backward compatibility.

    Note that an empty dataCollection: {} falls back to more permissive defaults than sendDefaultPii: false, so replicate the old behavior by opting out explicitly:

    Sentry.init({
      dataCollection: {
        userInfo: false,
        genAI: { inputs: false, outputs: false },
        httpBodies: [],
        httpHeaders: { deny: ['forwarded', '-ip', 'remote-', 'via', '-user'] },
        cookies: { deny: ['forwarded', '-ip', 'remote-', 'via', '-user'] },
        queryParams: { deny: ['forwarded', '-ip', 'remote-', 'via', '-user'] },
      },
    });

Other Changes

  • feat: Use dataCollection.frameContextLines for ContextLines integration (#21323)
  • feat(cloudflare): Auto instrument D1 based on env (#21276)
  • feat(core): Change default of dataCollection.userInfo to true (#21348)
  • feat(core): Default dataCollection.httpBodies to all valid body types (#21352)
  • feat(hono): Filter noisy transactions (favicon etc) (#21365)
  • fix(cloudflare): Don't track negatively sampled spans (#21367)
  • fix(core): Use safeDateNow calls for new Date() reads (#21351)
  • fix(nextjs): Shim pinoIntegration on edge runtime (#21347)
  • fix(node): Prevent PostgresJs integration from emitting duplicate spans per query (#21364)
  • fix(node-core): Read __SENTRY_SERVER_MODULES__ lazily so Turbopack injection is honored (#21339)
  • fix(react): Detect React Router v6/v7 navigations in a layout effect to propagate the correct trace (#21326)
  • fix(react): Remove unused react.componentStack event context (#21183)
  • fix(replays): Record sentry._internal.replay_is_buffering for spans (#21297)
<details> <summary> <strong>Internal Changes</strong> </summary>
  • chore: Bump volta node version from 20.19.2 to 20.19.5 (#21359)
  • chore: Remove git:* allowed permissions (#21328)
  • chore(deps-dev): Bump eslint-plugin-regexp from 1.15.0 to 3.1.0 (#21104)
  • chore(deps-dev): Bump react-router from 7.13.0 to 7.15.0 (#21337)
  • chore(size-limit): weekly auto-bump (#21344)
  • docs(remix): Add notice about capturing http bodies for form data keys (#21296)
  • feat(deps): Bump @types/aws-lambda from 8.10.150 to 8.10.161 (#21105)
  • feat(deps): Bump axios from 1.15.2 to 1.16.0 (#21251)
  • feat(deps): Bump hono from 4.12.18 to 4.12.21 (#21341)
  • ref(browser): Split web vitals integration (#21210)
  • ref(node): Streamline lru-memoizer instrumentation (#21350)
  • ref(node): Streamline sql-common (#21360)
  • test(e2e): Migrate sendDefaultPii to dataCollection option (#21288)
  • test(nextjs): Remove assertion on conditional span (#21329)
  • test(node): Move node integration tests to data collection (#21283)
</details>

Work in this release was contributed by @zhongrenfei1-hub. Thank you for your contribution!

Bundle size 📦

PathSize
@sentry/browser26.57 KB
@sentry/browser - with treeshaking flags25.05 KB
@sentry/browser (incl. Tracing)44.44 KB
@sentry/browser (incl. Tracing + Span Streaming)46.62 KB
@sentry/browser (incl. Tracing, Profiling)49.11 KB
@sentry/browser (incl. Tracing, Replay)82.73 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags72.6 KB
@sentry/browser (incl. Tracing, Replay with Canvas)87.31 KB
@sentry/browser (incl. Tracing, Replay, Feedback)99.71 KB
@sentry/browser (incl. Feedback)43.33 KB
@sentry/browser (incl. sendFeedback)31.28 KB
@sentry/browser (incl. FeedbackAsync)36.25 KB
@sentry/browser (incl. Metrics)27.62 KB
@sentry/browser (incl. Logs)27.86 KB
@sentry/browser (incl. Metrics & Logs)28.54 KB
@sentry/react28.34 KB
@sentry/react (incl. Tracing)46.66 KB
@sentry/vue31.47 KB
@sentry/vue (incl. Tracing)46.29 KB
@sentry/svelte26.6 KB
CDN Bundle28.89 KB
CDN Bundle (incl. Tracing)46.83 KB
CDN Bundle (incl. Logs, Metrics)30.36 KB
CDN Bundle (incl. Tracing, Logs, Metrics)48.05 KB
CDN Bundle (incl. Replay, Logs, Metrics)68.72 KB
CDN Bundle (incl. Tracing, Replay)83.34 KB
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)84.49 KB
CDN Bundle (incl. Tracing, Replay, Feedback)89.02 KB
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)90.18 KB
CDN Bundle - uncompressed85.72 KB
CDN Bundle (incl. Tracing) - uncompressed141.58 KB
CDN Bundle (incl. Logs, Metrics) - uncompressed90.1 KB
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed145.25 KB
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed211.99 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed257.67 KB
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed261.32 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed271.04 KB
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed274.69 KB
@sentry/nextjs (client)49.08 KB
@sentry/sveltekit (client)44.85 KB
@sentry/core/server74.18 KB
@sentry/core/browser61.62 KB
@sentry/node-core60.28 KB
@sentry/node127.37 KB
@sentry/node - without tracing72.37 KB
@sentry/aws-serverless84.26 KB
@sentry/cloudflare (withSentry) - minified169.62 KB
@sentry/cloudflare (withSentry)423.68 KB

Fetched June 9, 2026