fix(packaging): include auth/ and operator/ in published tarball (2.7.2)#31
Merged
Sentinel-Bluebuilder merged 1 commit intoMay 2, 2026
Merged
Conversation
2.7.1 shipped broken: package.json "files" omitted auth/ and operator/, so
every `npm install blue-js-sdk@2.7.1` failed with ERR_MODULE_NOT_FOUND on
auth/adr36.js (and operator/auto-lease.js once auth was patched). Local CI
passed because every relative import resolved on disk — only a tarball
install would have caught it.
Changes:
- package.json: add "auth/" and "operator/" to "files"; bump to 2.7.2.
- .github/workflows/ci.yml: add "Verify published tarball imports cleanly"
step. npm pack → install tarball in temp dir → import blue-js-sdk. This
is the only test that exercises the actual published surface; the
existing import checks all run against the source tree.
- CHANGELOG.md: document the regression and the new rule (every directory
imported by index.js must appear in "files"; the tarball-install CI
step is the gate).
Surfaced by: Plan Manager 2.7.0 → 2.7.1 upgrade attempt threw
`ERR_MODULE_NOT_FOUND: ...blue-js-sdk/auth/adr36.js`. Plan Manager
remained pinned to 2.7.0 with a runtime RPC patch as a workaround.
Verified: clean-room `npm pack` + temp-dir install + `import('blue-js-sdk')`
returns 401 exports.
3 tasks
Sentinel-Bluebuilder
pushed a commit
to Sentinel-Bluebuilder/sentinel-plan-manager
that referenced
this pull request
May 3, 2026
SDK 2.7.2 ships an audited 12-endpoint RPC pool (rpc.sentinel.co excluded,
all the alternates we were injecting are now first-class). Plan Manager's
runtime patch in lib/chain.js (removeRpcEndpoint/addRpcEndpoint at module
load) is now redundant and removed. Refresh signing-RPC list in
lib/constants.js to match the in-sync set.
Verified: import('blue-js-sdk') → 401 exports clean; live rpcQueryBalance
through the default pool reaches a real Sentinel node.
PR upstream: Sentinel-Bluebuilder/blue-js-sdk#31
Sentinel-Bluebuilder
pushed a commit
to Sentinel-Bluebuilder/sentinel-plan-manager
that referenced
this pull request
May 3, 2026
SDK 2.7.2 ships an audited 12-endpoint RPC pool (rpc.sentinel.co excluded,
all the alternates we were injecting are now first-class). Plan Manager's
runtime patch in lib/chain.js (removeRpcEndpoint/addRpcEndpoint at module
load) is now redundant and removed. Refresh signing-RPC list in
lib/constants.js to match the in-sync set.
Verified: import('blue-js-sdk') → 401 exports clean; live rpcQueryBalance
through the default pool reaches a real Sentinel node.
PR upstream: Sentinel-Bluebuilder/blue-js-sdk#31
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.
What
Fix the 2.7.1 packaging regression:
auth/andoperator/were missing from the published tarball, so everynpm install blue-js-sdk@2.7.1failed withERR_MODULE_NOT_FOUND.Why this slipped through
package.json"files"listedchain/,connection/,protocol/, etc., but notauth/oroperator/. The CI "Verify all imports resolve" step walked the source tree and resolved everyfrom './...'against the on-disk directories — which all existed. The actual published tarball was never installed and imported in CI, so the gap between source and published surface was invisible.Plan Manager surfaced it during the 2.7.0 → 2.7.1 upgrade attempt:
After patching
auth/, a clean-room verify revealed the same failure onoperator/auto-lease.js. So it's not a one-off — it's a category of bug.Fix
package.json\"auth/\"and\"operator/\"to\"files\"; bump to2.7.2.github/workflows/ci.ymlnpm pack→ install tarball inmktemp -d→import('blue-js-sdk')and assert ≥100 exports. This is the only test that exercises the actual published surfaceCHANGELOG.mdRule going forward
Verification
Locally, in a clean temp dir, against the patched tarball:
```
npm install ./blue-js-sdk-2.7.2.tgz
node -e "import('blue-js-sdk').then(m => console.log(Object.keys(m).length))"
→ 401
```
The new CI step runs the same sequence on every PR.
Consumer-side context
Desktop/plans) attempted to bump to 2.7.1 to remove its runtime RPC-patch shim. Bump reverted to 2.7.0 after the install error. After 2.7.2 ships, Plan Manager will retry the bump and drop the patch.npm install blue-js-sdk@2.7.1after publish hit the sameERR_MODULE_NOT_FOUND.