Update dependency @sentry/nextjs to v8 #32

Open
renovate-bot wants to merge 1 commits from renovate/major-sentry-javascript-monorepo into master
Owner

This PR contains the following updates:

Package Type Update Change
@sentry/nextjs (source) dependencies major 7.105.0 -> 8.7.0

Release Notes

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

v8.7.0

Important Changes
  • feat(react): Add TanStack Router integration (#​12095)

    This release adds instrumentation for TanStack router with a new tanstackRouterBrowserTracingIntegration in the
    @sentry/react SDK:

    import * as Sentry from '@​sentry/react';
    import { createRouter } from '@​tanstack/react-router';
    
    const router = createRouter({
      // Your router options...
    });
    
    Sentry.init({
      dsn: '___PUBLIC_DSN___',
      integrations: [Sentry.tanstackRouterBrowserTracingIntegration(router)],
      tracesSampleRate: 1.0,
    });
    
Other Changes
  • fix(nextjs): Do not hide sourceMappingURL comment on client when nextConfig.productionBrowserSourceMaps: true is
    set (#​12278)

v8.6.0

Important Changes
  • feat(metrics): Add timings method to metrics (#​12226)

    This introduces a new method, metrics.timing(), which can be used in two ways:

    1. With a numeric value, to simplify creating a distribution metric. This will default to second as unit:
    Sentry.metrics.timing('myMetric', 100);
    
    1. With a callback, which will wrap the duration of the callback. This can accept a sync or async callback. It will
      create an inactive span around the callback and at the end emit a metric with the duration of the span in seconds:
    const returnValue = Sentry.metrics.timing('myMetric', measureThisFunction);
    
  • feat(react): Add Sentry.reactErrorHandler (#​12147)

    This PR introduces Sentry.reactErrorHandler, which you can use in React 19 as follows:

    import * as Sentry from '@​sentry/react';
    import { hydrateRoot } from 'react-dom/client';
    
    ReactDOM.hydrateRoot(
      document.getElementById('root'),
      <React.StrictMode>
        <App />
      </React.StrictMode>,
      {
        onUncaughtError: Sentry.reactErrorHandler(),
        onCaughtError: Sentry.reactErrorHandler((error, errorInfo) => {
          // optional callback if users want custom config.
        }),
      },
    );
    

    For more details, take a look at the PR. Our
    documentation will be updated soon!

Other Changes
  • feat(sveltekit): Add request data to server-side events (#​12254)
  • fix(core): Pass in cron monitor config correctly (#​12248)
  • fix(nextjs): Don't capture suspense errors in server components (#​12261)
  • fix(tracing): Ensure sent spans are limited to 1000 (#​12252)
  • ref(core): Use versioned carrier on global object (#​12206)

v8.5.0

Compare Source

Important Changes
  • feat(react): Add React 19 to peer deps (#​12207)

This release adds support for React 19 in the @sentry/react SDK package.

  • feat(node): Add @sentry/node/preload hook (#​12213)

This release adds a new way to initialize @sentry/node, which allows you to use the SDK with performance
instrumentation even if you cannot call Sentry.init() at the very start of your app.

First, run the SDK like this:

node --require @&#8203;sentry/node/preload ./app.js

Now, you can initialize and import the rest of the SDK later or asynchronously:

const express = require('express');
const Sentry = require('@&#8203;sentry/node');

const dsn = await getSentryDsn();
Sentry.init({ dsn });

For more details, head over to the
PR Description of the new feature. Our docs will be updated
soon with a new guide.

Other Changes
  • feat(browser): Do not include metrics in base CDN bundle (#​12230)
  • feat(core): Add startNewTrace API (#​12138)
  • feat(core): Allow to pass custom scope to captureFeedback() (#​12216)
  • feat(core): Only allow SerializedSession in session envelope items (#​11979)
  • feat(nextjs): Use Vercel's waitUntil to defer freezing of Vercel Lambdas (#​12133)
  • feat(node): Ensure manual OTEL setup works (#​12214)
  • fix(aws-serverless): Avoid minifying Module._resolveFilename in Lambda layer bundle (#​12232)
  • fix(aws-serverless): Ensure lambda layer uses default export from ImportInTheMiddle (#​12233)
  • fix(browser): Improve browser extension error message check (#​12146)
  • fix(browser): Remove optional chaining in INP code (#​12196)
  • fix(nextjs): Don't report React postpone errors (#​12194)
  • fix(nextjs): Use global scope for generic event filters (#​12205)
  • fix(node): Add origin to redis span (#​12201)
  • fix(node): Change import of @prisma/instrumentation to use default import (#​12185)
  • fix(node): Only import inspector asynchronously (#​12231)
  • fix(replay): Update matcher for hydration error detection to new React docs (#​12209)
  • ref(profiling-node): Add warning when using non-LTS node (#​12211)

v8.4.0

Compare Source

Important Changes
  • feat(nextjs): Trace pageloads in App Router (#​12157)

If you are using Next.js version 14.3.0-canary.64 or above, the Sentry Next.js SDK will now trace clientside pageloads
with React Server Components. This means, that client-side errors like
Error: An error occurred in the Server Components render., which previously didn't give you much information on how
that error was caused, can now be traced back to a specific error in a server component.

  • feat(angular): Add Support for Angular 18 (#​12183)

This release guarantees support for Angular 18 with @sentry/angular.

Other Changes

v8.3.0

Compare Source

Important Changes
  • Better Node Framework Span Data

This release improves data quality of spans emitted by Express, Fastify, Connect, Koa, Nest.js and Hapi.

When using Sentry in ESM mode, you can now use Sentry without manually calling init like this:

 SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 node --import=@&#8203;sentry/node/init app.mjs

When using CommonJS, you can do:

 SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 node --require=@&#8203;sentry/node/init app.js
Other Changes
  • chore: Align and update MIT license dates (#​12143)
  • chore: Resolve or postpone a random assortment of TODOs (#​11977)
  • doc(migration): Add entry for runWithAsyncContext (#​12153)
  • docs: Add migration docs to point out that default import does not work (#​12100)
  • docs(sveltekit): process.env.SENTRY_AUTH_TOKEN (#​12118)
  • feat(browser): Ensure browserProfilingIntegration is published to CDN (#​12158)
  • feat(google-cloud): Expose ESM build (#​12149)
  • feat(nextjs): Ignore Prisma critical dependency warnings (#​12144)
  • feat(node): Add app.free_memory info to events (#​12150)
  • feat(node): Do not create GraphQL resolver spans by default (#​12097)
  • feat(node): Use node: prefix for node built-ins (#​11895)
  • feat(replay): Use unwrapped setTimeout to avoid e.g. angular change detection (#​11924)
  • fix(core): Add dsn to span envelope header (#​12096)
  • fix(feedback): Improve feedback border color in dark-mode, and prevent auto-dark mode when a theme is picked (#​12126)
  • fix(feedback): Set optionOverrides to be optional in TS definition (#​12125)
  • fix(nextjs): Don't put undefined values in props (#​12131)
  • fix(nextjs): Fix legacy configuration method detection for emitting warning (#​12136)
  • fix(node): Ensure fetch/http breadcrumbs are created correctly (#​12137)
  • fix(node): Update @prisma/instrumentation from 5.13.0 to 5.14.0 (#​12081)
  • ref(node): Add log for running in ESM/CommonJS mode (#​12134)
  • ref(node): Handle failing hook registration gracefully (#​12135)
  • ref(node): Only show instrumentation warning when tracing is enabled (#​12141)

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

v8.2.1

Compare Source

  • fix(aws-serverless): Fix build of lambda layer (#​12083)
  • fix(nestjs): Broaden nest.js type (#​12076)

v8.2.0

Compare Source

  • feat(redis-cache): Create cache-span with prefixed keys (get/set commands) (#​12070)
  • feat(core): Add beforeSendSpan hook (#​11886)
  • feat(browser): Improve idle span handling (#​12065)
  • fix(node): Set transactionName for unsampled spans in httpIntegration (#​12071)
  • fix(core): Export Scope interface as Scope (#​12067)
  • fix(core): Avoid looking up client for hasTracingEnabled() if possible (#​12066)
  • fix(browser): Use consistent timestamps (#​12063)
  • fix(node): Fix check for performance integrations (#​12043)
  • ref(sveltekit): Warn to delete source maps if Sentry plugin enabled source maps generation (#​12072)

v8.1.0

Compare Source

This release mainly fixes a couple of bugs from the initial 8.0.0 release. In addition to the changes below, we
updated some initially missed points in our migration guides and documentation.

  • feat(aws-serverless): Fix tree-shaking for aws-serverless package (#​12017)
  • feat(node): Bump opentelemetry instrumentation to latest version (#​12028)
  • feat(scope): Bring back lastEventId on isolation scope (#​11951) (#​12022)
  • fix(aws-serverless): Export awslambda-auto
  • fix(node): Do not warn for missing instrumentation if SDK is disabled (#​12041)
  • fix(react): Set dependency-injected functions as early as possible (#​12019)
  • fix(react): Warn and fall back gracefully if dependency injected functions are not available (#​12026)
  • ref(core): Streamline parseSampleRate utility function (#​12024)
  • ref(feedback): Make eventId optional and use lastEventId in report dialog (#​12029)

v8.0.0

Compare Source

The Sentry JS SDK team is proud to announce the release of version 8.0.0 of Sentry's JavaScript SDKs - it's been a
long time coming! Thanks to everyone for your patience and a special shout out to the brave souls testing preview builds
and reporting issues - we appreciate your support!


How to Upgrade to Version 8:

We recommend reading the
migration guide docs to find out
how to address any breaking changes in your code for your specific platform or framework.

To automate upgrading to v8 as much as possible, use our migration codemod @sentry/migr8:

npx @&#8203;sentry/migr8@&#8203;latest

All deprecations from the v7 cycle, with the exception of getCurrentHub(), have been removed and can no longer be used
in v8. If you have an advanced Sentry SDK setup, we additionally recommend reading the
in-depth migration guide in our repo which highlights all changes with additional details and
information.

The rest of this changelog highlights the most important (breaking) changes and links to more detailed information.

Version Support

With v8, we dropped support for several old runtimes and browsers

Node SDKs: The Sentry JavaScript SDK v8 now supports Node.js 14.8.0 or higher. This applies to @sentry/node
and all of our node-based server-side sdks (@sentry/nextjs, @sentry/remix, etc.). Furthermore, version 8 now ships
with full support for ESM-based node apps using Node.js 18.19.0 or higher.

Browser SDKs: The browser SDKs now require
ES2018+
compatible browsers. New minimum browser versions:

  • Chrome 63
  • Edge 79
  • Safari/iOS Safari 12
  • Firefox 58
  • Opera 50
  • Samsung Internet 8.2

For more details, please see the
version support section in our migration guide.

Initializing Server-side SDKs (Node, Bun, Deno, Serverless):

In v8, we support a lot more node-based packages than before. In order to ensure auto-instrumentation works, the SDK now
needs to be imported and initialized before any other import in your code.

We recommend creating a new file (e.g. instrumentation.js) to import and initialize the SDK. Then, import the file on
top of your entry file or detailed instructions, check our updated SDK setup docs
initializing the SDK in v8.

Performance Monitoring Changes

The API around performance monitoring and tracing has been streamlined, and we've added support for more integrations
out of the box.

Functional Integrations

Integrations are now simple functions instead of classes. Class-based integrations
have been removed:

// old (v7)
Sentry.init({
  integrations: [new Sentry.BrowserTracing()],
});

// new (v8)
Sentry.init({
  integrations: [Sentry.browserTracingIntegration()],
});
Package removal

The following packages have been removed or replaced and will no longer be published:

Changes since 8.0.0-rc.3
  • feat(nextjs): Remove transpileClientSDK (#​11978)

    As we are dropping support for Internet Explorer 11 and other other older browser versions wih version 8.0.0, we are
    also removing the transpileClientSDK option from the Next.js SDK. If you need to support these browser versions,
    please configure Webpack and Next.js to down-compile the SDK.

  • feat(serverless): Do not include performance integrations by default (#​11998)

    To keep Lambda bundle size reasonable, the SDK no longer ships with all performance (database) integrations by
    default. Add the Sentry integrations of the databases and other tools you're using manually to your Sentry.init call
    by following
    this guide.
    Note that this change does not apply if you use the SDK with the Sentry AWS Lambda layer.

  • feat(feedback): Simplify public css configuration for feedback (#​11985)

  • fix(feedback): Check for empty user (#​11993)

  • fix(replay): Fix type for replayCanvasIntegration (#​11995)

  • fix(replay): Fix user activity not being updated in start() (#​12001)

v7.116.0

Compare Source

This release publishes a new AWS Lambda layer under the name SentryNodeServerlessSDKv7 that users still running v7 can
use instead of pinning themselves to SentryNodeServerlessSDK:235.

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 80.83 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 71.77 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 76.02 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 65.38 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 35.64 KB
@​sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 35.53 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.6 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.61 KB
@​sentry/browser - Webpack (gzipped) 22.78 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 79.04 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 70.37 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 36.05 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 25.28 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 221.49 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 109.08 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 75.81 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 39.33 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 72.27 KB
@​sentry/react - Webpack (gzipped) 22.81 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 90.03 KB
@​sentry/nextjs Client - Webpack (gzipped) 54.15 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.34 KB

v7.115.0

Compare Source

  • feat(v7): Add support for global onUnhandled Error/Promise for Bun (#​11959)
  • fix(replay/v7): Fix user activity not being updated in start() (#​12003)
  • ref(api): Remove lastEventId deprecation warnings (#​12042)

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 80.83 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 71.77 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 76.02 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 65.38 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 35.64 KB
@​sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 35.53 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.6 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.61 KB
@​sentry/browser - Webpack (gzipped) 22.78 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 79.04 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 70.37 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 36.05 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 25.28 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 221.49 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 109.08 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 75.81 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 39.33 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 72.27 KB
@​sentry/react - Webpack (gzipped) 22.81 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 90.03 KB
@​sentry/nextjs Client - Webpack (gzipped) 54.15 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.34 KB

v7.114.0

Compare Source

Important Changes
  • fix(browser/v7): Continuously record CLS (#​11935)

This release fixes a bug that caused the cumulative layout shift (CLS) web vital not to be reported in a majority of the
cases where it should have been reported. With this change, the CLS web vital should now always be reported for
pageloads with layout shift. If a pageload did not have layout shift, no CLS web vital should be reported.

Please note that upgrading the SDK to this version may cause data in your dashboards to drastically change.

Other Changes
  • build(aws-lambda/v7): Turn off lambda layer publishing (#​11875)
  • feat(v7): Add tunnel support to multiplexed transport (#​11851)
  • fix(opentelemetry-node): support HTTP_REQUEST_METHOD attribute (#​11929)
  • fix(react/v7): Fix react router v4/v5 span names (#​11940)

v7.113.0

Compare Source

Important Changes

This release adds support for Node 22! 🎉

It also adds prebuilt-binaries for Node 22 to @sentry/profiling-node.

Other Changes
  • feat(feedback): [v7] New feedback button design (#​11841)
  • feat(replay/v7): Upgrade rrweb packages to 2.15.0 (#​11752)
  • fix(ember/v7): Ensure unnecessary spans are avoided (#​11848)

v7.112.2

Compare Source

  • fix(nextjs|sveltekit): Ensure we can pass browserTracingIntegration (#​11765)

v7.112.1

Compare Source

  • fix(ember/v7): Do not create rendering spans without transaction (#​11750)

v7.112.0

Compare Source

Important Changes
  • feat: Export pluggable integrations from SDK packages (#​11723)

Instead of installing @sentry/integrations, you can now import the pluggable integrations directly from your SDK
package:

// Before
import * as Sentry fromv '@&#8203;sentry/browser';
import { dedupeIntegration } from '@&#8203;sentry/integrations';

Sentry.init({
  integrations: [dedupeIntegration()],
});

// After
import * as Sentry from '@&#8203;sentry/browser';

Sentry.init({
  integrations: [Sentry.dedupeIntegration()],
});

Note that only the functional integrations (e.g. xxxIntegration()) are re-exported.

Other Changes
  • feat(replay): Add "maxCanvasSize" option for replay canvases (#​11732)
  • fix(serverless): [v7] Check if cloud event callback is a function (#​11734)

v7.111.0

Compare Source

  • feat(core): Add server.address to browser http.client spans (#​11663)
  • fix: Ensure next & sveltekit correctly handle browserTracingIntegration (#​11647)
  • fix(browser): Don't assume window.document is available (#​11598)

v7.110.1

Compare Source

  • fix(nextjs): Fix tunnelRoute matching logic for hybrid cloud (#​11577)

v7.110.0

Compare Source

Important Changes
  • feat(tracing): Add interactions sample rate to browser tracing integrations (#​11382)

You can now use a interactionsSampleRate to control the sample rate of INP spans. interactionsSampleRate is applied
on top of the global tracesSampleRate. Therefore if interactionsSampleRate is 0.5 and tracesSampleRate is 0.1,
then the actual sample rate for interactions is 0.05.

Sentry.init({
  tracesSampleRate: 0.1,
  integrations: [
    Sentry.browserTracingIntegration({
      interactionsSampleRate: 0.5,
    }),
  ],
});
  • Deprecations

This release deprecates the Hub class, as well as the addRequestDataToTransaction method. The trpcMiddleware
method is no longer on the Handlers export, but instead is a standalone export.

Please see the detailed Migration docs on how to migrate to the new APIs.

  • feat: Deprecate and relocate trpcMiddleware (#​11389)
  • feat(core): Deprecate Hub class (#​11528)
  • feat(types): Deprecate Hub interface (#​11530)
  • ref: Deprecate addRequestDataToTransaction (#​11368)
Other Changes
  • feat(core): Update metric normalization (#​11519)
  • feat(feedback): Customize feedback placeholder text color (#​11521)
  • feat(remix): Skip span creation for OPTIONS and HEAD request. (#​11485)
  • feat(utils): Add metric buckets rate limit (#​11506)
  • fix(core): unref timer to not block node exit (#​11483)
  • fix(metrics): Map statsd to metric_bucket (#​11505)
  • fix(spans): Allow zero exclusive time for INP spans (#​11408)
  • ref(feedback): Configure feedback fonts (#​11520)

v7.109.0

Compare Source

This release deprecates some exports from the @sentry/replay package. These exports have been moved to the browser SDK
(or related framework SDKs like @sentry/react).

  • feat(feedback): Make "required" text for input elements configurable (#​11287)
  • feat(node): Add scope to ANR events (#​11267)
  • feat(replay): Bump rrweb to 2.12.0 (#​11317)
  • fix(node): Local variables skipped after Promise (#​11248)
  • fix(node): Skip capturing Hapi Boom error responses (#​11324)
  • fix(web-vitals): Check for undefined navigation entry (#​11312)
  • ref(replay): Deprecate @sentry/replay exports (#​11242)

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

v7.108.0

Compare Source

This release fixes issues with Time to First Byte (TTFB) calculation in the SDK that was introduced with 7.95.0. It
also fixes some bugs with Interaction to First Paint (INP) instrumentation. This may impact your Sentry Performance
Score calculation.

  • feat(serverless): Add Node.js 20 to compatible runtimes (#​11104)
  • feat(core): Backport ResizeObserver and googletag default filters (#​11210)
  • feat(webvitals): Adds event entry names for INP handler. Also guard against empty metric value
  • fix(metrics): use correct statsd data category (#​11187)
  • fix(node): Record local variables with falsy values (v7) (#​11190)
  • fix(node): Use unique variable for ANR context transfer (v7) (#​11162)
  • fix(node): Time zone handling for cron (#​11225)
  • fix(tracing): use web-vitals ttfb calculation (#​11231)
  • fix(types): Fix incorrect sampled type on Transaction (#​11146)
  • fix(webvitals): Fix mapping not being maintained properly and sometimes not sending INP spans (#​11183)

Work in this release contributed by @​quisido and @​joshkel. Thank you for your contributions!

v7.107.0

Compare Source

This release fixes issues with INP instrumentation with the Next.js SDK and adds support for the enableInp option in
the deprecated BrowserTracing integration for backwards compatibility.

  • feat(performance): Port INP span instrumentation to old browser tracing (#​11085)
  • fix(ember): Ensure browser tracing is correctly lazy loaded (#​11027)
  • fix(node): Do not assert in vendored proxy code (v7 backport) (#​11009)
  • fix(react): Set handled value in ErrorBoundary depending on fallback [v7] (#​11037)

v7.106.1

Compare Source

  • fix(nextjs/v7): Use passthrough createReduxEnhancer on server (#​11010)

v7.106.0

Compare Source

  • feat(nextjs): Support Hybrid Cloud DSNs with tunnelRoute option (#​10958)
  • feat(remix): Add Vite dev-mode support to Express instrumentation (#​10811)
  • fix(core): Undeprecate setTransactionName
  • fix(browser): Don't use chrome variable name (#​10874)
  • fix(nextjs): Client code should not use Node global (#​10925)
  • fix(node): support undici headers as strings or arrays (#​10938)
  • fix(types): Add AttachmentType and use for envelope attachment_type property (#​10946)
  • ref(ember): Avoid namespace import to hopefully resolve minification issue (#​10885)
  • chore(sveltekit): Fix punctuation in a console.log (#​10895)

Work in this release contributed by @​jessezhang91 and @​bfontaine. Thank you for your contributions!


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 Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@sentry/nextjs](https://github.com/getsentry/sentry-javascript/tree/master/packages/nextjs) ([source](https://github.com/getsentry/sentry-javascript)) | dependencies | major | [`7.105.0` -> `8.7.0`](https://renovatebot.com/diffs/npm/@sentry%2fnextjs/7.105.0/8.7.0) | --- ### Release Notes <details> <summary>getsentry/sentry-javascript (@&#8203;sentry/nextjs)</summary> ### [`v8.7.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#870) ##### Important Changes - **feat(react): Add TanStack Router integration ([#&#8203;12095](https://github.com/getsentry/sentry-javascript/issues/12095))** This release adds instrumentation for TanStack router with a new `tanstackRouterBrowserTracingIntegration` in the `@sentry/react` SDK: ```javascript import * as Sentry from '@&#8203;sentry/react'; import { createRouter } from '@&#8203;tanstack/react-router'; const router = createRouter({ // Your router options... }); Sentry.init({ dsn: '___PUBLIC_DSN___', integrations: [Sentry.tanstackRouterBrowserTracingIntegration(router)], tracesSampleRate: 1.0, }); ``` ##### Other Changes - fix(nextjs): Do not hide `sourceMappingURL` comment on client when `nextConfig.productionBrowserSourceMaps: true` is set ([#&#8203;12278](https://github.com/getsentry/sentry-javascript/issues/12278)) ### [`v8.6.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#860) ##### Important Changes - **feat(metrics): Add `timings` method to metrics ([#&#8203;12226](https://github.com/getsentry/sentry-javascript/issues/12226))** This introduces a new method, `metrics.timing()`, which can be used in two ways: 1. With a numeric value, to simplify creating a distribution metric. This will default to `second` as unit: ```js Sentry.metrics.timing('myMetric', 100); ``` 2. With a callback, which will wrap the duration of the callback. This can accept a sync or async callback. It will create an inactive span around the callback and at the end emit a metric with the duration of the span in seconds: ```js const returnValue = Sentry.metrics.timing('myMetric', measureThisFunction); ``` - **feat(react): Add `Sentry.reactErrorHandler` ([#&#8203;12147](https://github.com/getsentry/sentry-javascript/issues/12147))** This PR introduces `Sentry.reactErrorHandler`, which you can use in React 19 as follows: ```js import * as Sentry from '@&#8203;sentry/react'; import { hydrateRoot } from 'react-dom/client'; ReactDOM.hydrateRoot( document.getElementById('root'), <React.StrictMode> <App /> </React.StrictMode>, { onUncaughtError: Sentry.reactErrorHandler(), onCaughtError: Sentry.reactErrorHandler((error, errorInfo) => { // optional callback if users want custom config. }), }, ); ``` For more details, take a look at [the PR](https://github.com/getsentry/sentry-javascript/pull/12147). Our documentation will be updated soon! ##### Other Changes - feat(sveltekit): Add request data to server-side events ([#&#8203;12254](https://github.com/getsentry/sentry-javascript/issues/12254)) - fix(core): Pass in cron monitor config correctly ([#&#8203;12248](https://github.com/getsentry/sentry-javascript/issues/12248)) - fix(nextjs): Don't capture suspense errors in server components ([#&#8203;12261](https://github.com/getsentry/sentry-javascript/issues/12261)) - fix(tracing): Ensure sent spans are limited to 1000 ([#&#8203;12252](https://github.com/getsentry/sentry-javascript/issues/12252)) - ref(core): Use versioned carrier on global object ([#&#8203;12206](https://github.com/getsentry/sentry-javascript/issues/12206)) ### [`v8.5.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#850) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/8.4.0...8.5.0) ##### Important Changes - **feat(react): Add React 19 to peer deps ([#&#8203;12207](https://github.com/getsentry/sentry-javascript/issues/12207))** This release adds support for React 19 in the `@sentry/react` SDK package. - **feat(node): Add `@sentry/node/preload` hook ([#&#8203;12213](https://github.com/getsentry/sentry-javascript/issues/12213))** This release adds a new way to initialize `@sentry/node`, which allows you to use the SDK with performance instrumentation even if you cannot call `Sentry.init()` at the very start of your app. First, run the SDK like this: ```bash node --require @&#8203;sentry/node/preload ./app.js ``` Now, you can initialize and import the rest of the SDK later or asynchronously: ```js const express = require('express'); const Sentry = require('@&#8203;sentry/node'); const dsn = await getSentryDsn(); Sentry.init({ dsn }); ``` For more details, head over to the [PR Description of the new feature](https://github.com/getsentry/sentry-javascript/pull/12213). Our docs will be updated soon with a new guide. ##### Other Changes - feat(browser): Do not include metrics in base CDN bundle ([#&#8203;12230](https://github.com/getsentry/sentry-javascript/issues/12230)) - feat(core): Add `startNewTrace` API ([#&#8203;12138](https://github.com/getsentry/sentry-javascript/issues/12138)) - feat(core): Allow to pass custom scope to `captureFeedback()` ([#&#8203;12216](https://github.com/getsentry/sentry-javascript/issues/12216)) - feat(core): Only allow `SerializedSession` in session envelope items ([#&#8203;11979](https://github.com/getsentry/sentry-javascript/issues/11979)) - feat(nextjs): Use Vercel's `waitUntil` to defer freezing of Vercel Lambdas ([#&#8203;12133](https://github.com/getsentry/sentry-javascript/issues/12133)) - feat(node): Ensure manual OTEL setup works ([#&#8203;12214](https://github.com/getsentry/sentry-javascript/issues/12214)) - fix(aws-serverless): Avoid minifying `Module._resolveFilename` in Lambda layer bundle ([#&#8203;12232](https://github.com/getsentry/sentry-javascript/issues/12232)) - fix(aws-serverless): Ensure lambda layer uses default export from `ImportInTheMiddle` ([#&#8203;12233](https://github.com/getsentry/sentry-javascript/issues/12233)) - fix(browser): Improve browser extension error message check ([#&#8203;12146](https://github.com/getsentry/sentry-javascript/issues/12146)) - fix(browser): Remove optional chaining in INP code ([#&#8203;12196](https://github.com/getsentry/sentry-javascript/issues/12196)) - fix(nextjs): Don't report React postpone errors ([#&#8203;12194](https://github.com/getsentry/sentry-javascript/issues/12194)) - fix(nextjs): Use global scope for generic event filters ([#&#8203;12205](https://github.com/getsentry/sentry-javascript/issues/12205)) - fix(node): Add origin to redis span ([#&#8203;12201](https://github.com/getsentry/sentry-javascript/issues/12201)) - fix(node): Change import of `@prisma/instrumentation` to use default import ([#&#8203;12185](https://github.com/getsentry/sentry-javascript/issues/12185)) - fix(node): Only import `inspector` asynchronously ([#&#8203;12231](https://github.com/getsentry/sentry-javascript/issues/12231)) - fix(replay): Update matcher for hydration error detection to new React docs ([#&#8203;12209](https://github.com/getsentry/sentry-javascript/issues/12209)) - ref(profiling-node): Add warning when using non-LTS node ([#&#8203;12211](https://github.com/getsentry/sentry-javascript/issues/12211)) ### [`v8.4.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#840) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/8.3.0...8.4.0) ##### Important Changes - **feat(nextjs): Trace pageloads in App Router ([#&#8203;12157](https://github.com/getsentry/sentry-javascript/issues/12157))** If you are using Next.js version `14.3.0-canary.64` or above, the Sentry Next.js SDK will now trace clientside pageloads with React Server Components. This means, that client-side errors like `Error: An error occurred in the Server Components render.`, which previously didn't give you much information on how that error was caused, can now be traced back to a specific error in a server component. - **feat(angular): Add Support for Angular 18 ([#&#8203;12183](https://github.com/getsentry/sentry-javascript/issues/12183))** This release guarantees support for Angular 18 with `@sentry/angular`. ##### Other Changes - feat(deps): Bump [@&#8203;opentelemetry/instrumentation-aws-lambda](https://github.com/opentelemetry/instrumentation-aws-lambda) from 0.41.0 to 0.41.1 ([#&#8203;12078](https://github.com/getsentry/sentry-javascript/issues/12078)) - fix(metrics): Ensure string values are interpreted for metrics ([#&#8203;12165](https://github.com/getsentry/sentry-javascript/issues/12165)) ### [`v8.3.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#830) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/8.2.1...8.3.0) ##### Important Changes - **Better Node Framework Span Data** This release improves data quality of spans emitted by Express, Fastify, Connect, Koa, Nest.js and Hapi. - feat(node): Ensure connect spans have better data ([#&#8203;12130](https://github.com/getsentry/sentry-javascript/issues/12130)) - feat(node): Ensure express spans have better data ([#&#8203;12107](https://github.com/getsentry/sentry-javascript/issues/12107)) - feat(node): Ensure fastify spans have better data ([#&#8203;12106](https://github.com/getsentry/sentry-javascript/issues/12106)) - feat(node): Ensure hapi spans have better data ([#&#8203;12140](https://github.com/getsentry/sentry-javascript/issues/12140)) - feat(node): Ensure koa spans have better data ([#&#8203;12108](https://github.com/getsentry/sentry-javascript/issues/12108)) - feat(node): Ensure Nest.js spans have better data ([#&#8203;12139](https://github.com/getsentry/sentry-javascript/issues/12139)) - feat(deps): Bump [@&#8203;opentelemetry/instrumentation-express](https://github.com/opentelemetry/instrumentation-express) from 0.38.0 to 0.39.0 ([#&#8203;12079](https://github.com/getsentry/sentry-javascript/issues/12079)) - **feat(node): No-code init via `--import=@&#8203;sentry/node/init` ([#&#8203;11999](https://github.com/getsentry/sentry-javascript/issues/11999))** When using Sentry in ESM mode, you can now use Sentry without manually calling init like this: ```bash SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 node --import=@&#8203;sentry/node/init app.mjs ``` When using CommonJS, you can do: ```bash SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 node --require=@&#8203;sentry/node/init app.js ``` ##### Other Changes - chore: Align and update MIT license dates ([#&#8203;12143](https://github.com/getsentry/sentry-javascript/issues/12143)) - chore: Resolve or postpone a random assortment of TODOs ([#&#8203;11977](https://github.com/getsentry/sentry-javascript/issues/11977)) - doc(migration): Add entry for runWithAsyncContext ([#&#8203;12153](https://github.com/getsentry/sentry-javascript/issues/12153)) - docs: Add migration docs to point out that default import does not work ([#&#8203;12100](https://github.com/getsentry/sentry-javascript/issues/12100)) - docs(sveltekit): process.env.SENTRY_AUTH_TOKEN ([#&#8203;12118](https://github.com/getsentry/sentry-javascript/issues/12118)) - feat(browser): Ensure `browserProfilingIntegration` is published to CDN ([#&#8203;12158](https://github.com/getsentry/sentry-javascript/issues/12158)) - feat(google-cloud): Expose ESM build ([#&#8203;12149](https://github.com/getsentry/sentry-javascript/issues/12149)) - feat(nextjs): Ignore Prisma critical dependency warnings ([#&#8203;12144](https://github.com/getsentry/sentry-javascript/issues/12144)) - feat(node): Add app.free_memory info to events ([#&#8203;12150](https://github.com/getsentry/sentry-javascript/issues/12150)) - feat(node): Do not create GraphQL resolver spans by default ([#&#8203;12097](https://github.com/getsentry/sentry-javascript/issues/12097)) - feat(node): Use `node:` prefix for node built-ins ([#&#8203;11895](https://github.com/getsentry/sentry-javascript/issues/11895)) - feat(replay): Use unwrapped `setTimeout` to avoid e.g. angular change detection ([#&#8203;11924](https://github.com/getsentry/sentry-javascript/issues/11924)) - fix(core): Add dsn to span envelope header ([#&#8203;12096](https://github.com/getsentry/sentry-javascript/issues/12096)) - fix(feedback): Improve feedback border color in dark-mode, and prevent auto-dark mode when a theme is picked ([#&#8203;12126](https://github.com/getsentry/sentry-javascript/issues/12126)) - fix(feedback): Set optionOverrides to be optional in TS definition ([#&#8203;12125](https://github.com/getsentry/sentry-javascript/issues/12125)) - fix(nextjs): Don't put `undefined` values in props ([#&#8203;12131](https://github.com/getsentry/sentry-javascript/issues/12131)) - fix(nextjs): Fix legacy configuration method detection for emitting warning ([#&#8203;12136](https://github.com/getsentry/sentry-javascript/issues/12136)) - fix(node): Ensure fetch/http breadcrumbs are created correctly ([#&#8203;12137](https://github.com/getsentry/sentry-javascript/issues/12137)) - fix(node): Update `@prisma/instrumentation` from 5.13.0 to 5.14.0 ([#&#8203;12081](https://github.com/getsentry/sentry-javascript/issues/12081)) - ref(node): Add log for running in ESM/CommonJS mode ([#&#8203;12134](https://github.com/getsentry/sentry-javascript/issues/12134)) - ref(node): Handle failing hook registration gracefully ([#&#8203;12135](https://github.com/getsentry/sentry-javascript/issues/12135)) - ref(node): Only show instrumentation warning when tracing is enabled ([#&#8203;12141](https://github.com/getsentry/sentry-javascript/issues/12141)) Work in this release contributed by [@&#8203;pboling](https://github.com/pboling). Thank you for your contribution! ### [`v8.2.1`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#821) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/8.2.0...8.2.1) - fix(aws-serverless): Fix build of lambda layer ([#&#8203;12083](https://github.com/getsentry/sentry-javascript/issues/12083)) - fix(nestjs): Broaden nest.js type ([#&#8203;12076](https://github.com/getsentry/sentry-javascript/issues/12076)) ### [`v8.2.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#820) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/8.1.0...8.2.0) - feat(redis-cache): Create cache-span with prefixed keys (get/set commands) ([#&#8203;12070](https://github.com/getsentry/sentry-javascript/issues/12070)) - feat(core): Add `beforeSendSpan` hook ([#&#8203;11886](https://github.com/getsentry/sentry-javascript/issues/11886)) - feat(browser): Improve idle span handling ([#&#8203;12065](https://github.com/getsentry/sentry-javascript/issues/12065)) - fix(node): Set transactionName for unsampled spans in httpIntegration ([#&#8203;12071](https://github.com/getsentry/sentry-javascript/issues/12071)) - fix(core): Export Scope interface as `Scope` ([#&#8203;12067](https://github.com/getsentry/sentry-javascript/issues/12067)) - fix(core): Avoid looking up client for `hasTracingEnabled()` if possible ([#&#8203;12066](https://github.com/getsentry/sentry-javascript/issues/12066)) - fix(browser): Use consistent timestamps ([#&#8203;12063](https://github.com/getsentry/sentry-javascript/issues/12063)) - fix(node): Fix check for performance integrations ([#&#8203;12043](https://github.com/getsentry/sentry-javascript/issues/12043)) - ref(sveltekit): Warn to delete source maps if Sentry plugin enabled source maps generation ([#&#8203;12072](https://github.com/getsentry/sentry-javascript/issues/12072)) ### [`v8.1.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#810) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/8.0.0...8.1.0) This release mainly fixes a couple of bugs from the initial [8.0.0 release](#&#8203;800). In addition to the changes below, we updated some initially missed points in our migration guides and documentation. - feat(aws-serverless): Fix tree-shaking for aws-serverless package ([#&#8203;12017](https://github.com/getsentry/sentry-javascript/issues/12017)) - feat(node): Bump opentelemetry instrumentation to latest version ([#&#8203;12028](https://github.com/getsentry/sentry-javascript/issues/12028)) - feat(scope): Bring back `lastEventId` on isolation scope ([#&#8203;11951](https://github.com/getsentry/sentry-javascript/issues/11951)) ([#&#8203;12022](https://github.com/getsentry/sentry-javascript/issues/12022)) - fix(aws-serverless): Export `awslambda-auto` - fix(node): Do not warn for missing instrumentation if SDK is disabled ([#&#8203;12041](https://github.com/getsentry/sentry-javascript/issues/12041)) - fix(react): Set dependency-injected functions as early as possible ([#&#8203;12019](https://github.com/getsentry/sentry-javascript/issues/12019)) - fix(react): Warn and fall back gracefully if dependency injected functions are not available ([#&#8203;12026](https://github.com/getsentry/sentry-javascript/issues/12026)) - ref(core): Streamline `parseSampleRate` utility function ([#&#8203;12024](https://github.com/getsentry/sentry-javascript/issues/12024)) - ref(feedback): Make `eventId` optional and use `lastEventId` in report dialog ([#&#8203;12029](https://github.com/getsentry/sentry-javascript/issues/12029)) ### [`v8.0.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#800) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.116.0...8.0.0) The Sentry JS SDK team is proud to announce the release of version `8.0.0` of Sentry's JavaScript SDKs - it's been a long time coming! Thanks to everyone for your patience and a special shout out to the brave souls testing preview builds and reporting issues - we appreciate your support! *** ##### How to Upgrade to Version 8: We recommend reading the [migration guide docs](https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/#migration-codemod) to find out how to address any breaking changes in your code for your specific platform or framework. To automate upgrading to v8 as much as possible, use our migration codemod `@sentry/migr8`: ```sh npx @&#8203;sentry/migr8@&#8203;latest ``` All deprecations from the v7 cycle, with the exception of `getCurrentHub()`, have been removed and can no longer be used in v8. If you have an advanced Sentry SDK setup, we additionally recommend reading the [in-depth migration guide](./MIGRATION.md) in our repo which highlights all changes with additional details and information. The rest of this changelog highlights the most important (breaking) changes and links to more detailed information. ##### Version Support With v8, we dropped support for several old runtimes and browsers **Node SDKs:** The Sentry JavaScript SDK v8 now supports **Node.js 14.8.0 or higher**. This applies to `@sentry/node` and all of our node-based server-side sdks (`@sentry/nextjs`, `@sentry/remix`, etc.). Furthermore, version 8 now ships with full support for ESM-based node apps using **Node.js 18.19.0 or higher**. **Browser SDKs:** The browser SDKs now require [**ES2018+**](https://caniuse.com/?feats=mdn-javascript_builtins_regexp_dotall,js-regexp-lookbehind,mdn-javascript_builtins_regexp_named_capture_groups,mdn-javascript_builtins_regexp_property_escapes,mdn-javascript_builtins_symbol_asynciterator,mdn-javascript_functions_method_definitions_async_generator_methods,mdn-javascript_grammar_template_literals_template_literal_revision,mdn-javascript_operators_destructuring_rest_in_objects,mdn-javascript_operators_destructuring_rest_in_arrays,promise-finally) compatible browsers. New minimum browser versions: - Chrome 63 - Edge 79 - Safari/iOS Safari 12 - Firefox 58 - Opera 50 - Samsung Internet 8.2 For more details, please see the [version support section in our migration guide](./MIGRATION.md#1-version-support-changes). ##### Initializing Server-side SDKs (Node, Bun, Deno, Serverless): In v8, we support a lot more node-based packages than before. In order to ensure auto-instrumentation works, the SDK now needs to be imported and initialized before any other import in your code. We recommend creating a new file (e.g. `instrumentation.js`) to import and initialize the SDK. Then, import the file on top of your entry file or detailed instructions, check our updated SDK setup docs [initializing the SDK in v8](https://docs.sentry.io/platforms/javascript/guides/node/). ##### Performance Monitoring Changes The API around performance monitoring and tracing has been streamlined, and we've added support for more integrations out of the box. - [Performance Monitoring API](./MIGRATION.md#performance-monitoring-api) - [Performance Monitoring Integrations](./MIGRATION.md#performance-monitoring-integrations) ##### Functional Integrations Integrations are now simple functions instead of classes. Class-based integrations [have been removed](./MIGRATION.md#removal-of-class-based-integrations): ```javascript // old (v7) Sentry.init({ integrations: [new Sentry.BrowserTracing()], }); // new (v8) Sentry.init({ integrations: [Sentry.browserTracingIntegration()], }); ``` ##### Package removal The following packages have been removed or replaced and will no longer be published: - [`@sentry/hub`](./MIGRATION.md#sentryhub) - [`@sentry/tracing`](./MIGRATION.md#sentrytracing) - [`@sentry/integrations`](./MIGRATION.md#sentryintegrations) - [`@sentry/serverless`](./MIGRATION.md#sentryserverless) - [`@sentry/replay`](./MIGRATION.md#sentryreplay) ##### Changes since `8.0.0-rc.3` - **feat(nextjs): Remove `transpileClientSDK` ([#&#8203;11978](https://github.com/getsentry/sentry-javascript/issues/11978))** As we are dropping support for Internet Explorer 11 and other other older browser versions wih version `8.0.0`, we are also removing the `transpileClientSDK` option from the Next.js SDK. If you need to support these browser versions, please configure Webpack and Next.js to down-compile the SDK. - **feat(serverless): Do not include performance integrations by default ([#&#8203;11998](https://github.com/getsentry/sentry-javascript/issues/11998))** To keep Lambda bundle size reasonable, the SDK no longer ships with all performance (database) integrations by default. Add the Sentry integrations of the databases and other tools you're using manually to your `Sentry.init` call by following [this guide](https://docs.sentry.io/platforms/javascript/configuration/integrations/#modifying-default-integrations). Note that this change does not apply if you use the SDK with the Sentry AWS Lambda layer. - feat(feedback): Simplify public css configuration for feedback ([#&#8203;11985](https://github.com/getsentry/sentry-javascript/issues/11985)) - fix(feedback): Check for empty user ([#&#8203;11993](https://github.com/getsentry/sentry-javascript/issues/11993)) - fix(replay): Fix type for `replayCanvasIntegration` ([#&#8203;11995](https://github.com/getsentry/sentry-javascript/issues/11995)) - fix(replay): Fix user activity not being updated in `start()` ([#&#8203;12001](https://github.com/getsentry/sentry-javascript/issues/12001)) ### [`v7.116.0`](https://github.com/getsentry/sentry-javascript/releases/tag/7.116.0) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.115.0...7.116.0) - build(craft): Publish lambda layer under its own name for v7 ([#&#8203;12098](https://github.com/getsentry/sentry-javascript/issues/12098)) ([#&#8203;12099](https://github.com/getsentry/sentry-javascript/issues/12099)) This release publishes a new AWS Lambda layer under the name `SentryNodeServerlessSDKv7` that users still running v7 can use instead of pinning themselves to `SentryNodeServerlessSDK:235`. #### Bundle size 📦 | Path | Size | | ---------------------------------------------------------------------------------- | ----------------- | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.83 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay) - Webpack (gzipped) | 71.77 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 76.02 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 65.38 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing) - Webpack (gzipped) | 35.64 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. browserTracingIntegration) - Webpack (gzipped) | 35.53 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Feedback) - Webpack (gzipped) | 31.6 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. sendFeedback) - Webpack (gzipped) | 31.61 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) - Webpack (gzipped) | 22.78 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 79.04 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.37 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.05 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) - ES6 CDN Bundle (gzipped) | 25.28 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 221.49 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.08 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) - ES6 CDN Bundle (minified & uncompressed) | 75.81 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.33 KB | | [@&#8203;sentry/react](https://github.com/sentry/react) (incl. Tracing, Replay) - Webpack (gzipped) | 72.27 KB | | [@&#8203;sentry/react](https://github.com/sentry/react) - Webpack (gzipped) | 22.81 KB | | [@&#8203;sentry/nextjs](https://github.com/sentry/nextjs) Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.03 KB | | [@&#8203;sentry/nextjs](https://github.com/sentry/nextjs) Client - Webpack (gzipped) | 54.15 KB | | [@&#8203;sentry-internal/feedback](https://github.com/sentry-internal/feedback) - Webpack (gzipped) | 17.34 KB | ### [`v7.115.0`](https://github.com/getsentry/sentry-javascript/releases/tag/7.115.0) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.114.0...7.115.0) - feat(v7): Add support for global onUnhandled Error/Promise for Bun ([#&#8203;11959](https://github.com/getsentry/sentry-javascript/issues/11959)) - fix(replay/v7): Fix user activity not being updated in `start()` ([#&#8203;12003](https://github.com/getsentry/sentry-javascript/issues/12003)) - ref(api): Remove `lastEventId` deprecation warnings ([#&#8203;12042](https://github.com/getsentry/sentry-javascript/issues/12042)) #### Bundle size 📦 | Path | Size | | ---------------------------------------------------------------------------------- | ----------------- | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.83 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay) - Webpack (gzipped) | 71.77 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 76.02 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 65.38 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing) - Webpack (gzipped) | 35.64 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. browserTracingIntegration) - Webpack (gzipped) | 35.53 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Feedback) - Webpack (gzipped) | 31.6 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. sendFeedback) - Webpack (gzipped) | 31.61 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) - Webpack (gzipped) | 22.78 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 79.04 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.37 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.05 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) - ES6 CDN Bundle (gzipped) | 25.28 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 221.49 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.08 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) - ES6 CDN Bundle (minified & uncompressed) | 75.81 KB | | [@&#8203;sentry/browser](https://github.com/sentry/browser) (incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.33 KB | | [@&#8203;sentry/react](https://github.com/sentry/react) (incl. Tracing, Replay) - Webpack (gzipped) | 72.27 KB | | [@&#8203;sentry/react](https://github.com/sentry/react) - Webpack (gzipped) | 22.81 KB | | [@&#8203;sentry/nextjs](https://github.com/sentry/nextjs) Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.03 KB | | [@&#8203;sentry/nextjs](https://github.com/sentry/nextjs) Client - Webpack (gzipped) | 54.15 KB | | [@&#8203;sentry-internal/feedback](https://github.com/sentry-internal/feedback) - Webpack (gzipped) | 17.34 KB | ### [`v7.114.0`](https://github.com/getsentry/sentry-javascript/releases/tag/7.114.0) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.113.0...7.114.0) ##### Important Changes - **fix(browser/v7): Continuously record CLS ([#&#8203;11935](https://github.com/getsentry/sentry-javascript/issues/11935))** This release fixes a bug that caused the cumulative layout shift (CLS) web vital not to be reported in a majority of the cases where it should have been reported. With this change, the CLS web vital should now always be reported for pageloads with layout shift. If a pageload did not have layout shift, no CLS web vital should be reported. **Please note that upgrading the SDK to this version may cause data in your dashboards to drastically change.** ##### Other Changes - build(aws-lambda/v7): Turn off lambda layer publishing ([#&#8203;11875](https://github.com/getsentry/sentry-javascript/issues/11875)) - feat(v7): Add `tunnel` support to multiplexed transport ([#&#8203;11851](https://github.com/getsentry/sentry-javascript/issues/11851)) - fix(opentelemetry-node): support `HTTP_REQUEST_METHOD` attribute ([#&#8203;11929](https://github.com/getsentry/sentry-javascript/issues/11929)) - fix(react/v7): Fix react router v4/v5 span names ([#&#8203;11940](https://github.com/getsentry/sentry-javascript/issues/11940)) ### [`v7.113.0`](https://github.com/getsentry/sentry-javascript/releases/tag/7.113.0) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.112.2...7.113.0) ##### Important Changes - **feat(node): Support Node 22 ([#&#8203;11754](https://github.com/getsentry/sentry-javascript/issues/11754))** This release adds support for Node 22! 🎉 It also adds prebuilt-binaries for Node 22 to `@sentry/profiling-node`. ##### Other Changes - feat(feedback): \[v7] New feedback button design ([#&#8203;11841](https://github.com/getsentry/sentry-javascript/issues/11841)) - feat(replay/v7): Upgrade rrweb packages to 2.15.0 ([#&#8203;11752](https://github.com/getsentry/sentry-javascript/issues/11752)) - fix(ember/v7): Ensure unnecessary spans are avoided ([#&#8203;11848](https://github.com/getsentry/sentry-javascript/issues/11848)) ### [`v7.112.2`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71122) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.112.1...7.112.2) - fix(nextjs|sveltekit): Ensure we can pass `browserTracingIntegration` ([#&#8203;11765](https://github.com/getsentry/sentry-javascript/issues/11765)) ### [`v7.112.1`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71121) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.112.0...7.112.1) - fix(ember/v7): Do not create rendering spans without transaction ([#&#8203;11750](https://github.com/getsentry/sentry-javascript/issues/11750)) ### [`v7.112.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71120) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.111.0...7.112.0) ##### Important Changes - **feat: Export pluggable integrations from SDK packages ([#&#8203;11723](https://github.com/getsentry/sentry-javascript/issues/11723))** Instead of installing `@sentry/integrations`, you can now import the pluggable integrations directly from your SDK package: ```js // Before import * as Sentry fromv '@&#8203;sentry/browser'; import { dedupeIntegration } from '@&#8203;sentry/integrations'; Sentry.init({ integrations: [dedupeIntegration()], }); // After import * as Sentry from '@&#8203;sentry/browser'; Sentry.init({ integrations: [Sentry.dedupeIntegration()], }); ``` Note that only the functional integrations (e.g. `xxxIntegration()`) are re-exported. ##### Other Changes - feat(replay): Add "maxCanvasSize" option for replay canvases ([#&#8203;11732](https://github.com/getsentry/sentry-javascript/issues/11732)) - fix(serverless): \[v7] Check if cloud event callback is a function ([#&#8203;11734](https://github.com/getsentry/sentry-javascript/issues/11734)) ### [`v7.111.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71110) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.110.1...7.111.0) - feat(core): Add `server.address` to browser `http.client` spans ([#&#8203;11663](https://github.com/getsentry/sentry-javascript/issues/11663)) - fix: Ensure next & sveltekit correctly handle `browserTracingIntegration` ([#&#8203;11647](https://github.com/getsentry/sentry-javascript/issues/11647)) - fix(browser): Don't assume window.document is available ([#&#8203;11598](https://github.com/getsentry/sentry-javascript/issues/11598)) ### [`v7.110.1`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71101) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.110.0...7.110.1) - fix(nextjs): Fix `tunnelRoute` matching logic for hybrid cloud ([#&#8203;11577](https://github.com/getsentry/sentry-javascript/issues/11577)) ### [`v7.110.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71100) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.109.0...7.110.0) ##### Important Changes - **feat(tracing): Add interactions sample rate to browser tracing integrations ([#&#8203;11382](https://github.com/getsentry/sentry-javascript/issues/11382))** You can now use a `interactionsSampleRate` to control the sample rate of INP spans. `interactionsSampleRate` is applied on top of the global `tracesSampleRate`. Therefore if `interactionsSampleRate` is `0.5` and `tracesSampleRate` is `0.1`, then the actual sample rate for interactions is `0.05`. ```js Sentry.init({ tracesSampleRate: 0.1, integrations: [ Sentry.browserTracingIntegration({ interactionsSampleRate: 0.5, }), ], }); ``` - **Deprecations** This release deprecates the `Hub` class, as well as the `addRequestDataToTransaction` method. The `trpcMiddleware` method is no longer on the `Handlers` export, but instead is a standalone export. Please see the detailed [Migration docs](./MIGRATION.md#deprecations-in-7x) on how to migrate to the new APIs. - feat: Deprecate and relocate `trpcMiddleware` ([#&#8203;11389](https://github.com/getsentry/sentry-javascript/issues/11389)) - feat(core): Deprecate `Hub` class ([#&#8203;11528](https://github.com/getsentry/sentry-javascript/issues/11528)) - feat(types): Deprecate `Hub` interface ([#&#8203;11530](https://github.com/getsentry/sentry-javascript/issues/11530)) - ref: Deprecate `addRequestDataToTransaction` ([#&#8203;11368](https://github.com/getsentry/sentry-javascript/issues/11368)) ##### Other Changes - feat(core): Update metric normalization ([#&#8203;11519](https://github.com/getsentry/sentry-javascript/issues/11519)) - feat(feedback): Customize feedback placeholder text color ([#&#8203;11521](https://github.com/getsentry/sentry-javascript/issues/11521)) - feat(remix): Skip span creation for `OPTIONS` and `HEAD` request. ([#&#8203;11485](https://github.com/getsentry/sentry-javascript/issues/11485)) - feat(utils): Add metric buckets rate limit ([#&#8203;11506](https://github.com/getsentry/sentry-javascript/issues/11506)) - fix(core): unref timer to not block node exit ([#&#8203;11483](https://github.com/getsentry/sentry-javascript/issues/11483)) - fix(metrics): Map `statsd` to `metric_bucket` ([#&#8203;11505](https://github.com/getsentry/sentry-javascript/issues/11505)) - fix(spans): Allow zero exclusive time for INP spans ([#&#8203;11408](https://github.com/getsentry/sentry-javascript/issues/11408)) - ref(feedback): Configure feedback fonts ([#&#8203;11520](https://github.com/getsentry/sentry-javascript/issues/11520)) ### [`v7.109.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71090) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.108.0...7.109.0) This release deprecates some exports from the `@sentry/replay` package. These exports have been moved to the browser SDK (or related framework SDKs like `@sentry/react`). - feat(feedback): Make "required" text for input elements configurable ([#&#8203;11287](https://github.com/getsentry/sentry-javascript/issues/11287)) - feat(node): Add scope to ANR events ([#&#8203;11267](https://github.com/getsentry/sentry-javascript/issues/11267)) - feat(replay): Bump `rrweb` to 2.12.0 ([#&#8203;11317](https://github.com/getsentry/sentry-javascript/issues/11317)) - fix(node): Local variables skipped after Promise ([#&#8203;11248](https://github.com/getsentry/sentry-javascript/issues/11248)) - fix(node): Skip capturing Hapi Boom error responses ([#&#8203;11324](https://github.com/getsentry/sentry-javascript/issues/11324)) - fix(web-vitals): Check for undefined navigation entry ([#&#8203;11312](https://github.com/getsentry/sentry-javascript/issues/11312)) - ref(replay): Deprecate `@sentry/replay` exports ([#&#8203;11242](https://github.com/getsentry/sentry-javascript/issues/11242)) Work in this release contributed by [@&#8203;soerface](https://github.com/soerface). Thank you for your contribution! ### [`v7.108.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71080) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.107.0...7.108.0) This release fixes issues with Time to First Byte (TTFB) calculation in the SDK that was introduced with `7.95.0`. It also fixes some bugs with Interaction to First Paint (INP) instrumentation. This may impact your Sentry Performance Score calculation. - feat(serverless): Add Node.js 20 to compatible runtimes ([#&#8203;11104](https://github.com/getsentry/sentry-javascript/issues/11104)) - feat(core): Backport `ResizeObserver` and `googletag` default filters ([#&#8203;11210](https://github.com/getsentry/sentry-javascript/issues/11210)) - feat(webvitals): Adds event entry names for INP handler. Also guard against empty metric value - fix(metrics): use correct statsd data category ([#&#8203;11187](https://github.com/getsentry/sentry-javascript/issues/11187)) - fix(node): Record local variables with falsy values (v7) ([#&#8203;11190](https://github.com/getsentry/sentry-javascript/issues/11190)) - fix(node): Use unique variable for ANR context transfer (v7) ([#&#8203;11162](https://github.com/getsentry/sentry-javascript/issues/11162)) - fix(node): Time zone handling for `cron` ([#&#8203;11225](https://github.com/getsentry/sentry-javascript/issues/11225)) - fix(tracing): use web-vitals ttfb calculation ([#&#8203;11231](https://github.com/getsentry/sentry-javascript/issues/11231)) - fix(types): Fix incorrect `sampled` type on `Transaction` ([#&#8203;11146](https://github.com/getsentry/sentry-javascript/issues/11146)) - fix(webvitals): Fix mapping not being maintained properly and sometimes not sending INP spans ([#&#8203;11183](https://github.com/getsentry/sentry-javascript/issues/11183)) Work in this release contributed by [@&#8203;quisido](https://github.com/quisido) and [@&#8203;joshkel](https://github.com/joshkel). Thank you for your contributions! ### [`v7.107.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71070) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.106.1...7.107.0) This release fixes issues with INP instrumentation with the Next.js SDK and adds support for the `enableInp` option in the deprecated `BrowserTracing` integration for backwards compatibility. - feat(performance): Port INP span instrumentation to old browser tracing ([#&#8203;11085](https://github.com/getsentry/sentry-javascript/issues/11085)) - fix(ember): Ensure browser tracing is correctly lazy loaded ([#&#8203;11027](https://github.com/getsentry/sentry-javascript/issues/11027)) - fix(node): Do not assert in vendored proxy code (v7 backport) ([#&#8203;11009](https://github.com/getsentry/sentry-javascript/issues/11009)) - fix(react): Set `handled` value in ErrorBoundary depending on fallback \[v7] ([#&#8203;11037](https://github.com/getsentry/sentry-javascript/issues/11037)) ### [`v7.106.1`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71061) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.106.0...7.106.1) - fix(nextjs/v7): Use passthrough `createReduxEnhancer` on server ([#&#8203;11010](https://github.com/getsentry/sentry-javascript/issues/11010)) ### [`v7.106.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#71060) [Compare Source](https://github.com/getsentry/sentry-javascript/compare/7.105.0...7.106.0) - feat(nextjs): Support Hybrid Cloud DSNs with `tunnelRoute` option ([#&#8203;10958](https://github.com/getsentry/sentry-javascript/issues/10958)) - feat(remix): Add Vite dev-mode support to Express instrumentation ([#&#8203;10811](https://github.com/getsentry/sentry-javascript/issues/10811)) - fix(core): Undeprecate `setTransactionName` - fix(browser): Don't use chrome variable name ([#&#8203;10874](https://github.com/getsentry/sentry-javascript/issues/10874)) - fix(nextjs): Client code should not use Node `global` ([#&#8203;10925](https://github.com/getsentry/sentry-javascript/issues/10925)) - fix(node): support undici headers as strings or arrays ([#&#8203;10938](https://github.com/getsentry/sentry-javascript/issues/10938)) - fix(types): Add `AttachmentType` and use for envelope `attachment_type` property ([#&#8203;10946](https://github.com/getsentry/sentry-javascript/issues/10946)) - ref(ember): Avoid namespace import to hopefully resolve minification issue ([#&#8203;10885](https://github.com/getsentry/sentry-javascript/issues/10885)) - chore(sveltekit): Fix punctuation in a console.log ([#&#8203;10895](https://github.com/getsentry/sentry-javascript/issues/10895)) Work in this release contributed by [@&#8203;jessezhang91](https://github.com/jessezhang91) and [@&#8203;bfontaine](https://github.com/bfontaine). Thank you for your contributions! </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTYuMSIsInVwZGF0ZWRJblZlciI6IjM3LjM2OC4zIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
renovate-bot force-pushed renovate/major-sentry-javascript-monorepo from fd9b53426c to 3e1eac427d 2024-05-16 12:01:54 +00:00 Compare
renovate-bot force-pushed renovate/major-sentry-javascript-monorepo from 3e1eac427d to f8d0555b80 2024-05-16 16:01:48 +00:00 Compare
renovate-bot force-pushed renovate/major-sentry-javascript-monorepo from f8d0555b80 to 1eb38f0963 2024-05-16 17:01:48 +00:00 Compare
renovate-bot force-pushed renovate/major-sentry-javascript-monorepo from 1eb38f0963 to c340526fca 2024-05-22 18:01:57 +00:00 Compare
renovate-bot force-pushed renovate/major-sentry-javascript-monorepo from c340526fca to c6f5fa86a0 2024-05-23 17:02:07 +00:00 Compare
renovate-bot force-pushed renovate/major-sentry-javascript-monorepo from c6f5fa86a0 to b9211cea16 2024-05-27 19:01:58 +00:00 Compare
renovate-bot force-pushed renovate/major-sentry-javascript-monorepo from b9211cea16 to 733e42d2b9 2024-05-29 15:02:02 +00:00 Compare
renovate-bot force-pushed renovate/major-sentry-javascript-monorepo from 733e42d2b9 to bc4f026cd8 2024-05-29 17:01:58 +00:00 Compare
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Paste/Frontend#32
No description provided.