Releases: FuelLabs/fuels-ts
v0.102.0
Summary
In this release, we:
- Undecodable logs will no longer throw errors on program calls
- Update fuel-core support to v0.47.1
- Add support to new policy owner
- Add logic and tests for support unknown policy types.
- Updated
fuel-coreto0.44.0and@fuels/vm-asmto0.62.0.
Features
- #3933 - Ensure that undecodable logs no longer throw, by @petertonysmith94
- #3950 - Add support for fuel-core v0.47.1, by @luizstacio
Fixes
Chores
- #3901 - Upgrade
fuel-coreto0.44.0, by @petertonysmith94 - #3940 - Expose
assembleTransferToContractScriptmethod, by @petertonysmith94
Note
Release v0.102.0 with fuel-core upgrades/compatibility, an account API addition and log handling improvement, and a contract configurables fix.
- Release
0.102.0- Fuel Core support: upgrade to
0.44.0and add compatibility withv0.47.1(@internal/fuel-core,@fuel-ts/versions,packages/versions/src/lib/getBuiltinVersions.ts). - Account: expose
assembleTransferToContractScript; ensure undecodable logs no longer throw. - Contract: fix configurables constants not set in
createTransactionRequest. - Ecosystem: bump versions across
@fuel-ts/*andfuels; regenerate recipe types to Fuels0.102.0.
- Fuel Core support: upgrade to
Written by Cursor Bugbot for commit ec749e3. This will update automatically on new commits. Configure here.
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.metadataproperty - Added detection and handling for malformed response body
- Deprecate function signature in
InvocationScopehelper methods - Add support for object parameter at
TransactionResponseconstructor
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
esbuilddependency, 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
TransactionResponseconstructor, by @Torres-ssf
v0.101.2
Summary
In this release, we:
- Implement support for new ABI error codes
- Populated transaction summary property
callswith invoked contractfnandargs - Deprecated Node 18 - upgrade to a newer version of Node.
- Upgraded
forcto0.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
forcto0.66.8, by @petertonysmith94
v0.101.1
Summary
In this release, we:
- Made
Account.signTransactionreturnsTransactionRequestorstring
Chores
- #3895 - Made
Account.signTransactionreturnsTransactionRequest, by @Torres-ssf
v0.101.0
Summary
In this release, we:
- Added method
setDatatoPredicateclass - Added support for on-the-fly modifications to
TransactionRequestwhen usingInvocationScope - Made
provider.assembleTx()to considerreserveGaswhen setting TXgasLimit - Enforced Predicate's
dataproperty when the Predicate has arguments - Close subscription after
Preconfirmationwhen another status is not awaited by the user - Removed
BaseInvocationScope.getTransactionId()
Breaking
- Fixes
- #3886 - Enforce
predicateDatawhen predicate has arguments, by @Torres-ssf
- #3886 - Enforce
- Chores
- #3864 - Remove
BaseInvocationScope.getTransactionId(), by @Torres-ssf
- #3864 - Remove
Features
- #3885 - Add
PredicatemethodsetData, by @Torres-ssf - #3875 - Support TX customization at BaseInvocationScope, by @Torres-ssf
Fixes
- #3887 - Close subscription after
Preconfirmationstatus 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] }) // ✅ CorrectTypeScript now enforces that data must be provided:
// after
const predicateNoData = new PredicatePin({ provider }) // ❌ Error: missing required `data`
const predicate = new PredicatePin({ provider, data: [100] }) // ✅ CorrectChores
#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
sendTransactionreturnTransactionResponseinsteadTransactionResponseJson
Chores
- #3879 - Made connector returns
TransactionResponsetype, by @Torres-ssf
v0.100.5
Summary
In this release, we:
- Implemented helpers to serialize/deserialize
TransactionResponse - Fixed error with missing
CALLreceipt ingetAllDecodedLogs - Fixed
Providerauto-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-coretov0.42.0→v0.43.0→v0.43.1 - Upgraded
forctov0.67.1→v0.67.2→v0.68.1 - Implemented RPC consistency approach: using
required_fuel_block_height - Implemented the new
AssembleTxGraphQL endpoint in theProviderclass - Added support for Pre-Confirmations
- Implemented helper method for base asset (UTXO) consolidation:
account.consolidateCoins() - Exported
@fuels/vm-asmpackage asFuelAsmfromfuels
Features
- #3866 - Re-exporting
@fuels/vm-asmasFuelAsmfromfuels, by @arboleya - #3747 - Integrate with new
AssembleTxGQL 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
groupedLogsfor 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/connectorsto0.39.2, by @petertonysmith94