near-api-js 7.0.1
#1822 8493b36 Thanks @denbite! - Explicitly declare the return type of Account.signAndSendTransaction so it doesn't fallback to any; #1819 e6f4db2 Thanks @gagdiez! - Correctly expose the new Actions interface, which…
- The newest stable release in the 7.0 line: near-api-js 7.0.4
- Newest near-api-js: near-api-js 7.4.0
Patch Changes
#1822
8493b36Thanks @denbite! - Explicitly declare the return type ofAccount.signAndSendTransactionso it doesn't fallback toany#1819
e6f4db2Thanks @gagdiez! - Correctly expose the newActionsinterface, which simplify creating actions, and hide the oldActionclass, which needs a lot of manual work and is incredibly confusing. Importantly,Action(and its different instances) are still being exported as a type, to devs can figure out how to distinguis between differentActions.#1818
a82e47fThanks @denbite! - Attach finalizedblockHashto transaction created usingAccount.createTransactionto preventTransactionExpiredErrorerrors.Previously, transactions could be created with a
blockHashthat had not yet fully propagated across the network. In some cases, receiver RPC nodes were unable to look up the referenced block, resulting inTransactionExpiredErrorfailures (often due to a small propagation delay of a few milliseconds).