Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

fix: return Uint8Arrays #63

Merged
merged 2 commits into from
Jul 31, 2020
Merged

fix: return Uint8Arrays #63

merged 2 commits into from
Jul 31, 2020

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jul 30, 2020

Return Uint8Arrays instead of node Buffers.

BREAKING CHANGE:

  • node Buffers are not returned any more, only Uint8Arrays

Copy link
Contributor

@Gozala Gozala left a comment

Choose a reason for hiding this comment

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

This looks good to me (assuming we can work out introduces circular dependency that ipfs/js-ipfs-utils#55 introduces)

BREAKING CHANGE:

- node `Buffer`s are not returned any more, only `Uint8Array`s
@achingbrain
Copy link
Member Author

I've restored the web-encoding dependency, removed ipfs-utils and just copied the concat method into this module. For the saving of about 10 LOC it's just not worth it.

@vmx vmx merged commit 5e38957 into master Jul 31, 2020
@vmx vmx deleted the fix/return-uint8arrays branch July 31, 2020 10:54
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