Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

feat: add support for js-ipfs dag api and also some tests #957

Merged
merged 4 commits into from
Jul 11, 2019

Conversation

achingbrain
Copy link
Collaborator

Also support for loading raw blocks.

Copy link
Contributor

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM!

expect(result).to.not.exist()
expect(err.message).to.equal('ipfs-http-client is missing DAG resolver for "raw" multicodec')
expect(err.message).to.equal('Missing IPLD format "git-raw"')
done()
})
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these be moved (and deduped) into interface-ipfs-core?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. This comes up a lot - what's the criteria on deciding where to put them?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed this - I mostly view it as a place where we put core tests that are shared between js-ipfs and js-ipfs-http-client.

@ghost ghost assigned alanshaw Mar 18, 2019
@alanshaw
Copy link
Contributor

I'm waiting for these tests to pop up again in interface-ipfs-core...or did I miss a PR?

alanshaw pushed a commit to ipfs-inactive/interface-js-ipfs-core that referenced this pull request Jul 11, 2019
Made by @achingbrain for ipfs-inactive/js-ipfs-http-client#957

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@alanshaw
Copy link
Contributor

@achingbrain I've rebased and added the tests to interface-ipfs-core

alanshaw pushed a commit to ipfs-inactive/interface-js-ipfs-core that referenced this pull request Jul 11, 2019
Made by @achingbrain for ipfs-inactive/js-ipfs-http-client#957

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@alanshaw alanshaw merged commit 8f378a3 into master Jul 11, 2019
@alanshaw alanshaw deleted the add-js-ipfs-dag-api branch July 11, 2019 12:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants