ipfs / js-ipfs-unixfs

JavaScript implementation of IPFS' unixfs (a Unix FileSystem representation on top of a MerkleDAG)
Other
87 stars 34 forks source link

fix: add optional type for file candidate data #340

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

Where we know the type of content to be imported ahead of time (e.g. a Uint8Array or a stream, not both), it can be helpful to specify that type, so make FileCandidate generic to allow this.

Defaults it to the previous ImportContent value so this is non-breaking.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version ipfs-unixfs-importer-v15.1.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket: