Packages

@sentry/node

11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed

Your version

10.57.0

9 Jun 2026Where it was published

10.77.1 is the newest release of 10.x.

In short

1 deprecated6 new8 fixed15 internal

  • deprecated

    core: Deprecate sendDefaultPii in favor of dataCollection

Release note

Important Changes

  • angular: Add support for Angular 22

    @sentry/angular now officially supports Angular 22.

  • deprecated

    core: Deprecate sendDefaultPii in favor of dataCollection

    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

  • Use dataCollection.frameContextLines for ContextLines integration

  • cloudflare: Auto instrument D1 based on env

  • core: Change default of dataCollection.userInfo to true

  • core: Default dataCollection.httpBodies to all valid body types

  • hono: Filter noisy transactions (favicon etc)

  • cloudflare: Don't track negatively sampled spans

  • core: Use safeDateNow calls for new Date() reads

  • nextjs: Shim pinoIntegration on edge runtime

  • node: Prevent PostgresJs integration from emitting duplicate spans per query

  • node-core: Read __SENTRY_SERVER_MODULES__ lazily so Turbopack injection is honored

  • react: Detect React Router v6/v7 navigations in a layout effect to propagate the correct trace

  • react: Remove unused react.componentStack event context

  • replays: Record sentry._internal.replay_is_buffering for spans

Internal Changes

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