Skip to content

Reduce bundle bloat and simplify backend plumbing#65

Merged
landabaso merged 4 commits intomainfrom
refactor/backend-singleton
Mar 26, 2026
Merged

Reduce bundle bloat and simplify backend plumbing#65
landabaso merged 4 commits intomainfrom
refactor/backend-singleton

Conversation

@landabaso
Copy link
Copy Markdown
Member

This branch is mainly about two things: moving the noble-hashes dependency out of the default path so it can live as a peer dependency and simplifying the core by keeping a single internal bitcoinLib instance instead of threading it through every call.

That singleton approach is safe because the bitcoinjs and scure backends expose the same internal contract for this library's needs. Both backends can do the job and the whole backend selection story is internal anyway, so this keeps the public API quieter and the code easier to follow.

It also keeps the preset packages aligned with core, so the split stays predictable for users and for publishing.

@landabaso landabaso merged commit 6066d93 into main Mar 26, 2026
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