Skip to content

Commit

Permalink
meta: Add Changelog entry for 8.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed May 29, 2024
1 parent d9562b9 commit 4aaaba7
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,89 @@

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

## 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:

```javascript
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)

## 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:

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` (#12147)**

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

```js
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](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 (#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)

## 8.5.0

### Important Changes
Expand Down

0 comments on commit 4aaaba7

Please sign in to comment.