From 8f5f2e42e8db60626c84da6e08ac5fc1d00da037 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 1 Apr 2021 14:43:24 -0300 Subject: [PATCH] Apply Version Updates From Current Changes (#405) Co-authored-by: lucasfernog --- .changes/backup-refactor.md | 5 - .changes/backup-to-file.md | 5 - .changes/balance-change-event-message-ids.md | 5 - .changes/balance-internal-tx.md | 5 - .changes/fix-change-password.md | 5 - .changes/fix-duplicated-events.md | 5 - .changes/message--value-refactor.md | 5 - .changes/node-disabled.md | 5 - .changes/reattachment-event.md | 5 - .changes/storage-refactor.md | 5 - .changes/stronghold-mnemonic-check.md | 5 - .changes/sync.md | 5 - .changes/validate-client-options.md | 5 - bindings/nodejs/CHANGELOG.md | 160 +++++++++++-------- bindings/nodejs/package.json | 2 +- 15 files changed, 96 insertions(+), 131 deletions(-) delete mode 100644 .changes/backup-refactor.md delete mode 100644 .changes/backup-to-file.md delete mode 100644 .changes/balance-change-event-message-ids.md delete mode 100644 .changes/balance-internal-tx.md delete mode 100644 .changes/fix-change-password.md delete mode 100644 .changes/fix-duplicated-events.md delete mode 100644 .changes/message--value-refactor.md delete mode 100644 .changes/node-disabled.md delete mode 100644 .changes/reattachment-event.md delete mode 100644 .changes/storage-refactor.md delete mode 100644 .changes/stronghold-mnemonic-check.md delete mode 100644 .changes/sync.md delete mode 100644 .changes/validate-client-options.md diff --git a/.changes/backup-refactor.md b/.changes/backup-refactor.md deleted file mode 100644 index bc5682407..000000000 --- a/.changes/backup-refactor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": minor ---- - -Adds a `password` field on the `backup` API. diff --git a/.changes/backup-to-file.md b/.changes/backup-to-file.md deleted file mode 100644 index 3c3b5046b..000000000 --- a/.changes/backup-to-file.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -Backup destination can now be a path to a file instead of a directory, allowing custom filenames. diff --git a/.changes/balance-change-event-message-ids.md b/.changes/balance-change-event-message-ids.md deleted file mode 100644 index 9b93dcb0b..000000000 --- a/.changes/balance-change-event-message-ids.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -Adds a `messageId` field to the balance change event payload. diff --git a/.changes/balance-internal-tx.md b/.changes/balance-internal-tx.md deleted file mode 100644 index 93888569b..000000000 --- a/.changes/balance-internal-tx.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -The `incoming` and `outgoing` account balances now ignores internal transactions. diff --git a/.changes/fix-change-password.md b/.changes/fix-change-password.md deleted file mode 100644 index aca814342..000000000 --- a/.changes/fix-change-password.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -Properly validate the `currentPassword` on the `changeStrongholdPassword` API. diff --git a/.changes/fix-duplicated-events.md b/.changes/fix-duplicated-events.md deleted file mode 100644 index 7e840fbca..000000000 --- a/.changes/fix-duplicated-events.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -Fixes duplicated balance change and new transaction events being triggered. diff --git a/.changes/message--value-refactor.md b/.changes/message--value-refactor.md deleted file mode 100644 index 195341d1c..000000000 --- a/.changes/message--value-refactor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": minor ---- - -Moved message fields `value`, `incoming`, `remainderValue` to the `RegularEssence` object. diff --git a/.changes/node-disabled.md b/.changes/node-disabled.md deleted file mode 100644 index a9baab2cc..000000000 --- a/.changes/node-disabled.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -Adds `disabled` flag on the `Node` object. diff --git a/.changes/reattachment-event.md b/.changes/reattachment-event.md deleted file mode 100644 index 54cf40cb8..000000000 --- a/.changes/reattachment-event.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -Adds `reattachedMessageId` field on the reattachment event payload. diff --git a/.changes/storage-refactor.md b/.changes/storage-refactor.md deleted file mode 100644 index 5ce832efa..000000000 --- a/.changes/storage-refactor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": minor ---- - -Removes the `StorageType` option. diff --git a/.changes/stronghold-mnemonic-check.md b/.changes/stronghold-mnemonic-check.md deleted file mode 100644 index 46cf41132..000000000 --- a/.changes/stronghold-mnemonic-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -Prevent overwriting the Stronghold mnemonic by throwing an error. diff --git a/.changes/sync.md b/.changes/sync.md deleted file mode 100644 index 836ad916a..000000000 --- a/.changes/sync.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -Fixes address outputs syncing. diff --git a/.changes/validate-client-options.md b/.changes/validate-client-options.md deleted file mode 100644 index 278c2d804..000000000 --- a/.changes/validate-client-options.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nodejs-binding": patch ---- - -The wallet now validates the nodes provided to the account creation and the `setClientOptions` API. diff --git a/bindings/nodejs/CHANGELOG.md b/bindings/nodejs/CHANGELOG.md index be85079fe..8b8404062 100644 --- a/bindings/nodejs/CHANGELOG.md +++ b/bindings/nodejs/CHANGELOG.md @@ -1,76 +1,106 @@ # Changelog -## [0.0.6] +## \[0.1.0] -- The default account alias now starts at index 1. - - [c5dad35](https://github.com/iotaledger/wallet.rs/commit/c5dad35f6ec99ba585db035297566c267b24d50b) refactor(account): default alias starts at 1 ([#401](https://github.com/iotaledger/wallet.rs/pull/401)) on 2021-03-09 -- Fixes event storage loading. - - [c178419](https://github.com/iotaledger/wallet.rs/commit/c17841928e31b07a0e2172c4ed08d3ede505ede3) fix(storage): load events ([#398](https://github.com/iotaledger/wallet.rs/pull/398)) on 2021-03-08 -- The event persistence is now optional and must be enabled on the AccountManager constructor options. - - [8e7461b](https://github.com/iotaledger/wallet.rs/commit/8e7461b2537dff44e4539546d92c5f746486654b) refactor: optional event persistence ([#399](https://github.com/iotaledger/wallet.rs/pull/399)) on 2021-03-09 -- Fixes backup import when using the SQLite database. - - [5443848](https://github.com/iotaledger/wallet.rs/commit/544384863771c166278beceb82f70e4ea4f67a3d) fix(manager): save accounts imported from stronghold file ([#396](https://github.com/iotaledger/wallet.rs/pull/396)) on 2021-03-08 -- Fixes an issue with the stronghold status when loading the snapshot with a wrong password. - - [5e81e1f](https://github.com/iotaledger/wallet.rs/commit/5e81e1f8e68d87fe50ef89c5a44567299d3de1cf) fix(stronghold): unset password if snapshot loading failed ([#392](https://github.com/iotaledger/wallet.rs/pull/392)) on 2021-03-08 -- Fixes an issue with the account creation when checking if the latest account is empty. - - [8d4187f](https://github.com/iotaledger/wallet.rs/commit/8d4187fa00d8f1e941ccaadc5cff41673fcc3735) fix(account): latest account empty check, fixes [#364](https://github.com/iotaledger/wallet.rs/pull/364) ([#394](https://github.com/iotaledger/wallet.rs/pull/394)) on 2021-03-08 -- Updated dependency `rand` to `^0.8` fixing a [security issue](https://github.com/iotaledger/wallet.rs/issues/359). - - [44ac325](https://github.com/iotaledger/wallet.rs/commit/44ac325597759c65d9624e8532d2089b4b546564) chore: update dependencies, closes [#359](https://github.com/iotaledger/wallet.rs/pull/359) ([#402](https://github.com/iotaledger/wallet.rs/pull/402)) on 2021-03-09 +- Adds a `password` field on the `backup` API. + - [5c428c6](https://github.com/iotaledger/wallet.rs/commit/5c428c639c7ff3580eb3cc0c8852ac3ab53bf2b8) refactor: remove custom storage option ([#466](https://github.com/iotaledger/wallet.rs/pull/466)) on 2021-03-26 +- Backup destination can now be a path to a file instead of a directory, allowing custom filenames. + - [ffbeaa3](https://github.com/iotaledger/wallet.rs/commit/ffbeaa3466b44f79dd5f87e14ed1bdc4846d9e85) feat(backup): allow file path as destination for custom filenames ([#426](https://github.com/iotaledger/wallet.rs/pull/426)) on 2021-03-14 +- Adds a `messageId` field to the balance change event payload. + - [c7d34e2](https://github.com/iotaledger/wallet.rs/commit/c7d34e213a7a42503b21714847c9642e19878cb4) feat(events): reintroduce message_ids on balance change event payload ([#406](https://github.com/iotaledger/wallet.rs/pull/406)) on 2021-03-09 + - [1e4447c](https://github.com/iotaledger/wallet.rs/commit/1e4447cf161940d17707e14f544c105e88ddff54) refactor(event): split balance change events on message id ([#412](https://github.com/iotaledger/wallet.rs/pull/412)) on 2021-03-11 +- The `incoming` and `outgoing` account balances now ignores internal transactions. + - [f1dbd05](https://github.com/iotaledger/wallet.rs/commit/f1dbd05b4347ed649cf76458e21d6c8bf1cf68c4) refactor(message): detect internal txs, move value fields, fix balance ([#407](https://github.com/iotaledger/wallet.rs/pull/407)) on 2021-03-09 +- Properly validate the `currentPassword` on the `changeStrongholdPassword` API. + - [ce685aa](https://github.com/iotaledger/wallet.rs/commit/ce685aadb8c76d61bb13f9c46c35526a22f25e89) fix(stronghold): properly check current password on password change API ([#408](https://github.com/iotaledger/wallet.rs/pull/408)) on 2021-03-10 +- Fixes duplicated balance change and new transaction events being triggered. + - [8bbca83](https://github.com/iotaledger/wallet.rs/commit/8bbca83a0a9c23025823def680a9a123d63561f6) fix(sync): lock the account so duplicated events never happen ([#403](https://github.com/iotaledger/wallet.rs/pull/403)) on 2021-03-09 +- Moved message fields `value`, `incoming`, `remainderValue` to the `RegularEssence` object. + - [f1dbd05](https://github.com/iotaledger/wallet.rs/commit/f1dbd05b4347ed649cf76458e21d6c8bf1cf68c4) refactor(message): detect internal txs, move value fields, fix balance ([#407](https://github.com/iotaledger/wallet.rs/pull/407)) on 2021-03-09 +- Adds `disabled` flag on the `Node` object. + - [782ebfd](https://github.com/iotaledger/wallet.rs/commit/782ebfd458fe5e7ff070b3055c708e18000fb607) feat(client): add `disabled` option to the node struct ([#484](https://github.com/iotaledger/wallet.rs/pull/484)) on 2021-03-30 +- Adds `reattachedMessageId` field on the reattachment event payload. + - [2f2ccee](https://github.com/iotaledger/wallet.rs/commit/2f2ccee3d2799ae40219ee52fdc1c364e45cef3c) feat(events): add `reattached_message_id` on reattachment event ([#432](https://github.com/iotaledger/wallet.rs/pull/432)) on 2021-03-16 +- Removes the `StorageType` option. + - [5c428c6](https://github.com/iotaledger/wallet.rs/commit/5c428c639c7ff3580eb3cc0c8852ac3ab53bf2b8) refactor: remove custom storage option ([#466](https://github.com/iotaledger/wallet.rs/pull/466)) on 2021-03-26 +- Prevent overwriting the Stronghold mnemonic by throwing an error. + - [eaf3763](https://github.com/iotaledger/wallet.rs/commit/eaf3763215c0f58513bfac0408ec8a573123e71d) feat(stronghold): check if mnemonic is already set, closes [#409](https://github.com/iotaledger/wallet.rs/pull/409) ([#486](https://github.com/iotaledger/wallet.rs/pull/486)) on 2021-03-31 +- Fixes address outputs syncing. + - [67fd04f](https://github.com/iotaledger/wallet.rs/commit/67fd04fc7e27a9a6e33eb1851df6cbc29dd77022) fix(sync): fetch output from the node if local copy is unspent ([#454](https://github.com/iotaledger/wallet.rs/pull/454)) on 2021-03-21 +- The wallet now validates the nodes provided to the account creation and the `setClientOptions` API. + - [a77fb60](https://github.com/iotaledger/wallet.rs/commit/a77fb60a26e8df5de79c5b3accc5412d93061af7) feat(account): add client options validation ([#404](https://github.com/iotaledger/wallet.rs/pull/404)) on 2021-03-09 -## [0.0.5] +## \[0.0.6] -- Added auth `username` and `password` to the client options. - - [7f462fd](https://github.com/iotaledger/wallet.rs/commit/7f462fd449b490d4761178fb8cc526a865133746) feat(client): add auth options ([#373](https://github.com/iotaledger/wallet.rs/pull/373)) on 2021-03-04 -- Adds a `indexationId` (unique identifier) field to all event payload objects. - - [503e2bc](https://github.com/iotaledger/wallet.rs/commit/503e2bcf69d9d3ae5596017f2d7fac20204b3302) refactor(event): add indexation id ([#377](https://github.com/iotaledger/wallet.rs/pull/377)) on 2021-03-05 -- The events are now persisted and the AccountManager has APIs to read them. - - [45c9bd9](https://github.com/iotaledger/wallet.rs/commit/45c9bd98192d06b43bcd76c79a16d3324f49fbc2) feat: events persistence ([#356](https://github.com/iotaledger/wallet.rs/pull/356)) on 2021-03-01 -- Fixes the account syncing through the background polling system. - - [4fd5068](https://github.com/iotaledger/wallet.rs/commit/4fd5068b7032c57418749e8770f7266cdebf1127) fix(sync): sync on polling should search all addresses, closes [#355](https://github.com/iotaledger/wallet.rs/pull/355) ([#358](https://github.com/iotaledger/wallet.rs/pull/358)) on 2021-03-02 -- Adds the message type filter on the `messageCount` API. - - [2fc4e71](https://github.com/iotaledger/wallet.rs/commit/2fc4e7143695fa89c15bbbe9aede7800c4cde5c6) feat(bindings): add filter on message_count API ([#347](https://github.com/iotaledger/wallet.rs/pull/347)) on 2021-02-24 -- Adds a `metadata` field on the transaction essence inputs. - - [fd5ae9d](https://github.com/iotaledger/wallet.rs/commit/fd5ae9d7c9337cde0ac6d9edad324f4260296110) refactor(message): add input details on transaction essence inputs ([#361](https://github.com/iotaledger/wallet.rs/pull/361)) on 2021-03-02 -- Addresses on the `Message` object are now serialized with the bech32 format. - - [53f90da](https://github.com/iotaledger/wallet.rs/commit/53f90da6610a3ab1762f59b05ae5014acf531174) refactor(message): use Payload wrapper, serde Address as bech32 ([#343](https://github.com/iotaledger/wallet.rs/pull/343)) on 2021-02-23 -- Adds a `remainder` property to the transaction's `output` object. - - [f87a987](https://github.com/iotaledger/wallet.rs/commit/f87a9877041fde5dbffed0f117b075450f9ce21f) feat(message): add `remainder` field to the TransactionOutput struct ([#350](https://github.com/iotaledger/wallet.rs/pull/350)) on 2021-02-25 -- Fixes `setStrongholdPassword` accepting a wrong password after a few tries. - - [991c2e6](https://github.com/iotaledger/wallet.rs/commit/991c2e68c1f88f0c327d1cd37a1275089aaf0ed3) fix(stronghold): mark client as loaded if the snapshot decrypt succeded ([#357](https://github.com/iotaledger/wallet.rs/pull/357)) on 2021-03-01 -- Adds the `options: SyncOptions` parameter on the `AccountManager#syncAccounts` method. - - [9855cfa](https://github.com/iotaledger/wallet.rs/commit/9855cfa4ce7296d04d1c647c7f6ca1722784eb33) refactor(manager): `sync_accounts` gap_limit and address_index options ([#346](https://github.com/iotaledger/wallet.rs/pull/346)) on 2021-02-24 -- Move `transfer`, `retry`, `reattach`, `promote` APIs to the account object. - - [8b808c8](https://github.com/iotaledger/wallet.rs/commit/8b808c80bbb7bc1e6b9858551880684a0400ab0c) refactor(sync): automatic sync before transfer/retry/reattach/promote ([#365](https://github.com/iotaledger/wallet.rs/pull/365)) on 2021-03-02 -- Added a `TransferProgress` event type, triggered on transfer steps progress. - - [4c46aa6](https://github.com/iotaledger/wallet.rs/commit/4c46aa64ebf6168ca83360ca3df2fcd808103795) feat(transfer): add progress event ([#369](https://github.com/iotaledger/wallet.rs/pull/369)) on 2021-03-02 +- The default account alias now starts at index 1. + - [c5dad35](https://github.com/iotaledger/wallet.rs/commit/c5dad35f6ec99ba585db035297566c267b24d50b) refactor(account): default alias starts at 1 ([#401](https://github.com/iotaledger/wallet.rs/pull/401)) on 2021-03-09 +- Fixes event storage loading. + - [c178419](https://github.com/iotaledger/wallet.rs/commit/c17841928e31b07a0e2172c4ed08d3ede505ede3) fix(storage): load events ([#398](https://github.com/iotaledger/wallet.rs/pull/398)) on 2021-03-08 +- The event persistence is now optional and must be enabled on the AccountManager constructor options. + - [8e7461b](https://github.com/iotaledger/wallet.rs/commit/8e7461b2537dff44e4539546d92c5f746486654b) refactor: optional event persistence ([#399](https://github.com/iotaledger/wallet.rs/pull/399)) on 2021-03-09 +- Fixes backup import when using the SQLite database. + - [5443848](https://github.com/iotaledger/wallet.rs/commit/544384863771c166278beceb82f70e4ea4f67a3d) fix(manager): save accounts imported from stronghold file ([#396](https://github.com/iotaledger/wallet.rs/pull/396)) on 2021-03-08 +- Fixes an issue with the stronghold status when loading the snapshot with a wrong password. + - [5e81e1f](https://github.com/iotaledger/wallet.rs/commit/5e81e1f8e68d87fe50ef89c5a44567299d3de1cf) fix(stronghold): unset password if snapshot loading failed ([#392](https://github.com/iotaledger/wallet.rs/pull/392)) on 2021-03-08 +- Fixes an issue with the account creation when checking if the latest account is empty. + - [8d4187f](https://github.com/iotaledger/wallet.rs/commit/8d4187fa00d8f1e941ccaadc5cff41673fcc3735) fix(account): latest account empty check, fixes [#364](https://github.com/iotaledger/wallet.rs/pull/364) ([#394](https://github.com/iotaledger/wallet.rs/pull/394)) on 2021-03-08 +- Updated dependency `rand` to `^0.8` fixing a [security issue](https://github.com/iotaledger/wallet.rs/issues/359). + - [44ac325](https://github.com/iotaledger/wallet.rs/commit/44ac325597759c65d9624e8532d2089b4b546564) chore: update dependencies, closes [#359](https://github.com/iotaledger/wallet.rs/pull/359) ([#402](https://github.com/iotaledger/wallet.rs/pull/402)) on 2021-03-09 -## [0.0.4] +## \[0.0.5] -- Fixes the message confirmation state update on the background sync system. - - [a164f4d](https://github.com/iotaledger/wallet.rs/commit/a164f4d2c844f701744c129aaafb731703a2910f) fix(sync): do not set tx as unconfirmed when the inclusion state is null ([#338](https://github.com/iotaledger/wallet.rs/pull/338)) on 2021-02-19 -- New method on the Account object to get an address by its bech32 representation. - - [0652cd9](https://github.com/iotaledger/wallet.rs/commit/0652cd93c620323026720e43c0510791901ba35c) feat(nodejs): add API to get an address by bech32 string ([#336](https://github.com/iotaledger/wallet.rs/pull/336)) on 2021-02-19 -- Adds a `messageCount` function on the Account class. - - [ed74aaf](https://github.com/iotaledger/wallet.rs/commit/ed74aaf3a8ffe6737b17e86455326811c9e52f76) feat(bindings): add messageCount API ([#340](https://github.com/iotaledger/wallet.rs/pull/340)) on 2021-02-22 +- Added auth `username` and `password` to the client options. + - [7f462fd](https://github.com/iotaledger/wallet.rs/commit/7f462fd449b490d4761178fb8cc526a865133746) feat(client): add auth options ([#373](https://github.com/iotaledger/wallet.rs/pull/373)) on 2021-03-04 +- Adds a `indexationId` (unique identifier) field to all event payload objects. + - [503e2bc](https://github.com/iotaledger/wallet.rs/commit/503e2bcf69d9d3ae5596017f2d7fac20204b3302) refactor(event): add indexation id ([#377](https://github.com/iotaledger/wallet.rs/pull/377)) on 2021-03-05 +- The events are now persisted and the AccountManager has APIs to read them. + - [45c9bd9](https://github.com/iotaledger/wallet.rs/commit/45c9bd98192d06b43bcd76c79a16d3324f49fbc2) feat: events persistence ([#356](https://github.com/iotaledger/wallet.rs/pull/356)) on 2021-03-01 +- Fixes the account syncing through the background polling system. + - [4fd5068](https://github.com/iotaledger/wallet.rs/commit/4fd5068b7032c57418749e8770f7266cdebf1127) fix(sync): sync on polling should search all addresses, closes [#355](https://github.com/iotaledger/wallet.rs/pull/355) ([#358](https://github.com/iotaledger/wallet.rs/pull/358)) on 2021-03-02 +- Adds the message type filter on the `messageCount` API. + - [2fc4e71](https://github.com/iotaledger/wallet.rs/commit/2fc4e7143695fa89c15bbbe9aede7800c4cde5c6) feat(bindings): add filter on message_count API ([#347](https://github.com/iotaledger/wallet.rs/pull/347)) on 2021-02-24 +- Adds a `metadata` field on the transaction essence inputs. + - [fd5ae9d](https://github.com/iotaledger/wallet.rs/commit/fd5ae9d7c9337cde0ac6d9edad324f4260296110) refactor(message): add input details on transaction essence inputs ([#361](https://github.com/iotaledger/wallet.rs/pull/361)) on 2021-03-02 +- Addresses on the `Message` object are now serialized with the bech32 format. + - [53f90da](https://github.com/iotaledger/wallet.rs/commit/53f90da6610a3ab1762f59b05ae5014acf531174) refactor(message): use Payload wrapper, serde Address as bech32 ([#343](https://github.com/iotaledger/wallet.rs/pull/343)) on 2021-02-23 +- Adds a `remainder` property to the transaction's `output` object. + - [f87a987](https://github.com/iotaledger/wallet.rs/commit/f87a9877041fde5dbffed0f117b075450f9ce21f) feat(message): add `remainder` field to the TransactionOutput struct ([#350](https://github.com/iotaledger/wallet.rs/pull/350)) on 2021-02-25 +- Fixes `setStrongholdPassword` accepting a wrong password after a few tries. + - [991c2e6](https://github.com/iotaledger/wallet.rs/commit/991c2e68c1f88f0c327d1cd37a1275089aaf0ed3) fix(stronghold): mark client as loaded if the snapshot decrypt succeded ([#357](https://github.com/iotaledger/wallet.rs/pull/357)) on 2021-03-01 +- Adds the `options: SyncOptions` parameter on the `AccountManager#syncAccounts` method. + - [9855cfa](https://github.com/iotaledger/wallet.rs/commit/9855cfa4ce7296d04d1c647c7f6ca1722784eb33) refactor(manager): `sync_accounts` gap_limit and address_index options ([#346](https://github.com/iotaledger/wallet.rs/pull/346)) on 2021-02-24 +- Move `transfer`, `retry`, `reattach`, `promote` APIs to the account object. + - [8b808c8](https://github.com/iotaledger/wallet.rs/commit/8b808c80bbb7bc1e6b9858551880684a0400ab0c) refactor(sync): automatic sync before transfer/retry/reattach/promote ([#365](https://github.com/iotaledger/wallet.rs/pull/365)) on 2021-03-02 +- Added a `TransferProgress` event type, triggered on transfer steps progress. + - [4c46aa6](https://github.com/iotaledger/wallet.rs/commit/4c46aa64ebf6168ca83360ca3df2fcd808103795) feat(transfer): add progress event ([#369](https://github.com/iotaledger/wallet.rs/pull/369)) on 2021-03-02 -## [0.0.3] +## \[0.0.4] -- The balance change event now emits a `{ spent, received }` object with the changed amount instead of the new address balance. - - [e5b7b5c](https://github.com/iotaledger/wallet.rs/commit/e5b7b5c85edf118339e4177323da9936ed644558) refactor: balance change event with balance diff instead of new value ([#332](https://github.com/iotaledger/wallet.rs/pull/332)) on 2021-02-18 -- Fixes a panic on the MQTT handling. - - [977a71e](https://github.com/iotaledger/wallet.rs/commit/977a71e24e338c8fa1110392b7dcdc83663ec839) fix(mqtt): spawn instead of block_on ([#330](https://github.com/iotaledger/wallet.rs/pull/330)) on 2021-02-17 -- Adds `getUnusedAddress` API on the `Account` class. - - [df2f796](https://github.com/iotaledger/wallet.rs/commit/df2f7968b22ef749f7caa177980a8954b44e87ce) feat(nodejs): add getUnusedAddress API ([#327](https://github.com/iotaledger/wallet.rs/pull/327)) on 2021-02-17 -- Fixes issues with the installation script when using with NPM instead of Yarn - - [74b10bb](https://github.com/iotaledger/wallet.rs/commit/74b10bbc56d393f1ea650117ba510027a1ae1c0c) fix(bindings/nodejs): Run scripts with NPM instead of Yarn ([#333](https://github.com/iotaledger/wallet.rs/pull/333)) on 2021-02-18 -- Fixes a deadlodk on the account synchronization. - - [774b408](https://github.com/iotaledger/wallet.rs/commit/774b4087312c9f8bf6522fb3dfd3e9cb032b88b5) refactor: transaction Essence is now a enum ([#321](https://github.com/iotaledger/wallet.rs/pull/321)) on 2021-02-16 -- Fixes the default initial address index on the account synchronization. - - [774b408](https://github.com/iotaledger/wallet.rs/commit/774b4087312c9f8bf6522fb3dfd3e9cb032b88b5) refactor: transaction Essence is now a enum ([#321](https://github.com/iotaledger/wallet.rs/pull/321)) on 2021-02-16 -- The transaction indexation now accepts byte arrays. - - [066d515](https://github.com/iotaledger/wallet.rs/commit/066d5155b0e23896b399fc34ca03786836c16278) refactor: transaction index is now a byte array ([#334](https://github.com/iotaledger/wallet.rs/pull/334)) on 2021-02-19 +- Fixes the message confirmation state update on the background sync system. + - [a164f4d](https://github.com/iotaledger/wallet.rs/commit/a164f4d2c844f701744c129aaafb731703a2910f) fix(sync): do not set tx as unconfirmed when the inclusion state is null ([#338](https://github.com/iotaledger/wallet.rs/pull/338)) on 2021-02-19 +- New method on the Account object to get an address by its bech32 representation. + - [0652cd9](https://github.com/iotaledger/wallet.rs/commit/0652cd93c620323026720e43c0510791901ba35c) feat(nodejs): add API to get an address by bech32 string ([#336](https://github.com/iotaledger/wallet.rs/pull/336)) on 2021-02-19 +- Adds a `messageCount` function on the Account class. + - [ed74aaf](https://github.com/iotaledger/wallet.rs/commit/ed74aaf3a8ffe6737b17e86455326811c9e52f76) feat(bindings): add messageCount API ([#340](https://github.com/iotaledger/wallet.rs/pull/340)) on 2021-02-22 -## [0.0.2] +## \[0.0.3] -- Initial release. - - [3eb114d](https://github.com/iotaledger/wallet.rs/commit/3eb114d2b3a0bb3956af74aae087ca06724fa7b2) feature(ci, bindings): Node.js bindings publishing and prebuild workflow ([#274](https://github.com/iotaledger/wallet.rs/pull/274)) on 2021-02-11 +- The balance change event now emits a `{ spent, received }` object with the changed amount instead of the new address balance. + - [e5b7b5c](https://github.com/iotaledger/wallet.rs/commit/e5b7b5c85edf118339e4177323da9936ed644558) refactor: balance change event with balance diff instead of new value ([#332](https://github.com/iotaledger/wallet.rs/pull/332)) on 2021-02-18 +- Fixes a panic on the MQTT handling. + - [977a71e](https://github.com/iotaledger/wallet.rs/commit/977a71e24e338c8fa1110392b7dcdc83663ec839) fix(mqtt): spawn instead of block_on ([#330](https://github.com/iotaledger/wallet.rs/pull/330)) on 2021-02-17 +- Adds `getUnusedAddress` API on the `Account` class. + - [df2f796](https://github.com/iotaledger/wallet.rs/commit/df2f7968b22ef749f7caa177980a8954b44e87ce) feat(nodejs): add getUnusedAddress API ([#327](https://github.com/iotaledger/wallet.rs/pull/327)) on 2021-02-17 +- Fixes issues with the installation script when using with NPM instead of Yarn + - [74b10bb](https://github.com/iotaledger/wallet.rs/commit/74b10bbc56d393f1ea650117ba510027a1ae1c0c) fix(bindings/nodejs): Run scripts with NPM instead of Yarn ([#333](https://github.com/iotaledger/wallet.rs/pull/333)) on 2021-02-18 +- Fixes a deadlodk on the account synchronization. + - [774b408](https://github.com/iotaledger/wallet.rs/commit/774b4087312c9f8bf6522fb3dfd3e9cb032b88b5) refactor: transaction Essence is now a enum ([#321](https://github.com/iotaledger/wallet.rs/pull/321)) on 2021-02-16 +- Fixes the default initial address index on the account synchronization. + - [774b408](https://github.com/iotaledger/wallet.rs/commit/774b4087312c9f8bf6522fb3dfd3e9cb032b88b5) refactor: transaction Essence is now a enum ([#321](https://github.com/iotaledger/wallet.rs/pull/321)) on 2021-02-16 +- The transaction indexation now accepts byte arrays. + - [066d515](https://github.com/iotaledger/wallet.rs/commit/066d5155b0e23896b399fc34ca03786836c16278) refactor: transaction index is now a byte array ([#334](https://github.com/iotaledger/wallet.rs/pull/334)) on 2021-02-19 + +## \[0.0.2] + +- Initial release. + - [3eb114d](https://github.com/iotaledger/wallet.rs/commit/3eb114d2b3a0bb3956af74aae087ca06724fa7b2) feature(ci, bindings): Node.js bindings publishing and prebuild workflow ([#274](https://github.com/iotaledger/wallet.rs/pull/274)) on 2021-02-11 diff --git a/bindings/nodejs/package.json b/bindings/nodejs/package.json index 6cddb7ec0..7357edffa 100644 --- a/bindings/nodejs/package.json +++ b/bindings/nodejs/package.json @@ -1,6 +1,6 @@ { "name": "@iota/wallet", - "version": "0.0.6", + "version": "0.1.0", "description": "Node.js binding to the wallet library", "main": "lib/index.js", "repository": {