Changelog
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.
[4.0.1-alpha.1]
Added
- Added and exported three reusable utility functions:
pollTillDefined,rejectIfTimeoutandrejectIfConditionAtIntervalwhich are useful when dealing with promises that involves polling, rejecting after timeout or rejecting if a condition was met when calling repeatably at every time intervals.
[4.0.1-alpha.2]
Added
- Export a new function
uuidV4that generates a random v4 Uuid (#5373). - Enable passing a starting number, to increment based on it, for the Json Rpc Request
id(#5652). - Export a new function
isPromisethat checks if an object is a promise (#5652).
Fixed
- Use Uuid for the response id, to fix the issue "Responses get mixed up due to conflicting payload IDs" (#5373).
[4.0.1-alpha.3]
Changed
- Updated dependencies (#5725)
[4.0.1-alpha.4]
Changed
tsccompiled files moved tolib/directory fromdist/(#5739)- Add SocketProvider class and Eip1193Provider abstract class (#5683)
[4.0.1-alpha.5]
Changed
- web3.js dependencies (#5757)
[4.0.1-rc.0]
Removed
- Moved
TypedArraytoweb3-types(was also duplicated atweb3-validator) (#5771) - Removed support of
genesistag incompareBlockNumbersfunction (#5823)
Added
- Added support of
safeandfinalizedblock tags (#5823)
Changed
compareBlockNumbersfunction now only supports comparison of both blocktags params ( exceptearliestvs number) or both block number params (#5842)SocketProviderabstract class now resolves JSON RPC response errors instead of rejecting them (#5844)- Exposes the getter of
SocketConnectioninSocketProvider(#5891)
[4.0.1-rc.1]
Added
- Added source files (#5956)
- Added hybrid build (ESM and CJS) of library (#5904)
Changed
- The types
FMT_NUMBER,NumberTypes,FMT_BYTES,ByteTypes,DataFormat,DEFAULT_RETURN_FORMAT,ETH_DATA_FORMATandFormatTypemoved toweb3-types. (#5993)
Removed
- Removed dependencies @ethereumjs/tx, @ethereumjs/common (#5963)
[4.0.1-rc.2]
Added
- Optional
hexstrictparameter added to numberToHex (#6004)
Changed
- Replaced Buffer for Uint8Array (#6004)
- The methods
hexToBytes,randomBytesdoes not return typeBufferbut typeUint8Array(#6004) - The methods
sha3andkeccak256Wrapperdoes not accept typeBufferbut typeUint8Array(#6004) - The method
bytesToBufferhas been removed for the usage ofbytesToUint8Array(#6004)
[4.0.1]
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
[4.0.2]
Changed
- Dependencies updated
[4.0.3]
Fixed
- BigInts pass validation within the method
numberToHex(#6206)
[4.0.4]
Changed
- Dependencies updated
[4.0.5]
Changed
- Dependencies updated
[4.0.6]
Fixed
soliditySha3()with BigInt support
[4.0.7]
Added
- As a replacment of the node EventEmitter, a custom
EventEmitterhas been implemented and exported. (#6398)
Fixed
- 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)
[4.1.0]
Added
SocketProvidernow contains public functiongetPendingRequestQueueSize,getSentRequestsQueueSizeandclearQueues(#6479)- Added
safeDisconnectas aSocketProvidermethod to disconnect only when request queue size and send request queue size is 0 (#6479) - Add
isContractInitOptionsmethod (#6555)
Fixed
- Fix unnecessary array copy when pack encoding (#6553)
[4.1.1]
Fixed
- Fixed an issue with detecting Uint8Array (#6486)
[4.2.0]
Added
- Adds missing exported type
AbiItemfrom 1.x to v4 for compatabiltiy (#6678)
[4.2.1]
Fixed
- replaced our eventEmitter to EventEmitter3 to support react native builds (#6253)
[4.2.2]
Fixed
- fixed erroneous parsing of big numbers in the
toNumber(...)function (#6880)
[4.2.3]
Changed
- Method
formatwas changed. Now it has default valueDEFAULT_RETURN_FORMATforreturnFormatparameter (#6947)
Fixed
- fixed toHex incorrectly hexing Uint8Arrays and Buffer (#6957)
- fixed isUint8Array not returning true for Buffer (#6957)
[4.3.0]
Added
toWeiadd warning when using large numbers or large decimals that may cause precision loss (#6908)toWeiandfromWeinow supports integers as a unit. (#7053)
Fixed
toWeisupport numbers in scientific notation (#6908)toWeiandfromWeitrims according to ether unit successfuly (#7044)
[4.3.1]
Fixed
_sendPendingRequestswill catch unhandled errors from_sendToSocket(#6968)
[4.3.2]
Fixed
- fix
padRightvalidation failure on largeuint(#7265)
[4.3.3]
Fixed
- Make
fromWeireturn "0" when input is0(#7387)
Added
- Updated Typescript version 4 -> 5 (#7272)