Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[4.0.1-alpha.1]
Added
web3-rpc-methodsdependency (#5441)- Added chain and hardfork validation for transaction and transaction.common object in
validateTransactionForSigning
Changed
Web3EthExecutionAPIis now imported viaweb3-typesinstead ofweb3_eth_execution_api.ts(#5441)- Replace the imported methods from
rpc_methods.tswithethRpcMethodsimports fromweb3-rpc-methods(#5441) Web3NetAPIis now imported fromweb3-typesinstead ofweb3-net(#5441)- Moved
rpc_methodstests toweb3-rpc-methods(#5441) - Implemented the logic for
transactionBlockTimeout(#5294) - Use subscription at
rejectIfBlockTimeoutwhen the provider supports subscription. Implement this as an experimental feature (ifuseSubscriptionWhenCheckingBlockTimeoutatenableExperimentalFeaturesistrue). (#5481) - At some test cases, optimized some codes. (#5481)
Removed
- Moved the errors' classes from
web3-eth/src/errors.tstoweb3-errors/src/errors/transaction_errors.ts(#5462)
Fixed
- Fix
getBlockreturning empty transactions object onhydratedtrue (#5556) - setimmediate package to polyfill setImmediate for browsers (#5450)
[4.0.1-alpha.2]
Changed
- Updated Web3.js dependencies (#5664)
[4.0.1-alpha.3]
Changed
- Updated dependencies (#5725)
[4.0.1-alpha.4]
Changed
tsccompiled files moved tolib/directory fromdist/(#5739)
[4.0.1-alpha.5]
Changed
- web3.js dependencies (#5757)
Fixed
- Enable transaction with local wallet index in the
tofield (#5731)
[4.0.1-rc.0]
Changed
- Update imports statements for objects that was moved between web3 packages (#5771)
sendTransactionandsendSignedTransactionnow errors with (anderrorevent emits) the following possible errors:TransactionRevertedWithoutReasonError,TransactionRevertInstructionError,TransactionRevertWithCustomError,InvalidResponseError, orContractExecutionError(#5854)
Added
- Added
createAccessListfunctionality ( #5780 ) - Added support of
safeandfinalizedblock tags (#5823) contractAbioption toSendTransactionOptionsandSendSignedTransactionOptionsto added the ability to parse custom solidity errors (#5854)
Removed
getRevertReasonis no longer exported (#5844)
[4.0.1-rc.1]
Added
- Added hybrid build (ESM and CJS) of library (#5904)
- Added source files (#5956)
Changed
signTransactionwill now returngasinstead ofgasLimitfor returned transaction object regardless of what property name the provider uses (#5915)formatTransactionwill now replacedatatransaction property withinput(#5915)isTransactionCallwill now check ifvalue.inputisHexStrictif provided (#5915)- The functions
defaultTransactionBuilderandtransactionBuilderare now utilizing the typeTransactionfor the transaction object. (#5993)
Removed
- Removed dependencies @ethereumjs/tx, @ethereumjs/common (#5963)
[4.0.1-rc.2]
Fixed
- Fixed
ignoreGasPricingbug with wallet in context (#6071)
Changed
formatTransactionno longer throws aTransactionDataAndInputErrorif it's passed a transaction object with bothdataandinputproperties set (as long as they are the same value) (#6064)- Refactored documentation for
rpc_method_wrappersto point to the previously duplicated documentation found under theWeb3Ethclass documentation (#6054) - Replaced Buffer for Uint8Array (#6004)
- Refactored
defaultTransactionTypeParserto return correct EIP-2718 types, prior implementation was prioritizingtransaction.hardforkand ignoring the use oftransaction.gasLimit.defaultTransactionTypeParserwill now throwInvalidPropertiesForTransactionTypeErrors for properties are used that are incompatible withtransaction.type(#6102) prepareTransactionForSigninganddefaultTransactionBuildernow accepts optionalfillGasPriceflag and by default will not fill gas(#6071)
[4.0.1]
Release Notes:
Detailed List of change logs are mentioned under previous 4.x alpha and RC releases.
Documentation: Web3.js documentation Web3 API Migration Guide from 1.x
[4.0.2]
Changed
- Dependencies updated
[4.0.3]
Changed
- Dependencies updated
[4.1.0]
Fixed
- sendTransaction will have gas filled by default using method
estimateGasunless transaction builderoptions.fillGasis false. (#6249) - Missing
blockHeaderSchemaproperties causing some properties to not appear in response ofnewHeadssubscription (#6243) - Missing
blockHeaderSchemaproperties causing some properties to not appear in response ofnewHeadssubscription (#6243)
Changed
MissingGasErrorerror message changed for clarity (#6215)inputanddataare no longer auto populated for transaction objects if they are not present. Instead, whichever property is provided by the user is formatted and sent to the RPC provider. Transaction objects returned from RPC responses are still formatted to contain bothinputanddataproperties (#6294)
Added
- A
rpc_method_wrapper(signTypedData) for the rpc callseth_signTypedDataandeth_signTypedData_v4(#6286) - A
signTypedDatamethod to theWeb3Ethclass (#6286)
[4.1.1]
Fixed
- Added return type for
formatSubscriptionResultin classNewHeadsSubscription(#6368)
[4.2.0]
Added
- Added to
Web3ConfigpropertycontractDataInputFillallowing users to have the choice using propertydata,inputorbothfor contract methods to be sent to the RPC provider when creating contracts. (#6377) (#6400)
[4.3.0]
Changed
- Transactions will now default to type 2 transactions instead of type 0, similar to 1.x version. (#6282)
Fixed
- Ensure provider.supportsSubscriptions exists before watching by subscription (#6440)
- Fixed param sent to
checkRevertBeforeSendinginsendSignedTransaction - Fixed
defaultTransactionBuilderfor value issue (#6509)
Added
- Added
ALL_EVENTSandALL_EVENTS_ABIconstants,SendTransactionEventsBasetype,decodeEventABImethod (#6410)
[4.3.1]
Changed
- Dependencies updated
[4.4.0]
Added
- Catch
TransactionPollingTimeoutErrorwas added to send transaction events (#6623)
[4.5.0]
Added
- Added
eth.getMaxPriorityFeePerGasmethod (#6748)
[4.6.0]
Added
- method
getBlocknow includes properties of eip 4844, 4895, 4788 when returning block (#6933) - update type
withdrawalsSchema,blockSchemaandblockHeaderSchemaschemas to include properties of eip 4844, 4895, 4788 (#6933)
[4.7.0]
Added
defaultReturnFormatwas added to all methods that haveReturnTypeparam. (#6947)getTransactionFromOrToAttr,waitForTransactionReceipt,trySendTransaction,SendTxHelperwas exported (#7000)
Changed
- Added parameter
customTransactionReceiptSchemainto methodsemitConfirmation,waitForTransactionReceipt,watchTransactionByPolling,watchTransactionBySubscription,watchTransactionForConfirmations(#7000) - Changed functionality: For networks that returns
baseFeePerGas===0x0fillmaxPriorityFeePerGasandmaxFeePerGasbygetGasPricemethod (#7050)
Fixed
- Fixed issue with simple transactions, Within
checkRevertBeforeSendingif there is no data set in transaction, set gas to be21000(#7043)
[4.8.0]
Added
sendTransactioninrpc_method_wrappersaccepts optional param ofTransactionMiddleware(#7088)- WebEth has
setTransactionMiddlewareandgetTransactionMiddlewarefor automatically passing tosentTransaction(#7088) TransactionMiddlewareandTransactionMiddlewaredata types are exported (#7088)
[4.8.1]
Fixed
- Fixed geth issue when running a new instance, transactions will index when there are no blocks created (#7098)
[4.8.2]
Fixed
- Adds transaction property to be an empty list rather than undefined when no transactions are included in the block (#7151)
- Change method
getTransactionReceiptto not be casted asTransactionReceiptto give proper return type (#7159)
[4.9.0]
Changed
- Forwards the new
web3Context.config.customTransactionSchematoformatTransaction
Added
- Adds the same
{transactionSchema?: ValidationSchemaInput}that exists informatTransactiontovalidateTransactionForSigning
[4.10.0]
Changed
- Allow
getEthereumjsTxDataFromto return additional fields that may be passed if using acustomTransactionSchema.
Added
populateGasPricefunction now checksWeb3Context.config.ignoreGasPricing. IfignoreGasPricingis true, gasPrice will not be estimated (#7320)
[4.11.0]
Added
createNewPendingTransactionFilter,createNewFilter,createNewBlockFilter,uninstallFilter,getFilterChangesandgetFilterLogsare exported fromWeb3Ethandfiltering_rpc_method_wrappers(#7353)
[4.11.1]
Added
- Updated Typescript version 4 -> 5 (#7272)