Changelog
[4.0.1]
Release Notes:
Web3.js 4.0.1 is written in TypeScript and has many exciting features such as: Easy extensibility ( with web3 Plugins feature ) In compliance with ETH EL Specification Dynamic Contract Typing Native typescript ESM CJS native builds 85%+ test coverage Custom data formatting feature Reduced package size New packages ( web3-types, web3-errors, web3-validator, web3-rpc-methods ) Validation functionality using schema
Documentation: Web3.js documentation Web3 API Migration Guide from 1.x Plugin Developers Plugin Users
Detailed List of changes are mentioned under: 4.0.0-alpha.0 4.0.1-alpha.1 4.0.1-alpha.2 4.0.1-alpha.3 4.0.1-alpha.4 4.0.1-alpha.5 4.0.1-rc.0 4.0.1-rc.1 4.0.1-rc.2
If there are any bugs, improvements, optimizations or any new feature proposal feel free to create github issue, or post a pull request for contributions.
Changelog
[4.0.1-rc.2]
InvalidPropertiesForTransactionTypeError
with error code 429
(#6102)getPastEvents
method to filter allEvents
and specific event (#6010)maxPriorityFeePerGas
and maxFeePerGas
in ContractOptions
type and updated function using it in utils (#6118)filters
param to the Filter
type (#6010)JsonRpcSubscriptionResultOld
, Web3ProviderMessageEventCallback
. Added .on('data')
type support for old providers (#6082)HardforksOrdered
enum (#6102)Web3ValidationErrorObject
type (#6102)hexstrict
parameter added to numberToHex (#6004)ignoreGasPricing
bug with wallet in context (#6071)Eip838ExecutionError
constructor and the nested error is set at innerError
(#6045)formatTransaction
no longer throws a TransactionDataAndInputError
if it's passed a transaction object with both data
and input
properties set (as long as they are the same value) (#6064)rpc_method_wrappers
to point to the previously duplicated documentation found under the Web3Eth
class documentation (#6054)defaultTransactionTypeParser
to return correct EIP-2718 types, prior implementation was prioritizing transaction.hardfork
and ignoring the use of transaction.gasLimit
. defaultTransactionTypeParser
will now throw InvalidPropertiesForTransactionTypeError
s for properties are used that are incompatible with transaction.type
(#6102)prepareTransactionForSigning
and defaultTransactionBuilder
now accepts optional fillGasPrice
flag and by default will not fill gas(#6071)Buffer
for Uint8Array
(#6004)recover
, encrypt
, privateKeyToAddress
does not support type Buffer
but supports type Uint8Array
(#6004)parseAndValidatePrivateKey
returns a type Uint8Array
instead of type Buffer
(#6004)FMT_BYTES.BUFFER
, Bytes
and FormatType
and encryption option types for salt
and iv
has replaced support for Buffer
for Uint8Array
(#6004)internalType
property to the AbiParameter
type.hexToBytes
, randomBytes
does not return type Buffer
but type Uint8Array
(#6004)sha3
and keccak256Wrapper
does not accept type Buffer
but type Uint8Array
(#6004)bytesToBuffer
has been removed for the usage of bytesToUint8Array
(#6004)Web3ValidationErrorObject
type is now exported from web3-types
package (#6102)