Skip to content

chore(deps): bump TypeScript 5 -> 6 in mcp-server + vscode - #1146

Merged
robcohen merged 3 commits into
mainfrom
chore/deps-typescript-6
May 18, 2026
Merged

robcohen merged 3 commits into
mainfrom
chore/deps-typescript-6

Conversation

@robcohen

Copy link
Copy Markdown
Member

Summary

Last item from the dep-audit menu (D→E→F). TypeScript major-version bump in both Node packages.

Bumps

Package Before After
`packages/mcp-server` `typescript ^5.7.0` `typescript ^6.0.0`
`packages/vscode` `typescript ^5.5.0` `typescript ^6.0.0`

Not bumped

Test plan

  • mcp-server: `tsc` clean, 166/166 vitest tests pass
  • vscode: `tsc` clean, `npm run package` produces `rustledger-vscode.vsix` (105 KB) without errors

Surprisingly clean — TypeScript 6 didn't surface any breaking changes in either codebase. No source code edits required.

🤖 Generated with Claude Code

Major version bump. Both packages compile and test cleanly with TS 6
— no source code changes required.

Bumps:
- packages/mcp-server: typescript ^5.7.0 -> ^6.0.0
- packages/vscode: typescript ^5.5.0 -> ^6.0.0

Not bumped:
- @types/node in mcp-server stays ^24.0.0 (matches the Node 24 LTS
  pinned in .nvmrc by #1144). @types/node 25 would target the
  current-but-non-LTS Node 25 line.
- @types/node in vscode stays ^22.0.0 (matches VS Code's extension-
  host runtime, also set by #1144).

Verified:
- mcp-server: tsc clean; 166/166 vitest tests pass.
- vscode: tsc clean; npm run package produces rustledger-vscode.vsix
  (105 KB) without errors.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 18, 2026 17:31
@robcohen
robcohen requested a review from a team as a code owner May 18, 2026 17:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bumps the typescript devDependency from ^5.x to ^6.0.0 in both packages/mcp-server and packages/vscode, with the resulting package-lock.json updates resolving [email protected].

Changes:

  • Update typescript spec to ^6.0.0 in mcp-server and vscode package.json files
  • Refresh both package-lock.json files to pin [email protected]

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
packages/mcp-server/package.json TypeScript devDependency ^5.7.0 → ^6.0.0
packages/mcp-server/package-lock.json Lockfile pins [email protected]
packages/vscode/package.json TypeScript devDependency ^5.5.0 → ^6.0.0
packages/vscode/package-lock.json Lockfile pins [email protected]
Files not reviewed (2)
  • packages/mcp-server/package-lock.json: Language not supported
  • packages/vscode/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 786
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

robcohen added a commit that referenced this pull request May 18, 2026
…1147)

Two small tsconfig.json tweaks now that we're on TS 6 (PR #1146):

packages/mcp-server/tsconfig.json:
  target/lib ES2022 -> ES2024
  Node 24 is now pinned via .nvmrc (#1144), so we can take advantage
  of ES2024 built-ins (Object.groupBy, Promise.withResolvers, etc.)
  without runtime-availability concerns. Deliberately stopping short
  of ES2025 to avoid tying us to APIs that need the very latest Node
  minor; revisit later if a concrete use surfaces.

packages/vscode/tsconfig.json:
  - Add explicit moduleResolution: node10 + ignoreDeprecations: "6.0"
  - Add explicit types: ["node"]

  TS 6 deprecates the implicit `node10` resolution. We can't migrate
  to nodenext/bundler yet because @vscode/vsce (the extension
  publisher tooling) hasn't sanctioned that path for VS Code
  extensions. Setting the resolution explicitly + suppressing the
  deprecation keeps us building cleanly through the TS 6 line; a
  comment in-line documents when to revisit (TS 7 adoption).

  TS 6 also changes `types` default from [<all>] to []. Locking it
  to ["node"] makes the previously-implicit auto-include explicit
  so a future ignoreDeprecations drop doesn't silently lose types.

Skipped (not enough payoff in our code):
  - Subpath imports (`#/`): only 8 sibling files in mcp-server, no
    deep `../../` patterns.
  - Map.getOrInsert / RegExp.escape / Temporal: no natural insertion
    points found; would be a speculative refactor.
  - --stableTypeOrdering flag: TS 7 prep with ~25% type-check
    overhead; not worth it until we're actively migrating.

Verified:
  - mcp-server: tsc clean; 166/166 vitest tests pass
  - vscode: tsc clean; npm run package produces vsix without errors

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@robcohen
robcohen merged commit 8fea8b5 into main May 18, 2026
26 checks passed
@robcohen
robcohen deleted the chore/deps-typescript-6 branch May 18, 2026 22:33
@codecov

codecov Bot commented May 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants