This repository was archived by the owner on Sep 3, 2021. It is now read-only.
v0.6.0
Features
- add flow typedefs (1cf9740)
- cache string represntation (537f604)
- preserve base when constructed from a string (2e597b9)
BREAKING CHANGES
- previously base was not preserved and all CIDs would
be normalised to base58btc when asking for their string representation.
The default will change to base32 in https://github.com/multiformats/js-cid/pull/73/files
The idea behind this change is that we shouldnt lose information when
the user passes us a base encoded string, but keep it and use it as
the default base so toString returns the same string they provided.
I'd like this as a fix for ipld explorer, which currently forces all
CIDs into base58btc, seee: ipfs/ipfs-webui#999
License: MIT
Signed-off-by: Oli Evans oli@tableflip.io