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
- If an error happens when decoding a value, preserve that exception at
innerErrorinside the error classAbiError. (#5435) - Add basic functionality that is used, by
web3-eth-contract, when decoding error data according to EIP-838. (#5434)
Fixed
- Return
BigIntinstead ofstringwhen decoding function parameters for large numbers, such asuint256. (#5435)
[4.0.1-alpha.2]
Changed
- Updated Web3.js dependencies (#5664)
Fixed
- Fix
ContractMethodOutputParameterstype to support output object types by index and string key. Also, it returns void if ABI doesn't have outputs and returns exactly one type if the output array has only one element. (#5631)
[4.0.1-alpha.3]
Fixed
- Parameters decoding error for nested components (#5714)
Changed
- Updated dependencies (#5725)
[4.0.1-alpha.4]
Changed
tsccompiled files moved tolib/directory fromdist/(#5739)
[4.0.1-alpha.5]
[4.0.1-rc.0]
Removed
- Moved all types and interfaces to
web3-types(#5771)
Added
decodeErrorDatafromweb3-eth-contractis now exported from this package and was renamed todecodeContractErrorData(#5844)
[4.0.1-rc.1]
Added
- Added hybrid build (ESM and CJS) of library (#5904)
- Added source files (#5956)
Removed
- Removed
formatDecodedObjectfunction (#5934)
[4.0.1-rc.2]
Changed
- Nested Smart Contract error data hex string is decoded when the error contains the data as object (when the data hex string is inside data.originalError.data or data.data) (#6045)
[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]
Fixed
- Support for "decoding" indexed string event arguments (returns the keccak256 hash of the string value instead of the actual string value) (#6167)
[4.0.3]
Changed
- Dependencies updated
[4.1.0]
Added
- A
getEncodedEip712Datamethod that takes an EIP-712 typed data object and returns the encoded data with the option to also keccak256 hash it (#6286)
[4.1.1]
Changed
- Dependencies updated
[4.1.2]
Changed
- Dependencies updated
[4.1.3]
Fixed
- Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #6187" (#6506)
[4.1.4]
Fixed
- Bug fix of
ERR_UNSUPPORTED_DIR_IMPORTin ABI (#6535)
[4.2.0]
Changed
- Use
AbiErrorinstead ofErrorfor errors at web3-eth-abi (#6641).
Fixed
- Fixed an issue with detecting Uint8Array (#6486)
[4.2.1]
Changed
- Dependencies updated
[4.2.2]
Changed
- Dependencies updated
[4.2.3]
Fixed
- fix encodedata in EIP-712 (#7095)
[4.2.4]
Added
- Handle common cases for smart contract errors according to EIP 838:
0x4e487b71which is the ‘selector’ forPanic(uint256)and0x08c379a0is the ‘selector’ ofError(string). (7155)
[4.3.0]
Fixed
decodeLog,decodeParametersWith,decodeParametersanddecodeParametersnow accepts first immutable param as well (#7288)
[4.4.0]
Added
- added
decodeFunctionCallanddecodeFunctionReturn. (#7345)
[4.4.1]
Added
- Updated Typescript version 4 -> 5 (#7272)