Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fix: remove node buffers #27

Merged
merged 2 commits into from
Jul 29, 2020
Merged

fix: remove node buffers #27

merged 2 commits into from
Jul 29, 2020

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jul 28, 2020

Updates to the latest interface-datastore that swaps out Buffers for
Uint8Arrays.

Depends on:

BREAKING CHANGE: no longer uses node Buffers, only Uint8Arrays

Updates to the latest interface-datastore that swaps out Buffers for
Uint8Arrays.

Depends on:

- [ ] ipfs/interface-datastore#43

BREAKING CHANGE: no longer uses node Buffers, only Uint8Arrays
achingbrain added a commit to ipfs/js-datastore-fs that referenced this pull request Jul 28, 2020
Updates to the latest changes from interface-datastore and datastore-core

Depends on:

- [ ] ipfs/interface-datastore#43
- [ ] ipfs/js-datastore-core#27

BREAKING CHANGES: only uses Uint8Arrays internally
achingbrain added a commit to ipfs/js-datastore-level that referenced this pull request Jul 28, 2020
This module didn't have a lot of buffer use in the first place,
but we remove any references to buffers in favour of Uint8Arrays.

When quering, values come back as Buffers which are Uint8Arrays so
the conversion was unecessary.

Depends on:

- [ ] ipfs/interface-datastore#43
- [ ] ipfs/js-datastore-core#27

BREAKING CHANGE: remove node buffers in favour of 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.

Looks good to me

achingbrain added a commit to ipfs/js-datastore-pubsub that referenced this pull request Jul 28, 2020
Pulls in the latest interface-datastore and replaces use of node
Buffers with Uint8Arrays

Depends on:

- [ ] ipfs/interface-datastore#43
- [ ] ipfs/js-datastore-core#27
- [ ] libp2p/js-libp2p-record#23
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.

This looks good! Pending the update of the dependency

@achingbrain achingbrain merged commit a9786b9 into master Jul 29, 2020
@achingbrain achingbrain deleted the fix/remove-node-buffers branch July 29, 2020 12:38
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