Skip to content

v2.0.0

Compare
Choose a tag to compare
@glevco glevco released this 11 Dec 18:36
· 4 commits to release since this release
3067c43

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() and unpackToInt() support for 8 bytes is dropped.
  • Constants that were changed from Number to BigInt:
    • 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 a BigInt instead of a Number and prettyIntegerValue() is removed.

What's Changed

Full Changelog: v1.14.1...v2.0.0