Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add method to convert codec names to numbers and back #44

Merged
merged 1 commit into from
May 11, 2019

Conversation

achingbrain
Copy link
Member

Since ipld/js-ipld@108aef0 codec names have started being passed around by js-ipld as numbers instead of strings.

From a DX perspective it's still quite nice to use human-readable strings instead of numbers but at some point you have to convert between them so this PR adds methods to get a codec name based on a number and a number based on a name.

Since ipld/js-ipld@108aef0
codec names have started being passed around by `js-ipld` as numbers
instead of strings.

From a DX perspective it's still quite nice to use human-readable strings
instead of numbers but at some point you have to convert between them so
this PR adds methods to get a codec name based on a number and a number
based on a name.
@ghost ghost assigned achingbrain May 10, 2019
@ghost ghost added the status/in-progress In progress label May 10, 2019
@hacdias
Copy link
Member

hacdias commented May 11, 2019

Thanks @achingbrain!

@hacdias hacdias merged commit 82eff23 into master May 11, 2019
@hacdias hacdias deleted the add-method-to-return-codec-names branch May 11, 2019 09:15
@whyrusleeping whyrusleeping removed the status/in-progress In progress label May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants