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

fix(web): update dependency @sentry/react to v7.81.0 #12794

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/react (source) 7.80.1 -> 7.81.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

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

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: Disabled by config. Please merge this manually once you are satisfied.

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 requested a review from hongbo-miao as a code owner November 20, 2023 16:22
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5867a7c) 57.26% compared to head (a5ce635) 35.92%.
Report is 25 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main   #12794       +/-   ##
===========================================
- Coverage   57.26%   35.92%   -21.35%     
===========================================
  Files          84       58       -26     
  Lines         578      309      -269     
  Branches       82       35       -47     
===========================================
- Hits          331      111      -220     
+ Misses        246      197       -49     
  Partials        1        1               

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Nov 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mergify mergify bot merged commit e45bb93 into main Nov 20, 2023
81 of 82 checks passed
@mergify mergify bot deleted the renovate/web-sentry-javascript-monorepo branch November 20, 2023 16:26
Copy link

🎉 This PR is included in version 1.97.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

0 participants