Skip to content

Commit

Permalink
release v4.10.0 (#7096)
Browse files Browse the repository at this point in the history
* version bump and changelog updates

* change rpc-providers version to rc

* update changelog
  • Loading branch information
Alex authored Jun 17, 2024
1 parent 7f8e504 commit 16252f9
Show file tree
Hide file tree
Showing 16 changed files with 207 additions and 42 deletions.
39 changes: 38 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2526,4 +2526,41 @@ If there are any bugs, improvements, optimizations or any new feature proposal f

- Change `estimateGas` method to add possibility pass Transaction type (#7000)

## [Unreleased]
## [4.10.0]

### Added

#### web3

- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

#### web3-core

- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

#### web3-eth

- `sendTransaction` in `rpc_method_wrappers` accepts optional param of `TransactionMiddleware` (#7088)
- WebEth has `setTransactionMiddleware` and `getTransactionMiddleware` for automatically passing to `sentTransaction` (#7088)

#### web3-eth-ens

- `getText` now supports first param Address
- `getName` has optional second param checkInterfaceSupport

### web3-types

- Added `result` as optional `never` and `error` as optional `never in type `JsonRpcNotification` (#7091)
- Added `JsonRpcNotfication` as a union type in `JsonRpcResponse` (#7091)

### web3-rpc-providers

- RC release

### Fixed

#### web3-eth-ens

- `getName` reverse resolution

## [Unreleased]
6 changes: 4 additions & 2 deletions packages/web3-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ Documentation:

- Set a try catch block if processesingError fails (#7022)

## [Unreleased]
## [4.5.0]

### Added

- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)
- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

## [Unreleased]
4 changes: 2 additions & 2 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.4.0",
"version": "4.5.0",
"description": "Web3 core tools for sub-packages. This is an internal package.",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -47,7 +47,7 @@
"web3-eth-iban": "^4.0.7",
"web3-providers-http": "^4.1.0",
"web3-providers-ws": "^4.0.7",
"web3-types": "^1.6.0",
"web3-types": "^1.7.0",
"web3-utils": "^4.3.0",
"web3-validator": "^2.0.6"
},
Expand Down
6 changes: 4 additions & 2 deletions packages/web3-eth-ens/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Documentation:

- `defaultReturnFormat` was added to all methods that have `ReturnType` param. (#6947)

## [Unreleased]
## [4.4.0]

### Added

Expand All @@ -168,4 +168,6 @@ Documentation:

### Fixed

- `getName` reverse resolution
- `getName` reverse resolution

## [Unreleased]
8 changes: 4 additions & 4 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.3.0",
"version": "4.4.0",
"description": "This package has ENS functions for interacting with Ethereum Name Service.",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -59,12 +59,12 @@
},
"dependencies": {
"@adraffy/ens-normalize": "^1.8.8",
"web3-core": "^4.4.0",
"web3-core": "^4.5.0",
"web3-errors": "^1.2.0",
"web3-eth": "^4.7.0",
"web3-eth": "^4.8.0",
"web3-eth-contract": "^4.5.0",
"web3-net": "^4.1.0",
"web3-types": "^1.6.0",
"web3-types": "^1.7.0",
"web3-utils": "^4.3.0",
"web3-validator": "^2.0.6"
}
Expand Down
6 changes: 4 additions & 2 deletions packages/web3-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,12 @@ Documentation:

- Fixed issue with simple transactions, Within `checkRevertBeforeSending` if there is no data set in transaction, set gas to be `21000` (#7043)

## [Unreleased]
## [4.8.0]

### Added

- `sendTransaction` in `rpc_method_wrappers` accepts optional param of `TransactionMiddleware` (#7088)
- WebEth has `setTransactionMiddleware` and `getTransactionMiddleware` for automatically passing to `sentTransaction` (#7088)
- `TransactionMiddleware` and `TransactionMiddleware` data types are exported (#7088)
- `TransactionMiddleware` and `TransactionMiddleware` data types are exported (#7088)

## [Unreleased]
6 changes: 3 additions & 3 deletions packages/web3-eth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth",
"version": "4.7.0",
"version": "4.8.0",
"description": "Web3 module to interact with the Ethereum blockchain and smart contracts.",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -63,14 +63,14 @@
},
"dependencies": {
"setimmediate": "^1.0.5",
"web3-core": "^4.4.0",
"web3-core": "^4.5.0",
"web3-errors": "^1.2.0",
"web3-eth-abi": "^4.2.2",
"web3-eth-accounts": "^4.1.2",
"web3-net": "^4.1.0",
"web3-providers-ws": "^4.0.7",
"web3-rpc-methods": "^1.3.0",
"web3-types": "^1.6.0",
"web3-types": "^1.7.0",
"web3-utils": "^4.3.0",
"web3-validator": "^2.0.6"
}
Expand Down
6 changes: 6 additions & 0 deletions packages/web3-rpc-providers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

## [1.0.0.rc.0]

#### Added

- RC release

## [Unreleased]
6 changes: 3 additions & 3 deletions packages/web3-rpc-providers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-rpc-providers",
"version": "0.1.0",
"version": "1.0.0-rc.0",
"description": "Web3 Providers package",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -58,7 +58,7 @@
"dependencies": {
"web3-providers-http": "^4.1.0",
"web3-providers-ws": "^4.0.7",
"web3-types": "^1.6.0",
"web3-utils": "^4.2.3"
"web3-types": "^1.7.0",
"web3-utils": "^4.3.0"
}
}
9 changes: 9 additions & 0 deletions packages/web3-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,12 @@ Documentation:

- Added `signature` to type `AbiFunctionFragment` (#6922)
- update type `Withdrawals`, `block` and `BlockHeaderOutput` to include properties of eip 4844, 4895, 4788 (#6933)

## [1.7.0]

### Added

- Added `result` as optional `never` and `error` as optional `never in type `JsonRpcNotification` (#7091)
- Added `JsonRpcNotfication` as a union type in `JsonRpcResponse` (#7091)

## [Unreleased]
2 changes: 1 addition & 1 deletion packages/web3-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-types",
"version": "1.6.0",
"version": "1.7.0",
"description": "Provide the common data structures and interfaces for web3 modules.",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
111 changes: 109 additions & 2 deletions packages/web3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,119 @@ Documentation:

### Added

#### web3

- Updated type `Web3EthInterface.accounts` to includes `privateKeyToAccount`,`privateKeyToAddress`,and `privateKeyToPublicKey` (#6762)

## [Unreleased]
#### web3-core

- `defaultReturnFormat` was added to the configuration options. (#6947)

#### web3-errors

- Added `InvalidIntegerError` error for fromWei and toWei (#7052)

#### web3-eth

- `defaultReturnFormat` was added to all methods that have `ReturnType` param. (#6947)
- `getTransactionFromOrToAttr`, `waitForTransactionReceipt`, `trySendTransaction`, `SendTxHelper` was exported (#7000)

#### web3-eth-contract

- `defaultReturnFormat` was added to all methods that have `ReturnType` param. (#6947)

#### web3-eth-ens

- `defaultReturnFormat` was added to all methods that have `ReturnType` param. (#6947)

#### web3-net

- `defaultReturnFormat` was added to all methods that have `ReturnType` param. (#6947)

#### web3-types

- Added `signature` to type `AbiFunctionFragment` (#6922)
- update type `Withdrawals`, `block` and `BlockHeaderOutput` to include properties of eip 4844, 4895, 4788 (#6933)

#### web3-utils

- `toWei` add warning when using large numbers or large decimals that may cause precision loss (#6908)
- `toWei` and `fromWei` now supports integers as a unit. (#7053)

### Fixed

#### web3-eth

- Fixed issue with simple transactions, Within `checkRevertBeforeSending` if there is no data set in transaction, set gas to be `21000` (#7043)

#### web3-utils

- `toWei` support numbers in scientific notation (#6908)
- `toWei` and `fromWei` trims according to ether unit successfuly (#7044)

#### web3-validator

- The JSON schema conversion process now correctly assigns an id when the `abi.name` is not available, for example, in the case of public mappings. (#6981)
- `browser` entry point that was pointing to an non-existing bundle file was removed from `package.json` (#7015)

#### web3-core

- Set a try catch block if processesingError fails (#7022)

### Changed

#### web3-core

- Interface `RequestManagerMiddleware` was changed (#7003)

#### web3-eth

- Added parameter `customTransactionReceiptSchema` into methods `emitConfirmation`, `waitForTransactionReceipt`, `watchTransactionByPolling`, `watchTransactionBySubscription`, `watchTransactionForConfirmations` (#7000)
- Changed functionality: For networks that returns `baseFeePerGas===0x0` fill `maxPriorityFeePerGas` and `maxFeePerGas` by `getGasPrice` method (#7050)

#### web3-eth-abi

- Dependencies updated

#### web3-rpc-methods

- Change `estimateGas` method to add possibility pass Transaction type (#7000)

## [4.10.0]

### Added

#### web3

- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)
- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

#### web3-core

- Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

#### web3-eth

- `sendTransaction` in `rpc_method_wrappers` accepts optional param of `TransactionMiddleware` (#7088)
- WebEth has `setTransactionMiddleware` and `getTransactionMiddleware` for automatically passing to `sentTransaction` (#7088)

#### web3-eth-ens

- `getText` now supports first param Address
- `getName` has optional second param checkInterfaceSupport

### web3-types

- Added `result` as optional `never` and `error` as optional `never in type `JsonRpcNotification` (#7091)
- Added `JsonRpcNotfication` as a union type in `JsonRpcResponse` (#7091)

### web3-rpc-providers

- RC release

### Fixed

#### web3-eth-ens

- `getName` reverse resolution

## [Unreleased]
14 changes: 7 additions & 7 deletions packages/web3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3",
"version": "4.9.0",
"version": "4.10.0",
"description": "Ethereum JavaScript API",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -86,22 +86,22 @@
"web3-providers-ipc": "^4.0.7"
},
"dependencies": {
"web3-core": "^4.4.0",
"web3-core": "^4.5.0",
"web3-errors": "^1.2.0",
"web3-eth": "^4.7.0",
"web3-eth": "^4.8.0",
"web3-eth-abi": "^4.2.2",
"web3-eth-accounts": "^4.1.2",
"web3-eth-contract": "^4.5.0",
"web3-eth-ens": "^4.3.0",
"web3-eth-ens": "^4.4.0",
"web3-eth-iban": "^4.0.7",
"web3-eth-personal": "^4.0.8",
"web3-net": "^4.1.0",
"web3-providers-http": "^4.1.0",
"web3-providers-ws": "^4.0.7",
"web3-rpc-methods": "^1.3.0",
"web3-types": "^1.6.0",
"web3-rpc-providers": "^1.0.0-rc.0",
"web3-types": "^1.7.0",
"web3-utils": "^4.3.0",
"web3-validator": "^2.0.6",
"web3-rpc-providers": "^0.1.0"
"web3-validator": "^2.0.6"
}
}
2 changes: 1 addition & 1 deletion packages/web3/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* eslint-disable header/header */ export const Web3PkgInfo = { version: '4.9.0' };
/* eslint-disable header/header */ export const Web3PkgInfo = { version: '4.10.0' };
6 changes: 3 additions & 3 deletions tools/web3-plugin-example/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Dependencies updated

## [Unreleased]

### Added

Transaction middleware (#7088)
Transaction middleware (#7088)

## [Unreleased]
Loading

1 comment on commit 16252f9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 16252f9 Previous: 7f8e504 Ratio
processingTx 8718 ops/sec (±4.07%) 9412 ops/sec (±3.41%) 1.08
processingContractDeploy 38913 ops/sec (±7.29%) 37961 ops/sec (±7.80%) 0.98
processingContractMethodSend 18130 ops/sec (±7.07%) 19198 ops/sec (±6.60%) 1.06
processingContractMethodCall 36290 ops/sec (±6.10%) 39395 ops/sec (±5.47%) 1.09
abiEncode 39776 ops/sec (±7.72%) 44551 ops/sec (±6.60%) 1.12
abiDecode 28800 ops/sec (±6.54%) 30560 ops/sec (±7.70%) 1.06
sign 1530 ops/sec (±3.94%) 1612 ops/sec (±0.84%) 1.05
verify 363 ops/sec (±0.60%) 374 ops/sec (±0.51%) 1.03

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.