You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migration/v8-to-v9.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -157,6 +157,20 @@ Older Typescript versions _may_ continue to be compatible, but no guarantees app
157
157
You no longer have to specify this manually.
158
158
With this change, no spans are emitted once `skipOpenTelemetrySetup: true` is configured, without any further configuration being needed.
159
159
160
+
### All Meta-Framework SDKs (`@sentry/nextjs`, `@sentry/nuxt`, `@sentry/sveltekit`, `@sentry/astro`, `@sentry/solidstart`)
161
+
162
+
- SDKs no longer transform user-provided values for source map generation in build configurations (like Vite config, Rollup config, or `next.config.js`).
163
+
164
+
If source maps are explicitly disabled, the SDK will not enable them. If source maps are explicitly enabled, the SDK will not change how they are emitted. **However,** the SDK will also _not_ delete source maps after uploading them. If source map generation is not configured, the SDK will turn it on and delete them after the upload.
165
+
166
+
To customize which files are deleted after upload, define the `filesToDeleteAfterUpload` array with globs.
167
+
168
+
### `@sentry/react`
169
+
170
+
- The `componentStack` field in the `ErrorBoundary` component is now typed as `string` instead of`string | null | undefined`for the `onError` and `onReset` lifecycle methods. This more closely matches the actual behavior of React, which always returns a `string` whenever a component stack is available.
171
+
172
+
In the `onUnmount` lifecycle method, the `componentStack` field is now typed as `string | null`. The`componentStack` is `null` when no error has been thrown at time of unmount.
173
+
160
174
### `@sentry/nextjs`
161
175
162
176
- By default, client-side source maps will now be automatically deleted after being uploaded to Sentry during the build.
@@ -174,20 +188,6 @@ Older Typescript versions _may_ continue to be compatible, but no guarantees app
174
188
- The `sentry` property on the Next.js config object has officially been discontinued.
175
189
Pass options to `withSentryConfig` directly.
176
190
177
-
### All Meta-Framework SDKs (`@sentry/astro`, `@sentry/nextjs`, `@sentry/nuxt`, `@sentry/sveltekit`, `@sentry/solidstart`)
178
-
179
-
- SDKs no longer transform user-provided values for source map generation in build configurations (like Vite config, Rollup config, or `next.config.js`).
180
-
181
-
If source maps are explicitly disabled, the SDK will not enable them. If source maps are explicitly enabled, the SDK will not change how they are emitted. **However,** the SDK will also _not_ delete source maps after uploading them. If source map generation is not configured, the SDK will turn it on and delete them after the upload.
182
-
183
-
To customize which files are deleted after upload, define the `filesToDeleteAfterUpload` array with globs.
184
-
185
-
### `@sentry/react`
186
-
187
-
- The `componentStack` field in the `ErrorBoundary` component is now typed as `string` instead of`string | null | undefined`for the `onError` and `onReset` lifecycle methods. This more closely matches the actual behavior of React, which always returns a `string` whenever a component stack is available.
188
-
189
-
In the `onUnmount` lifecycle method, the `componentStack` field is now typed as `string | null`. The`componentStack` is `null` when no error has been thrown at time of unmount.
190
-
191
191
## 3. Package Removals
192
192
193
193
The `@sentry/utils`package will no longer be published.
0 commit comments