Skip to content

Releases: getsentry/sentry-javascript

7.82.0

27 Nov 17:13
Compare
Choose a tag to compare
  • feat(astro): Automatically add Sentry middleware in Astro integration (#9532)
  • feat(core): Add optional setup hook to integrations (#9556)
  • feat(core): Add top level getClient() method (#9638)
  • feat(core): Allow to pass mechanism as event hint (#9590)
  • feat(core): Allow to use continueTrace without callback (#9615)
  • feat(feedback): Add onClose callback to showReportDialog (#9433) (#9550)
  • feat(nextjs): Add request data to all edge-capable functionalities (#9636)
  • feat(node): Add Spotlight option to Node SDK (#9629)
  • feat(utils): Refactor addInstrumentationHandler to dedicated methods (#9542)
  • fix: Make full url customizable for Spotlight (#9652)
  • fix(astro): Remove Auth Token existence check (#9651)
  • fix(nextjs): Fix middleware detection logic (#9637)
  • fix(remix): Skip capturing aborted requests (#9659)
  • fix(replay): Add BODY_PARSE_ERROR warning & time out fetch response load (#9622)
  • fix(tracing): Filter out invalid resource sizes (#9641)
  • ref: Hoist RequestData integration to @sentry/core (#9597)
  • ref(feedback): Rename onDialog* to onForm*, remove onActorClick (#9625)

Work in this release contributed by @arya-s. Thank you for your contribution!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 66.02 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 56.21 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.19 KB
@sentry/browser - Webpack (gzipped) 21.4 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62.65 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.47 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.55 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 197.27 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 89.15 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 64.12 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 32.13 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.43 KB
@sentry/react - Webpack (gzipped) 21.45 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.16 KB
@sentry/nextjs Client - Webpack (gzipped) 48.32 KB
@sentry-internal/feedback - Webpack (gzipped) 16.19 KB

7.81.1

21 Nov 11:55
Compare
Choose a tag to compare
  • fix(astro): Remove method from span op (#9603)
  • fix(deno): Make sure files get published (#9611)
  • fix(nextjs): Use globalThis instead of global in edge runtime (#9612)
  • fix(node): Improve error handling and shutdown handling for ANR (#9548)
  • fix(tracing-internal): Fix case when originalURL contain query params (#9531)

Work in this release contributed by @powerfulyang, @LubomirIgonda1, @joshkel, and @alexgleason. Thank you for your contributions!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.61 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.72 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.01 KB
@sentry/browser - Webpack (gzipped) 21.32 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62.03 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.26 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 195.71 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.38 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.34 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.85 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.92 KB
@sentry/react - Webpack (gzipped) 21.36 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.66 KB
@sentry/nextjs Client - Webpack (gzipped) 48.15 KB
@sentry-internal/feedback - Webpack (gzipped) 16.12 KB

7.81.0

20 Nov 13:13
Compare
Choose a tag to compare

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!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.53 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.67 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.01 KB
@sentry/browser - Webpack (gzipped) 21.32 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 61.99 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.26 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 195.53 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.38 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.34 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.85 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.84 KB
@sentry/react - Webpack (gzipped) 21.36 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.58 KB
@sentry/nextjs Client - Webpack (gzipped) 48.15 KB
@sentry-internal/feedback - Webpack (gzipped) 16.08 KB

7.80.2-alpha.1

15 Nov 19:46
Compare
Choose a tag to compare
7.80.2-alpha.1 Pre-release
Pre-release

No longer will prioritize the component names for replays, as this will break searching by CSS selector.

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.47 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.68 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.03 KB
@sentry/browser - Webpack (gzipped) 21.34 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.14 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.29 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 195.54 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.43 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.41 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.86 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.79 KB
@sentry/react - Webpack (gzipped) 21.39 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.53 KB
@sentry/nextjs Client - Webpack (gzipped) 48.17 KB
@sentry-internal/feedback - Webpack (gzipped) 16.04 KB

7.80.2-alpha.0

14 Nov 18:08
Compare
Choose a tag to compare
7.80.2-alpha.0 Pre-release
Pre-release
  • feat(utils): Prioritize Component name attributes over HTML Tree String (#9496)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.46 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.68 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.03 KB
@sentry/browser - Webpack (gzipped) 21.34 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.14 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.29 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 195.53 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.43 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.41 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.86 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.81 KB
@sentry/react - Webpack (gzipped) 21.39 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.53 KB
@sentry/nextjs Client - Webpack (gzipped) 48.17 KB
@sentry-internal/feedback - Webpack (gzipped) 16.04 KB

7.80.1

14 Nov 10:48
Compare
Choose a tag to compare
  • fix(astro): Adjust Vite plugin config to upload server source maps (#9541)
  • fix(nextjs): Add tracing extensions in all serverside wrappers (#9537)
  • fix(nextjs): Fix serverside transaction names on Windows (#9526)
  • fix(node): Fix tRPC middleware typing (#9540)
  • fix(replay): Add additional safeguards for capturing network bodies (#9506)
  • fix(tracing): Update prisma span to be db.prisma (#9512)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.42 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.63 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 30.98 KB
@sentry/browser - Webpack (gzipped) 21.3 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 61.95 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.1 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.24 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 195.42 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.32 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.3 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.81 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.77 KB
@sentry/react - Webpack (gzipped) 21.34 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.49 KB
@sentry/nextjs Client - Webpack (gzipped) 48.13 KB
@sentry-internal/feedback - Webpack (gzipped) 16 KB

7.80.0

09 Nov 16:54
Compare
Choose a tag to compare
  • feat(astro): Add distributed tracing via <meta> tags (#9483)
  • feat(node): Capture internal server errors in trpc middleware (#9482)
  • feat(remix): Export a type to use for MetaFunction parameters (#9493)
  • fix(astro): Mark SDK package as Astro-external (#9509)
  • ref(nextjs): Don't initialize Server SDK during build (#9503)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.25 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.49 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 30.98 KB
@sentry/browser - Webpack (gzipped) 21.3 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 61.83 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.1 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.24 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 194.91 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.32 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.3 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.81 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.61 KB
@sentry/react - Webpack (gzipped) 21.34 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.35 KB
@sentry/nextjs Client - Webpack (gzipped) 48.13 KB
@sentry-internal/feedback - Webpack (gzipped) 15.98 KB

7.79.0

08 Nov 16:08
Compare
Choose a tag to compare
  • feat(tracing): Add span origin to trace context (#9472)
  • fix(deno): Emit .mjs files (#9485)
  • fix(nextjs): Flush servercomponent events for edge (#9487)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.24 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.49 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 30.98 KB
@sentry/browser - Webpack (gzipped) 21.3 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 61.82 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.09 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.23 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 194.89 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.3 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.28 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.8 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.61 KB
@sentry/react - Webpack (gzipped) 21.34 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.34 KB
@sentry/nextjs Client - Webpack (gzipped) 48.12 KB
@sentry-internal/feedback - Webpack (gzipped) 15.81 KB

7.78.0

08 Nov 10:34
Compare
Choose a tag to compare

Important Changes

  • Replay Bundle Size improvements

We've dramatically decreased the bundle size of our Replay package, reducing the minified & gzipped bundle size by ~20 KB!
This was possible by extensive use of tree shaking and a host of small changes to reduce our footprint:

  • feat(replay): Update rrweb to 2.2.0 (#9414)
  • ref(replay): Use fflate instead of pako for compression (#9436)

By using tree shaking it is possible to shave off up to 10 additional KB of the bundle.

Other Changes

  • feat(astro): Add Sentry middleware (#9445)
  • feat(feedback): Add "outline focus" and "foreground hover" vars (#9462)
  • feat(feedback): Add openDialog and closeDialog onto integration interface (#9464)
  • feat(feedback): Implement new user feedback embeddable widget (#9217)
  • feat(nextjs): Add automatic sourcemapping for edge part of the SDK (#9454)
  • feat(nextjs): Add client routing instrumentation for app router (#9446)
  • feat(node-experimental): Add hapi tracing support (#9449)
  • feat(replay): Allow to configure beforeErrorSampling (#9470)
  • feat(replay): Stop fixing truncated JSONs in SDK (#9437)
  • fix(nextjs): Fix sourcemaps resolving for local dev when basePath is set (#9457)
  • fix(nextjs): Only inject basepath in dev mode (#9465)
  • fix(replay): Ensure we stop for rate limit headers (#9420)
  • ref(feedback): Add treeshaking for logger statements (#9475)
  • ref(replay): Use rrweb for slow click detection (#9408)
  • build(polyfills): Remove output format specific logic (#9467)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.24 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.48 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 30.97 KB
@sentry/browser - Webpack (gzipped) 21.29 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 61.82 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.09 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.23 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 194.87 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.28 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.28 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.8 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.61 KB
@sentry/react - Webpack (gzipped) 21.34 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.34 KB
@sentry/nextjs Client - Webpack (gzipped) 48.12 KB
@sentry-internal/feedback - Webpack (gzipped) 15.81 KB

7.77.0

31 Oct 10:31
Compare
Choose a tag to compare

Security Fixes

Other Changes

  • feat: Move LinkedErrors integration to @sentry/core (#9404)
  • feat(remix): Update sentry-cli version to ^2.21.2 (#9401)
  • feat(replay): Allow to treeshake & configure compression worker URL (#9409)
  • fix(angular-ivy): Adjust package entry points to support Angular 17 with SSR config (#9412)
  • fix(feedback): Fixing feedback import (#9403)
  • fix(utils): Avoid keeping a reference of last used event (#9387)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 77.46 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 56.69 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 30.97 KB
@sentry/browser - Webpack (gzipped) 21.29 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.83 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.09 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.23 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 216.89 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.28 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.28 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.8 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 77.84 KB
@sentry/react - Webpack (gzipped) 21.34 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 94.18 KB
@sentry/nextjs Client - Webpack (gzipped) 47.86 KB