Skip to content

feat: support multiple roots #93

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

Merged
merged 1 commit into from
Nov 13, 2020
Merged

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Nov 12, 2020

It's never been clear why js-ipfs doesn't support multiple roots when
go-ipfs does.

This PR removes the check for multiple roots so if you import five
files without a leading directory in their paths or without the wrapWithDirectory
option, you'll get five CIDs back instead of an error.

BREAKING CHANGE: Importing files that would result in multiple roots no longer throws an error

It's never been clear why js-ipfs doesn't support multiple roots when
go-ipfs does.

This PR removes the check for multiple roots so if you import five
files without a leading directory in their paths or with the `wrapWithDirectory`
option, you'll get five CIDs back instead of an error.
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

🚢

@achingbrain achingbrain merged commit 7f2ddf1 into master Nov 13, 2020
@achingbrain achingbrain deleted the feat/support-multiple-roots branch November 13, 2020 13:56
achingbrain added a commit that referenced this pull request Nov 17, 2020
It's never been clear why js-ipfs doesn't support multiple roots when
go-ipfs does.

This PR removes the check for multiple roots so if you import five
files without a leading directory in their paths or with the `wrapWithDirectory`
option, you'll get five CIDs back instead of an error.

BREAKING CHANGE: Importing files that would result in multiple roots no longer throws an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants