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
Due to the previous breaking changes that were not supposed to have broken the API, I'm creating this issue to make sure we test the recent changes against js-ipfs to make sure that there is no undocumented change.
Release Notes
Features
Export top-level tables as part of the API: nameToVarint, nameToCode and codeToName. For those who were importing src/base-table, please use nameToCode now.
Renaming of top-level exported functions for consistency: (b764341)
- getCodec is now getNameFromData
- getName is now getNameFromCode
- getNumber is now getCodeFromName
- getCode is now getCodeFromData
- getCodeVarint is now getVarintFromName
- getVarint is now getVarintFromCode-getVarintFromCodereturnsUint8Arrayinstead ofArray- **Backwards compatibility**: all old names were kept as alias andgetVariantreturns a regularArray`. They are deprecated methods and will be removed in a future major release.
BREAKING CHANGES
remove print top-level export, use getNameFromCode instead.
/cc @vmx@vasco-santos since my time is very limited (working at 25%), could any of you check if the current master code doesn't break js-ipfs? Thank you!
The text was updated successfully, but these errors were encountered:
Due to the previous breaking changes that were not supposed to have broken the API, I'm creating this issue to make sure we test the recent changes against js-ipfs to make sure that there is no undocumented change.
Release Notes
Features
nameToVarint
,nameToCode
andcodeToName
. For those who were importingsrc/base-table
, please usenameToCode
now.Refactor
CodecNumber
toCodecCode
(c3af948)-
getCodec
is nowgetNameFromData
-
getName
is nowgetNameFromCode
-
getNumber
is nowgetCodeFromName
-
getCode
is nowgetCodeFromData
-
getCodeVarint
is nowgetVarintFromName
-
getVarint is now
getVarintFromCode-
getVarintFromCodereturns
Uint8Arrayinstead of
Array- **Backwards compatibility**: all old names were kept as alias and
getVariantreturns a regular
Array`. They are deprecated methods and will be removed in a future major release.BREAKING CHANGES
print
top-level export, usegetNameFromCode
instead./cc @vmx @vasco-santos since my time is very limited (working at 25%), could any of you check if the current master code doesn't break
js-ipfs
? Thank you!The text was updated successfully, but these errors were encountered: