This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
ipfs.version(): include version of JS API #2878
Labels
exp/novice
Someone with a little familiarity can pick up
help wanted
Seeking public contribution on this issue
kind/feature
status/ready
Ready to be worked
In JS land interface-js-ipfs-core is effectively the API.
Unfortunately, unless I know what version of js-ipfs-http-client was used, there is no way to tell what type of JS API (interface-js-ipfs-core) I will get.
I propose we add it to the output of
ipfs.version()
For example, js-ipfs-http-client connected to go-ipfs would return:
That way context where js-ipfs or js-ipfs-http-client versions are unknown (example: ipfs/ipfs-companion#852) it is possible to inspect it and make decisions at the runtime.
Knowing
jsinterface
version one could decide to fallback to something more modern, or change the way the output ofipfs.cat
is handled (Uint8Array vs AsyncIterable).Does this sound ok? Any reason to not do this?
The text was updated successfully, but these errors were encountered: