From 8e8ecfb8a3912c6629a7d0a926f92016a7d44332 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 26 Feb 2026 11:16:24 +0100
Subject: [PATCH] Bump @sentry/react from 10.27.0 to 10.40.0 (#18252)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript)
from 10.27.0 to 10.40.0.
Release notes
Sourced from @sentry/react'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/react'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
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
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 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)
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
yarn.lock | 80 ++++++++++++++++++++++++++++++-------------------------
1 file changed, 43 insertions(+), 37 deletions(-)
diff --git a/yarn.lock b/yarn.lock
index e699469b1b..84d61a1493 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -20027,21 +20027,21 @@ __metadata:
languageName: node
linkType: hard
-"@sentry-internal/browser-utils@npm:10.27.0":
- version: 10.27.0
- resolution: "@sentry-internal/browser-utils@npm:10.27.0"
+"@sentry-internal/browser-utils@npm:10.40.0":
+ version: 10.40.0
+ resolution: "@sentry-internal/browser-utils@npm:10.40.0"
dependencies:
- "@sentry/core": "npm:10.27.0"
- checksum: 10c0/9b6760be5829ee8a16aa85b7b3c01c9ee3372008c4efa3b15f97596abd3f8a1f5f6fa0545734f3dffa4c210948c7c069b69911aa86193734060b332adf6404e5
+ "@sentry/core": "npm:10.40.0"
+ checksum: 10c0/9801776fad1c7e9690823588d978631dad4e66fd5e8eab934e9e508306e7d6d149982d6270e00687d62c96255dabb930871f841f7674ab273ead19c1b38bb700
languageName: node
linkType: hard
-"@sentry-internal/feedback@npm:10.27.0":
- version: 10.27.0
- resolution: "@sentry-internal/feedback@npm:10.27.0"
+"@sentry-internal/feedback@npm:10.40.0":
+ version: 10.40.0
+ resolution: "@sentry-internal/feedback@npm:10.40.0"
dependencies:
- "@sentry/core": "npm:10.27.0"
- checksum: 10c0/7fb6050c79db849943f3015aad6238a97de6154aef60d8762f3f839daf7c8fa0bea4e72764ecac4367bc87c7a6f89200a11c47043013d866cba4d9bedb2ca618
+ "@sentry/core": "npm:10.40.0"
+ checksum: 10c0/8694d99adef186c6e93c9b48638391cefbf3a6414ef9ad5bd250740fbc69685b0fb6362734446ee5473b3f82177b4ae72c228ee9dc6f5b07bd423c8eaf8419db
languageName: node
linkType: hard
@@ -20056,36 +20056,36 @@ __metadata:
languageName: node
linkType: hard
-"@sentry-internal/replay-canvas@npm:10.27.0":
- version: 10.27.0
- resolution: "@sentry-internal/replay-canvas@npm:10.27.0"
+"@sentry-internal/replay-canvas@npm:10.40.0":
+ version: 10.40.0
+ resolution: "@sentry-internal/replay-canvas@npm:10.40.0"
dependencies:
- "@sentry-internal/replay": "npm:10.27.0"
- "@sentry/core": "npm:10.27.0"
- checksum: 10c0/85c4d1f8fc010ae4107a7b5f00878e50d694782f7c2689d0604cff2c8be0089f6c0b791c54b4964515f20f292e791fcece0da16f1731992754e6d92bb5f66314
+ "@sentry-internal/replay": "npm:10.40.0"
+ "@sentry/core": "npm:10.40.0"
+ checksum: 10c0/c1f359945eb1dfdbe37053b67a25cd2f241cd6370b24679bc32512e14af4dc3bd92c9663dbca5e66e206f7633dcb1bf521d989ef8f25e7faa998a3ee84ba1c46
languageName: node
linkType: hard
-"@sentry-internal/replay@npm:10.27.0":
- version: 10.27.0
- resolution: "@sentry-internal/replay@npm:10.27.0"
+"@sentry-internal/replay@npm:10.40.0":
+ version: 10.40.0
+ resolution: "@sentry-internal/replay@npm:10.40.0"
dependencies:
- "@sentry-internal/browser-utils": "npm:10.27.0"
- "@sentry/core": "npm:10.27.0"
- checksum: 10c0/161a78f6f26320266f33546f8697f7e2a9e1abd9157dee7562e6755cc48b04a97b36eab0d04c9ac7d52359125f8125fb91a40eff8137065b33161eaeaa24d981
+ "@sentry-internal/browser-utils": "npm:10.40.0"
+ "@sentry/core": "npm:10.40.0"
+ checksum: 10c0/ce7bf12b12360caabccfe60cc0bc6c96cef151a2897fb2d2fa645d845ff812457df72cd8d16bd167ae5ccdf9a8932905be435f2b473d7b0efa6c106837412fbf
languageName: node
linkType: hard
-"@sentry/browser@npm:10.27.0":
- version: 10.27.0
- resolution: "@sentry/browser@npm:10.27.0"
+"@sentry/browser@npm:10.40.0":
+ version: 10.40.0
+ resolution: "@sentry/browser@npm:10.40.0"
dependencies:
- "@sentry-internal/browser-utils": "npm:10.27.0"
- "@sentry-internal/feedback": "npm:10.27.0"
- "@sentry-internal/replay": "npm:10.27.0"
- "@sentry-internal/replay-canvas": "npm:10.27.0"
- "@sentry/core": "npm:10.27.0"
- checksum: 10c0/172847414dd243fd710368c40664cbb92fdcc4de39231cef4aa2c997c7ca5d39093dbb1c87ed35fe64a118848609e51c9250d6e81460c947ecc462045cdd7b21
+ "@sentry-internal/browser-utils": "npm:10.40.0"
+ "@sentry-internal/feedback": "npm:10.40.0"
+ "@sentry-internal/replay": "npm:10.40.0"
+ "@sentry-internal/replay-canvas": "npm:10.40.0"
+ "@sentry/core": "npm:10.40.0"
+ checksum: 10c0/4a383bf7d47640d0b5d14e39da3ebd35c88c93b048df13849eea22316f6ee44caf6221005fe87776eb9957219f50702e07f11213d405af1095acdab7fb62bbdb
languageName: node
linkType: hard
@@ -20103,6 +20103,13 @@ __metadata:
languageName: node
linkType: hard
+"@sentry/core@npm:10.40.0":
+ version: 10.40.0
+ resolution: "@sentry/core@npm:10.40.0"
+ checksum: 10c0/76dc283cda98ae854be63a1836ea77abaf2a3db88b592ae086982e89d2a9d163b5e92819cbf3005bffc459a56ca90b0f71cc908cce7c55e147606b111a4dbb8a
+ languageName: node
+ linkType: hard
+
"@sentry/core@npm:8.55.0":
version: 8.55.0
resolution: "@sentry/core@npm:8.55.0"
@@ -20298,15 +20305,14 @@ __metadata:
linkType: hard
"@sentry/react@npm:^10.27.0":
- version: 10.27.0
- resolution: "@sentry/react@npm:10.27.0"
+ version: 10.40.0
+ resolution: "@sentry/react@npm:10.40.0"
dependencies:
- "@sentry/browser": "npm:10.27.0"
- "@sentry/core": "npm:10.27.0"
- hoist-non-react-statics: "npm:^3.3.2"
+ "@sentry/browser": "npm:10.40.0"
+ "@sentry/core": "npm:10.40.0"
peerDependencies:
react: ^16.14.0 || 17.x || 18.x || 19.x
- checksum: 10c0/d6e9153ab3b0cfa94a7708149b4b9ac46832d88243a34f4e0a848e7660b3c7285ceb748f63bc0491f22b53c2b5d9f502968fd7559f0c802dd438513fc4a47093
+ checksum: 10c0/f7efc5b58d43ed96c37e0dcbfee9cc0d6cb75370d0e88d434a2cf4fdea51b8adffc9b6db8258339d7f5ba16920231ad44488933d9e15e8b8fb420aeacf83922e
languageName: node
linkType: hard