Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 6c166b9

Browse files
spacesailor24avkosmpetrunicMuhammad-Altabbajdevcs
authored
v4.0.1-alpha.2 (#5664)
* Version bump and build for v4.0.1-alpha.2 * Release/4.0.1 alpha.2 changelog update 3 (#5689) * Update CHANGELOG version headers * Update CHANGELOGs * Revert package version bump for web3-packagetemplate * Release/4.0.1 alpha.2 merge conflicts (#5692) * Update CHANGELOG version headers * Contract call with tuple is missing param names (#5613) * call special output type * fix * fix: enable outputs to have param names (#5624) * hot fix * add type if only one param * overloaded inputs types * fix resolver tests * add type tests * simplify types * revert registry unit test * test firefox * revert firefox test * update changelogs Co-authored-by: Marin Petrunić <[email protected]> * Fix `isHex` and `isHexStrict` for some edge cases and enrich their tests (#5655) * Change `isHex` to return true for negative numbers (for example `-123`) * Change both `isHex` and `isHexStrict` to return `false` for `-0x` * Change `isHex` to return `false` for empty strings ''. * Remove erroneous set provider code for Contract constructor (#5669) * Remove erroneous set provider code for Contract constructor. Add Contract constructor provider set test * Update CHANGELOGs * Debugging failing integration tests * Apply suggestions from code review * Use getSystemTestProvider instead of hardcoded string * Refactor ternaries in Contract constructor to if statements * Correct CHANGELOG entries * Remove unneeded checks in if statements * Test with injected external providers (#5652) * fix: sending tx with injected provider (#5651) Co-authored-by: Marin Petrunic <[email protected]> * adding a test for using `ganache` provider * enable the jsonrpc `id` to optionally be incremented starting from a number (Inspired by: #5373 (comment) and needed as a work around for blockchainsllc/in3#46) * test with `in3` as a provider & skip `in3` test if it takes too long * increase integration test timeout at web3 package * add a test for using `hardhat` provider * improve how legacy providers, such as hardhat, is used * implement `isPromise` that works in the browsers * refactor external providers tests * update CHANGELOG.md * Use Error ABI to parse errors when sending a transaction (#5662) * use Error ABI when sending a transaction * update CHANGELOG.md for #5587 * Remove merge conflict marker Co-authored-by: Oleksii Kosynskyi <[email protected]> Co-authored-by: Marin Petrunić <[email protected]> Co-authored-by: Muhammad Altabba <[email protected]> Co-authored-by: jdevcs <[email protected]> * Release patch/4.0.1 alpha.2/solve merge conflicts (#5697) * Update CHANGELOG version headers * Remove merge conflict markers * Remove double CHANGELOG entry Co-authored-by: Oleksii Kosynskyi <[email protected]> Co-authored-by: Marin Petrunić <[email protected]> Co-authored-by: Muhammad Altabba <[email protected]> Co-authored-by: jdevcs <[email protected]>
1 parent 69a57d6 commit 6c166b9

File tree

40 files changed

+223
-127
lines changed

40 files changed

+223
-127
lines changed

CHANGELOG.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ should use 4.0.1-alpha.0 for testing.
891891

892892
- Removed direct function `toJSON()` in `Web3ValidatorError` class as its available via base class (#5435)
893893

894-
## [Unreleased]
894+
## [4.0.1-alpha.2]
895895

896896
### Added
897897

@@ -936,10 +936,12 @@ should use 4.0.1-alpha.0 for testing.
936936

937937
#### web3-eth-abi
938938

939-
- Fix ContractMethodOutputParameters type 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)
939+
- Fix `ContractMethodOutputParameters` type 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)
940940

941941
### Removed
942942

943943
#### web3-eth-accounts
944944

945945
- These types were moved from `web3-eth-accounts` to `web3-types` package: Cipher, CipherOptions, ScryptParams, PBKDF2SHA256Params, KeyStore (#5581 )
946+
947+
## [Unreleased]

packages/web3-core/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5252
- Added validation when `defaultChain` and `defaultCommon.basechain` are different in web3config
5353
- Added a new configuration variable `enableExperimentalFeatures`. (#5481)
5454

55-
## [Unreleased]
55+
## [4.0.1-alpha.2]
5656

5757
### Fixed
5858

5959
- Make the `request` method of `EIP1193Provider` class, compatible with EIP 1193 (#5591)
60+
61+
## [Unreleased]

packages/web3-core/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-core",
3-
"version": "4.0.1-alpha.1",
3+
"version": "4.0.1-alpha.2",
44
"description": "Web3 core tools for sub-packages. This is an internal package.",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ChainSafe/web3.js",
@@ -25,14 +25,14 @@
2525
"test:integration": "jest --config=./test/integration/jest.config.js --passWithNoTests"
2626
},
2727
"dependencies": {
28-
"web3-errors": "^0.1.1-alpha.1",
29-
"web3-eth-iban": "^4.0.1-alpha.1",
30-
"web3-providers-http": "^4.0.1-alpha.1",
31-
"web3-providers-ipc": "^4.0.1-alpha.1",
32-
"web3-providers-ws": "^4.0.1-alpha.1",
33-
"web3-types": "^0.1.1-alpha.1",
34-
"web3-utils": "^4.0.1-alpha.1",
35-
"web3-validator": "^0.1.1-alpha.1"
28+
"web3-errors": "^0.1.1-alpha.2",
29+
"web3-eth-iban": "^4.0.1-alpha.2",
30+
"web3-providers-http": "^4.0.1-alpha.2",
31+
"web3-providers-ipc": "^4.0.1-alpha.2",
32+
"web3-providers-ws": "^4.0.1-alpha.2",
33+
"web3-types": "^0.1.1-alpha.2",
34+
"web3-utils": "^4.0.1-alpha.2",
35+
"web3-validator": "^0.1.1-alpha.2"
3636
},
3737
"devDependencies": {
3838
"@types/jest": "^28.1.6",

packages/web3-errors/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5353
- Corrected the error code for `JSONRPC_ERR_UNAUTHORIZED` to be `4100` (#5462)
5454
- Moved `SignerError` from `web3-errors/src/errors/signature_errors.ts` to `web3-errors/src/errors/transaction_errors.ts`, and renamed it to `TransactionSigningError` (#5462)
5555

56+
## [4.0.1-alpha.2]
57+
58+
### Changed
59+
60+
- Updated Web3.js dependencies (#5664)
61+
5662
## [Unreleased]

packages/web3-errors/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-errors",
3-
"version": "0.1.1-alpha.1",
3+
"version": "0.1.1-alpha.2",
44
"description": "This package has web3 error classes",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ChainSafe/web3.js",
@@ -25,7 +25,7 @@
2525
"test:integration": "jest --config=./test/integration/jest.config.js --passWithNoTests"
2626
},
2727
"dependencies": {
28-
"web3-types": "^0.1.1-alpha.1"
28+
"web3-types": "^0.1.1-alpha.2"
2929
},
3030
"devDependencies": {
3131
"@types/jest": "^28.1.6",

packages/web3-eth-abi/CHANGELOG.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4646

4747
- Return `BigInt` instead of `string` when decoding function parameters for large numbers, such as `uint256`. (#5435)
4848

49-
## [Unreleased]
49+
## [4.0.1-alpha.2]
50+
51+
### Changed
52+
53+
- Updated Web3.js dependencies (#5664)
5054

5155
### Fixed
5256

53-
- Fix ContractMethodOutputParameters type 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)
57+
- Fix `ContractMethodOutputParameters` type 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)
58+
59+
## [Unreleased]

packages/web3-eth-abi/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-abi",
3-
"version": "4.0.1-alpha.1",
3+
"version": "4.0.1-alpha.2",
44
"description": "Web3 module encode and decode EVM in/output.",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ethereum/web3.js/tree/4.x/packages/web3-eth-abi",
@@ -26,9 +26,9 @@
2626
},
2727
"dependencies": {
2828
"@ethersproject/abi": "^5.6.4",
29-
"web3-errors": "^0.1.1-alpha.1",
30-
"web3-types": "^0.1.1-alpha.1",
31-
"web3-utils": "^4.0.1-alpha.1"
29+
"web3-errors": "^0.1.1-alpha.2",
30+
"web3-types": "^0.1.1-alpha.2",
31+
"web3-utils": "^4.0.1-alpha.2"
3232
},
3333
"devDependencies": {
3434
"@humeris/espresso-shot": "^4.0.0",

packages/web3-eth-accounts/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4141

4242
- `signTransaction` and `privateKeyToAccount` will throw `TransactionSigningError` instead of `SignerError` now (#5462)
4343

44-
## [Unreleased]
44+
## [4.0.1-alpha.2]
4545

4646
### Removed
4747

4848
- These types were moved to `web3-types` package: Cipher, CipherOptions, ScryptParams, PBKDF2SHA256Params, KeyStore (#5581)
49+
50+
## [Unreleased]

packages/web3-eth-accounts/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-accounts",
3-
"version": "4.0.1-alpha.1",
3+
"version": "4.0.1-alpha.2",
44
"description": "Package for managing Ethereum accounts and signing",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ChainSafe/web3.js",
@@ -42,9 +42,9 @@
4242
"dependencies": {
4343
"@ethereumjs/tx": "^3.5.2",
4444
"ethereum-cryptography": "^1.1.2",
45-
"web3-errors": "^0.1.1-alpha.1",
46-
"web3-types": "^0.1.1-alpha.1",
47-
"web3-utils": "^4.0.1-alpha.1",
48-
"web3-validator": "^0.1.1-alpha.1"
45+
"web3-errors": "^0.1.1-alpha.2",
46+
"web3-types": "^0.1.1-alpha.2",
47+
"web3-utils": "^4.0.1-alpha.2",
48+
"web3-validator": "^0.1.1-alpha.2"
4949
}
5050
}

packages/web3-eth-contract/CHANGELOG.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -177,21 +177,23 @@ const transactionHash = receipt.transactionHash;
177177

178178
- Decoding error data, using Error ABI if available, according to EIP-838. (#5434)
179179
- The class `Web3ContractError` is moved from this package to `web3-error`. (#5434)
180-
- `SpecialOutput` type was added as a generic type into the call function to support reassigning output types (#5631)
181-
- Overloaded functions types (`ContractOverloadedMethodInputs`, `ContractOverloadedMethodOutputs`) was added (#5631)
182180

183181
### Fixed
184182

185183
- According to the latest change in `web3-eth-abi`, the decoded values of the large numbers, returned from function calls or events, are now available as `BigInt`. (#5435)
186184

187-
## [Unreleased]
185+
## [4.0.1-alpha.2]
188186

189187
### Added
190188

191189
- Decoding error data, using Error ABI if available, if error was returned from a smart contract function call (#5662).
190+
- `SpecialOutput` type was added as a generic type into the call function to support reassigning output types (#5631)
191+
- Overloaded functions types (`ContractOverloadedMethodInputs`, `ContractOverloadedMethodOutputs`) was added (#5631)
192192

193193
### Fixed
194194

195195
- Emit past contract events based on `fromBlock` when passed to `contract.events.someEventName` (#5201)
196196
- Use different types for `ContractOptions` -> `jsonInterface` setter and getter (#5474)
197197
- An issue within the `Contract` constructor where `provider` wasn't being set when provided within the `optionsOrContextOrReturnFormat` argument (#5669)
198+
199+
## [Unreleased]

packages/web3-eth-contract/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-contract",
3-
"version": "4.0.1-alpha.1",
3+
"version": "4.0.1-alpha.2",
44
"description": "Web3 module to interact with Ethereum smart contracts.",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ethereum/web3.js/tree/4.x/packages/web3-eth-contract",
@@ -28,13 +28,13 @@
2828
"test:e2e:firefox": "npx cypress run --headless --browser firefox --env grep='ignore',invert=true"
2929
},
3030
"dependencies": {
31-
"web3-core": "^4.0.1-alpha.1",
32-
"web3-errors": "^0.1.1-alpha.1",
33-
"web3-eth": "^4.0.1-alpha.1",
34-
"web3-eth-abi": "^4.0.1-alpha.1",
35-
"web3-types": "^0.1.1-alpha.1",
36-
"web3-utils": "^4.0.1-alpha.1",
37-
"web3-validator": "^0.1.1-alpha.1"
31+
"web3-core": "^4.0.1-alpha.2",
32+
"web3-errors": "^0.1.1-alpha.2",
33+
"web3-eth": "^4.0.1-alpha.2",
34+
"web3-eth-abi": "^4.0.1-alpha.2",
35+
"web3-types": "^0.1.1-alpha.2",
36+
"web3-utils": "^4.0.1-alpha.2",
37+
"web3-validator": "^0.1.1-alpha.2"
3838
},
3939
"devDependencies": {
4040
"@humeris/espresso-shot": "^4.0.0",
@@ -50,6 +50,6 @@
5050
"prettier": "^2.7.1",
5151
"ts-jest": "^28.0.7",
5252
"typescript": "^4.7.4",
53-
"web3-eth-accounts": "^4.0.1-alpha.0"
53+
"web3-eth-accounts": "^4.0.1-alpha.2"
5454
}
5555
}

packages/web3-eth-ens/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4141

4242
- `Web3NetAPI` is now imported from `web3-types` instead of `web3-net` (#5441)
4343

44+
## [4.0.1-alpha.2]
45+
46+
### Changed
47+
48+
- Updated Web3.js dependencies (#5664)
49+
4450
## [Unreleased]

packages/web3-eth-ens/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-ens",
3-
"version": "4.0.1-alpha.1",
3+
"version": "4.0.1-alpha.2",
44
"description": "This package has ENS functions for interacting with Ethereum Name Service.",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ChainSafe/web3.js",
@@ -42,12 +42,12 @@
4242
},
4343
"dependencies": {
4444
"idna-uts46-hx": "^3.5.0",
45-
"web3-core": "^4.0.1-alpha.1",
46-
"web3-errors": "^0.1.1-alpha.1",
47-
"web3-eth": "^4.0.1-alpha.1",
48-
"web3-eth-contract": "^4.0.1-alpha.1",
49-
"web3-net": "^4.0.1-alpha.1",
50-
"web3-types": "^0.1.1-alpha.1",
51-
"web3-utils": "^4.0.1-alpha.1"
45+
"web3-core": "^4.0.1-alpha.2",
46+
"web3-errors": "^0.1.1-alpha.2",
47+
"web3-eth": "^4.0.1-alpha.2",
48+
"web3-eth-contract": "^4.0.1-alpha.2",
49+
"web3-net": "^4.0.1-alpha.2",
50+
"web3-types": "^0.1.1-alpha.2",
51+
"web3-utils": "^4.0.1-alpha.2"
5252
}
5353
}

packages/web3-eth-iban/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3434
- I've improved the security in XY (#1000)
3535
3636
-->
37+
38+
## [4.0.1-alpha.2]
39+
40+
### Changed
41+
42+
- Updated Web3.js dependencies (#5664)
43+
44+
## [Unreleased]

packages/web3-eth-iban/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-iban",
3-
"version": "4.0.1-alpha.1",
3+
"version": "4.0.1-alpha.2",
44
"description": "This package converts Ethereum addresses to IBAN addresses and vice versa.",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ChainSafe/web3.js",
@@ -39,8 +39,8 @@
3939
"typescript": "^4.7.4"
4040
},
4141
"dependencies": {
42-
"web3-errors": "^0.1.1-alpha.1",
43-
"web3-types": "^0.1.1-alpha.1",
44-
"web3-utils": "^4.0.1-alpha.1"
42+
"web3-errors": "^0.1.1-alpha.2",
43+
"web3-types": "^0.1.1-alpha.2",
44+
"web3-utils": "^4.0.1-alpha.2"
4545
}
4646
}

packages/web3-eth-personal/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5151

5252
- Exported type `EthPersonalAPIManager`, `EthPersonalAPI` is not exported via `web3-types` (#5441)
5353

54+
## [4.0.1-alpha.2]
55+
56+
### Changed
57+
58+
- Updated Web3.js dependencies (#5664)
59+
5460
## [Unreleased]

packages/web3-eth-personal/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-personal",
3-
"version": "4.0.1-alpha.1",
3+
"version": "4.0.1-alpha.2",
44
"description": "Web3 module to interact with the Ethereum blockchain accounts stored in the node.",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ChainSafe/web3.js",
@@ -25,12 +25,12 @@
2525
"test:integration": "jest --config=./test/integration/jest.config.js"
2626
},
2727
"dependencies": {
28-
"web3-core": "^4.0.1-alpha.1",
29-
"web3-eth": "^4.0.1-alpha.1",
30-
"web3-rpc-methods": "^0.1.0-alpha.0",
31-
"web3-types": "^0.1.1-alpha.1",
32-
"web3-utils": "^4.0.1-alpha.1",
33-
"web3-validator": "^0.1.1-alpha.1"
28+
"web3-core": "^4.0.1-alpha.2",
29+
"web3-eth": "^4.0.1-alpha.2",
30+
"web3-rpc-methods": "^0.1.0-alpha.1",
31+
"web3-types": "^0.1.1-alpha.2",
32+
"web3-utils": "^4.0.1-alpha.2",
33+
"web3-validator": "^0.1.1-alpha.2"
3434
},
3535
"devDependencies": {
3636
"@types/jest": "^28.1.6",
@@ -45,6 +45,6 @@
4545
"prettier": "^2.7.1",
4646
"ts-jest": "^28.0.7",
4747
"typescript": "^4.7.4",
48-
"web3-providers-ws": "^4.0.1-alpha.1"
48+
"web3-providers-ws": "^4.0.1-alpha.2"
4949
}
5050
}

packages/web3-eth/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6161
- Fix `getBlock` returning empty transactions object on `hydrated` true (#5556)
6262
- [setimmediate](https://github.com/yuzujs/setImmediate) package to polyfill [setImmediate](https://nodejs.org/api/timers.html#setimmediatecallback-args) for browsers (#5450)
6363

64+
## [4.0.1-alpha.2]
65+
66+
### Changed
67+
68+
- Updated Web3.js dependencies (#5664)
69+
6470
## [Unreleased]

packages/web3-eth/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth",
3-
"version": "4.0.1-alpha.1",
3+
"version": "4.0.1-alpha.2",
44
"description": "Web3 module to interact with the Ethereum blockchain and smart contracts.",
55
"main": "dist/index.js",
66
"repository": "https://github.com/ChainSafe/web3.js",
@@ -40,21 +40,21 @@
4040
"prettier": "^2.7.1",
4141
"ts-jest": "^28.0.7",
4242
"typescript": "^4.7.4",
43-
"web3-eth-abi": "^4.0.1-alpha.1",
44-
"web3-providers-http": "^4.0.1-alpha.1"
43+
"web3-eth-abi": "^4.0.1-alpha.2",
44+
"web3-providers-http": "^4.0.1-alpha.2"
4545
},
4646
"dependencies": {
4747
"@ethereumjs/common": "^2.6.5",
4848
"@ethereumjs/tx": "^3.5.2",
4949
"setimmediate": "^1.0.5",
50-
"web3-core": "^4.0.1-alpha.1",
51-
"web3-errors": "^0.1.1-alpha.1",
52-
"web3-eth-accounts": "^4.0.1-alpha.1",
53-
"web3-net": "^4.0.1-alpha.1",
54-
"web3-providers-ws": "^4.0.1-alpha.1",
55-
"web3-rpc-methods": "^0.1.0-alpha.0",
56-
"web3-types": "^0.1.1-alpha.1",
57-
"web3-utils": "^4.0.1-alpha.1",
58-
"web3-validator": "^0.1.1-alpha.1"
50+
"web3-core": "^4.0.1-alpha.2",
51+
"web3-errors": "^0.1.1-alpha.2",
52+
"web3-eth-accounts": "^4.0.1-alpha.2",
53+
"web3-net": "^4.0.1-alpha.2",
54+
"web3-providers-ws": "^4.0.1-alpha.2",
55+
"web3-rpc-methods": "^0.1.0-alpha.1",
56+
"web3-types": "^0.1.1-alpha.2",
57+
"web3-utils": "^4.0.1-alpha.2",
58+
"web3-validator": "^0.1.1-alpha.2"
5959
}
6060
}

0 commit comments

Comments
 (0)