Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: export only identity hasher const #163

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Jan 20, 2022

basics.js uses ...identity from the import, so as of 9.6.0 (via #160) name and friends get mixed up as hashers, which they are not.

This could be fixed in basics.js, but I think its usage tells us that #160 was a breaking change. So we'll do a revert-ish of the exports, and deal with the interface later with a breaking change if we think that a * export of identity (which wouldn't match the sha2 export) is the right way to go.

Fixes: ipfs/js-ipfs#4020

basics.js uses `...identity` from the import, so `name` and friends
get mixed up as hashers.

Instead of removing `identity` and making basics import a single multihasher
from `*`, we'll fix this for now (non-breaking) and maybe introduce a breaking
change to switch the export later.

Fixes: ipfs/js-ipfs#4020
@rvagg
Copy link
Member Author

rvagg commented Jan 20, 2022

I did notice the export differences in #160 when reviewing, but didn't anticipate this problem!

Will do a quick release to deal with the ecosystem breakage that we've unleashed.

@rvagg rvagg merged commit 330082a into master Jan 20, 2022
@rvagg rvagg deleted the rvagg/identity-hasher-export-fix branch January 20, 2022 00:43
@github-actions
Copy link

🎉 This PR is included in version 9.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolver already exists for codec "undefined"
1 participant