Skip to content

fix: commander 15 + Bun fetch dispatcher typing (supersedes #13) - #14

Merged
nadimtuhin merged 6 commits into
mainfrom
fix/commander-15-bun-fetch-types
Jun 4, 2026
Merged

nadimtuhin merged 6 commits into
mainfrom
fix/commander-15-bun-fetch-types

Conversation

@nadimtuhin

Copy link
Copy Markdown
Owner

Supersedes #13. That PR bumped commander 12->15 but the test job failed on pre-existing TS2769 fetch-overload errors in src/lib/fetcher.ts, and it carried a broken dispatcher as unknown as Record<string,unknown> cast plus unrelated CI action downgrades.

Changes

  • Bump commander ^14.0.3 -> ^15.0.0
  • Fix TS2769 errors: cast fetch init to RequestInit so the undici dispatcher field passes Bun's global fetch typing (the prior Record<string,unknown> cast was not assignable to Dispatcher)
  • Bump engines.node >=18 -> >=20 (commander 15 requires Node 20+)
  • Dropped the unrelated workflow action downgrades from chore(deps): bump commander from 14.0.3 to 15.0.0 in the production-dependencies group #13 (kept checkout@v6 / codeql@v4)

Validation (local, Bun 1.3.14)

  • bun run typecheck — clean (exit 0)
  • bun run build — ok (cli.js + mcp.js bundled)
  • bun run test — 152 pass / 0 fail

dependabot Bot and others added 6 commits May 31, 2026 11:03
Bumps the production-dependencies group with 1 update: [commander](https://github.com/tj/commander.js).


Updates `commander` from 14.0.3 to 15.0.0
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](tj/commander.js@v14.0.3...v15.0.0)

---
updated-dependencies:
- dependency-name: commander
  dependency-version: 15.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
- Bump commander ^14.0.3 -> ^15.0.0 (security/maintenance)
- Fix TS2769 fetch overload errors in fetcher.ts: cast init to RequestInit
  so the undici dispatcher field passes Bun's global fetch typing
- Bump engines.node >=18 -> >=20 (commander 15 requires Node 20+)
- Supersedes #13 (which carried a broken dispatcher cast + unrelated workflow downgrades)

Validated: typecheck clean, build ok, 152 tests pass.
# Conflicts:
#	src/lib/fetcher.ts
@nadimtuhin
nadimtuhin merged commit 6ea691d into main Jun 4, 2026
5 checks passed
@nadimtuhin
nadimtuhin deleted the fix/commander-15-bun-fetch-types branch June 4, 2026 16:24
@kilo-code-bot

kilo-code-bot Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • package.json - Dependency updates
  • bun.lockb - Lock file update

Reviewed by nemotron-3-ultra-550b-a55b-20260604:free · 312,018 tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant