Bump @sentry/react from 10.27.0 to 10.40.0 (#18252)
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript) from 10.27.0 to 10.40.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/getsentry/sentry-javascript/releases"><code>@sentry/react</code>'s releases</a>.</em></p> <blockquote> <h2>10.40.0</h2> <h3>Important Changes</h3> <ul> <li> <p><strong>feat(tanstackstart-react): Add global sentry exception middlewares (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19330">#19330</a>)</strong></p> <p>The <code>sentryGlobalRequestMiddleware</code> and <code>sentryGlobalFunctionMiddleware</code> global middlewares capture unhandled exceptions thrown in TanStack Start API routes and server functions. Add them as the first entries in the <code>requestMiddleware</code> and <code>functionMiddleware</code> arrays of <code>createStart()</code>:</p> <pre lang="ts"><code>import { createStart } from '@tanstack/react-start/server'; import { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from '@sentry/tanstackstart-react'; <p>export default createStart({ requestMiddleware: [sentryGlobalRequestMiddleware, myRequestMiddleware], functionMiddleware: [sentryGlobalFunctionMiddleware, myFunctionMiddleware], }); </code></pre></p> </li> <li> <p><strong>feat(tanstackstart-react)!: Export Vite plugin from <code>@sentry/tanstackstart-react/vite</code> subpath (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19182">#19182</a>)</strong></p> <p>The <code>sentryTanstackStart</code> Vite plugin is now exported from a dedicated subpath. Update your import:</p> <pre lang="diff"><code>- import { sentryTanstackStart } from '@sentry/tanstackstart-react'; + import { sentryTanstackStart } from '@sentry/tanstackstart-react/vite'; </code></pre> </li> <li> <p><strong>fix(node-core): Reduce bundle size by removing apm-js-collab and requiring pino >= 9.10 (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/18631">#18631</a>)</strong></p> <p>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.</p> </li> <li> <p><strong>fix(browser): Ensure user id is consistently added to sessions (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19341">#19341</a>)</strong></p> <p>Previously, the SDK inconsistently set the user id on sessions, meaning sessions were often lacking proper coupling to the user set for example via <code>Sentry.setUser()</code>. 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!</p> <p>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 <code>'page'</code> 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 <a href="https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/browsersession/">docs</a> to learn more!</p> </li> <li> <p><strong>ref!(gatsby): Drop Gatsby v2 support (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19467">#19467</a>)</strong></p> <p>We drop support for Gatsby v2 (which still relies on webpack 4) for a critical security update in <a href="https://github.com/getsentry/sentry-javascript-bundler-plugins/releases/tag/5.0.0">https://github.com/getsentry/sentry-javascript-bundler-plugins/releases/tag/5.0.0</a></p> </li> </ul> <h3>Other Changes</h3> <ul> <li>feat(astro): Add support for Astro on CF Workers (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19265">#19265</a>)</li> <li>feat(cloudflare): Instrument async KV API (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19404">#19404</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md"><code>@sentry/react</code>'s changelog</a>.</em></p> <blockquote> <h2>10.40.0</h2> <h3>Important Changes</h3> <ul> <li> <p><strong>feat(tanstackstart-react): Add global sentry exception middlewares (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19330">#19330</a>)</strong></p> <p>The <code>sentryGlobalRequestMiddleware</code> and <code>sentryGlobalFunctionMiddleware</code> global middlewares capture unhandled exceptions thrown in TanStack Start API routes and server functions. Add them as the first entries in the <code>requestMiddleware</code> and <code>functionMiddleware</code> arrays of <code>createStart()</code>:</p> <pre lang="ts"><code>import { createStart } from '@tanstack/react-start/server'; import { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from '@sentry/tanstackstart-react/server'; <p>export default createStart({ requestMiddleware: [sentryGlobalRequestMiddleware, myRequestMiddleware], functionMiddleware: [sentryGlobalFunctionMiddleware, myFunctionMiddleware], }); </code></pre></p> </li> <li> <p><strong>feat(tanstackstart-react)!: Export Vite plugin from <code>@sentry/tanstackstart-react/vite</code> subpath (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19182">#19182</a>)</strong></p> <p>The <code>sentryTanstackStart</code> Vite plugin is now exported from a dedicated subpath. Update your import:</p> <pre lang="diff"><code>- import { sentryTanstackStart } from '@sentry/tanstackstart-react'; + import { sentryTanstackStart } from '@sentry/tanstackstart-react/vite'; </code></pre> </li> <li> <p><strong>fix(node-core): Reduce bundle size by removing apm-js-collab and requiring pino >= 9.10 (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/18631">#18631</a>)</strong></p> <p>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.</p> </li> <li> <p><strong>fix(browser): Ensure user id is consistently added to sessions (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19341">#19341</a>)</strong></p> <p>Previously, the SDK inconsistently set the user id on sessions, meaning sessions were often lacking proper coupling to the user set for example via <code>Sentry.setUser()</code>. 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!</p> <p>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 <code>'page'</code> 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 <a href="https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/browsersession/">docs</a> to learn more!</p> </li> <li> <p><strong>ref!(gatsby): Drop Gatsby v2 support (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19467">#19467</a>)</strong></p> <p>We drop support for Gatsby v2 (which still relies on webpack 4) for a critical security update in <a href="https://github.com/getsentry/sentry-javascript-bundler-plugins/releases/tag/5.0.0">https://github.com/getsentry/sentry-javascript-bundler-plugins/releases/tag/5.0.0</a></p> </li> </ul> <h3>Other Changes</h3> <ul> <li>feat(astro): Add support for Astro on CF Workers (<a href="https://redirect.github.com/getsentry/sentry-javascript/pull/19265">#19265</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/getsentry/sentry-javascript/commit/663fd5e7e3c1808d4a636f001d768845f167668e"><code>663fd5e</code></a> Increase bundler-tests timeout to 30s</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/8033ea380f0526cc863c6d50347fd5747ae5df32"><code>8033ea3</code></a> release: 10.40.0</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/eb3c4d2489a77753377f7e3a320f18cd853ebf6a"><code>eb3c4d2</code></a> Merge pull request <a href="https://redirect.github.com/getsentry/sentry-javascript/issues/19488">#19488</a> from getsentry/prepare-release/10.40.0</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/9a10630c6b7524d053b96cfaafa14751b0611f33"><code>9a10630</code></a> meta(changelog): Update changelog for 10.40.0</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/39d1ef77849223f7742999c808f7f23da0c42adf"><code>39d1ef7</code></a> fix(deps): Bump to latest version of each minimatch major (<a href="https://redirect.github.com/getsentry/sentry-javascript/issues/19486">#19486</a>)</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/e8ed6d262f7f43cef8b04265794db83ab013f95c"><code>e8ed6d2</code></a> test(nextjs): Deactivate canary test for cf-workers (<a href="https://redirect.github.com/getsentry/sentry-javascript/issues/19483">#19483</a>)</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/6eb320eb3e01985720238c8f08e3ac114502059b"><code>6eb320e</code></a> chore(deps): Bump Sentry CLI to latest v2 (<a href="https://redirect.github.com/getsentry/sentry-javascript/issues/19477">#19477</a>)</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/8fc81d2cd4048fb41b49e773d4829d9fb799f16c"><code>8fc81d2</code></a> fix: Bump bundler plugins to v5 (<a href="https://redirect.github.com/getsentry/sentry-javascript/issues/19468">#19468</a>)</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/365f7fab4e33d69363d4eb6d99e5f87e48672fba"><code>365f7fa</code></a> chore(ci): Adapt max turns of triage issue agent (<a href="https://redirect.github.com/getsentry/sentry-javascript/issues/19473">#19473</a>)</li> <li><a href="https://github.com/getsentry/sentry-javascript/commit/11e5412d42f6126e5415d67d1418ffdb17f5caa6"><code>11e5412</code></a> feat(tanstackstart-react)!: Export Vite plugin from <code>@sentry/tanstackstart-rea</code>...</li> <li>Additional commits viewable in <a href="https://github.com/getsentry/sentry-javascript/compare/10.27.0...10.40.0">compare view</a></li> </ul> </details> <br /> [](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) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user