Release v1.0.0: migrate Explorer to bitcoinjs-lib v7 and descriptors v3#23
Merged
Release v1.0.0: migrate Explorer to bitcoinjs-lib v7 and descriptors v3#23
Conversation
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.
This PR marks the
@bitcoinerlab/explorer1.0.0 release and aligns the package with the current bitcoinerlab stack. The goal is to keep Explorer in sync with the same bjs7 direction adopted indescriptors, while cleaning up older internals that were still tied to Buffer-based handling.The dependency upgrade is the core of this change: Explorer now targets
bitcoinjs-lib@7and@bitcoinerlab/descriptors@3. Alongside that, the codebase was updated to followUint8Array-first patterns, usinguint8array-toolsfor hex conversions so Buffer is no longer used in TypeScript sources. Electrum network resolution was also hardened by switching from object-identity checks to value-based network matching, which makes cloned network objects behave as expected when picking default servers.The integration tests were migrated to the new descriptors API to reflect the same runtime contract we now depend on.
This is a breaking release by design. While Explorer’s high-level fetch/push interface remains stable, projects that share transaction-building/signing flows with Explorer or pin older versions of the Bitcoin JS stack should expect migration work. In particular, consumers moving from the previous stack should account for descriptors v3 API changes and
bitcoinjs-lib@7conventions aroundbigintvalues andUint8Arrayhandling.