v2.0.0
This version introduces a breaking change by updating the way transaction output values are handled from the JS Number
type to the BigInt
type. This requires Node v22 (so Node v20 support is dropped) and the signatures of some functions were changed.
BREAKING CHANGES:
- Node v20 support is dropped.
signedIntToBytes()
andunpackToInt()
support for 8 bytes is dropped.- Constants that were changed from
Number
toBigInt
:MAX_OUTPUT_VALUE_32
MAX_OUTPUT_VALUE
(its value was also updated)TOKEN_MINT_MASK
TOKEN_MELT_MASK
- Functions that now return types with
BigInt
output values:txApi.getTransaction()
txApi.getTransactionBase()
wallet.getAddressHistory()
wallet.getAddressHistoryForAwait()
wallet.getAddressHistoryForAwaitPOST()
wallet.getGeneralTokenInfo()
prettyValue()
now receives aBigInt
instead of aNumber
andprettyIntegerValue()
is removed.
What's Changed
- ci: add support for node v22 by @glevco in #797
- chore(deps): bump axios from 1.7.2 to 1.7.7 by @dependabot in #752
- feat: consider nano caller to the address metadata in the storage by @pedroferreira1 in #801
- feat: implement bigint support by @glevco in #728
- chore: remove support for Node v20 by @glevco in #799
- feat: add support for maximum output values by @glevco in #708
Full Changelog: v1.14.1...v2.0.0