|
4 | 4 |
|
5 | 5 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
|
6 | 6 |
|
| 7 | +## 8.0.0-rc.0 |
| 8 | + |
| 9 | +This is the first release candidate of Sentry JavaScript SDK v8. |
| 10 | + |
| 11 | +We also recommend, reading the detailed |
| 12 | +[migration guide](https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/) in the docs. |
| 13 | + |
| 14 | +### Version Support |
| 15 | + |
| 16 | +The Sentry JavaScript SDK v8 now supports Node.js 14.8.0 or higher. This applies to @sentry/node and all of our |
| 17 | +node-based server-side sdks (@sentry/nextjs, @sentry/remix, etc.). |
| 18 | + |
| 19 | +The browser SDKs now require ES2018+ compatible browsers. New minimum browser versions: |
| 20 | + |
| 21 | +Chrome 63 Edge 79 Safari/iOS Safari 12 Firefox 58 Opera 50 Samsung Internet 8.2 |
| 22 | + |
| 23 | +For more details, please see the |
| 24 | +[version support section in migration guide](https://github.com/getsentry/sentry-javascript/blob/8.0.0-beta.1/MIGRATION.md#1-version-support-changes). |
| 25 | + |
| 26 | +### Important Changes |
| 27 | + |
| 28 | +- **feat(svelte): Add Svelte 5 support (#11807)**: |
| 29 | + |
| 30 | +We now officially support Svelte 5. |
| 31 | + |
| 32 | +- **feat(node): Support Node 22 (#11871)**: |
| 33 | + |
| 34 | +We now officially support Node 22. |
| 35 | + |
| 36 | +- **fix(node): Fix nest.js error handler (#11874)** |
| 37 | + |
| 38 | +Errors in Nest.js were sent to Sentry, but the application itself was not working as expected anymore. Now you'll have |
| 39 | +to pass the Nest.js `BaseExceptionFilter` like this: |
| 40 | + |
| 41 | +```typescript |
| 42 | +import { BaseExceptionFilter, HttpAdapterHost } from '@nestjs/core'; |
| 43 | + |
| 44 | +const { httpAdapter } = app.get(HttpAdapterHost); |
| 45 | +Sentry.setupNestErrorHandler(app, new BaseExceptionFilter(httpAdapter)); |
| 46 | +``` |
| 47 | + |
| 48 | +- **feat(browser): Send standalone fetch and XHR spans if there's no active parent span (#11783)** |
| 49 | + |
| 50 | +Starting with this version, spans for outgoing fetch/xhr requests will be captured even if no pageload/navigation span |
| 51 | +is ongoing. This means that you will be able to have a more complete trace, especially for web applications that make a |
| 52 | +lot of HTTP requests on longer-lived pages. |
| 53 | + |
| 54 | +- **feat(browser): Add INP support for v8 (#11650)** |
| 55 | + |
| 56 | +INP web vital support was now forward-ported to version 8. Recording of INP data is enabled by default. |
| 57 | + |
| 58 | +- **feat(core): Increase default transport buffer size from 30 to 64 (#11764)** |
| 59 | + |
| 60 | +The default limit of queued events to be sent was increased from 30 to 64 events. You may observe a higher memory |
| 61 | +footprint of the SDK. You can override this limit by setting the `transportOptions.bufferSize` option in |
| 62 | +`Sentry.init()`. |
| 63 | + |
| 64 | +- **feat(replay): Add "maxCanvasSize" option for replay canvases (#11617)**: |
| 65 | + |
| 66 | +A `maxCanvasSize` option was added to the `replayCanvasIntegration` to disallow capturing of canvases larger than a |
| 67 | +certain size. This value defaults to `1280` which will not capture canvases bigger than 1280x1280 pixels. |
| 68 | + |
| 69 | +- **feat(opentelemetry): Add `addOpenTelemetryInstrumentation` (#11667)** |
| 70 | + |
| 71 | +A utility function `addOpenTelemetryInstrumentation` was added that allows for the registration of instrumentations that |
| 72 | +conform to the OpenTelemetry JS API without having to specify `@opentelemetry/instrumentation` as a dependency. |
| 73 | + |
| 74 | +- **ref(core): Don't start transaction for trpc middleware (#11697)** |
| 75 | + |
| 76 | +Going forward, the Sentry `trpcMiddleware` will only create spans. Previously it used to always create a transaction. |
| 77 | +This change was made to integrate more nicely with the HTTP instrumentation added in earlier versions to avoid creating |
| 78 | +unnecessary transactions. |
| 79 | + |
| 80 | +- **feat(browser): Update `propagationContext` on `spanEnd` to keep trace consistent** |
| 81 | + |
| 82 | +To ensure consistency throughout a route's duration, we update the scope's propagation context when the initial page |
| 83 | +load or navigation span ends. This keeps span-specific attributes like the sampled decision and dynamic sampling context |
| 84 | +on the scope, even after the transaction has ended. |
| 85 | + |
| 86 | +- **fix(browser): Don't assume window.document is available (#11602)** |
| 87 | + |
| 88 | +We won't assume `window.document` is available in the browser SDKs anymore. This should prevent errors in environments |
| 89 | +where `window.document` is not available (such as web workers). |
| 90 | + |
| 91 | +### Package Removal |
| 92 | + |
| 93 | +The following packages will no longer be published: |
| 94 | + |
| 95 | +- [@sentry/hub](./MIGRATION.md#sentryhub) |
| 96 | +- [@sentry/tracing](./MIGRATION.md#sentrytracing) |
| 97 | +- [@sentry/integrations](./MIGRATION.md#sentryintegrations) |
| 98 | +- [@sentry/serverless](./MIGRATION.md#sentryserverless) |
| 99 | +- [@sentry/replay](./MIGRATION.md#sentryreplay) |
| 100 | + |
| 101 | +### Other Changes |
| 102 | + |
| 103 | +This release also includes numerous other features, fixes, and improvements. For a complete list, please refer to the |
| 104 | +individual beta release notes. |
| 105 | + |
7 | 106 | ## 8.0.0-beta.6
|
8 | 107 |
|
9 | 108 | This beta release contains various bugfixes and improvements for the v8 beta cycle.
|
|
0 commit comments