Releases: HathorNetwork/hathor-wallet-lib
Releases · HathorNetwork/hathor-wallet-lib
v2.0.1
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
v1.14.1
What's Changed
- fix: error message for over available tokens to mint or melt in #791
Full Changelog: v1.14.0...v1.14.1
v1.14.0
What's Changed
- Add block_hash and block_height parameters to the nano state API #784
- Allow selection of only available authorities with
getMintAuthority
andgetMeltAuthority
#787 - New methods that return SendTransaction instead of sending the transaction directly #785
Full Changelog: v1.13.0...v1.14.0
v1.13.0
v1.12.1
v1.12.0
What's Changed
- Move the history sort to the new pre-process method.
- treat begin stream event during history stream sync
- global load lock for wallet sync
- save stream events on queue
- history stream flow control client
- created a release script to normalize how the lib is published
Full Changelog: v1.11.0...v1.12.0
v1.11.0
v1.10.0
What's Changed
Features
- feat: handle nano custom types in the parser and builder classes in #729
- feat: update nano hathor core URL for blueprint info endpoint in #734
- feat: add new nano contract type contractId in #735
Fixes
- fix: Workflow triggers by #716
Refactors
- refactor: Typescript tests and automatic linting in #704
- refactor: create OutputValueType in #719
- refactor: typing improvements #720
Style changes
- style:
jest/no-conditional-expect
rule in #722 - style:
@typescript-eslint/ban-ts-comment
rule in #725 - style:
@typescript-eslint/no-explicit-any
rule in #727 - style:
no-async-promise-executor
rule in #724 - style(tests): Simple lint fixes in #721
- style:
jest/no-mocks-import
in #726 - style:
jest/expect-expect
rule in #723
Chores
- chore: update docker-compose to docker compose in #730
- chore: Tests linting on ci in #731
- chore: upgrade upload-artifact to v4 in #736
Full Changelog: v1.9.0...v1.10.0
v1.9.0
What's Changed
- add method to get network from full node network in #696
- consistent-return rule in #680
- no-extraneous-dependencies rule in #681
- no-cond-assign rule in #683
- no-unused-expressions rule in #684
- no-explicit-any rule in #685
- Upgrades
axios-mock-adapter
in #694 - updateTokensData retry mechanism in #703
- no-promise-executor-return rule in #682
- Consistent return for
getDagMetadata
in #702 - Add linting and formatting to CI in #695
- bump ws from 8.17.0 to 8.17.1 in #698
- Workflow to auto sync release into master in #692
- streaming history sync in #706
Full Changelog: v1.8.0...v1.9.0