Releases: web3/web3.js
Releases · web3/web3.js
v4.13.0
What's Changed
- unit tests update by @jdevcs in #7221
- Handle common cases for smart contract errors according to EIP 838 by @Muhammad-Altabba in #7155
- feat(docs): upgrade-bn by @danforbes in #7232
- feat(requestEIP6963Providers): return-type by @danforbes in #7239
- feat(docs): extend by @danforbes in #7233
- fix(onNewProviderDiscovered): callback-parameter by @danforbes in #7242
- Format repo, add new rules by @luu-alex in #7226
- Document Formatting by @danforbes in #7222
- feat: add custom transaction schema to formatTransaction by @nicolasbrugneaux in #7227
New Contributors
- @nicolasbrugneaux made their first contribution in #7227
v4.12.1 Hotfix
v4.12.0
[4.12.0]
Fixed
web3-core
setConfig()
fix forsetMaxListenerWarningThreshold
fix (#5079)
web3-eth-accounts
- Fix
TransactionFactory.registerTransactionType
not working, if there is a version mistatch betweenweb3-eth
andweb3-eth-accounts
by savingextraTxTypes
atglobals
. (#7197)
Added
web3-eth-accounts
- Added public function
signMessageWithPrivateKey
(#7174)
web3-eth-contract
- Added
populateTransaction
to thecontract.deploy(...)
properties. (#7197)
web3-providers-http
- Added
statusCode
of response in ResponseError,statusCode
is optional property in ResponseError.
web3-rpc-providers
- Updated rate limit error of QuickNode provider for HTTP transport
- Added optional
HttpProviderOptions | SocketOptions
inWeb3ExternalProvider
andQuickNodeProvider
for provider configs
web3-errors
- Added optional
statusCode
property of response in ResponseError.
Changed
web3-eth-contract
- The returnred properties of
contract.deploy(...)
are structured with a newly created class namedDeployerMethodClass
. (#7197) - Add a missed accepted type for the
abi
parameter, atdataInputEncodeMethodHelper
andgetSendTxParams
. (#7197)
What's Changed
- Cookbook integration branch by @SantiagoDevRel in #7178
- feat(glossary): updated glossary by @EmmanuelOluwafemi in #7168
- fix infura tests and secrets by @luu-alex in #7163
- Zk sync plugin related changes by @avkos in #7174
- 4x tests updates by @jdevcs in #7162
- feat(docs): Expand web3 config guide by @mmyyrroonn in #7131
- Fix 7055 one of with scalar value and string by @mmyyrroonn in #7173
- Quicknode provider update by @jdevcs in #7195
- Web3 RPC Providers support of configuration of selected transport by @jdevcs in #7205
- Refactor some parts of contract and accounts packages by @Muhammad-Altabba in #7197
New Contributors
- @EmmanuelOluwafemi made their first contribution in #7168
- @mmyyrroonn made their first contribution in #7131
v4.11.1
[4.11.1]
Fixed
web3-errors
- Fixed the undefined data in
Eip838ExecutionError
constructor (#6905)
web3-eth
- Adds transaction property to be an empty list rather than undefined when no transactions are included in the block (#7151)
- Change method
getTransactionReceipt
to not be casted asTransactionReceipt
to give proper return type (#7159)
web3
- Remove redundant constructor of contractBuilder (#7150)
What's Changed
- fix(web3-errors): the undefined data in Eip838ExecutionError (#6905) by @jdevcs in #7147
- Fix getblock.transactions by @luu-alex in #7151
- Tx Types and ERC20 token transaction by @SantiagoDevRel in #7156
- remove redundant constructor of ContractBuilder by @agj017 in #7150
- Fix transaction receipt return type by @luu-alex in #7159
- feat/docs/plugin-middleware by @danforbes in #7158
New Contributors
Full Changelog: v4.11.0...v4.11.1
v4.11.0
[4.11.0]
Fixed
web3-eth-abi
- fix encodedata in EIP-712 (#7095)
web3-utils
_sendPendingRequests
will catch unhandled errors from_sendToSocket
(#6968)
web3-eth
- Fixed geth issue when running a new instance, transactions will index when there are no blocks created (#7098)
Changed
web3-eth-accounts
- baseTransaction method updated (#7095)
web3-providers-ws
- Update dependancies (#7109)
web3-rpc-providers
- Change request return type
Promise<ResultType>
toPromise<JsonRpcResponseWithResult<ResultType>>
(#7102)
Added
web3-eth-contract
populateTransaction
was added to contract methods (#7124)- Contract has
setTransactionMiddleware
andgetTransactionMiddleware
for automatically passing tosentTransaction
fordeploy
andsend
functions (#7138)
web3-rpc-providers
- When error is returned with code 429, throw rate limit error (#7102)
web3
web3.eth.Contract
will get transaction middleware and use it, ifweb3.eth
has transaction middleware. (#7138)
v4.10.0
[4.10.0]
Added
web3
- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)
web3-core
- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)
web3-eth
sendTransaction
inrpc_method_wrappers
accepts optional param ofTransactionMiddleware
(#7088)- WebEth has
setTransactionMiddleware
andgetTransactionMiddleware
for automatically passing tosentTransaction
(#7088)
web3-eth-ens
getText
now supports first param AddressgetName
has optional second param checkInterfaceSupport
web3-types
- Added
result
as optionalnever
anderror
as optionalnever in type
JsonRpcNotification` (#7091) - Added
JsonRpcNotfication
as a union type inJsonRpcResponse
(#7091)
web3-rpc-providers
- Alpha release
Fixed
web3-eth-ens
getName
reverse resolution
What's Changed
- release/v4.9.0 by @luu-alex in #7057
- fix(docs): intro by @danforbes in #7056
- coverage increase by @jdevcs in #7051
- 6992 getText update and getName fix by @jdevcs in #7047
- web3 external provider - Quicknode by @jdevcs in #7019
- fix(docs): quickstart by @danforbes in #7062
- Fix SNYK for 4.x by @avkos in #7064
- Use .snyk file for all projects by @avkos in #7071
- fix(docs): sidebar by @danforbes in #7063
- fix(docs): mastering providers by @danforbes in #7070
- Remove .snyk files by @avkos in #7073
- 100% Coverage web3-utills by @Muhammad-Altabba in #7042
- chore(docs): formatting by @danforbes in #7072
- update gas estimation test by @luu-alex in #7074
- fix(docs): contract-tutorial-hardhat-node by @danforbes in #7076
- fix(docs): header-nav by @danforbes in #7082
- fix(docs): introduction by @danforbes in #7083
- fix(docs): contracts-tutorial by @danforbes in #7084
- chore(docs): provider-tutorials by @danforbes in #7085
- fix(docs): mastering-accounts by @danforbes in #7089
- transaction middleware by @jdevcs in #7088
- add test coverage to web3-core by @luu-alex in #7091
Full Changelog: v4.9.0...v4.10.0
v4.9.0
What's Changed
- Release/4.8.0 by @luu-alex in #6982
- web3 middleware by @jdevcs in #6951
- Add default return format to the context by @avkos in #6947
- Events guide 6741 by @SantiagoDevRel in #6983
- Fix towei scientific notation by @luu-alex in #6908
- fix(validator): generate abi name if not provided by @MaxMustermann2 in #6981
- Plugin guide 6840 draft by @SantiagoDevRel in #6941
- Compare package size (wihtout image) by @SantiagoDevRel in #6994
- fixed broken links by @SantiagoDevRel in #7005
- Added plugin videos to guide by @SantiagoDevRel in #7004
- Utils guide by @SantiagoDevRel in #7008
- Add the missing types to the ”accounts“ by @jdevcs in #7011
- Add extra changes to make possibility add eip4844 type as a plugin by @avkos in #7000
- add drips funding by @GregTheGreek in #7023
- Tests & ESLint Improvements by @avkos in #7012
- Added troubleshooting example by @SantiagoDevRel in #7009
- Implement a way to know which response corresponds to which request in the middleware by @avkos in #7028
- Add type checking to unit tests by @avkos in #7027
- fix(glossary): links by @danforbes in #7034
- Add interactive code editor for tutorials by @avkos in #7036
- fix: web3-validator browser target removed by @PeKne in #7016
- catching promise - legacy provider error by @luu-alex in #7022
- web3modal documentation by @luu-alex in #7041
- add gas conditional if simple transaction by @luu-alex in #7043
- fix(#7044): toWei trim strings with more than 20 decimal places by @gordon-to in #7045
- allow fromwei and toWei to accept numbers as units by @luu-alex in #7052
- use bigint power by @luu-alex in #7054
- Fix format schema with list of objects by @avkos in #7040
- 6801 Fill gas price when baseFeePerGas==='0x0' by @avkos in #7050
New Contributors
- @MaxMustermann2 made their first contribution in #6981
- @danforbes made their first contribution in #7034
- @PeKne made their first contribution in #7016
- @gordon-to made their first contribution in #7045
Full Changelog: v4.8.0...v4.9.0
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