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.43.0 to 8.17.0 #7

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

Conversation

OKEAMAH
Copy link
Owner

@OKEAMAH OKEAMAH commented Aug 2, 2024

snyk-top-banner

Snyk has created this PR to upgrade @sentry/nextjs from 7.43.0 to 8.17.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 147 versions ahead of your current version.

  • The recommended version was released on 23 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
critical severity Server-Side Request Forgery (SSRF)
SNYK-JS-SENTRYNEXTJS-6054452
207 No Known Exploit
Release notes
Package name: @sentry/nextjs
  • 8.17.0 - 2024-07-10
    • feat: Upgrade OTEL deps (#12809)
    • fix(nuxt): Add module to build:transpile script (#12843)
    • fix(browser): Allow SDK initialization in NW.js apps (#12846)

    Bundle size 📦

    Path Size
    @ sentry/browser 22.31 KB
    @ sentry/browser (incl. Tracing) 33.45 KB
    @ sentry/browser (incl. Tracing, Replay) 69.2 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.53 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 73.27 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 85.9 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.76 KB
    @ sentry/browser (incl. metrics) 26.59 KB
    @ sentry/browser (incl. Feedback) 38.98 KB
    @ sentry/browser (incl. sendFeedback) 26.92 KB
    @ sentry/browser (incl. FeedbackAsync) 31.54 KB
    @ sentry/react 25.05 KB
    @ sentry/react (incl. Tracing) 36.49 KB
    @ sentry/vue 26.41 KB
    @ sentry/vue (incl. Tracing) 35.31 KB
    @ sentry/svelte 22.44 KB
    CDN Bundle 23.52 KB
    CDN Bundle (incl. Tracing) 35.21 KB
    CDN Bundle (incl. Tracing, Replay) 69.31 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 74.51 KB
    CDN Bundle - uncompressed 69.02 KB
    CDN Bundle (incl. Tracing) - uncompressed 104.04 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 214.43 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 227.15 KB
    @ sentry/nextjs (client) 36.37 KB
    @ sentry/sveltekit (client) 34.1 KB
    @ sentry/node 130.79 KB
    @ sentry/node - without tracing 91.88 KB
    @ sentry/aws-serverless 117.05 KB
  • 8.16.0 - 2024-07-09

    Important Changes

    • feat(nextjs): Use spans generated by Next.js for App Router (#12729)

    Previously, the @ sentry/nextjs SDK automatically recorded spans in the form of transactions for each of your top-level
    server components (pages, layouts, ...). This approach had a few drawbacks, the main ones being that traces didn't have
    a root span, and more importantly, if you had data stream to the client, its duration was not captured because the
    server component spans had finished before the data could finish streaming.

    With this release, we will capture the duration of App Router requests in their entirety as a single transaction with
    server component spans being descendants of that transaction. This means you will get more data that is also more
    accurate. Note that this does not apply to the Edge runtime. For the Edge runtime, the SDK will emit transactions as it
    has before.

    Generally speaking, this change means that you will see less transactions and more spans in Sentry. You will no
    longer receive server component transactions like Page Server Component (/path/to/route) (unless using the Edge
    runtime), and you will instead receive transactions for your App Router SSR requests that look like
    GET /path/to/route.

    If you are on Sentry SaaS, this may have an effect on your quota consumption: Less transactions, more spans.

    • - feat(nestjs): Add nest cron monitoring support (#12781)

    The @ sentry/nestjs SDK now includes a @ SentryCron decorator that can be used to augment the native NestJS @ Cron
    decorator to send check-ins to Sentry before and after each cron job run:

    import { Cron } from '@ nestjs/schedule';
    import { SentryCron, MonitorConfig } from '@ sentry/nestjs';
    import type { MonitorConfig } from '@ sentry/types';

    const monitorConfig: MonitorConfig = {
    schedule: {
    type: 'crontab',
    value: '* * * * *',
    },
    checkinMargin: 2, // In minutes. Optional.
    maxRuntime: 10, // In minutes. Optional.
    timezone: 'America/Los_Angeles', // Optional.
    };

    export class MyCronService {
    @Cron('* * * * *')
    @SentryCron('my-monitor-slug', monitorConfig)
    handleCron() {
    // Your cron job logic here
    }
    }

    Other Changes

    • feat(node): Allow to pass instrumentation config to httpIntegration (#12761)
    • feat(nuxt): Add server error hook (#12796)
    • feat(nuxt): Inject sentry config with Nuxt addPluginTemplate (#12760)
    • fix: Apply stack frame metadata before event processors (#12799)
    • fix(feedback): Add missing h import in ScreenshotEditor (#12784)
    • fix(node): Ensure autoSessionTracking is enabled by default (#12790)
    • ref(feedback): Let CropCorner inherit the existing h prop (#12814)
    • ref(otel): Ensure we never swallow args for ContextManager (#12798)

    Bundle size 📦

    Path Size
    @ sentry/browser 22.29 KB
    @ sentry/browser (incl. Tracing) 33.44 KB
    @ sentry/browser (incl. Tracing, Replay) 69.19 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.52 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 73.25 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 85.88 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.74 KB
    @ sentry/browser (incl. metrics) 26.58 KB
    @ sentry/browser (incl. Feedback) 38.97 KB
    @ sentry/browser (incl. sendFeedback) 26.92 KB
    @ sentry/browser (incl. FeedbackAsync) 31.53 KB
    @ sentry/react 25.04 KB
    @ sentry/react (incl. Tracing) 36.48 KB
    @ sentry/vue 26.4 KB
    @ sentry/vue (incl. Tracing) 35.3 KB
    @ sentry/svelte 22.43 KB
    CDN Bundle 23.51 KB
    CDN Bundle (incl. Tracing) 35.2 KB
    CDN Bundle (incl. Tracing, Replay) 69.31 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 74.5 KB
    CDN Bundle - uncompressed 69 KB
    CDN Bundle (incl. Tracing) - uncompressed 104.02 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 214.41 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 227.12 KB
    @ sentry/nextjs (client) 36.36 KB
    @ sentry/sveltekit (client) 34.09 KB
    @ sentry/node 130.86 KB
    @ sentry/node - without tracing 91.88 KB
    @ sentry/aws-serverless 117.05 KB
  • 8.15.0 - 2024-07-05
    • feat(core): allow unregistering callback through on (#11710)
    • feat(nestjs): Add function-level span decorator to nestjs (#12721)
    • feat(otel): Export & use spanTimeInputToSeconds for otel span exporter (#12699)
    • fix(core): Pass origin as referrer for lazyLoadIntegration (#12766)
    • fix(deno): Publish from build directory (#12773)
    • fix(hapi): Specify error channel to filter boom errors (#12725)
    • fix(react): Revert back to jsxRuntime: 'classic' to prevent breaking react 17 (#12775)
    • fix(tracing): Report dropped spans for transactions (#12751)
    • ref(scope): Delete unused public getStack() (#12737)

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

    Bundle size 📦

    Path Size
    @ sentry/browser 22.28 KB
    @ sentry/browser (incl. Tracing) 33.43 KB
    @ sentry/browser (incl. Tracing, Replay) 69.18 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.51 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 73.24 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 85.87 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.73 KB
    @ sentry/browser (incl. metrics) 26.57 KB
    @ sentry/browser (incl. Feedback) 38.93 KB
    @ sentry/browser (incl. sendFeedback) 26.9 KB
    @ sentry/browser (incl. FeedbackAsync) 31.52 KB
    @ sentry/react 25.02 KB
    @ sentry/react (incl. Tracing) 36.46 KB
    @ sentry/vue 26.39 KB
    @ sentry/vue (incl. Tracing) 35.29 KB
    @ sentry/svelte 22.41 KB
    CDN Bundle 23.5 KB
    CDN Bundle (incl. Tracing) 35.19 KB
    CDN Bundle (incl. Tracing, Replay) 69.29 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 74.48 KB
    CDN Bundle - uncompressed 68.97 KB
    CDN Bundle (incl. Tracing) - uncompressed 103.98 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 214.38 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 227.09 KB
    @ sentry/nextjs (client) 36.35 KB
    @ sentry/sveltekit (client) 34.07 KB
    @ sentry/node 130.73 KB
    @ sentry/node - without tracing 91.75 KB
    @ sentry/aws-serverless 116.92 KB
  • 8.14.0 - 2024-07-04

    Important Changes

    • feat(nestjs): Filter 4xx errors (#12695)

    The @ sentry/nestjs SDK no longer captures 4xx errors automatically.

    Other Changes

    • chore(react): Remove private namespace JSX (#12691)
    • feat(deps): bump @ opentelemetry/propagator-aws-xray from 1.25.0 to 1.25.1 (#12719)
    • feat(deps): bump @ prisma/instrumentation from 5.16.0 to 5.16.1 (#12718)
    • feat(node): Add registerEsmLoaderHooks option (#12684)
    • feat(opentelemetry): Expose sampling helper (#12674)
    • fix(browser): Make sure measure spans have valid start timestamps (#12648)
    • fix(hapi): Widen type definitions (#12710)
    • fix(nextjs): Attempt to ignore critical dependency warnings (#12694)
    • fix(react): Fix React jsx runtime import for esm (#12740)
    • fix(replay): Start replay in afterAllSetup instead of next tick (#12709)

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

    Bundle size 📦

    Path Size
    @ sentry/browser 22.22 KB
    @ sentry/browser (incl. Tracing) 33.38 KB
    @ sentry/browser (incl. Tracing, Replay) 69.12 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.45 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 73.18 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 85.8 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.66 KB
    @ sentry/browser (incl. metrics) 26.5 KB
    @ sentry/browser (incl. Feedback) 38.86 KB
    @ sentry/browser (incl. sendFeedback) 26.85 KB
    @ sentry/browser (incl. FeedbackAsync) 31.45 KB
    @ sentry/react 24.97 KB
    @ sentry/react (incl. Tracing) 36.43 KB
    @ sentry/vue 26.33 KB
    @ sentry/vue (incl. Tracing) 35.24 KB
    @ sentry/svelte 22.36 KB
    CDN Bundle 23.42 KB
    CDN Bundle (incl. Tracing) 35.12 KB
    CDN Bundle (incl. Tracing, Replay) 69.22 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 74.41 KB
    CDN Bundle - uncompressed 68.8 KB
    CDN Bundle (incl. Tracing) - uncompressed 103.82 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 214.21 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 226.92 KB
    @ sentry/nextjs (client) 36.3 KB
    @ sentry/sveltekit (client) 34.02 KB
    @ sentry/node 130.68 KB
    @ sentry/node - without tracing 91.71 KB
    @ sentry/aws-serverless 116.88 KB
  • 8.13.0 - 2024-06-27

    Important Changes

    • feat(nestjs): Add Nest SDK This release adds a dedicated SDK for NestJS (@ sentry/nestjs)
      in alpha state. The SDK is a drop-in replacement for the Sentry Node SDK (@ sentry/node) supporting the same set of
      features. See the docs for how to use the SDK.

    Other Changes

    • deps: Bump bundler plugins to 2.20.1 (#12641)
    • deps(nextjs): Remove react peer dep and allow rc (#12670)
    • feat: Update OTEL deps (#12635)
    • feat(deps): bump @ prisma/instrumentation from 5.15.0 to 5.15.1 (#12627)
    • feat(node): Add context info for missing instrumentation (#12639)
    • fix(feedback): Improve feedback error message (#12647)

    Bundle size 📦

    Path Size
    @ sentry/browser 22.22 KB
    @ sentry/browser (incl. Tracing) 33.31 KB
    @ sentry/browser (incl. Tracing, Replay) 69.09 KB
    @ sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.42 KB
    @ sentry/browser (incl. Tracing, Replay with Canvas) 73.15 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback) 85.75 KB
    @ sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.61 KB
    @ sentry/browser (incl. metrics) 26.5 KB
    @ sentry/browser (incl. Feedback) 38.86 KB
    @ sentry/browser (incl. sendFeedback) 26.84 KB
    @ sentry/browser (incl. FeedbackAsync) 31.45 KB
    @ sentry/react 24.97 KB
    @ sentry/react (incl. Tracing) 36.36 KB
    @ sentry/vue 26.33 KB
    @ sentry/vue (incl. Tracing) 35.17 KB
    @ sentry/svelte 22.36 KB
    CDN Bundle 23.42 KB
    CDN Bundle (incl. Tracing) 35.05 KB
    CDN Bundle (incl. Tracing, Replay) 69.18 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) 74.38 KB
    CDN Bundle - uncompressed 68.8 KB
    CDN Bundle (incl. Tracing) - uncompressed 103.66 KB
    CDN Bundle (incl. Tracing, Replay) - uncompressed 214.13 KB
    CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 226.84 KB
    @ sentry/nextjs (client) 36.24 KB
    @ sentry/sveltekit (client) 33.95 KB
    @ sentry/node 130.61 KB
    @ sentry/node - without tracing 91.63 KB
    @ sentry/aws-serverless 116.8 KB
  • 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.118.0 - 2024-06-21
  • 7.117.0 - 2024-06-10
  • 7.116.0 - 2024-05-17
  • 7.115.0 - 2024-05-16
  • 7.114.0 - 2024-05-08
  • 7.113.0 - 2024-05-02
  • 7.112.2 - 2024-04-24
  • 7.112.1 - 2024-04-23
  • 7.112.0 - 2024-04-23
  • 7.111.0 - 2024-04-18
  • 7.110.1 - 2024-04-15
  • 7.110.0 - 2024-04-11
  • 7.109.0 - 2024-03-28
  • 7.108.0 - 2024-03-22
  • 7.107.0 - 2024-03-14
  • 7.106.1 - 2024-03-11
  • 7.106.0 - 2024-03-08
  • 7.105.0 - 2024-03-04
  • 7.104.0 - 2024-02-29
  • 7.103.0 - 2024-02-27
  • 7.102.1 - 2024-02-22
  • 7.102.0 - 2024-02-20
  • 7.101.1 - 2024-02-15
  • 7.101.0 - 2024-02-13
  • 7.100.1 - 2024-02-07
  • 7.100.0 - 2024-02-06
  • 7.99.0 - 2024-01-30
  • 7.98.0 - 2024-01-25
  • 7.97.0 - 2024-01-25
  • 7.95.0 - 2024-01-23
  • 7.94.1 - 2024-01-19
  • 7.93.0 - 2024-01-10
  • 7.92.0 - 2024-01-04
  • 7.91.0 - 2023-12-22
  • 7.90.0 - 2023-12-20
  • 7.89.0 - 2023-12-19
  • 7.88.0 - 2023-12-14
  • 7.87.0 - 2023-12-13
  • 7.86.0 - 2023-12-07
  • 7.85.0 - 2023-12-04
  • 7.84.0 - 2023-11-30
  • 7.83.0 - 2023-11-28
  • 7.82.0 - 2023-11-27
  • 7.81.1 - 2023-11-21
  • 7.81.0 - 2023-11-20
  • 7.80.2-alpha.1 - 2023-11-15
  • 7.80.2-alpha.0 - 2023-11-14
  • 7.80.1 - 2023-11-14
  • 7.80.0 - 2023-11-09
  • 7.79.0 - 2023-11-08
  • 7.78.0 - 2023-11-08
  • 7.77.0 - 2023-10-31
  • 7.76.0 - 2023-10-27
  • 7.75.1 - 2023-10-25
  • 7.75.0 - 2023-10-24
  • 7.74.2-alpha.1 - 2023-10-23
  • 7.74.1 - 2023-10-17
  • 7.74.0 - 2023-10-13
  • 7.73.0 - 2023-10-02
  • 7.72.0 - 2023-09-26
  • 7.71.0 - 2023-09-25
  • 7.70.0 - 2023-09-20
  • 7.70.0-beta.1 - 2023-09-15
  • 7.70.0-beta.0 - 2023-09-14
  • 7.69.0 - 2023-09-13
  • 7.68.0 - 2023-09-06
  • 7.67.0 - 2023-09-05
  • 7.67.0-beta.0 - 2023-08-31
  • 7.66.0 - 2023-08-30
  • 7.66.0-alpha.0 - 2023-08-29
  • 7.65.0 - 2023-08-28
  • 7.65.0-alpha.0 - 2023-08-16
  • 7.64.0 - 2023-08-14
  • 7.64.0-alpha.0 - 2023-08-11
  • 7.63.0 - 2023-08-10
  • 7.62.0 - 2023-08-09
  • 7.61.1 - 2023-08-04
  • 7.61.0 - 2023-07-31
  • 7.60.1 - 2023-07-26
  • 7.60.0 - 2023-07-21
  • 7.59.3 - 2023-07-19
  • 7.59.2 - 2023-07-18
  • 7.59.1 - 2023-07-18
  • 7.59.0-beta.1 - 2023-07-17
  • 7.59.0-beta.0 - 2023-07-13
  • 7.58.1 - 2023-07-13
  • 7.58.0 - 2023-07-12
  • 7.57.0 - 2023-06-28
  • 7.57.0-beta.0 - 2023-06-21
  • 7.56.0 - 2023-06-19
  • 7.55.2 - 2023-06-14
  • 7.55.1 - 2023-06-14
  • 7.55.0 - 2023-06-13
  • 7.54.0 - 2023-06-01
  • 7.53.1 - 2023-05-24
  • 7.53.0 - 2023-05-23
  • 7.52.1 - 2023-05-15
  • 7.52.0 - 2023-05-15
  • 7.51.2 - 2023-05-08
  • 7.51.1 - 2023-05-08
  • 7.51.0 - 2023-05-04
  • 7.50.0 - 2023-04-27
  • 7.49.0 - 2023-04-20
  • 7.48.0 - 2023-04-14
  • 7.47.0 - 2023-04-05
  • 7.46.0 - 2023-03-30
  • 7.45.0 - 2023-03-24
  • 7.44.2 - 2023-03-21
  • 7.44.1 - 2023-03-20
  • 7.44.0 - 2023-03-20
  • 7.43.0 - 2023-03-13
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.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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.43.0 to 8.17.0.

See this package in npm:
@sentry/nextjs

See this project in Snyk:
https://app.snyk.io/org/okeamah/project/7155451d-522f-4e38-b4d5-e1d05777ab7c?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

changeset-bot bot commented Aug 2, 2024

⚠️ No Changeset found

Latest commit: 0ef18ec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

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.

2 participants