Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

ipfs.block API is out of sync with the implementation #3913

@matheus23

Description

@matheus23

Here is what I've noticed:

  • ipfs.block.get
    • docs say it returns a Block, but it returns a Uint8Array
    • docs are missing the preload option
  • ipfs.block.put
    • docs say it can also take a Block as a parameter, but it can only be a Uint8Array
    • docs say it can take a cid as an option, but the implementation ignores such a parameter
    • docs say it returns a Block, but it's just a Uint8Array

Metadata

Metadata

Assignees

Labels

P2Medium: Good to have, but can wait until someone steps upexp/noviceSomeone with a little familiarity can pick upgood first issueGood issue for new contributorshelp wantedSeeking public contribution on this issuetopic/docsDocumentation

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions