Releases: web3/web3.js
Releases · web3/web3.js
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)
v4.2.1
v4.2.0
Added
web3
- Various web3 sub packages has new functions details are in root changelog
web3-eth
- Added
ALL_EVENTS
andALL_EVENTS_ABI
constants,SendTransactionEventsBase
type,decodeEventABI
method (#6410)
web3-eth-accounts
- Added public function
privateKeyToPublicKey
- Added exporting
BaseTransaction
from the package (#6493) - Added exporting
txUtils
from the package (#6493)
web3-types
- Interface
EventLog
was added. (#6410)
web3-utils
- As a replacment of the node EventEmitter, a custom
EventEmitter
has 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
checkRevertBeforeSending
insendSignedTransaction
- Fixed
defaultTransactionBuilder
for 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
recover
function,v
will 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
convertToZod
method (#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
EventEmitter
fromweb3-utils
that 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
events
property was added to thereceipt
object (#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
v1.10.3
v1.10.3-dev.0
v4.1.2
Fixed
web3
- Fix of incorrect provider warning behavior
web3-eth-accounts
- Fixed "The
r
ands
returned bysign
to does not always consist of 64 characters" (#6411)
web3-eth-contract
web3-utils
soliditySha3()
with BigInt support
Added
web3-core
- Added to
Web3Config
propertycontractDataInputFill
allowing users to have the choice using propertydata
,input
orboth
for contract methods to be sent to the RPC provider when creating contracts. (#6377) (#6400)
web3-eth
- Added to
Web3Config
propertycontractDataInputFill
allowing users to have the choice using propertydata
,input
orboth
for contract methods to be sent to the RPC provider when creating contracts. (#6377) (#6400)
web3-eth-contract
- Added
dataInputFill
as a ContractInitOption, allowing users to have the choice using propertydata
,input
orboth
for contract methods to be sent to the RPC provider. (#6355) - Added to
Web3Config
propertycontractDataInputFill
allowing users to have the choice using propertydata
,input
orboth
for contract methods to be sent to the RPC provider when creating contracts. (#6377)
web3-types
- add
asEIP1193Provider
toWeb3BaseProvider
so every inherited class can have the returned value ofrequest
method, fully compatible with EIP-1193. (#6407)
Changed
- Dependencies updated of packages