Skip to content

Commit f4dcfdb

Browse files
Merge pull request #12286 from getsentry/master
[Gitflow] Merge master into develop
2 parents d9562b9 + 0a918e7 commit f4dcfdb

File tree

44 files changed

+247
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+247
-164
lines changed

CHANGELOG.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,89 @@
44

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

7+
## 8.7.0
8+
9+
### Important Changes
10+
11+
- **feat(react): Add TanStack Router integration (#12095)**
12+
13+
This release adds instrumentation for TanStack router with a new `tanstackRouterBrowserTracingIntegration` in the
14+
`@sentry/react` SDK:
15+
16+
```javascript
17+
import * as Sentry from '@sentry/react';
18+
import { createRouter } from '@tanstack/react-router';
19+
20+
const router = createRouter({
21+
// Your router options...
22+
});
23+
24+
Sentry.init({
25+
dsn: '___PUBLIC_DSN___',
26+
integrations: [Sentry.tanstackRouterBrowserTracingIntegration(router)],
27+
tracesSampleRate: 1.0,
28+
});
29+
```
30+
31+
### Other Changes
32+
33+
- fix(nextjs): Do not hide `sourceMappingURL` comment on client when `nextConfig.productionBrowserSourceMaps: true` is
34+
set (#12278)
35+
36+
## 8.6.0
37+
38+
### Important Changes
39+
40+
- **feat(metrics): Add `timings` method to metrics (#12226)**
41+
42+
This introduces a new method, `metrics.timing()`, which can be used in two ways:
43+
44+
1. With a numeric value, to simplify creating a distribution metric. This will default to `second` as unit:
45+
46+
```js
47+
Sentry.metrics.timing('myMetric', 100);
48+
```
49+
50+
2. With a callback, which will wrap the duration of the callback. This can accept a sync or async callback. It will
51+
create an inactive span around the callback and at the end emit a metric with the duration of the span in seconds:
52+
53+
```js
54+
const returnValue = Sentry.metrics.timing('myMetric', measureThisFunction);
55+
```
56+
57+
- **feat(react): Add `Sentry.reactErrorHandler` (#12147)**
58+
59+
This PR introduces `Sentry.reactErrorHandler`, which you can use in React 19 as follows:
60+
61+
```js
62+
import * as Sentry from '@sentry/react';
63+
import { hydrateRoot } from 'react-dom/client';
64+
65+
ReactDOM.hydrateRoot(
66+
document.getElementById('root'),
67+
<React.StrictMode>
68+
<App />
69+
</React.StrictMode>,
70+
{
71+
onUncaughtError: Sentry.reactErrorHandler(),
72+
onCaughtError: Sentry.reactErrorHandler((error, errorInfo) => {
73+
// optional callback if users want custom config.
74+
}),
75+
},
76+
);
77+
```
78+
79+
For more details, take a look at [the PR](https://github.com/getsentry/sentry-javascript/pull/12147). Our
80+
documentation will be updated soon!
81+
82+
### Other Changes
83+
84+
- feat(sveltekit): Add request data to server-side events (#12254)
85+
- fix(core): Pass in cron monitor config correctly (#12248)
86+
- fix(nextjs): Don't capture suspense errors in server components (#12261)
87+
- fix(tracing): Ensure sent spans are limited to 1000 (#12252)
88+
- ref(core): Use versioned carrier on global object (#12206)
89+
790
## 8.5.0
891

992
### Important Changes

dev-packages/browser-integration-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -42,7 +42,7 @@
4242
"@babel/preset-typescript": "^7.16.7",
4343
"@playwright/test": "^1.43.1",
4444
"@sentry-internal/rrweb": "2.11.0",
45-
"@sentry/browser": "8.5.0",
45+
"@sentry/browser": "8.7.0",
4646
"axios": "1.6.7",
4747
"babel-loader": "^8.2.2",
4848
"html-webpack-plugin": "^5.5.0",

dev-packages/bundle-analyzer-scenarios/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundle-analyzer-scenarios",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Scenarios to test bundle analysis with",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",

dev-packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/e2e-tests",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

dev-packages/event-proxy-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"name": "@sentry-internal/event-proxy-server",
55
"author": "Sentry",
66
"license": "MIT",
@@ -41,8 +41,8 @@
4141
"clean": "rimraf -g ./node_modules ./build"
4242
},
4343
"devDependencies": {
44-
"@sentry/types": "8.5.0",
45-
"@sentry/utils": "8.5.0"
44+
"@sentry/types": "8.7.0",
45+
"@sentry/utils": "8.7.0"
4646
},
4747
"volta": {
4848
"extends": "../../package.json"

dev-packages/node-integration-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-integration-tests",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=14.18"
@@ -31,8 +31,8 @@
3131
"@nestjs/core": "^10.3.3",
3232
"@nestjs/platform-express": "^10.3.3",
3333
"@prisma/client": "5.9.1",
34-
"@sentry/node": "8.5.0",
35-
"@sentry/types": "8.5.0",
34+
"@sentry/node": "8.7.0",
35+
"@sentry/types": "8.7.0",
3636
"@types/mongodb": "^3.6.20",
3737
"@types/mysql": "^2.15.21",
3838
"@types/pg": "^8.6.5",

dev-packages/overhead-metrics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"name": "@sentry-internal/overhead-metrics",
55
"main": "index.js",
66
"author": "Sentry",

dev-packages/rollup-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/rollup-utils",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Rollup utilities used at Sentry for the Sentry JavaScript SDK",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/rollup-utils",

dev-packages/size-limit-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/size-limit-gh-action",
33
"description": "An internal Github Action to compare the current size of a PR against the one on develop.",
4-
"version": "8.5.0",
4+
"version": "8.7.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"npmClient": "yarn"
55
}

packages/angular/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/angular",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Official Sentry SDK for Angular",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
@@ -21,10 +21,10 @@
2121
"rxjs": "^6.5.5 || ^7.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "8.5.0",
25-
"@sentry/core": "8.5.0",
26-
"@sentry/types": "8.5.0",
27-
"@sentry/utils": "8.5.0",
24+
"@sentry/browser": "8.7.0",
25+
"@sentry/core": "8.7.0",
26+
"@sentry/types": "8.7.0",
27+
"@sentry/utils": "8.7.0",
2828
"tslib": "^2.4.1"
2929
},
3030
"devDependencies": {

packages/astro/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/astro",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Official Sentry SDK for Astro",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/astro",
@@ -61,11 +61,11 @@
6161
"astro": ">=3.x || >=4.0.0-beta"
6262
},
6363
"dependencies": {
64-
"@sentry/browser": "8.5.0",
65-
"@sentry/core": "8.5.0",
66-
"@sentry/node": "8.5.0",
67-
"@sentry/types": "8.5.0",
68-
"@sentry/utils": "8.5.0",
64+
"@sentry/browser": "8.7.0",
65+
"@sentry/core": "8.7.0",
66+
"@sentry/node": "8.7.0",
67+
"@sentry/types": "8.7.0",
68+
"@sentry/utils": "8.7.0",
6969
"@sentry/vite-plugin": "^2.14.2"
7070
},
7171
"devDependencies": {

packages/aws-serverless/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/aws-serverless",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Official Sentry SDK for AWS Lambda and AWS Serverless Environments",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/serverless",
@@ -65,10 +65,10 @@
6565
"dependencies": {
6666
"@opentelemetry/instrumentation-aws-lambda": "0.41.1",
6767
"@opentelemetry/instrumentation-aws-sdk": "0.41.0",
68-
"@sentry/core": "8.5.0",
69-
"@sentry/node": "8.5.0",
70-
"@sentry/types": "8.5.0",
71-
"@sentry/utils": "8.5.0",
68+
"@sentry/core": "8.7.0",
69+
"@sentry/node": "8.7.0",
70+
"@sentry/types": "8.7.0",
71+
"@sentry/utils": "8.7.0",
7272
"@types/aws-lambda": "^8.10.62"
7373
},
7474
"devDependencies": {

packages/browser-utils/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-utils",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Browser Utilities for all Sentry JavaScript SDKs",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser-utils",
@@ -42,9 +42,9 @@
4242
"access": "public"
4343
},
4444
"dependencies": {
45-
"@sentry/core": "8.5.0",
46-
"@sentry/types": "8.5.0",
47-
"@sentry/utils": "8.5.0"
45+
"@sentry/core": "8.7.0",
46+
"@sentry/types": "8.7.0",
47+
"@sentry/utils": "8.7.0"
4848
},
4949
"scripts": {
5050
"build": "run-p build:transpile build:types",

packages/browser/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/browser",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Official Sentry SDK for browsers",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser",
@@ -42,16 +42,16 @@
4242
"access": "public"
4343
},
4444
"dependencies": {
45-
"@sentry-internal/browser-utils": "8.5.0",
46-
"@sentry-internal/feedback": "8.5.0",
47-
"@sentry-internal/replay": "8.5.0",
48-
"@sentry-internal/replay-canvas": "8.5.0",
49-
"@sentry/core": "8.5.0",
50-
"@sentry/types": "8.5.0",
51-
"@sentry/utils": "8.5.0"
45+
"@sentry-internal/browser-utils": "8.7.0",
46+
"@sentry-internal/feedback": "8.7.0",
47+
"@sentry-internal/replay": "8.7.0",
48+
"@sentry-internal/replay-canvas": "8.7.0",
49+
"@sentry/core": "8.7.0",
50+
"@sentry/types": "8.7.0",
51+
"@sentry/utils": "8.7.0"
5252
},
5353
"devDependencies": {
54-
"@sentry-internal/integration-shims": "8.5.0",
54+
"@sentry-internal/integration-shims": "8.7.0",
5555
"@types/md5": "2.1.33",
5656
"btoa": "^1.2.1",
5757
"fake-indexeddb": "^4.0.1",

packages/bun/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/bun",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Official Sentry SDK for bun",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/bun",
@@ -42,11 +42,11 @@
4242
"access": "public"
4343
},
4444
"dependencies": {
45-
"@sentry/core": "8.5.0",
46-
"@sentry/node": "8.5.0",
47-
"@sentry/opentelemetry": "8.5.0",
48-
"@sentry/types": "8.5.0",
49-
"@sentry/utils": "8.5.0"
45+
"@sentry/core": "8.7.0",
46+
"@sentry/node": "8.7.0",
47+
"@sentry/opentelemetry": "8.7.0",
48+
"@sentry/types": "8.7.0",
49+
"@sentry/utils": "8.7.0"
5050
},
5151
"devDependencies": {
5252
"bun-types": "latest"

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/core",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Base implementation for all Sentry JavaScript SDKs",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/core",
@@ -42,8 +42,8 @@
4242
"access": "public"
4343
},
4444
"dependencies": {
45-
"@sentry/types": "8.5.0",
46-
"@sentry/utils": "8.5.0"
45+
"@sentry/types": "8.7.0",
46+
"@sentry/utils": "8.7.0"
4747
},
4848
"scripts": {
4949
"build": "run-p build:transpile build:types",

packages/deno/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/deno",
3-
"version": "8.5.0",
3+
"version": "8.7.0",
44
"description": "Official Sentry SDK for Deno",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/deno",
@@ -26,9 +26,9 @@
2626
"index.d.ts"
2727
],
2828
"dependencies": {
29-
"@sentry/core": "8.5.0",
30-
"@sentry/types": "8.5.0",
31-
"@sentry/utils": "8.5.0"
29+
"@sentry/core": "8.7.0",
30+
"@sentry/types": "8.7.0",
31+
"@sentry/utils": "8.7.0"
3232
},
3333
"devDependencies": {
3434
"@rollup/plugin-typescript": "^11.1.5",

0 commit comments

Comments
 (0)