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
- If the response error was
execution reverted, raiseContractExecutionErrorand pass the response error to it in order to be set asinnerError(this innerError will be decoded at web3-eth-contract if its ABI was provided according to EIP-838). (#5434) registerPluginmethod toWeb3Context(#5393)Web3PluginBaseexported abstract class (#5393)Web3EthPluginBaseexported abstract class (#5393)
Changed
- Default value for
APIgeneric forWeb3ContextObjectfromanytounknown(#5393) - Default value for
APIgeneric forWeb3ContextInitOptionsfromanytounknown(#5393) - Added validation when
defaultHardforkanddefaultCommon.hardforkare different in web3config - Added validation when
defaultChainanddefaultCommon.basechainare different in web3config - Added a new configuration variable
enableExperimentalFeatures. (#5481)
[4.0.1-alpha.2]
Fixed
- Make the
requestmethod ofEIP1193Providerclass, compatible with EIP 1193 (#5591)
[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)
[4.0.1-rc.0]
Added
- Added rpc exception codes following eip-1474 as an experimental feature (if
useRpcCallSpecificationatenableExperimentalFeaturesistrue) (#5525) - Added support of
safeandfinalizedblock tags (#5823)
[4.0.1-rc.1]
Added
- Added hybrid build (ESM and CJS) of library (#5904)
- Added source files (#5956)
Changed
- If a transaction object with a
dataproperty is passed totxInputOptionsFormatter, it will now be replaced withinput(#5915) - The types
TransactionTypeParserandTransactionBuilderare now utilizing the typeTransactionfor the transaction object. (#5993) - No need for polyfilling nodejs
netandfsmodules (#5978) - Removed IPC provider dependency, IPC path is no longer viable provider. If you wanna use IPC, please install
web3-providers-ipcand instantiate provider yourself (#5978)
Removed
getConfigmethod fromWeb3Configclass,configis now public and accessible usingWeb3Config.config(#5950)- Error param in the
messageListenerin subscription was removed (triggered by.on('data')or.on('message')) to properly support all providers. (#6082)
[4.0.1-rc.2]
Changed
- Replaced Buffer for Uint8Array (#6004)
[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]
Added
- Web3Subscription constructor accept a Subscription Manager (as an alternative to accepting Request Manager that is now marked as deprecated) (#6210)
Changed
- Web3Subscription constructor overloading that accept a Request Manager is marked as deprecated (#6210)
Fixed
- Fixed Batch requests erroring out on one request (#6164)
- Fixed the issue: Subscribing to multiple blockchain events causes every listener to be fired for every registered event (#6210)
- Fixed the issue: Unsubscribe at a Web3Subscription class will still have the id of the subscription at the Web3SubscriptionManager (#6210)
- Fixed the issue: A call to the provider is made for every subscription object (#6210)
[4.0.3]
Added
- Expose
subscriptionManageras aprotected getatWeb3Subscriptionto be able to use it inside custom subscriptions, if needed. (#6285)
Changed
- Dependencies updated
[4.1.0]
Changed
- No need to pass
CommonSubscriptionEvents &at every child class ofWeb3Subscription(#6262) - Implementation of
_processSubscriptionResultand_processSubscriptionErrorhas been written in the base classWeb3Subscriptionand maidpublic. (#6262) - A new optional protected method
formatSubscriptionResultcould be used to customize data formatting instead of re-implementing_processSubscriptionResult. (#6262) - No more needed to pass
CommonSubscriptionEvents &for the first generic parameter ofWeb3Subscriptionwhen inheriting from it. (#6262)
Fixed
- Fixed the issue: "Version 4.x does not fire connected event for subscriptions. #6252". (#6262)
Added
- Added minimum support of web3.extend function
[4.1.1]
Fixed
- Fixed rpc errors not being sent as an inner error when using the
sendmethod on request manager (#6300).
Added
- To fix issue #6190, added the functionality to introduce different timeout value for Web3. (#6336)
[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
- defaultTransactionType is now type 0x2 instead of 0x0 (#6282)
- Allows formatter to parse large base fee (#6456)
- The package now uses
EventEmitterfromweb3-utilsthat works in node environment as well as in the browser. (#6398)
Fixed
- Fix the issue: "Uncaught TypeError: Class extends value undefined is not a constructor or null #6371". (#6398)
[4.3.1]
Fixed
- Fix
Web3Configto properly update within other web3 packages whensetConfigis used (#6555)
Added
- Added
isMetaMaskProviderfunction to check if provider is metamask (#6534)
[4.3.2]
Changed
- Web3config
contractDataInputFillhas been defaulted todata, instead ofinput. (#6622)
[4.4.0]
Added
defaultReturnFormatwas added to the configuration options. (#6947)
Changed
- Interface
RequestManagerMiddlewarewas changed (#7003)
Fixed
- Set a try catch block if processesingError fails (#7022)
[4.5.0]
Added
- Now when existing packages are added in web3, will be available for plugins via context. (#7088)
[4.5.1]
Fixed
setConfig()fix forsetMaxListenerWarningThresholdfix (#5079)
[4.6.0]
Added
- Adds a new property (
customTransactionSchema) toWeb3ConfigOptions(#7227)
[4.7.0]
Added
- Added new property
ignoreGasPricingtoWeb3ConfigOptions. IfignoreGasPricingis true, gasPrice will not be estimated (#7320)
[4.7.1]
Added
- Updated Typescript version 4 -> 5 (#7272)