Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

feat: add fullPath option #3

Merged
merged 1 commit into from
Nov 23, 2018
Merged

feat: add fullPath option #3

merged 1 commit into from
Nov 23, 2018

Conversation

achingbrain
Copy link
Collaborator

When exporting a path with a subtree it's sometimes useful to get information about everything in the path and not just the node at the end.

This PR adds an option to return intermediate nodes in the export stream.

It also documents the maxDepth option and lowers the sharding threshold to make the shard tests more reliable in the browser.

@ghost ghost assigned achingbrain Nov 22, 2018
@ghost ghost added the in progress label Nov 22, 2018
const collect = require('pull-stream/sinks/collect')

pull(
exporter('QmFoo.../bar/baz.txt', ipld, {
Copy link
Contributor

Choose a reason for hiding this comment

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

For the sake of greater clarity, can we s/ipld/graphService? //cc @vmx

Copy link
Contributor

Choose a reason for hiding this comment

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

I would go with ipld for now until there's really something other than IPLD.

When exporting a path with a subtree it's sometimes useful to get
information about everything in the path and not just the node
at the end.

This PR adds an option to return intermediate nodes in the export
stream.

It also documents the `maxDepth` option and lowers the sharding
threshold to make the shard tests more reliable in the browser.
@achingbrain achingbrain merged commit d6c57be into master Nov 23, 2018
@achingbrain achingbrain deleted the add-full-path-option branch November 23, 2018 17:00
@ghost ghost removed the in progress label Nov 23, 2018
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.

3 participants