This repository was archived by the owner on Mar 5, 2025. It is now read-only.
v4.2.0
Added
web3
- Various web3 sub packages has new functions details are in root changelog
web3-eth
- Added
ALL_EVENTSandALL_EVENTS_ABIconstants,SendTransactionEventsBasetype,decodeEventABImethod (#6410)
web3-eth-accounts
- Added public function
privateKeyToPublicKey - Added exporting
BaseTransactionfrom the package (#6493) - Added exporting
txUtilsfrom the package (#6493)
web3-types
- Interface
EventLogwas added. (#6410)
web3-utils
- As a replacment of the node EventEmitter, a custom
EventEmitterhas been implemented and exported. (#6398)
Fixed
web3-core
- Fix the issue: "Uncaught TypeError: Class extends value undefined is not a constructor or null #6371". (#6398)
web3-errors
- Added new SchemaFormatError (#6434)
web3-eth
- Ensure provider.supportsSubscriptions exists before watching by subscription (#6440)
- Fixed param sent to
checkRevertBeforeSendinginsendSignedTransaction - Fixed
defaultTransactionBuilderfor value issue (#6509)
web3-eth-abi
- Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #6187" (#6506)
web3-eth-accounts
- Fixed
recoverfunction,vwill be normalized to value 0,1 (#6344)
web3-providers-http
- Fix issue lquixada/cross-fetch#78, enabling to run web3.js in service worker (#6463)
web3-providers-ipc
- Fixed bug in chunks processing logic (#6496)
web3-providers-ws
- Fixed bug in chunks processing logic (#6496)
web3-utils
- Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #6187" (#6506)
- Fixed bug in chunks processing logic (#6496)
web3-validator
- Multi-dimensional arrays are now handled properly when parsing ABIs (#6435)
- Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #6187" (#6506)
- Validator will now properly handle all valid numeric type sizes: intN / uintN where 8 <= N <= 256 and N % 8 == 0 (#6434)
- Will now throw SchemaFormatError when unsupported format is passed to
convertToZodmethod (#6434)
Changed
web3
- Dependencies updated
web3-core
- 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 envrioment as well as in the browser. (#6398)
web3-eth
- Transactions will now default to type 2 transactions instead of type 0, similar to 1.x version. (#6282)
web3-eth-contract
- The
eventsproperty was added to thereceiptobject (#6410)
web3-eth-ens
- Dependencies updated
web3-eth-iban
- Dependencies updated
web3-eth-personal
- Dependencies updated
web3-net
- Dependencies updated
web3-providers-http
- Bump cross-fetch to version 4 (#6463).
web3-rpc-methods
- Dependencies updated