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

build(deps): update dependency @sentry/nextjs to ^7.81.0 #3680

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 20, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sentry/nextjs (source) ^7.80.1 -> ^7.81.0 age adoption passing confidence

Release Notes

getsentry/sentry-javascript (@​sentry/nextjs)

v7.81.0

Compare Source

Important Changes

- feat(nextjs): Add instrumentation utility for server actions (#​9553)

This release adds a utility function withServerActionInstrumentation to the @sentry/nextjs SDK for instrumenting your Next.js server actions with error and performance monitoring.

You can optionally pass form data and headers to record them, and configure the wrapper to record the Server Action responses:

import * as Sentry from "@​sentry/nextjs";
import { headers } from "next/headers";

export default function ServerComponent() {
  async function myServerAction(formData: FormData) {
    "use server";
    return await Sentry.withServerActionInstrumentation(
      "myServerAction", // The name you want to associate this Server Action with in Sentry
      {
        formData, // Optionally pass in the form data
        headers: headers(), // Optionally pass in headers
        recordResponse: true, // Optionally record the server action response
      },
      async () => {
        // ... Your Server Action code

        return { name: "John Doe" };
      }
    );
  }

  return (
    <form action={myServerAction}>
      <input type="text" name="some-input-value" />
      <button type="submit">Run Action</button>
    </form>
  );
}
Other Changes
  • docs(feedback): Example docs on sendFeedback (#​9560)
  • feat(feedback): Add level and remove breadcrumbs from feedback event (#​9533)
  • feat(vercel-edge): Add fetch instrumentation (#​9504)
  • feat(vue): Support Vue 3 lifecycle hooks in mixin options (#​9578)
  • fix(nextjs): Download CLI binary if it can't be found (#​9584)
  • ref: Deprecate extractTraceParentData from @sentry/core & downstream packages (#​9158)
  • ref(replay): Add further logging to network body parsing (#​9566)

Work in this release contributed by @​snoozbuster. Thank you for your contribution!


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) November 20, 2023 16:08
Copy link

vercel bot commented Nov 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
shinju-date ✅ Ready (Inspect) Visit Preview Nov 20, 2023 4:12pm
shinju-date-admin ✅ Ready (Inspect) Visit Preview Nov 20, 2023 4:12pm

@renovate renovate bot merged commit f98796d into main Nov 20, 2023
6 checks passed
@renovate renovate bot deleted the renovate/sentry-javascript-monorepo branch November 20, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

0 participants