fix: move native deps to optionalDependencies#1
Merged
Conversation
Move `better-sqlite3` and `keytar` to `optionalDependencies` so `npm install` succeeds even when native compilation fails (e.g., missing build tools or unsupported Node versions). The CLI already handles missing modules gracefully. Bump to 0.1.1.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| "": { | ||
| "name": "@quicknode/hypercore-cli", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", |
There was a problem hiding this comment.
Lockfile keeps native modules mandatory
Medium Severity
package-lock.json still records better-sqlite3 and keytar under root dependencies instead of optionalDependencies. This leaves the lockfile out of sync with package.json and keeps native addons effectively required for lockfile-driven installs, so environments without native build support can still fail installation.
rx294
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
better-sqlite3andkeytarfromdependenciestooptionalDependenciessonpm installsucceeds even when native compilation fails (e.g., missing build tools, unsupported Node versions)0.1.1— already published to npmContext
After publishing
0.1.0, we discovered thatnpm install @quicknode/hypercore-clifails on environments wherebetter-sqlite3can't compile (Node 25, missing Xcode CLI tools, etc.). This patch fixes that.Test plan
pnpm typecheckpassespnpm test— 83/83 passnpm install @quicknode/hypercore-cli+npx hypercore-cli --versionworks0.1.1to npm and verified🤖 Generated with Claude Code
Note
Low Risk
Packaging-only change (dependency classification + version bump) with no runtime logic modifications; primary risk is missing optional native features at install time.
Overview
Bumps the CLI version to
0.1.1and documents the patch inCHANGELOG.md.Moves the native modules
better-sqlite3andkeytarfromdependenciestooptionalDependencies, and updates lockfiles accordingly sonpm installcan succeed even when native builds/bindings are unavailable.Written by Cursor Bugbot for commit 913a6b1. This will update automatically on new commits. Configure here.