Bump @sentry/nextjs from 7.99.0 to 8.7.0
Bumps @sentry/nextjs from 7.99.0 to 8.7.0.
Release notes
Sourced from @sentry/nextjs
's releases.
8.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 whennextConfig.productionBrowserSourceMaps: true
is set (#12278)8.6.0
8.6.0
did not release fully, so this8.7.0
also includes changes from that release.Important Changes
feat(metrics): Add
timings
method to metrics (#12226)This introduces a new method,
metrics.timing()
, which can be used in two ways:
- With a numeric value, to simplify creating a distribution metric. This will default to
second
as unit:Sentry.metrics.timing('myMetric', 100);
- 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);
... (truncated)
Changelog
Sourced from @sentry/nextjs
's changelog.
8.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 whennextConfig.productionBrowserSourceMaps: true
is set (#12278)8.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:
- With a numeric value, to simplify creating a distribution metric. This will default to
second
as unit:Sentry.metrics.timing('myMetric', 100);
- 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);
... (truncated)
Commits
-
41b8f79
release: 8.7.0 -
d4aaa3a
Merge pull request #12280 from getsentry/prepare-release/8.7.0 -
9b09cb2
Merge branch 'master' into prepare-release/8.7.0 -
4aaaba7
meta: Add Changelog entry for 8.7.0 -
d9562b9
fix(nextjs): Do not hidesourceMappingURL
comment on client when `nextConfi... -
0d1093d
feat(react): Add TanStack Router integration (#12095) -
bbe7be5
build: Remove@types/rimraf
and some rimraf usage (#12276) -
81e0fd1
build: Bump node to 18.20.3 (#12271) -
264675d
Merge pull request #12272 from getsentry/prepare-release/8.6.00 -
bf0a138
test(react): Update react-create-hash-router E2E test (#12262) - Additional commits viewable in compare view