This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: make add only work on single items #3167
Merged
achingbrain
merged 10 commits into
master
from
refactor/make-add-only-work-on-single-items
Jul 16, 2020
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
67f2b4e
refactor: ipfs.add only works on single items, ipfs.addAll works on m…
achingbrain 1b875f8
chore: add missing dep
achingbrain 37a20f7
chore: update interop tests
achingbrain 3b44f9d
chore: update bitswap test
achingbrain a200a87
chore: fix linting
achingbrain 3c31a36
chore: fix failing test
achingbrain be3d0d7
Merge remote-tracking branch 'origin/master' into refactor/make-add-o…
achingbrain 4b9e3da
Merge remote-tracking branch 'origin/master' into refactor/make-add-o…
achingbrain 0789c40
chore: fix broken example
achingbrain fd06193
Merge remote-tracking branch 'origin/master' into refactor/make-add-o…
achingbrain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to go as far as drop
Iterable<Uint8Array>
andAsyncIterable<Uint8Array>
from the list. I think convenience added here is no where near to the complexity it adds.Iterables can trivially be turned into blobs:
And both async and sync iterables could also trivially be turned into
FileObjects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We support
AsyncIterable<Uint8Array>
in order to support adding node streams: