Skip to content

chore(deps): bump @sentry/nextjs from 10.39.0 to 10.40.0#2858

Open
dependabot[bot] wants to merge 1 commit intoalphafrom
dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0
Open

chore(deps): bump @sentry/nextjs from 10.39.0 to 10.40.0#2858
dependabot[bot] wants to merge 1 commit intoalphafrom
dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Mar 2, 2026

Bumps @sentry/nextjs from 10.39.0 to 10.40.0.

Release notes

Sourced from @​sentry/nextjs's releases.

10.40.0

Important Changes

  • feat(tanstackstart-react): Add global sentry exception middlewares (#19330)

    The sentryGlobalRequestMiddleware and sentryGlobalFunctionMiddleware global middlewares capture unhandled exceptions thrown in TanStack Start API routes and server functions. Add them as the first entries in the requestMiddleware and functionMiddleware arrays of createStart():

    import { createStart } from '@tanstack/react-start/server';
    import { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from '@sentry/tanstackstart-react';
    export default createStart({
    requestMiddleware: [sentryGlobalRequestMiddleware, myRequestMiddleware],
    functionMiddleware: [sentryGlobalFunctionMiddleware, myFunctionMiddleware],
    });

  • feat(tanstackstart-react)!: Export Vite plugin from @sentry/tanstackstart-react/vite subpath (#19182)

    The sentryTanstackStart Vite plugin is now exported from a dedicated subpath. Update your import:

    - import { sentryTanstackStart } from '@sentry/tanstackstart-react';
    + import { sentryTanstackStart } from '@sentry/tanstackstart-react/vite';
  • fix(node-core): Reduce bundle size by removing apm-js-collab and requiring pino >= 9.10 (#18631)

    In order to keep receiving pino logs, you need to update your pino version to >= 9.10, the reason for the support bump is to reduce the bundle size of the node-core SDK in frameworks that cannot tree-shake the apm-js-collab dependency.

  • fix(browser): Ensure user id is consistently added to sessions (#19341)

    Previously, the SDK inconsistently set the user id on sessions, meaning sessions were often lacking proper coupling to the user set for example via Sentry.setUser(). Additionally, the SDK incorrectly skipped starting a new session for the first soft navigation after the pageload. This patch fixes these issues. As a result, metrics around sessions, like "Crash Free Sessions" or "Crash Free Users" might change. This could also trigger alerts, depending on your set thresholds and conditions. We apologize for any inconvenience caused!

    While we're at it, if you're using Sentry in a Single Page App or meta framework, you might want to give the new 'page' session lifecycle a try! This new mode no longer creates a session per soft navigation but continues the initial session until the next hard page refresh. Check out the docs to learn more!

  • ref!(gatsby): Drop Gatsby v2 support (#19467)

    We drop support for Gatsby v2 (which still relies on webpack 4) for a critical security update in https://github.com/getsentry/sentry-javascript-bundler-plugins/releases/tag/5.0.0

Other Changes

  • feat(astro): Add support for Astro on CF Workers (#19265)
  • feat(cloudflare): Instrument async KV API (#19404)

... (truncated)

Changelog

Sourced from @​sentry/nextjs's changelog.

10.40.0

Important Changes

  • feat(tanstackstart-react): Add global sentry exception middlewares (#19330)

    The sentryGlobalRequestMiddleware and sentryGlobalFunctionMiddleware global middlewares capture unhandled exceptions thrown in TanStack Start API routes and server functions. Add them as the first entries in the requestMiddleware and functionMiddleware arrays of createStart():

    import { createStart } from '@tanstack/react-start/server';
    import { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from '@sentry/tanstackstart-react/server';
    export default createStart({
    requestMiddleware: [sentryGlobalRequestMiddleware, myRequestMiddleware],
    functionMiddleware: [sentryGlobalFunctionMiddleware, myFunctionMiddleware],
    });

  • feat(tanstackstart-react)!: Export Vite plugin from @sentry/tanstackstart-react/vite subpath (#19182)

    The sentryTanstackStart Vite plugin is now exported from a dedicated subpath. Update your import:

    - import { sentryTanstackStart } from '@sentry/tanstackstart-react';
    + import { sentryTanstackStart } from '@sentry/tanstackstart-react/vite';
  • fix(node-core): Reduce bundle size by removing apm-js-collab and requiring pino >= 9.10 (#18631)

    In order to keep receiving pino logs, you need to update your pino version to >= 9.10, the reason for the support bump is to reduce the bundle size of the node-core SDK in frameworks that cannot tree-shake the apm-js-collab dependency.

  • fix(browser): Ensure user id is consistently added to sessions (#19341)

    Previously, the SDK inconsistently set the user id on sessions, meaning sessions were often lacking proper coupling to the user set for example via Sentry.setUser(). Additionally, the SDK incorrectly skipped starting a new session for the first soft navigation after the pageload. This patch fixes these issues. As a result, metrics around sessions, like "Crash Free Sessions" or "Crash Free Users" might change. This could also trigger alerts, depending on your set thresholds and conditions. We apologize for any inconvenience caused!

    While we're at it, if you're using Sentry in a Single Page App or meta framework, you might want to give the new 'page' session lifecycle a try! This new mode no longer creates a session per soft navigation but continues the initial session until the next hard page refresh. Check out the docs to learn more!

  • ref!(gatsby): Drop Gatsby v2 support (#19467)

    We drop support for Gatsby v2 (which still relies on webpack 4) for a critical security update in https://github.com/getsentry/sentry-javascript-bundler-plugins/releases/tag/5.0.0

Other Changes

  • feat(astro): Add support for Astro on CF Workers (#19265)

... (truncated)

Commits
  • 663fd5e Increase bundler-tests timeout to 30s
  • 8033ea3 release: 10.40.0
  • eb3c4d2 Merge pull request #19488 from getsentry/prepare-release/10.40.0
  • 9a10630 meta(changelog): Update changelog for 10.40.0
  • 39d1ef7 fix(deps): Bump to latest version of each minimatch major (#19486)
  • e8ed6d2 test(nextjs): Deactivate canary test for cf-workers (#19483)
  • 6eb320e chore(deps): Bump Sentry CLI to latest v2 (#19477)
  • 8fc81d2 fix: Bump bundler plugins to v5 (#19468)
  • 365f7fa chore(ci): Adapt max turns of triage issue agent (#19473)
  • 11e5412 feat(tanstackstart-react)!: Export Vite plugin from @​sentry/tanstackstart-rea...
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Mar 2, 2026

Labels

The following labels could not be found: bot. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Mar 2, 2026
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Mar 2, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​sentry/​nextjs@​10.39.0 ⏵ 10.46.093 -110091 +196 +1100

View full report

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from 272c8e8 to 4b75904 Compare March 3, 2026 11:51
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from 4b75904 to eb5b07f Compare March 9, 2026 00:05
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from eb5b07f to 484ad0d Compare March 10, 2026 10:15
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from 484ad0d to ae996b3 Compare March 16, 2026 17:00
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from ae996b3 to 097482c Compare March 17, 2026 12:14
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from 097482c to c342eff Compare March 18, 2026 17:39
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from c342eff to 7322b8c Compare March 19, 2026 14:44
@dependabot dependabot Bot requested a review from a team as a code owner March 19, 2026 14:44
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from 7322b8c to 478d8ea Compare March 24, 2026 10:21
@maxgfr maxgfr removed the request for review from a team March 24, 2026 11:20
Bumps [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) from 10.39.0 to 10.40.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@10.39.0...10.40.0)

---
updated-dependencies:
- dependency-name: "@sentry/nextjs"
  dependency-version: 10.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/alpha/sentry/nextjs-10.40.0 branch from 478d8ea to 3076ee4 Compare March 30, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants