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

fix: support CIDs in DAGLink #80

Merged
merged 1 commit into from
Jul 31, 2018
Merged

fix: support CIDs in DAGLink #80

merged 1 commit into from
Jul 31, 2018

Conversation

olizilla
Copy link
Member

@olizilla olizilla commented Jul 31, 2018

Here is a minimal change to support CIDs in a DAGLink. This allows things like traversing through from a dag-pb directory to a git tree

We should really rename the property from mutlihash to cid, but that is breaking change. I'd be up for adding an additional cid property and deprecating mutlihash tho.

Fixes #79

License: MIT
Signed-off-by: Oli Evans oli@tableflip.io

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
@olizilla olizilla requested review from daviddias and vmx July 31, 2018 17:37
@codecov
Copy link

codecov bot commented Jul 31, 2018

Codecov Report

Merging #80 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #80      +/-   ##
==========================================
+ Coverage    90.8%   90.87%   +0.06%     
==========================================
  Files          13       13              
  Lines         272      274       +2     
==========================================
+ Hits          247      249       +2     
  Misses         25       25
Impacted Files Coverage Δ
src/dag-link/index.js 87.5% <100%> (+1.13%) ⬆️

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 70b0cd5...21e2ce2. Read the comment docs.

@vmx vmx merged commit 4c701aa into ipld:master Jul 31, 2018
alanshaw added a commit to ipfs/js-ipfs that referenced this pull request Aug 15, 2018
This PR contains fixes for the test failures that are happening in master for `object.patch.rmLink`.

I **think** this change ipld/js-ipld-dag-pb#80 made `DAGLink` validate the hash better and caused the failures to start.

It also contains fixes for the `pinSet` module which was using the "private" `_multihash` property which was removed in ipld/js-ipld-dag-pb#81 and released 2 days ago - don't use private APIs kids.

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
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