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
fix: use slash as flag that an object is a CID (multiformats#217)
As per multiformats#212 making `asCID` enumerable breaks tests where modules don't handle self-referential data properly.
As proposed in multiformats#213 this swaps `cid.CID === cid` for `cid['/'] === cid.bytes` as a mechanism to tell consumers that the object in question is a `CID` which lets them write CBOR with the correct tags, for example.
Fixesmultiformats#212Closesmultiformats#213
0 commit comments