-
Notifications
You must be signed in to change notification settings - Fork 26
Remove support for old-style links #84
Comments
I'm +1 on doing this after Enforcing a symmetrical encode/decode seems like a good idea and the new IPLD specs have abandoned any "canonical" format. |
Done with the release of version 0.14. |
We implemented $ echo '{ "link": { "/": "bafyreidl34zuzoltv3ijlunrilncnzmczx53lfco4dzc6o77xy2f4dq7ce" } }' | ipfs dag put Obviously we can't pass CID instances to IPLD from the CLI. We're going to patch js-ipfs to convert these objects into CID instances until go-ipfs drops support for this. Other ideas welcome! |
You should be able to just decode the JSON w/ the |
I think this is a good shout, but |
You could just wait until you take the new Block API, In general, we should find creative ways to dynamically load the codecs we need instead of bundling them. If this feature is only needed by the CLI then we should pull that codec into the CLI utility and not into the entire default IPLD API. |
Currently there's still support for old style
{"/": "base-encoded-cid"}
style links. I think we should remove the support for this, so that consumers don't have "silent" breakage where a serialisation works as before, but de-serialisation doesn't.The text was updated successfully, but these errors were encountered: