|
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-alpha.8 |
| 8 | + |
| 9 | +This is the eighth alpha release of Sentry JavaScript SDK v8, which includes a variety of breaking changes. |
| 10 | + |
| 11 | +Read the [in-depth migration guide](./MIGRATION.md) to find out how to address any breaking changes in your code. |
| 12 | + |
| 13 | +### Important Changes |
| 14 | + |
| 15 | +- **feat: Add @sentry-internal/browser-utils (#11381)** |
| 16 | + |
| 17 | +A big part of the browser-runtime specific exports of the internal `@sentry/utils` package were moved into a new package |
| 18 | +`@sentry-internal/browser-utils`. If you imported any API from `@sentry/utils` (which is generally not recommended but |
| 19 | +necessary for some workarounds), please check that your import statements still point to existing exports after |
| 20 | +upgrading. |
| 21 | + |
| 22 | +- **feat: Add loader file to node-based SDKs to support ESM monkeypatching (#11338)** |
| 23 | + |
| 24 | +When using ESM, it is necessary to use a "loader" to be able to instrument certain third-party packages and Node.js API. |
| 25 | +The server-side SDKs now ship with a set of ESM loader hooks, that should be used when using ESM. Use them as follows: |
| 26 | + |
| 27 | +```sh |
| 28 | +# For Node.js <= 18.18.2 |
| 29 | +node --experimental-loader=@sentry/node/hook your-app.js |
| 30 | + |
| 31 | +# For Node.js >= 18.19.0 |
| 32 | +node --import=@sentry/node/register your-app.js |
| 33 | +``` |
| 34 | + |
| 35 | +Please note that due to an upstream bug, these loader hooks will currently crash or simply not work. We are planning to |
| 36 | +fix this in upcoming versions of the SDK - definitely before a stable version 8 release. |
| 37 | + |
| 38 | +- **feat(node): Add Koa error handler (#11403)** |
| 39 | +- **feat(node): Add NestJS error handler (#11375)** |
| 40 | + |
| 41 | +The Sentry SDK now exports integrations and error middlewares for Koa (`koaIntegration()`, `setupKoaErrorHandler()`) and |
| 42 | +NestJS (`setupNestErrorHandler()`) that can be used to instrument your Koa and NestJS applications with error |
| 43 | +monitoring. |
| 44 | + |
| 45 | +### Removal/Refactoring of deprecated functionality |
| 46 | + |
| 47 | +- feat(core): Remove hub check in isSentryRequestUrl (#11407) |
| 48 | +- feat(opentelemetry): Remove top level startActiveSpan (#11380) |
| 49 | +- feat(types): `beforeSend` and `beforeSendTransaction` breaking changes (#11354) |
| 50 | +- feat(v8): Remove all class based integrations (#11345) |
| 51 | +- feat(v8/core): Remove span.attributes top level field (#11378) |
| 52 | +- ref: Remove convertIntegrationFnToClass (#11343) |
| 53 | +- ref(node): Remove the old `node` package (#11322) |
| 54 | +- ref(tracing): Remove `span.startChild()` (#11376) |
| 55 | +- ref(v8): Remove `addRequestDataToTransaction` util (#11369) |
| 56 | +- ref(v8): Remove `args` on `HandlerDataXhr` (#11373) |
| 57 | +- ref(v8): Remove `getGlobalObject` utility method (#11372) |
| 58 | +- ref(v8): Remove `metadata` on transaction (#11397) |
| 59 | +- ref(v8): Remove `pushScope`, `popScope`, `isOlderThan`, `shouldSendDefaultPii` from hub (#11404) |
| 60 | +- ref(v8): Remove `shouldCreateSpanForRequest` from vercel edge options (#11371) |
| 61 | +- ref(v8): Remove deprecated `_reportAllChanges` option (#11393) |
| 62 | +- ref(v8): Remove deprecated `scope.getTransaction()` (#11365) |
| 63 | +- ref(v8): Remove deprecated methods on scope (#11366) |
| 64 | +- ref(v8): Remove deprecated span & transaction properties (#11400) |
| 65 | +- ref(v8): Remove Transaction concept (#11422) |
| 66 | + |
| 67 | +### Other Changes |
| 68 | + |
| 69 | +- feat: Add `trpcMiddleware` back to serverside SDKs (#11374) |
| 70 | +- feat: Implement timed events & remove `transaction.measurements` (#11398) |
| 71 | +- feat(browser): Bump web-vitals to 3.5.2 (#11391) |
| 72 | +- feat(feedback): Add `getFeedback` utility to get typed feedback instance (#11331) |
| 73 | +- feat(otel): Do not sample `options` and `head` requests (#11467) |
| 74 | +- feat(remix): Update scope `transactionName` when resolving route (#11420) |
| 75 | +- feat(replay): Bump `rrweb` to 2.12.0 (#11314) |
| 76 | +- feat(replay): Use data sentry element as fallback for the component name (#11383) |
| 77 | +- feat(sveltekit): Update scope `transactionName` when pageload route name is updated (#11406) |
| 78 | +- feat(tracing-internal): Reset propagation context on navigation (#11401) |
| 79 | +- feat(types): Add View Hierarchy types (#11409) |
| 80 | +- feat(utils): Use `globalThis` (#11351) |
| 81 | +- feat(vue): Update scope's `transactionName` when resolving a route (#11423) |
| 82 | +- fix(core): unref timer to not block node exit (#11430) |
| 83 | +- fix(node): Fix baggage propagation (#11363) |
| 84 | +- fix(web-vitals): Check for undefined navigation entry (#11311) |
| 85 | +- ref: Set preserveModules to true for browser packages (#11452) |
| 86 | +- ref(core): Remove duplicate logic in scope.update (#11384) |
| 87 | +- ref(feedback): Add font family style to actor (#11432) |
| 88 | +- ref(feedback): Add font family to buttons (#11414) |
| 89 | +- ref(gcp-serverless): Remove setting `.__sentry_transaction` (#11346) |
| 90 | +- ref(nextjs): Replace multiplexer with conditional exports (#11442) |
| 91 | + |
7 | 92 | ## 8.0.0-alpha.7
|
8 | 93 |
|
9 | 94 | This is the seventh alpha release of Sentry JavaScript SDK v8, which includes a variety of breaking changes.
|
|
0 commit comments