This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Upgrade to latest ipld-dag-cbor
#1610
Labels
exp/novice
Someone with a little familiarity can pick up
P2
Medium: Good to have, but can wait until someone steps up
We made a pretty big change to the
ipld-dag-cbor
API.Instead of using
{"/": baseEncodedString}
to express links we're just usingCID
instances.This will probably end up simplifying a bunch of code in
js-ipfs
but it will be a pretty impactful change. For encoding, we still support the old form, so you only need to move to the new way once you find it necessary. But, there's a breaking change on the decoder side because all links are nowCID
instances.The direct
ipld-dag-cbor
dep is barely used, it's mostly used by deps of deps:What's the best strategy for getting all the deps of the deps updated and into a release?
We don't want to release "ProtoSchool 1.0" until this changes is in a
js-ipfs
release. Link creation w/ipfs.dag.put
in IPFS is a big part of the basic tutorials and the new API is much nicer and easier to teach and we'd hate to teach people the old API and then change it a month later. But this also means that this dep upgrade will end up being a blocker for ProtoSchool if it lingers for too long.The text was updated successfully, but these errors were encountered: