-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: more generic BlockCodec, remove encoder & decoder props
This is what we probably should have done to solve the conflict in cea9063 because we ended up with a `BlockCodec` that has too many properties and is therefore not very useful. This makes `BlockCodec` just an implementer of both `BlockEncoder` and `BlockDecoder` but `codec()` returns you that, plus `encoder` and `decoder` properties so you have all the things and can consume them however you like. Ref: ipld/js-dag-cbor#18 (comment)
- Loading branch information
Showing
2 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters