v0.5.0
What's Changed
- feat: remove block decoding global registry #80
⚠️ Breaking Changes
This release removes the global block decoder registry. If you would like to create your own registry a Registry
struct has been provided. See the Registry
struct for more about how it's used, but it can be used as a replacement for the prior global registry. Additionally the Decode
function is now just a simple helper function that wraps a particular codec's block decoder function.
The most commonly used codecs that were previously in the global registry were:
- dag-pb (an implementation of the codec can be found here)
- raw (an implementation of the codec can be found here)
- dag-cbor (an implementation of the codec can be found here)
Note: if you'd like to use go-ipld-prime codecs in this registry you can do so using the wrappers in https://github.com/ipfs/go-ipld-legacy.
Full Changelog: v0.4.0...v0.5.0