Skip to content

Commit 69ade06

Browse files
committed
meta: Update CHANGELOG for 7.48.0
1 parent 7f54143 commit 69ade06

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

CHANGELOG.md

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

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

7+
## 7.48.0
8+
9+
### Important Changes
10+
11+
- **feat(core)**: Make `runWithAsyncContext` public API (#7817)
12+
- **feat(node)**: Auto-select best `AsyncContextStrategy` for Node.js version (#7804)
13+
14+
This release introduces an new API to the Node SDK: `runWithAsyncContext` can be used to isolate Sentry scope and breadcrumbs to a single request if you are finding that breadcrumbs and scope are leaking across requests.
15+
With this new API, the SDK will use `AsyncLocalStorage` in favour of domains if you're using Node 14 or newer. It still falls back to using domains on older Node versions.
16+
17+
Here's a usage example for [using Sentry in a Koa project](https://docs.sentry.io/platforms/node/guides/koa/#monitor-performance), where previously, you needed to use domains:
18+
19+
```js
20+
const requestHandler = (ctx, next) => {
21+
return new Promise((resolve, reject) => {
22+
Sentry.runWithAsyncContext(
23+
async hub => {
24+
hub.configureScope(scope =>
25+
scope.addEventProcessor(event =>
26+
Sentry.addRequestDataToEvent(event, ctx.request, {
27+
include: {
28+
user: false,
29+
},
30+
})
31+
)
32+
);
33+
34+
await next();
35+
resolve();
36+
},
37+
{ emitters: [ctx] }
38+
);
39+
});
40+
};
41+
```
42+
43+
If you're manually using domains to isolate Sentry data, we strongly recommend switching to this API!
44+
45+
In addition to exporting `runWithAsyncContext` publicly, the SDK also uses it internally where we previously used domains.
46+
47+
- **feat(sveltekit)**: Remove `withSentryViteConfig` (#7789)
48+
49+
This release removes our `withSentryViteConfig` wrapper we previously instructed you to add to your `vite.config.js` file. It is replaced Vite plugins which you simply add to your Vite config, just like the `sveltekit()` Vite plugins. We believe this is a more transparent and Vite/SvelteKit-native way of applying build time modifications. Here's how to use the plugins:
50+
51+
```js
52+
// vite.config.js
53+
import { sveltekit } from '@sveltejs/kit/vite';
54+
import { sentrySvelteKit } from '@sentry/sveltekit';
55+
56+
export default {
57+
plugins: [sentrySvelteKit(), sveltekit()],
58+
// ... rest of your Vite config
59+
};
60+
```
61+
62+
Please note that this is a **breaking change**! We're sorry for the inconvenience but the SvelteKit SDK is still in alpha stage and we want to establish a clean and SvelteKit-friendly API before making the SDK stable. You have been warned ;)
63+
64+
- **feat(sveltekit)**: Add Sentry Vite Plugin to upload source maps (#7811)
65+
66+
This release adds automatic upload of source maps to the SvelteKit SDK. No need to configure anything other than adding our Vite plugins to your SDK. The example above shows you how to do this.
67+
68+
### Additional Features and Fixes
69+
70+
- feat(browser): Export request instrumentation options (#7818)
71+
- feat(core): Add async context abstraction (#7753)
72+
- feat(core): Add DSC to all outgoing envelopes (#7820)
73+
- feat(node): Add checkin envelope types (#7777)
74+
- feat(replay): Add `getReplayId()` method (#7822)
75+
- fix(browser): Adjust `BrowserTransportOptions` to support offline transport options (#7775)
76+
- fix(browser): DOMException SecurityError stacktrace parsing bug (#7821)
77+
- fix(core): Log warning when tracing extensions are missing (#7601)
78+
- fix(core): Only call `applyDebugMetadata` for error events (#7824)
79+
- fix(integrations): Ensure httpclient integration works with Request (#7786)
80+
- fix(node): `reuseExisting` does not need to call bind on domain (#7780)
81+
- fix(node): Fix domain scope inheritance (#7799)
82+
- fix(node): Make `trpcMiddleware` factory synchronous (#7802)
83+
784
## 7.47.0
885

986
### Important Changes

0 commit comments

Comments
 (0)