Skip to content

Commit

Permalink
Release/4.0.1 alpha.1 (#5580)
Browse files Browse the repository at this point in the history
* lerna version bumps

* dependency collison fix

* changelog accounts ipc and validator

* changelog updates

* changelog update

* blackbox tests fix for 5583

* blackbox tests fix 2 for 5583

* block schema fix
  • Loading branch information
jdevcs authored Nov 3, 2022
1 parent ca536a4 commit a8804f0
Show file tree
Hide file tree
Showing 36 changed files with 252 additions and 142 deletions.
78 changes: 74 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ should use 4.0.1-alpha.0 for testing.

- Dependency tree cannot be resolved by Yarn due to old deprecated packages picked by yarn - fixed (#5382)

## [Unreleased]
## [4.0.1-alpha.1]

### Added

Expand All @@ -757,8 +757,8 @@ should use 4.0.1-alpha.0 for testing.

#### web3-eth

- [setimmediate](https://github.com/yuzujs/setImmediate) package to polyfill [setImmediate](https://nodejs.org/api/timers.html#setimmediatecallback-args) for browsers (#5450)
- Implemented the logic for `transactionBlockTimeout` (#5294)
- `web3-rpc-methods` dependency (#5441)
- Added chain and hardfork validation for transaction and transaction.common object in `validateTransactionForSigning`

#### web3-eth-abi

Expand All @@ -779,21 +779,75 @@ should use 4.0.1-alpha.0 for testing.

- Added and exported three reusable utility functions: `pollTillDefined`, `rejectIfTimeout` and `rejectIfConditionAtInterval` which 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.

#### web3-eth-personal

- `web3-rpc-methods` dependency (#5441)

#### web3-eth-net

- `web3-rpc-methods` dependency (#5441)

#### web3-providers-ipc

- Show error message and return dummy promise if socket is not writable (#5294)

#### web3-rpc-methods

- web3-rpc-methods package added

#### web3-types

- `Web3EthExecutionAPI` export (#5441)
- `Web3NetAPI` export (#5441)
- `EthPersonalAPI` export (#5441)

### Changed

#### web3-core

- Default value for `API` generic for `Web3ContextObject` from `any` to `unknown` (#5393)
- Default value for `API` generic for `Web3ContextInitOptions` from `any` to `unknown` (#5393)
- Added validation when `defaultHardfork` and `defaultCommon.hardfork` are different in web3config
- Added validation when `defaultChain` and `defaultCommon.basechain` are different in web3config
- Added a new configuration variable `enableExperimentalFeatures`. (#5481)

#### web3-error

- Moved `SignerError` from `web3-errors/src/errors/signature_errors.ts` to `web3-errors/src/errors/transaction_errors.ts`, and renamed it to `TransactionSigningError` (#5462)
- Corrected the error code for `JSONRPC_ERR_UNAUTHORIZED` to be `4100` (#5462)

#### web3-eth

- `Web3EthExecutionAPI` is now imported via `web3-types` instead of `web3_eth_execution_api.ts` (#5441)
- Replace the imported methods from `rpc_methods.ts` with `ethRpcMethods` imports from `web3-rpc-methods` (#5441)
- `Web3NetAPI` is now imported from `web3-types` instead of `web3-net` (#5441)
- Moved `rpc_methods` tests to `web3-rpc-methods` (#5441)
- Implemented the logic for `transactionBlockTimeout` (#5294)
- Use subscription at `rejectIfBlockTimeout` when the provider supports subscription. Implement this as an experimental feature (if `useSubscriptionWhenCheckingBlockTimeout` at `enableExperimentalFeatures` is `true`). (#5481)
- At some test cases, optimize some codes. (#5481)
- At some test cases, optimized some codes. (#5481)

#### web3-eth-accounts

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

#### web3-eth-ens

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

#### web3-eth-personal

- Import `EthPersonalAPI` from `web3-types` instead of local import (#5441)
- Replace the imported methods from `rcp_methods.ts` with `personalRpcMethods` imports from `web3-rpc-methods` (#5441)
- Replace use of `EthPersonalAPIManager` with `Web3RequestManager<EthPersonalAPI>` (#5441)

#### web3-eth-net

- `Web3NetAPI` is now imported from `web3-types` instead of `web3_net_api.ts` (#5441)
- Replace the imported methods from `rpc_methods.ts` with `netRpcMethods` imports from `web3-rpc-methods` (#5441)

#### web3-types

- `Web3APISpec`, `Web3APIMethod`, and `Web3APIParams` now supports `unknown` APIs (#5393)

### Fixed

Expand All @@ -804,6 +858,7 @@ should use 4.0.1-alpha.0 for testing.
#### web3-eth

- Fix `getBlock` returning empty transactions object on `hydrated` true (#5556)
- [setimmediate](https://github.com/yuzujs/setImmediate) package to polyfill [setImmediate](https://nodejs.org/api/timers.html#setimmediatecallback-args) for browsers (#5450)

#### web3-eth-contract

Expand All @@ -822,3 +877,18 @@ should use 4.0.1-alpha.0 for testing.
#### web3-eth

- Moved the errors' classes from `web3-eth/src/errors.ts` to `web3-errors/src/errors/transaction_errors.ts` (#5462)

#### web3-eth-personal

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

#### web3-eth-net

- `rpcMethods` export, these methods are now exported via `web3-rpc-methods` as `netRpcMethods` (#5441)
- `Web3NetAPI` export, now exported via `web3-types` as `Web3NetAPI` (#5441)

#### web3-validator

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

## [Unreleased]
3 changes: 2 additions & 1 deletion packages/web3-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

## [Unreleased]
## [4.0.1-alpha.1]

### Added

Expand All @@ -52,3 +52,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added validation when `defaultChain` and `defaultCommon.basechain` are different in web3config
- Added a new configuration variable `enableExperimentalFeatures`. (#5481)

## [Unreleased]
18 changes: 9 additions & 9 deletions packages/web3-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-core",
"version": "4.0.1-alpha.0",
"version": "4.0.1-alpha.1",
"description": "Web3 core tools for sub-packages. This is an internal package.",
"main": "dist/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
Expand All @@ -25,14 +25,14 @@
"test:integration": "jest --config=./test/integration/jest.config.js --passWithNoTests"
},
"dependencies": {
"web3-errors": "^0.1.1-alpha.0",
"web3-eth-iban": "^4.0.1-alpha.0",
"web3-providers-http": "^4.0.1-alpha.0",
"web3-providers-ipc": "^4.0.1-alpha.0",
"web3-providers-ws": "^4.0.1-alpha.0",
"web3-types": "^0.1.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0",
"web3-validator": "^0.1.1-alpha.0"
"web3-errors": "^0.1.1-alpha.1",
"web3-eth-iban": "^4.0.1-alpha.1",
"web3-providers-http": "^4.0.1-alpha.1",
"web3-providers-ipc": "^4.0.1-alpha.1",
"web3-providers-ws": "^4.0.1-alpha.1",
"web3-types": "^0.1.1-alpha.1",
"web3-utils": "^4.0.1-alpha.1",
"web3-validator": "^0.1.1-alpha.1"
},
"devDependencies": {
"@types/jest": "^28.1.6",
Expand Down
7 changes: 3 additions & 4 deletions packages/web3-errors/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

## [Unreleased]
## [0.1.1-alpha.1]

### Added

Expand All @@ -51,7 +51,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Corrected the error code for `JSONRPC_ERR_UNAUTHORIZED` to be `4100` (#5462)

### Fixed

- Moved `SignerError` from `web3-errors/src/errors/signature_errors.ts` to `web3-errors/src/errors/transaction_errors.ts`, and renamed it to `TransactionSigningError` (#5462)

## [Unreleased]
4 changes: 2 additions & 2 deletions packages/web3-errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-errors",
"version": "0.1.1-alpha.0",
"version": "0.1.1-alpha.1",
"description": "This package has web3 error classes",
"main": "dist/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
Expand All @@ -25,7 +25,7 @@
"test:integration": "jest --config=./test/integration/jest.config.js --passWithNoTests"
},
"dependencies": {
"web3-types": "^0.1.1-alpha.0"
"web3-types": "^0.1.1-alpha.1"
},
"devDependencies": {
"@types/jest": "^28.1.6",
Expand Down
6 changes: 3 additions & 3 deletions packages/web3-eth-abi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

## [Unreleased]

### Fixed
## [4.0.1-alpha.1]

### Added

Expand All @@ -47,3 +45,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

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

## [Unreleased]
8 changes: 4 additions & 4 deletions packages/web3-eth-abi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-abi",
"version": "4.0.1-alpha.0",
"version": "4.0.1-alpha.1",
"description": "Web3 module encode and decode EVM in/output.",
"main": "dist/index.js",
"repository": "https://github.com/ethereum/web3.js/tree/4.x/packages/web3-eth-abi",
Expand All @@ -26,9 +26,9 @@
},
"dependencies": {
"@ethersproject/abi": "^5.6.4",
"web3-errors": "^0.1.1-alpha.0",
"web3-types": "^0.1.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0"
"web3-errors": "^0.1.1-alpha.1",
"web3-types": "^0.1.1-alpha.1",
"web3-utils": "^4.0.1-alpha.1"
},
"devDependencies": {
"@humeris/espresso-shot": "^4.0.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/web3-eth-accounts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- I've improved the security in XY (#1000)
-->

## [4.0.1-alpha.1]

### Changed

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

## [Unreleased]
10 changes: 5 additions & 5 deletions packages/web3-eth-accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-accounts",
"version": "4.0.1-alpha.0",
"version": "4.0.1-alpha.1",
"description": "Package for managing Ethereum accounts and signing",
"main": "dist/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
Expand Down Expand Up @@ -42,9 +42,9 @@
"dependencies": {
"@ethereumjs/tx": "^3.5.2",
"ethereum-cryptography": "^1.1.2",
"web3-errors": "^0.1.1-alpha.0",
"web3-types": "^0.1.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0",
"web3-validator": "^0.1.1-alpha.0"
"web3-errors": "^0.1.1-alpha.1",
"web3-types": "^0.1.1-alpha.1",
"web3-utils": "^4.0.1-alpha.1",
"web3-validator": "^0.1.1-alpha.1"
}
}
4 changes: 3 additions & 1 deletion packages/web3-eth-contract/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const transactionHash = receipt.transactionHash;
</p>
</details>

## [Unreleased]
## [4.0.1-alpha.1]

### Added

Expand All @@ -181,3 +181,5 @@ const transactionHash = receipt.transactionHash;
### Fixed

- 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)

## [Unreleased]
16 changes: 8 additions & 8 deletions packages/web3-eth-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-contract",
"version": "4.0.1-alpha.0",
"version": "4.0.1-alpha.1",
"description": "Web3 module to interact with Ethereum smart contracts.",
"main": "dist/index.js",
"repository": "https://github.com/ethereum/web3.js/tree/4.x/packages/web3-eth-contract",
Expand Down Expand Up @@ -28,13 +28,13 @@
"test:e2e:firefox": "npx cypress run --headless --browser firefox"
},
"dependencies": {
"web3-core": "^4.0.1-alpha.0",
"web3-errors": "^0.1.1-alpha.0",
"web3-eth": "^4.0.1-alpha.0",
"web3-eth-abi": "^4.0.1-alpha.0",
"web3-types": "^0.1.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0",
"web3-validator": "^0.1.1-alpha.0"
"web3-core": "^4.0.1-alpha.1",
"web3-errors": "^0.1.1-alpha.1",
"web3-eth": "^4.0.1-alpha.1",
"web3-eth-abi": "^4.0.1-alpha.1",
"web3-types": "^0.1.1-alpha.1",
"web3-utils": "^4.0.1-alpha.1",
"web3-validator": "^0.1.1-alpha.1"
},
"devDependencies": {
"@humeris/espresso-shot": "^4.0.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/web3-eth-ens/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

## [Unreleased]
## [4.0.1-alpha.1]

### Changed

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

## [Unreleased]
17 changes: 8 additions & 9 deletions packages/web3-eth-ens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-ens",
"version": "4.0.1-alpha.0",
"version": "4.0.1-alpha.1",
"description": "This package has ENS functions for interacting with Ethereum Name Service.",
"main": "dist/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
Expand All @@ -27,7 +27,6 @@
"ens:download:reverse_registrar": "curl -L -o test/fixtures/ens/reverse_registrar.json 'https://api.etherscan.io/api?module=contract&action=getabi&address=0x084b1c3c81545d370f3634392de611caabff8148'"
},
"devDependencies": {
"web3-eth-contract": "^4.0.1-alpha.0",
"@types/jest": "^28.1.6",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
Expand All @@ -43,12 +42,12 @@
},
"dependencies": {
"idna-uts46-hx": "^3.5.0",
"web3-core": "^4.0.1-alpha.0",
"web3-errors": "^0.1.1-alpha.0",
"web3-eth": "^4.0.1-alpha.0",
"web3-eth-contract": "^4.0.1-alpha.0",
"web3-net": "^4.0.1-alpha.0",
"web3-types": "^0.1.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0"
"web3-core": "^4.0.1-alpha.1",
"web3-errors": "^0.1.1-alpha.1",
"web3-eth": "^4.0.1-alpha.1",
"web3-eth-contract": "^4.0.1-alpha.1",
"web3-net": "^4.0.1-alpha.1",
"web3-types": "^0.1.1-alpha.1",
"web3-utils": "^4.0.1-alpha.1"
}
}
8 changes: 4 additions & 4 deletions packages/web3-eth-iban/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-iban",
"version": "4.0.1-alpha.0",
"version": "4.0.1-alpha.1",
"description": "This package converts Ethereum addresses to IBAN addresses and vice versa.",
"main": "dist/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
Expand Down Expand Up @@ -39,8 +39,8 @@
"typescript": "^4.7.4"
},
"dependencies": {
"web3-errors": "^0.1.1-alpha.0",
"web3-types": "^0.1.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0"
"web3-errors": "^0.1.1-alpha.1",
"web3-types": "^0.1.1-alpha.1",
"web3-utils": "^4.0.1-alpha.1"
}
}
Loading

0 comments on commit a8804f0

Please sign in to comment.