Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @sentry/nextjs from 7.119.0 to 8.23.0 #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

snyk-io[bot]
Copy link

@snyk-io snyk-io bot commented Aug 26, 2024

snyk-top-banner

Snyk has created this PR to upgrade @sentry/nextjs from 7.119.0 to 8.23.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 43 versions ahead of your current version.

  • The recommended version was released on 21 days ago.

Release notes
Package name: @sentry/nextjs
  • 8.23.0 - 2024-08-05

    Important Changes

    • feat(cloudflare): Add Cloudflare D1 instrumentation (#13142)

    This release includes support for Cloudflare D1, Cloudflare's serverless SQL database. To instrument your Cloudflare D1
    database, use the instrumentD1WithSentry method as follows:

    // env.DB is the D1 DB binding configured in your `wrangler.toml`
    const db = instrumentD1WithSentry(env.DB);
    // Now you can use the database as usual
    await db.prepare('SELECT * FROM table WHERE id = ?').bind(1).run();

    Other Changes

    • feat(cloudflare): Allow users to pass handler to sentryPagesPlugin (#13192)
    • feat(cloudflare): Instrument scheduled handler (#13114)
    • feat(core): Add getTraceData function (#13134)
    • feat(nestjs): Automatic instrumentation of nestjs interceptors before route execution (#13153)
    • feat(nestjs): Automatic instrumentation of nestjs pipes (#13137)
    • feat(nuxt): Filter out Nuxt build assets (#13148)
    • feat(profiling): Attach sdk info to chunks (#13145)
    • feat(solidstart): Add sentry onBeforeResponse middleware to enable distributed tracing (#13221)
    • feat(solidstart): Filter out low quality transactions for build assets (#13222)
    • fix(browser): Avoid showing browser extension error message in non-window global scopes (#13156)
    • fix(feedback): Call dialog.close() in dialog close callbacks in \_loadAndRenderDialog (#13203)
    • fix(nestjs): Inline Observable type to resolve missing 'rxjs' dependency (#13166)
    • fix(nuxt): Detect pageload by adding flag in Vue router (#13171)
    • fix(utils): Handle when requests get aborted in fetch instrumentation (#13202)
    • ref(browser): Improve browserMetrics collection (#13062)

    Work in this release was contributed by @ horochx. Thank you for your contribution!

  • 8.22.0 - 2024-08-01

    Important Changes

    • feat(cloudflare): Add plugin for cloudflare pages (#13123)

    This release adds support for Cloudflare Pages to @ sentry/cloudflare, our SDK for the
    Cloudflare Workers JavaScript Runtime! For details on how to use it,
    please see the README. Any feedback/bug reports are greatly appreciated, please
    reach out on GitHub.

    // functions/_middleware.js
    import * as Sentry from '@ sentry/cloudflare';

    export const onRequest = Sentry.sentryPagesPlugin({
    dsn: PUBLIC_DSN,
    // Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
    tracesSampleRate: 1.0,
    });

    Other Changes

    • feat(meta-sdks): Remove runtime tags (#13105)
    • feat(nestjs): Automatic instrumentation of nestjs guards (#13129)
    • feat(nestjs): Filter all HttpExceptions (#13120)
    • feat(replay): Capture exception when internal_sdk_error client report happens (#13072)
    • fix: Use globalThis for code injection (#13132)

    Bundle size 📦

    Path Size
    @ sentry/browser 22.45 KB
    @ sentry/browser (incl. Tracing) 34.22 KB
    @ sentry/browser (incl. Tracing, Replay) 70.28 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.62 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 74.68 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 87.26 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 89.11 KB
    @ sentry/browser (incl. metrics) 26.75 KB
    @ sentry/browser (incl. Feedback) 39.37 KB
    @ sentry/browser (incl. sendFeedback) 27.06 KB
    @ sentry/browser (incl. FeedbackAsync) 31.7 KB
    @ sentry/react 25.22 KB
    @ sentry/react (incl. Tracing) 37.22 KB
    @ sentry/vue 26.6 KB
    @ sentry/vue (incl. Tracing) 36.06 KB
    @ sentry/svelte 22.58 KB
    CDN Bundle 23.64 KB
    CDN Bundle (incl. Tracing) 35.88 KB
    CDN Bundle (incl. Tracing, Replay) 70.31 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 75.57 KB
    CDN Bundle - uncompressed 69.37 KB
    CDN Bundle (incl. Tracing) - uncompressed 106.31 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 218.16 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 230.99 KB
    @ sentry/nextjs (client) 37.07 KB
    @ sentry/sveltekit (client) 34.79 KB
    @ sentry/node 114.65 KB
    @ sentry/node - without tracing 89.33 KB
    @ sentry/aws-serverless 98.5 KB
  • 8.21.0 - 2024-07-31

    Important Changes

    • Alpha release of Official Cloudflare SDK
      • feat(cloudflare): Add withSentry method (#13025)
      • feat(cloudflare): Add cloudflare sdk scaffolding (#12953)
      • feat(cloudflare): Add basic cloudflare package and tests (#12861)

    This release contains the alpha version of @ sentry/cloudflare, our SDK for the
    Cloudflare Workers JavaScript Runtime! For details on how to use it,
    please see the README. Any feedback/bug reports are greatly appreciated, please
    reach out on GitHub.

    Please note that only Cloudflare Workers are tested and supported - official Cloudflare Pages support will come in an
    upcoming release.

    Other Changes

    • feat(feedback): Make cropped screenshot area draggable (#13071)
    • feat(core): Adapt spans for client-side fetch to streaming responses (#12723)
    • feat(core): Capture # of dropped spans through beforeSendTransaction (#13022)
    • feat(deps): bump @ opentelemetry/instrumentation-aws-sdk from 0.43.0 to 0.43.1 (#13089)
    • feat(deps): bump @ opentelemetry/instrumentation-express from 0.41.0 to 0.41.1 (#13090)
    • feat(nestjs): Automatic instrumentation of nestjs middleware (#13065)
    • feat(node): Upgrade import-in-the-middle to 1.11.0 (#13107)
    • feat(nuxt): Add connected tracing meta tags (#13098)
    • feat(nuxt): Add vue-router instrumentation (#13054)
    • feat(solidstart): Add server action instrumentation helper (#13035)
    • fix(feedback): Ensure pluggable feedback CDN bundle is correctly built (#13081)
    • fix(nextjs): Only delete clientside bundle source maps with sourcemaps.deleteFilesAfterUpload (#13102)
    • fix(node): Improve OTEL validation logic (#13079)

    Bundle size 📦

    Path Size
    @ sentry/browser 22.45 KB
    @ sentry/browser (incl. Tracing) 34.22 KB
    @ sentry/browser (incl. Tracing, Replay) 70.26 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.59 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 74.66 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 87.24 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 89.08 KB
    @ sentry/browser (incl. metrics) 26.75 KB
    @ sentry/browser (incl. Feedback) 39.37 KB
    @ sentry/browser (incl. sendFeedback) 27.06 KB
    @ sentry/browser (incl. FeedbackAsync) 31.7 KB
    @ sentry/react 25.22 KB
    @ sentry/react (incl. Tracing) 37.22 KB
    @ sentry/vue 26.6 KB
    @ sentry/vue (incl. Tracing) 36.06 KB
    @ sentry/svelte 22.58 KB
    CDN Bundle 23.64 KB
    CDN Bundle (incl. Tracing) 35.88 KB
    CDN Bundle (incl. Tracing, Replay) 70.27 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 75.53 KB
    CDN Bundle - uncompressed 69.37 KB
    CDN Bundle (incl. Tracing) - uncompressed 106.31 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 217.95 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 230.78 KB
    @ sentry/nextjs (client) 37.08 KB
    @ sentry/sveltekit (client) 34.81 KB
    @ sentry/node 114.55 KB
    @ sentry/node - without tracing 89.33 KB
    @ sentry/aws-serverless 98.5 KB
  • 8.20.0 - 2024-07-24

    Important Changes

    • feat(node): Allow to pass registerEsmLoaderHooks to preload (#12998)

    You can write your own custom preload script and configure this in the preload options. registerEsmLoaderHooks can be
    passed as an option to preloadOpenTelemetry, which allows to exclude/include packages in the preload.

    • fix(node): Do not emit fetch spans when tracing is disabled (#13003)

    Sentry will not emit "fetch" spans if tracing is disabled. This is relevant for user who use their own sampler.

    Other Changes

    • feat(feedback): Trigger button aria label configuration (#13008)
    • feat(nestjs): Change nest sdk setup (#12920)
    • feat(node): Extend ESM hooks options for iitm v1.10.0 (#13016)
    • feat(node): Send client reports (#12951)
    • feat(nuxt): Automatically add BrowserTracing (#13005)
    • feat(nuxt): Setup source maps with vite config (#13018)
    • feat(replay): Improve public Replay APIs (#13000)

    Bundle size 📦

    Path Size
    @ sentry/browser 22.31 KB
    @ sentry/browser (incl. Tracing) 33.72 KB
    @ sentry/browser (incl. Tracing, Replay) 69.82 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.16 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 74.21 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 86.58 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 88.45 KB
    @ sentry/browser (incl. metrics) 26.62 KB
    @ sentry/browser (incl. Feedback) 39.02 KB
    @ sentry/browser (incl. sendFeedback) 26.93 KB
    @ sentry/browser (incl. FeedbackAsync) 31.57 KB
    @ sentry/react 25.08 KB
    @ sentry/react (incl. Tracing) 36.8 KB
    @ sentry/vue 26.45 KB
    @ sentry/vue (incl. Tracing) 35.61 KB
    @ sentry/svelte 22.44 KB
    CDN Bundle 23.52 KB
    CDN Bundle (incl. Tracing) 35.5 KB
    CDN Bundle (incl. Tracing, Replay) 69.86 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 75.15 KB
    CDN Bundle - uncompressed 69 KB
    CDN Bundle (incl. Tracing) - uncompressed 105.1 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 216.74 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 229.57 KB
    @ sentry/nextjs (client) 36.66 KB
    @ sentry/sveltekit (client) 34.39 KB
    @ sentry/node 111.76 KB
    @ sentry/node - without tracing 89.21 KB
    @ sentry/aws-serverless 98.34 KB
  • 8.19.0 - 2024-07-19
    • feat(core): Align Span interface with OTEL (#12898)
    • feat(express): Allow to pass options to setupExpressErrorHandler (#12952)
    • feat(node): Add request parameter to httpIntegration ignore callbacks (#12930)
    • feat(vercel-edge): Add dedupe as default integration (#12957)
    • fix(angular): Remove afterSendEvent listener once root injector is destroyed (#12786)
    • fix(browser): Fix bug causing unintentional dropping of transactions (#12933)
    • fix(feedback): Add a missing call of Actor.appendToDom method when DOMContentLoaded event is triggered (#12973)
    • fix(node): Pass inferred name & attributes to tracesSampler (#12945)

    Work in this release was contributed by @ jaspreet57 and @ arturovt. Thank you for your contribution!

    Bundle size 📦

    Path Size
    @ sentry/browser 22.3 KB
    @ sentry/browser (incl. Tracing) 33.72 KB
    @ sentry/browser (incl. Tracing, Replay) 69.81 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.11 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 74.2 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 86.52 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 88.39 KB
    @ sentry/browser (incl. metrics) 26.62 KB
    @ sentry/browser (incl. Feedback) 38.98 KB
    @ sentry/browser (incl. sendFeedback) 26.93 KB
    @ sentry/browser (incl. FeedbackAsync) 31.54 KB
    @ sentry/react 25.07 KB
    @ sentry/react (incl. Tracing) 36.79 KB
    @ sentry/vue 26.44 KB
    @ sentry/vue (incl. Tracing) 35.6 KB
    @ sentry/svelte 22.44 KB
    CDN Bundle 23.52 KB
    CDN Bundle (incl. Tracing) 35.5 KB
    CDN Bundle (incl. Tracing, Replay) 69.91 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 75.17 KB
    CDN Bundle - uncompressed 69 KB
    CDN Bundle (incl. Tracing) - uncompressed 105.1 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 216.88 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 229.6 KB
    @ sentry/nextjs (client) 36.65 KB
    @ sentry/sveltekit (client) 34.37 KB
    @ sentry/node 111.29 KB
    @ sentry/node - without tracing 88.71 KB
    @ sentry/aws-serverless 97.88 KB
  • 8.18.0 - 2024-07-16

    Important Changes

    • ref: Deprecate enableTracing (12897)

    The enableTracing option has been deprecated and will be removed in the next major version. We recommend removing it
    in favor of the tracesSampleRate and tracesSampler options. If you want to enable performance monitoring, please set
    the tracesSampleRate to a sample rate of your choice, or provide a sampling function as tracesSampler option
    instead. If you want to disable performance monitoring, remove the tracesSampler and tracesSampleRate options.

    Other Changes

    • feat(node): Expose exclude and include options for ESM loader (#12910)
    • feat(browser): Add user agent to INP standalone span attributes (#12896)
    • feat(nextjs): Add experimental_captureRequestError for onRequestError hook (#12885)
    • feat(replay): Bump rrweb to 2.25.0 (#12478)
    • feat(tracing): Add long animation frame tracing (#12646)
    • fix: Cleanup hooks when they are not used anymore (#12852)
    • fix(angular): Guard ErrorEvent check in ErrorHandler to avoid throwing in Node environments (#12892)
    • fix(inp): Ensure INP spans have correct transaction (#12871)
    • fix(nestjs): Do not make SentryTraced() decorated functions async (#12879)
    • fix(nextjs): Support automatic instrumentation for app directory with custom page extensions (#12858)
    • fix(node): Ensure correct URL is passed to ignoreIncomingRequests callback (#12929)
    • fix(otel): Do not add otel.kind: INTERNAL attribute (#12841)
    • fix(solidstart): Set proper sentry origin for solid router integration when used in solidstart sdk (#12919)
    • fix(sveltekit): Add Vite peer dep for proper type resolution (#12926)
    • fix(tracing): Ensure you can pass null as parentSpan in startSpan* (#12928)
    • ref(core): Small bundle size improvement (#12830)

    Work in this release was contributed by @ GitSquared, @ ziyadkhalil and @ mcous. Thank you for your contributions!

    Bundle size 📦

    Path Size
    @ sentry/browser 22.3 KB
    @ sentry/browser (incl. Tracing) 33.69 KB
    @ sentry/browser (incl. Tracing, Replay) 69.77 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.08 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 74.17 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 86.49 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 88.36 KB
    @ sentry/browser (incl. metrics) 26.59 KB
    @ sentry/browser (incl. Feedback) 38.98 KB
    @ sentry/browser (incl. sendFeedback) 26.93 KB
    @ sentry/browser (incl. FeedbackAsync) 31.54 KB
    @ sentry/react 25.06 KB
    @ sentry/react (incl. Tracing) 36.75 KB
    @ sentry/vue 26.41 KB
    @ sentry/vue (incl. Tracing) 35.57 KB
    @ sentry/svelte 22.44 KB
    CDN Bundle 23.52 KB
    CDN Bundle (incl. Tracing) 35.47 KB
    CDN Bundle (incl. Tracing, Replay) 69.87 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 75.14 KB
    CDN Bundle - uncompressed 69 KB
    CDN Bundle (incl. Tracing) - uncompressed 104.93 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 216.71 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 229.43 KB
    @ sentry/nextjs (client) 36.61 KB
    @ sentry/sveltekit (client) 34.34 KB
    @ sentry/node 130.83 KB
    @ sentry/node - without tracing 91.91 KB
    @ sentry/aws-serverless 117.08 KB
  • 8.17.0 - 2024-07-10
  • 8.16.0 - 2024-07-09
  • 8.15.0 - 2024-07-05
  • 8.14.0 - 2024-07-04
  • 8.13.0 - 2024-06-27
  • 8.12.0 - 2024-06-25
  • 8.12.0-beta.0 - 2024-06-24
  • 8.11.0 - 2024-06-21
  • 8.10.0 - 2024-06-19
  • 8.9.2 - 2024-06-12
  • 8.9.1 - 2024-06-11
  • 8.8.0 - 2024-06-07
  • 8.7.0 - 2024-05-29
  • 8.6.0 - 2024-05-29
  • 8.5.0 - 2024-05-27
  • 8.4.0 - 2024-05-23
  • 8.3.0 - 2024-05-22
  • 8.2.1 - 2024-05-16
  • 8.2.0 - 2024-05-16
  • 8.1.0 - 2024-05-16
  • 8.0.0 - 2024-05-13
  • 8.0.0-rc.3 - 2024-05-10
  • 8.0.0-rc.2 - 2024-05-08
  • 8.0.0-rc.1 - 2024-05-07
  • 8.0.0-rc.0 - 2024-05-06
  • 8.0.0-beta.6 - 2024-05-03
  • 8.0.0-beta.5 - 2024-04-30
  • 8.0.0-beta.4 - 2024-04-24
  • 8.0.0-beta.3 - 2024-04-19
  • 8.0.0-beta.2 - 2024-04-17
  • 8.0.0-beta.1 - 2024-04-15
  • 8.0.0-alpha.9 - 2024-04-08
  • 8.0.0-alpha.8 - 2024-04-08
  • 8.0.0-alpha.7 - 2024-03-27
  • 8.0.0-alpha.5 - 2024-03-22
  • 8.0.0-alpha.4 - 2024-03-14
  • 8.0.0-alpha.2 - 2024-03-05
  • 7.119.0 - 2024-08-14
    • backport(tracing): Report dropped spans for transactions (#13343)

    Bundle size 📦

    Path Size
    @ sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 80.96 KB
    @ sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 71.89 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 76.14 KB
    @ sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 65.52 KB
    @ sentry/browser (incl. Tracing) - Webpack (gzipped) 35.77 KB
    @ sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 35.66 KB
    @ sentry/browser (incl. Feedback) - Webpack (gzipped) 31.71 KB
    @ sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.72 KB
    @ sentry/browser - Webpack (gzipped) 22.91 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 79.17 KB
    @ sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 70.49 KB
    @ sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 36.17 KB
    @ sentry/browser - ES6 CDN Bundle (gzipped) 25.41 KB
    @ sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 221.92 KB
    @ sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 109.52 KB
    @ sentry/browser - ES6 CDN Bundle (minified & uncompressed) 76.24 KB
    @ sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 39.45 KB
    @ sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 72.4 KB
    @ sentry/react - Webpack (gzipped) 22.94 KB
    @ sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 90.16 KB
    @ sentry/nextjs Client - Webpack (gzipped) 54.27 KB
    @ sentry-internal/feedback - Webpack (gzipped) 17.34 KB
from @sentry/nextjs GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade @sentry/nextjs from 7.119.0 to 8.23.0.

See this package in npm:
@sentry/nextjs

See this project in Snyk:
https://app.snyk.io/org/cachiman/project/25d192c2-84a2-407e-94c5-f75f252ba008?utm_source=github-cloud-app&utm_medium=referral&page=upgrade-pr
Copy link

google-cla bot commented Aug 26, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants