When using the official go-ipfs CLI or API, setting CID to v1 would set the --raw-leaves option defaults to true, as discussed in https://github.com/ipfs/go-ipfs/issues/4188.
It seems to me it would be better if the ipfs-only-hash CLI could have the same behavior as the current official CLI: the --raw-leaves option be defaulted to true if using v1 CID while it could still be overridden by specifying --raw-leaves false.
Breaking Change
Set rawLeaves options to true by default, so the default CIDv1 created will be different.
Problem to address
When using the official go-ipfs CLI or API, setting CID to v1 would set the
--raw-leaves
option defaults totrue
, as discussed in https://github.com/ipfs/go-ipfs/issues/4188. It seems to me it would be better if theipfs-only-hash
CLI could have the same behavior as the current official CLI: the--raw-leaves
option be defaulted totrue
if using v1 CID while it could still be overridden by specifying--raw-leaves false
.Breaking Change
Set rawLeaves options to true by default, so the default CIDv1 created will be different.