Skip to content

Remove multihashes dependency#10

Open
vmx wants to merge 1 commit into
stac-utils:mainfrom
vmx:remove-dep-multihashes
Open

Remove multihashes dependency#10
vmx wants to merge 1 commit into
stac-utils:mainfrom
vmx:remove-dep-multihashes

Conversation

@vmx

@vmx vmx commented Jan 26, 2026

Copy link
Copy Markdown

The multihashes library is deprecated. multiformats could be used instead, but it's an ESM only library. ESM modules do not work well with jest. Hence a minimal implementation without any dependencies is used instead.

It could be considered a breaking change as the API of Migrate.enableMultihash() changed. It longer takes the multihashes library as parameter, but no value at all. Though passing it in won't do any harm, so it's kind of backwards compatible.

The `multihashes` library is deprecated. `multiformats` could be used
instead, but it's an ESM only library. ESM modules do not work well
with jest. Hence a minimal implementation without any dependencies
is used instead.

It could be considered a breaking change as the API of
`Migrate.enableMultihash()` changed. It longer takes the `multihashes`
library as parameter, but no value at all. Though passing it in
won't do any harm, so it's kind of backwards compatible.
@m-mohr m-mohr self-requested a review March 9, 2026 18:01
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