Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

fix: multihashes does not export default lengths any more #67

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

achingbrain
Copy link
Member

Since multiformats/js-multihash#76 was released the multihashes module does not export default hash lengths any more.

For reasons that are not clear it went out as a patch release which means ipld-git is currently broken.

This PR hard codes the hash length as it is known, and also removes the multihashes dep as we can use the one exported from multihashing-async.

Ref: multiformats/js-multihash#76 (comment)

@achingbrain achingbrain requested a review from vmx June 19, 2020 10:45
Since multiformats/js-multihash#76 was released
the `multihashes` module does not export default hash lengths any more.

For reasons that are unclear it went out as a patch release which means
`ipld-git` is currently broken.

This PR hard codes the hash length as it is known, and also removes
the `multihashes` dep as we can use the one exported from `multihashing-async`
and updates other deps.

Ref: multiformats/js-multihash#76 (comment)
@achingbrain achingbrain force-pushed the fix/multihashes-breaking-change branch from c5f3aaa to caf6eb0 Compare June 19, 2020 10:47
@codecov
Copy link

codecov bot commented Jun 19, 2020

Codecov Report

Merging #67 into master will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
- Coverage   84.55%   84.49%   -0.06%     
==========================================
  Files           7        7              
  Lines         259      258       -1     
==========================================
- Hits          219      218       -1     
  Misses         40       40              
Impacted Files Coverage Δ
src/util/util.js 92.10% <100.00%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5f2209...caf6eb0. Read the comment docs.

@vmx vmx merged commit 4f85c53 into master Jun 19, 2020
@vmx vmx deleted the fix/multihashes-breaking-change branch June 19, 2020 13:29
@vmx
Copy link
Member

vmx commented Jun 19, 2020

Thanks a lot @achingbrain.

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

Successfully merging this pull request may close these issues.

2 participants