You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This is a followup to #3167. I have proposed to simplify ipfs.add even further by removing Iterable<Uint8Array> and AsyncIterable<Uint8Array> from the list of possible input types.
We could get rid of Iterable<Uint8Array>|AsyncIterable<Uint8Array> and still support above use case, by adding node ReadStream (which is what fs.createReadStream returns) to the list of accepted options.
That would significantly reduce complexity of the normaliseInput and wire protocol encoder used in the #3022, but more importantly it remove mental overhead of the API and all the false positives that can occur when probing inputs.