Skip to content

Upgrade leveldb-registry to 2.0.0 and handle ctrl+c gracefully - #310

Merged
viqueen merged 2 commits into
mainfrom
feature/use-latest-leveldb-registry
Nov 1, 2026
Merged

viqueen merged 2 commits into
mainfrom
feature/use-latest-leveldb-registry

Conversation

@viqueen

@viqueen viqueen commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Bump @labset/leveldb-registry from ^1.3.0 to ^2.0.0. No source changes were needed. The new version uses classic-level instead of leveldown, so it is added to allowBuilds (set to false, like leveldown) in pnpm-workspace.yaml.
  • Add a shared handleCliError so cancelling a prompt with ctrl+c exits quietly with code 130 instead of printing an ExitPromptError stack trace. It is wired into every bin entry point. Other errors are still logged and now exit with code 1.

Test plan

  • pnpm build
  • pnpm test (19 passing)
  • handleCliError given an ExitPromptError exits 130 with no output
  • Press ctrl+c in git recent and confirm there is no stack trace
  • Run a git workspace command against a real registry to confirm classic-level loads without its build script (if not, set it to true)
  • pnpm lint could not be run: eslint-plugin-import@2.32.0 crashes under ESLint 10 (unrelated to this change)

🤖 Generated with Claude Code

@viqueen
viqueen enabled auto-merge (squash) November 1, 2026 02:15
viqueen and others added 2 commits November 1, 2026 13:16
Allow classic-level (replaces leveldown) to skip its build script.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Add a shared handleCliError used by every bin entry point so
ExitPromptError exits with code 130 instead of printing a stack trace.
Other errors are still logged and now set exit code 1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@viqueen
viqueen force-pushed the feature/use-latest-leveldb-registry branch from e2f994f to 5824f60 Compare November 1, 2026 02:16
@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

@viqueen
viqueen disabled auto-merge November 1, 2026 02:21
@viqueen
viqueen merged commit 6ca3a43 into main Nov 1, 2026
3 checks passed
@viqueen
viqueen deleted the feature/use-latest-leveldb-registry branch November 1, 2026 02:21
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