Skip to content

Commit c9ba163

Browse files
committed
update SvelteKit section
1 parent c3bab95 commit c9ba163

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ If you're manually using domains to isolate Sentry data, we strongly recommend s
4949

5050
In addition to exporting `runWithAsyncContext` publicly, the SDK also uses it internally where we previously used domains.
5151

52-
- **feat(sveltekit)**: Remove `withSentryViteConfig` (#7789)
52+
- **feat(sveltekit): Remove `withSentryViteConfig` (#7789)**
53+
- feat(sveltekit): Remove SDK initialization via dedicated files (#7791)
5354

5455
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:
5556

@@ -66,12 +67,16 @@ export default {
6667

6768
Take a look at the [`README`](https://github.com/getsentry/sentry-javascript/blob/develop/packages/sveltekit/README.md) for updated instructions!
6869

69-
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](https://github.com/getsentry/sentry-javascript/blob/eb921275f9c572e72c2348a91cb39fcbb8275b8d/packages/sveltekit/README.md#L20-L24) ;)
70+
Furthermore, with this transition, we removed the possibility to intialize the SDK in dedicated `sentry.(client|server).config.js` files. Please use SvelteKit's [hooks files](https://github.com/getsentry/sentry-javascript/blob/develop/packages/sveltekit/README.md#2-client-side-setup) to initialize the SDK.
7071

71-
- **feat(sveltekit)**: Add Sentry Vite Plugin to upload source maps (#7811)
72+
Please note that these are **breaking changes**! 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](https://github.com/getsentry/sentry-javascript/blob/eb921275f9c572e72c2348a91cb39fcbb8275b8d/packages/sveltekit/README.md#L20-L24) ;)
73+
74+
- **feat(sveltekit): Add Sentry Vite Plugin to upload source maps (#7811)**
7275

7376
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.
7477

78+
Please make sure to follow the [`README`](https://github.com/getsentry/sentry-javascript/blob/develop/packages/sveltekit/README.md#uploading-source-maps) to specify your Sentry auth token, as well as org and project slugs.
79+
7580
### Additional Features and Fixes
7681

7782
- feat(browser): Export request instrumentation options (#7818)

0 commit comments

Comments
 (0)