Releases: FuelLabs/fuels-ts
Releases · FuelLabs/fuels-ts
v0.101.3
Summary
In this release, we:
- Implemented the auto-consolidation flow to detect when the max UTXO limit has been reached.
- Added helper function for consolidating coins (
consolidateCoins
). - Added method for consolidating non-base assets.
- Added the JSON ABI error entry to
FuelError.metadata
property - Added detection and handling for malformed response body
- Deprecate function signature in
InvocationScope
helper methods - Add support for object parameter at
TransactionResponse
constructor
Features
- #3929 - Added auto-consolidation of coins, by @petertonysmith94
- #3923 - Consolidate non-base asset, by @petertonysmith94
Chores
- #3921 - Add JSON ABI error entry to
FuelError.metadata
, by @Torres-ssf - #3904 - Upgrade
esbuild
dependency, by @dependabot - #3913 - Handling for malformed response body, by @petertonysmith94
- #3920 - Deprecate helpers related to
InvocationScope
, by @Torres-ssf - #3911 - Add object parameter support to
TransactionResponse
constructor, by @Torres-ssf
v0.101.2
Summary
In this release, we:
- Implement support for new ABI error codes
- Populated transaction summary property
calls
with invoked contractfn
andargs
- Deprecated Node 18 - upgrade to a newer version of Node.
- Upgraded
forc
to0.68.6
Features
- #3894 - Implement support for new ABI error codes, by @Torres-ssf
Fixes
- #3897 - Contract operation summary for multi-calls, by @Torres-ssf
Chores
- #3889 - Updated dependencies, by @dependabot
- #3902 - Support Node 24 - depreciate Node 18, by @petertonysmith94
- #3903 - Upgraded
forc
to0.66.8
, by @petertonysmith94
v0.101.1
Summary
In this release, we:
- Made
Account.signTransaction
returnsTransactionRequest
orstring
Chores
- #3895 - Made
Account.signTransaction
returnsTransactionRequest
, by @Torres-ssf
v0.101.0
Summary
In this release, we:
- Added method
setData
toPredicate
class - Added support for on-the-fly modifications to
TransactionRequest
when usingInvocationScope
- Made
provider.assembleTx()
to considerreserveGas
when setting TXgasLimit
- Enforced Predicate's
data
property when the Predicate has arguments - Close subscription after
Preconfirmation
when another status is not awaited by the user - Removed
BaseInvocationScope.getTransactionId()
Breaking
- Fixes
- #3886 - Enforce
predicateData
when predicate has arguments, by @Torres-ssf
- #3886 - Enforce
- Chores
- #3864 - Remove
BaseInvocationScope.getTransactionId()
, by @Torres-ssf
- #3864 - Remove
Features
- #3885 - Add
Predicate
methodsetData
, by @Torres-ssf - #3875 - Support TX customization at BaseInvocationScope, by @Torres-ssf
Fixes
- #3887 - Close subscription after
Preconfirmation
status when applicable, by @Torres-ssf
Migration Notes
Fixes
#3886 - Enforce predicateData
when predicate has arguments
Predicates that define arguments must now be instantiated with the data property. It is no longer allowed to omit data when the predicate expects input arguments.
For example, for the given predicate:
predicate;
fn main(pin: u64) -> bool {
return 999 == pin;
}
The following code would compile, even though the predicate expects arguments:
// before
const predicateNoData = new PredicatePin({ provider }) // ✅ Allowed (incorrectly)
const predicate = new PredicatePin({ provider, data: [100] }) // ✅ Correct
TypeScript now enforces that data must be provided:
// after
const predicateNoData = new PredicatePin({ provider }) // ❌ Error: missing required `data`
const predicate = new PredicatePin({ provider, data: [100] }) // ✅ Correct
Chores
#3864 - Remove BaseInvocationScope.getTransactionId()
getTransactionId()
is no longer available on theBaseInvocationScope
.
// before
const contract = new CounterContract(contractId, wallet)
const scope = contract.functions.get_counter()
const txId = await scope.getTransactionId()
// after
const contract = new CounterContract(contractId, wallet)
const request = contract.functions.get_counter().fundWithRequiredCoins()
const chainId = await provider.getChainId()
const txId = await scope.getTransactionId(chainId)
v0.100.6
Summary
In this release, we:
- Made connector
sendTransaction
returnTransactionResponse
insteadTransactionResponseJson
Chores
- #3879 - Made connector returns
TransactionResponse
type, by @Torres-ssf
v0.100.5
Summary
In this release, we:
- Implemented helpers to serialize/deserialize
TransactionResponse
- Fixed error with missing
CALL
receipt ingetAllDecodedLogs
- Fixed
Provider
auto-refetch strategy
Features
- #3878 - Implement methods to serialize/deserialize
TransactionResponse
, by @Torres-ssf
Fixes
- #3871 - Ensure contract call receipt exists when decoding logs, by @Torres-ssf
- #3869 - Provider auto-refetch, by @arboleya
v0.100.4
Summary
In this release, we:
- Upgraded
fuel-core
tov0.42.0
→v0.43.0
→v0.43.1
- Upgraded
forc
tov0.67.1
→v0.67.2
→v0.68.1
- Implemented RPC consistency approach: using
required_fuel_block_height
- Implemented the new
AssembleTx
GraphQL endpoint in theProvider
class - Added support for Pre-Confirmations
- Implemented helper method for base asset (UTXO) consolidation:
account.consolidateCoins()
- Exported
@fuels/vm-asm
package asFuelAsm
fromfuels
Features
- #3866 - Re-exporting
@fuels/vm-asm
asFuelAsm
fromfuels
, by @arboleya - #3747 - Integrate with new
AssembleTx
GQL end-point, by @Torres-ssf - #3836 - Add method for base asset coins consolidation, by @Torres-ssf
- #3857 - Add support for pre-confirmations, by @Torres-ssf
Fixes
Chores
v0.100.3
Summary
In this release, we:
- Introduced
groupedLogs
for contracts and scripts
Features
- #3805 - Added
groupedLogs
, by @petertonysmith94
Fixes
- #3837 - Connector detection of correct chain, by @petertonysmith94
- #3843 - Silent chain fetch request failures, by @petertonysmith94
v0.100.2
Summary
In this release, we:
- Adjusted feature detection for balances indexation
Fixes
- #3824 - Adjust feature detection for balances, by @Torres-ssf
Chores
- #3811 - Upgrade
@fuels/connectors
to0.39.2
, by @petertonysmith94
v0.100.1
Summary
In this release, we:
- Avoid decoding logs from inter-called contracts without a JSON ABI
- Eliminated duplicate chain requests across multiple concurrent provider instances
Fixes
- #3790 - Skip decoding external contract logs without JSON ABI, by @Torres-ssf
Chores
- #3788 - Eliminate chain requests across concurrent provider instances, by @petertonysmith94