|
4 | 4 |
|
5 | 5 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
|
6 | 6 |
|
| 7 | +## 7.93.0 |
| 8 | + |
| 9 | +### Important Changes |
| 10 | + |
| 11 | +#### Deprecations |
| 12 | + |
| 13 | +As we're moving closer to the next major version of the SDK, more public APIs were deprecated. |
| 14 | + |
| 15 | +To get a head start on migrating to the replacement APIs, please take a look at our |
| 16 | +[migration guide](https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md). |
| 17 | + |
| 18 | +- feat(core): Deprecate `getActiveTransaction()` & `scope.getTransaction()` (#10098) |
| 19 | +- feat(core): Deprecate `Hub.shouldSendDefaultPii` (#10062) |
| 20 | +- feat(core): Deprecate `new Transaction()` (#10125) |
| 21 | +- feat(core): Deprecate `scope.getSpan()` & `scope.setSpan()` (#10114) |
| 22 | +- feat(core): Deprecate `scope.setTransactionName()` (#10113) |
| 23 | +- feat(core): Deprecate `span.startChild()` (#10091) |
| 24 | +- feat(core): Deprecate `startTransaction()` (#10073) |
| 25 | +- feat(core): Deprecate `Transaction.getDynamicSamplingContext` in favor of `getDynamicSamplingContextFromSpan` (#10094) |
| 26 | +- feat(core): Deprecate arguments for `startSpan()` (#10101) |
| 27 | +- feat(core): Deprecate hub capture APIs and add them to `Scope` (#10039) |
| 28 | +- feat(core): Deprecate session APIs on hub and add global replacements (#10054) |
| 29 | +- feat(core): Deprecate span `name` and `description` (#10056) |
| 30 | +- feat(core): Deprecate span `tags`, `data`, `context` & setters (#10053) |
| 31 | +- feat(core): Deprecate transaction metadata in favor of attributes (#10097) |
| 32 | +- feat(core): Deprecate `span.sampled` in favor of `span.isRecording()` (#10034) |
| 33 | +- ref(node-experimental): Deprecate `lastEventId` on scope (#10093) |
| 34 | + |
| 35 | +#### Cron Monitoring Support for `node-schedule` library |
| 36 | + |
| 37 | +This release adds auto instrumented check-ins for the `node-schedule` library. |
| 38 | + |
| 39 | +```ts |
| 40 | +import * as Sentry from '@sentry/node'; |
| 41 | +import * as schedule from 'node-schedule'; |
| 42 | + |
| 43 | +const scheduleWithCheckIn = Sentry.cron.instrumentNodeSchedule(schedule); |
| 44 | + |
| 45 | +const job = scheduleWithCheckIn.scheduleJob('my-cron-job', '* * * * *', () => { |
| 46 | + console.log('You will see this message every minute'); |
| 47 | +}); |
| 48 | +``` |
| 49 | + |
| 50 | +- feat(node): Instrumentation for `node-schedule` library (#10086) |
| 51 | + |
| 52 | +### Other Changes |
| 53 | + |
| 54 | +- feat(core): Add `span.spanContext()` (#10037) |
| 55 | +- feat(core): Add `spanToJSON()` method to get span properties (#10074) |
| 56 | +- feat(core): Allow to pass `scope` to `startSpan` APIs (#10076) |
| 57 | +- feat(core): Allow to pass start/end timestamp for spans flexibly (#10060) |
| 58 | +- feat(node): Make `getModuleFromFilename` compatible with ESM (#10061) |
| 59 | +- feat(replay): Update rrweb to 2.7.3 (#10072) |
| 60 | +- feat(utils): Add `parameterize` function (#9145) |
| 61 | +- fix(astro): Use correct package name for CF (#10099) |
| 62 | +- fix(core): Do not run `setup` for integration on client multiple times (#10116) |
| 63 | +- fix(core): Ensure we copy passed in span data/tags/attributes (#10105) |
| 64 | +- fix(cron): Make name required for instrumentNodeCron option (#10070) |
| 65 | +- fix(nextjs): Don't capture not-found and redirect errors in generation functions (#10057) |
| 66 | +- fix(node): `LocalVariables` integration should have correct name (#10084) |
| 67 | +- fix(node): Anr events should have an `event_id` (#10068) |
| 68 | +- fix(node): Revert to only use sync debugger for `LocalVariables` (#10077) |
| 69 | +- fix(node): Update ANR min node version to v16.17.0 (#10107) |
| 70 | + |
| 71 | + |
7 | 72 | ## 7.92.0
|
8 | 73 |
|
9 | 74 | ### Important Changes
|
|
0 commit comments