Repository navigation
cron: interpret Bun.cron.parse() and in-process schedules in local time; add { tz } option - #35122
Merged
Merged
Claude / Claude Code Review
completed
Jul 22, 2026 in 20m 55s
Code review found 1 important issue
Found 2 candidates, confirmed 3. See review comments for details.
Details
| Severity | Count |
|---|---|
| 🔴 Important | 1 |
| 🟡 Nit | 2 |
| 🟣 Pre-existing | 0 |
| Severity | File:Line | Issue |
|---|---|---|
| 🟡 Nit | packages/bun-types/bun.d.ts:7609-7618 |
bun-types fixture missing coverage for new CronOptions / {tz} argument |
Annotations
Check warning on line 7618 in packages/bun-types/bun.d.ts
claude / Claude Code Review
bun-types fixture missing coverage for new CronOptions / {tz} argument
The new `CronOptions` interface and the third `options?: CronOptions` argument added to `Bun.cron.parse()` and the in-process `Bun.cron(schedule, handler, options?)` overload have no coverage in `test/integration/bun-types/fixture/cron.ts` — the fixture already exercises every other cron overload and has a `declare const ...: Bun.Cron*` line for every other exported cron interface. Consider adding `expectType(Bun.cron.parse("@hourly", Date.now(), { tz: "UTC" })).is<Date | null>()`, `expectType(B
Loading