All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
In 1.x
user had access to raw connection object and can interact with it. e.g.
web3.currentProvider.connection.close();
But this internal behavior is not exposed any further. Though you can achieve same with this approach.
web3.currentProvider.disconnect();
tsc
compiled files moved tolib/
directory fromdist/
(#5739)
build
entry frompackage.json
(#5755)
registeredSubscriptions
was added by default in web3 constructor (#5792)- Add named exports for all objects which are the default-exported-object in their packages (#5771)
- Export all packages' objects organized by namespaces (#5771)
- Add Additional flat exports for all types and constants from
web3-types
,web3-errors
andweb3
. (#5771) - Fix few issues with
new Web3().eth.contract
(#5824)
require('web3')
will now return all web3 exported-objects organized in namespaces . (#5771)
- Private static
_contracts:Contract[]
and staticsetProvider
function was removed (#5792)
- Added source files (#5956)
- Added hybrid build (ESM and CJS) of library (#5904)
- No need for polyfilling nodejs
net
andfs
modules (#5978) - Removed IPC provider dependency, IPC path is no longer viable provider. If you wanna use IPC, please install
web3-providers-ipc
and instantiate provider yourself (#5978)
- Dependencies updated
Release Notes:
Detailed List of change logs are mentioned under previous 4.x alpha and RC releases.
Documentation: Web3.js documentation Web3 API Migration Guide from 1.x
- Exported
Web3Context
,Web3PluginBase
,Web3EthPluginBase
from'web3-core'
, andWeb3Validator
from'web3-validator'
(#6165)
- Fixed bug #6185, now web3.js compiles on typescript v5 (#6195)
- Fixed #6162 @types/ws issue (#6205)
- Web3 constructor accepts
Web3ContextInitOptions<EthExecutionAPI, CustomRegisteredSubscription>
as alternative to the still supportedundefined
,string
, andSupportedProviders<EthExecutionAPI>
(#6262).
- Fixed bug #6236 by adding personal type in web3.eth (#6245)
- Added minimum support of web3.extend function
- To fix issue #6190, added the functionality to introduce different timeout value for Web3. (#6336)