noqcks / pull-request-size

Applies labels to Pull Requests based on the total lines of code changed.
https://github.com/marketplace/pull-request-size
MIT License
157 stars 40 forks source link

[Snyk] Upgrade @sentry/node from 7.45.0 to 7.46.0 #116

Closed snyk-bot closed 1 year ago

snyk-bot commented 1 year ago

Snyk has created this PR to upgrade @sentry/node from 7.45.0 to 7.46.0.

:information_source: 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.


Release notes
Package name: @sentry/node
  • 7.46.0 - 2023-03-30

    Important Changes

    • feat(sveltekit): Add Performance Monitoring for SvelteKit
      • feat(sveltekit): Add meta tag for backend -> frontend (#7574)
      • fix(sveltekit): Explicitly export Node SDK exports (#7644)
      • fix(sveltekit): Handle nested server calls in sentryHandle (#7598)
      • ref(sveltekit): Split up universal and server load wrappers (#7652)

    This release adds support for Performance Monitoring in our SvelteKit SDK for the client/server. We've also changed how you should initialize your SDK. Please read our updated SvelteKit README instructions for more details.

    • feat(core): Add ignoreTransactions option (#7594)

    You can now easily filter out certain transactions from being sent to Sentry based on their name.

    Sentry.init({
      ignoreTransactions: ['/api/healthcheck', '/ping'],
    })
    • feat(node): Undici integration (#7582)
      • feat(nextjs): Add Undici integration automatically (#7648)
      • feat(sveltekit): Add Undici integration by default (#7650)

    We've added an integration that automatically instruments Undici and Node server side fetch. This supports Undici v4.7.0 or higher and requires Node v16.7.0 or higher. After adding the integration outgoing requests made by Undici will have associated spans and breadcrumbs in Sentry.

    Sentry.init({
      integrations: [new Sentry.Integrations.Undici()],
    })

    In our Next.js and SvelteKit SDKs, this integration is automatically added.

    • feat(node): Add Sentry tRPC middleware (#7511)

    We've added a new middleware for trpc that automatically adds TRPC information to Sentry transactions. This middleware is meant to be used in combination with a Sentry server integration (Next.js, Express, etc).

    import { initTRPC } from '@ trpc/server';
    import * as Sentry from '@ sentry/node';
    
    const t = initTRPC.context().create();
    const sentryMiddleware = t.middleware(
      Sentry.Handlers.trpcMiddleware({
        attachRpcInput: true,
      }),
    );
    
    const sentrifiedProcedure = t.procedure.use(sentryMiddleware);
    • feat(tracing): Remove requirement for @ sentry/tracing package

    With 7.46.0 you no longer require the @ sentry/tracing package to use tracing and performance monitoring with the Sentry JavaScript SDKs. The @ sentry/tracing package will be removed in a future major release, but can still be used with no changes.

    Please see the Migration docs for more details.

    • fix(node): Convert debugging code to callbacks to fix memory leak in LocalVariables integration (#7637)

    This fixes a memory leak in the opt-in LocalVariables integration, which adds local variables to the stacktraces sent to Sentry. The minimum recommended version to use the LocalVariables is now 7.46.0.

    Additional Features and Fixes

    • feat(node): Auto discovery only returns integrations where dependency loads (#7603)
    • feat(node): Sanitize URLs in Span descriptions and breadcrumbs (PII) (#7667)
    • feat(replay): Add responseStatus, decodedBodySize to perf entries (#7613)
    • feat(replay): Add experiment to capture request/response bodies (#7589)
    • feat(replay): Capture replay mutation breadcrumbs & add experiment (#7568)
    • feat(tracing): Ensure pageload transaction starts at timeOrigin (#7632)
    • fix(core): Remove abs_path from stack trace (reverting #7167) (#7623)
    • fix(nextjs): Add loading component type to server component wrapping (#7639)
    • fix(nextjs): Don't report NEXT_NOT_FOUND and NEXT_REDIRECT errors (#7642)
    • fix(nextjs): Rewrite abs_path frames (#7619)
    • fix(nextjs): Show errors and warnings only once during build (#7651)
    • fix(nextjs): Use Next.js internal AsyncStorage (#7630)
    • fix(nextjs): Gracefully handle undefined beforeFiles in rewrites (#7649)

    Work in this release contributed by @ aldenquimby and @ bertho-zero. Thank you for your contributions!

    Bundle size 📦

    Path Size
    @ sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.62 KB
    @ sentry/browser - ES5 CDN Bundle (minified) 64.4 KB
    @ sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.15 KB
    @ sentry/browser - ES6 CDN Bundle (minified) 56.78 KB
    @ sentry/browser - Webpack (gzipped + minified) 21.53 KB
    @ sentry/browser - Webpack (minified) 72 KB
    @ sentry/react - Webpack (gzipped + minified) 21.55 KB
    @ sentry/nextjs Client - Webpack (gzipped + minified) 52.05 KB
    @ sentry/browser + @ sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.21 KB
    @ sentry/browser + @ sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.41 KB
    @ sentry/replay ES6 CDN Bundle (gzipped + minified) 44.74 KB
    @ sentry/replay - Webpack (gzipped + minified) 38.86 KB
    @ sentry/browser + @ sentry/tracing + @ sentry/replay - ES6 CDN Bundle (gzipped + minified) 63.46 KB
    @ sentry/browser + @ sentry/replay - ES6 CDN Bundle (gzipped + minified) 56.49 KB
  • 7.45.0 - 2023-03-24
    Read more
from @sentry/node GitHub release notes

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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

floe-app-tester[bot] commented 1 year ago

This repository is using Floe. When merged, this PR will show up in your inbox. Visit the Floe dashboard to view and modify your changelog.

codecov[bot] commented 1 year ago

Codecov Report

Merging #116 (e50d4ed) into master (6a00020) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #116   +/-   ##
=======================================
  Coverage   88.67%   88.67%           
=======================================
  Files           8        8           
  Lines         256      256           
  Branches       33       33           
=======================================
  Hits          227      227           
  Misses         27       27           
  Partials        2        2           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.