Releases: web3/web3.js
v4.8.0
[4.8.0]
Changed
web3-eth-abi
- Dependencies updated
web3-eth-accounts
- Dependencies updated
Fixed
web3-eth-contract
- Fix an issue with smart contract function overloading (#6922)
web3-utils
- fixed toHex incorrectly hexing Uint8Arrays and Buffer (#6957)
- fixed isUint8Array not returning true for Buffer (#6957)
Added
web3-eth-contract
- Added a console warning in case of an ambiguous call to a solidity method with parameter overloading (#6942)
- Added contract.deploy(...).decodeData(...) and contract.decodeMethodData(...) that decode data based on the ABI (#6950)
web3-eth
- method
getBlock
now includes properties of eip 4844, 4895, 4788 when returning block (#6933) - update type
withdrawalsSchema
,blockSchema
andblockHeaderSchema
schemas to include properties of eip 4844, 4895, 4788 (#6933)
web3-types
- Added
signature
to typeAbiFunctionFragment
(#6922) - update type
Withdrawals
,block
andBlockHeaderOutput
to include properties of eip 4844, 4895, 4788 (#6933)
New Contributors
v4.7.0
[4.7.0]
added
web3-eth-contract
- Types
ContractDeploySend
,ContractMethodSend
,Web3PromiEvent
was exported (#6883)
web3-eth-ens
- Added function getText and getName in ENS and resolver classes (#6914)
fixed
web3-validator
- Multi-dimensional arrays(with a fix length) are now handled properly when parsing ABIs (#6798)
web3-utils
- fixed erroneous parsing of big numbers in the
toNumber(...)
function (#6880)
Contributors
Thank you to the community who have contributed to this release 😄:
@sgerodes #6882
@EtlesL #6836
@Jouzep #6853
@sarthak1dev #6867
@edison1105 #6885
@gucovip #6886
@testwill #6889
@pengqiseven #6878
v4.6.0
[4.6.0]
Added
web3
- Added EIP-6963 utility function
requestEIP6963Providers
for multi provider discovery
web3-eth
- Added
eth.getMaxPriorityFeePerGas
method (#6748)
web3-eth-ens
- Added function
setAddress
in ENS and Resolver classes (#5956)
web3-rpc-methods
- Added
getMaxPriorityFeePerGas
method (#6748)
web3-types
- Type
FeeData
to be filled byawait web3.eth.calculateFeeData()
to be used with EIP-1559 transactions (#6795)
Fixed
web3-utils
- replaced our eventEmitter to EventEmitter3 to support react native builds (#6253)
New Contributors
Thanks for contributions in web3.js lib:
- @deepak2030 made their first contribution in #6804
- @bobeu made their first contribution in #6806
- @0xthorazine made their first contribution in #6818
- @destinyae made their first contribution in #6838
- @teslaedison made their first contribution in #6863
v.4.5.0
[4.5.0]
Added
web3-utils
- Adds missing exported type
AbiItem
from 1.x to v4 for compatabiltiy (#6678)
web3-types
- Adds missing exported type
AbiItem
from 1.x to v4 for compatabiltiy (#6678)
Changed
web3
- Dependencies updated
New Contributors
Thanks for contributions in web3.js lib:
- @vuittont60 made their first contribution in #6704
- @jasonaw98 made their first contribution in #6783
v1.10.4
Security
- Updated dependencies (#6731)
Maintenance Countdown:
Commencing from January 1, 2024, a 90-day countdown has been initiated, signaling the transition of Web3.js version 1.x into an end-of-maintenance phase.
Timeline of Changes:
90-Day Countdown (1/1/24 - 3/31/24): During this period, we strongly encourage users to plan accordingly and initiate the upgrade to Web3.js version 4.x
No New Bug Fixes (4/1/24 onwards):
Starting April 1, 2024, new bug fixes for Web3.js version 1.x will no longer be provided. To benefit from continued support and access to new features, we recommend upgrading to Web3.js version 4.x
End of Security Fixes (7/1/24):
Security fixes for Web3.js version 1.x will be discontinued from July 1, 2024. Upgrading to Web3.js version 4.x is crucial to ensure the security of your applications.
v1.10.4-dev.0
Security
- Updated dependencies (#6731)
v4.4.0
[4.4.0]
Added
web3-eth
- Catch
TransactionPollingTimeoutError
was added to send transaction events (#6623)
Changed
web3-eth-abi
- Use
AbiError
instead ofError
for errors at web3-eth-abi (#6641).
web3-eth-contract
- Allow the
deploy
function to accept parameters, even when no ABI was provided to theContract
(#6635)
web3
- Dependencies updated
Fixed
web3-eth-abi
- Fixed an issue with detecting Uint8Array (#6486)
web3-eth-accounts
- Send Transaction config used to be ignored if the passed
common
did not have acopy()
and thechainId
was not provided (#6663) - Fixed an issue with detecting Uint8Array (#6486)
web3-eth-contract
- Fix and error that happen when trying to get past events by calling
contract.getPastEvents
orcontract.events.allEvents()
, if there is no matching events. (#6647) - Fixed: The Contract is not using the context wallet passed if context was passed at constructor. (#6661)
web3-utils
- Fixed an issue with detecting Uint8Array (#6486)
web3-validator
- Fixed an issue with detecting Uint8Array (#6486)
v4.3.0
[4.3.0]
Changed
web3-core
- Web3config
contractDataInputFill
has been defaulted todata
, istead ofinput
. (#6622)
web3-eth-contracts
- By default, contracts will fill
data
instead ofinput
within method calls (#6622)
Added
web3-utils
SocketProvider
now contains public functiongetPendingRequestQueueSize
,getSentRequestsQueueSize
andclearQueues
(#6479)- Added
safeDisconnect
as aSocketProvider
method to disconnect only when request queue size and send request queue size is 0 (#6479) - Add
isContractInitOptions
method (#6555)
web3
- Added methods (privateKeyToAddress, parseAndValidatePrivateKey, and privateKeyToPublicKey) to web3.eth.accounts (#6620)
Fixed
web3-rpc-methods
web3-utils
- Fix unecessary array copy when pack encoding (#6553)
v4.2.2
Added
web3-core
- Added
isMetaMaskProvider
function to check if provider is metamask (#6534)
web3-types
- Interface
MetaMaskProvider
added and is part ofSupportedProviders
(#6534) gasPrice
was added toTransaction1559UnsignedAPI
type. (#6539)
Changed
web3
- Dependencies updated
Fixed
web3-errors
- Fixed grammar and spelling in
transactionTimeoutHint
(#6559)
web3-eth-contract
- Will populate
data
for transactions in contract for metamask provider instead ofinput
(#6534)