Skip to content
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

fix: convert car stream to iterable #317

Merged
merged 3 commits into from
Apr 13, 2022
Merged

fix: convert car stream to iterable #317

merged 3 commits into from
Apr 13, 2022

Conversation

alvin-reyes
Copy link
Collaborator

@alvin-reyes alvin-reyes commented Apr 13, 2022

Changes

This is an extension to the previous PR to support CAR import.

  • The in-memory js-ipfs requires the CAR file (stream) to be an 'iterable' object. This means we need to convert the ReadableStream to AsyncIterable.

  • Instead of showing Explore button when CAR import is chosen, we instead should just consume the CAR directly and import the dag file as soon as the user uploads the file.

Related to

#313
ipld/explore.ipld.io#82

@alvin-reyes alvin-reyes marked this pull request as ready for review April 13, 2022 20:40
@alvin-reyes alvin-reyes requested a review from lidel April 13, 2022 20:40
@alvin-reyes alvin-reyes self-assigned this Apr 13, 2022
@lidel lidel changed the title feat: added support to convert stream to iterable fix: convert car stream to iterable Apr 13, 2022
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Thanks!

@lidel lidel merged commit 87a83d0 into master Apr 13, 2022
@lidel lidel deleted the car-stream-iterable branch April 13, 2022 21:52
github-actions bot pushed a commit that referenced this pull request Apr 13, 2022
### [2.1.1](v2.1.0...v2.1.1) (2022-04-13)

### Bug Fixes

* convert car stream to iterable ([#317](#317)) ([87a83d0](87a83d0))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants