Skip to content

Commit 238c460

Browse files
authored
Merge pull request #11232 from getsentry/abhi-7.107.0
meta: CHANGELOG for 7.108.0
2 parents bf4ea76 + 4f5d487 commit 238c460

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
## 7.108.0
8+
9+
This release fixes issues with Time to First Byte (TTFB) calculation in the SDK that was introduced with `7.95.0`. It
10+
also fixes some bugs with Interaction to First Paint (INP) instrumentation. This may impact your Sentry Performance
11+
Score calculation.
12+
13+
- feat(serverless): Add Node.js 20 to compatible runtimes (#11104)
14+
- feat(core): Backport `ResizeObserver` and `googletag` default filters (#11210)
15+
- feat(webvitals): Adds event entry names for INP handler. Also guard against empty metric value
16+
- fix(metrics): use correct statsd data category (#11187)
17+
- fix(node): Record local variables with falsy values (v7) (#11190)
18+
- fix(node): Use unique variable for ANR context transfer (v7) (#11162)
19+
- fix(node): Time zone handling for `cron` (#11225)
20+
- fix(tracing): use web-vitals ttfb calculation (#11231)
21+
- fix(types): Fix incorrect `sampled` type on `Transaction` (#11146)
22+
- fix(webvitals): Fix mapping not being maintained properly and sometimes not sending INP spans (#11183)
23+
24+
Work in this release contributed by @quisido and @joshkel. Thank you for your contributions!
25+
726
## 7.107.0
827

928
This release fixes issues with INP instrumentation with the Next.js SDK and adds support for the `enableInp` option in

packages/node/src/cron/cron.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function instrumentCron<T>(lib: T & CronJobConstructor, monitorSlug: stri
100100
},
101101
{
102102
schedule: { type: 'crontab', value: cronString },
103-
...(timeZone ? { timeZone } : {}),
103+
timezone: timeZone || undefined,
104104
},
105105
);
106106
}
@@ -132,7 +132,7 @@ export function instrumentCron<T>(lib: T & CronJobConstructor, monitorSlug: stri
132132
},
133133
{
134134
schedule: { type: 'crontab', value: cronString },
135-
...(timeZone ? { timeZone } : {}),
135+
timezone: timeZone || undefined,
136136
},
137137
);
138138
};

packages/node/test/cron.test.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,20 @@ describe('cron check-ins', () => {
5353

5454
const CronJobWithCheckIn = cron.instrumentCron(CronJobMock, 'my-cron-job');
5555

56-
new CronJobWithCheckIn('* * * Jan,Sep Sun', () => {
57-
expect(withMonitorSpy).toHaveBeenCalledTimes(1);
58-
expect(withMonitorSpy).toHaveBeenLastCalledWith('my-cron-job', expect.anything(), {
59-
schedule: { type: 'crontab', value: '* * * 1,9 0' },
60-
});
61-
done();
62-
});
56+
new CronJobWithCheckIn(
57+
'* * * Jan,Sep Sun',
58+
() => {
59+
expect(withMonitorSpy).toHaveBeenCalledTimes(1);
60+
expect(withMonitorSpy).toHaveBeenLastCalledWith('my-cron-job', expect.anything(), {
61+
schedule: { type: 'crontab', value: '* * * 1,9 0' },
62+
timezone: 'America/Los_Angeles',
63+
});
64+
done();
65+
},
66+
undefined,
67+
true,
68+
'America/Los_Angeles',
69+
);
6370
});
6471

6572
test('CronJob.from()', done => {

0 commit comments

Comments
 (0)