Skip to content

Commit

Permalink
release/4.13.0 (#7264)
Browse files Browse the repository at this point in the history
* bump versions

* address feedback

* bump web3-types version
  • Loading branch information
luu-alex authored Sep 18, 2024
1 parent a21078b commit 5a7e302
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 43 deletions.
21 changes: 13 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2696,24 +2696,22 @@ If there are any bugs, improvements, optimizations or any new feature proposal f

- Revert `TransactionFactory.registerTransactionType` if there is a version mistatch between `web3-eth` and `web3-eth-accounts` and fix nextjs problem. (#7216)

#### web3

- `Web3.providers` namespace exports `type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>`. Return type for the static `Web3.requestEIP6963Providers` is now `Promise<EIP6963ProviderResponse>`. (#7239)
- The callback function provided to the static `Web3.onNewProviderDiscovered` function expects a parameter of type `EIP6963ProvidersMapUpdateEvent` as opposed to `EIP6963AnnounceProviderEvent`. (#7242)

## [Unreleased]
## [4.13.0]

### Added

#### web3-core

- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions`
- Adds a new property (`config`) to `Web3RequestManager`
- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions` (#7227)

#### web3-eth

- Adds the same `{transactionSchema?: ValidationSchemaInput}` that exists in `formatTransaction` to `validateTransactionForSigning`

#### web3-types

- Add COMMITTED to BlockTags (#7124)

### Changed

#### web3-eth
Expand All @@ -2723,3 +2721,10 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
#### web3-eth-personal

- Forwards the new `web3Context.config.customTransactionSchema` to `formatTransaction`

#### web3

- `Web3.providers` namespace exports `type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>`. Return type for the static `Web3.requestEIP6963Providers` is now `Promise<EIP6963ProviderResponse>`. (#7239)
- The callback function provided to the static `Web3.onNewProviderDiscovered` function expects a parameter of type `EIP6963ProvidersMapUpdateEvent` as opposed to `EIP6963AnnounceProviderEvent`. (#7242)

## [Unreleased]
7 changes: 4 additions & 3 deletions packages/web3-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ Documentation:

- `setConfig()` fix for `setMaxListenerWarningThreshold` fix (#5079)

## [Unreleased]
## [4.6.0]

### Added

- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions`
- Adds a new property (`config`) to `Web3RequestManager`
- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions`(#7227)

## [Unreleased]
6 changes: 3 additions & 3 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.5.1",
"version": "4.6.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 @@ -43,11 +43,11 @@
},
"dependencies": {
"web3-errors": "^1.3.0",
"web3-eth-accounts": "^4.2.0",
"web3-eth-accounts": "^4.2.1",
"web3-eth-iban": "^4.0.7",
"web3-providers-http": "^4.2.0",
"web3-providers-ws": "^4.0.8",
"web3-types": "^1.7.0",
"web3-types": "^1.8.0",
"web3-utils": "^4.3.1",
"web3-validator": "^2.0.6"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/web3-eth-abi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ Documentation:

- fix encodedata in EIP-712 (#7095)

## [Unreleased]
## [4.2.4]

### Added

- Handle common cases for smart contract errors according to EIP 838: `0x4e487b71` which is the ‘selector’ for `Panic(uint256)` and `0x08c379a0` is the ‘selector’ of `Error(string)`. (7155)

## [Unreleased]
6 changes: 3 additions & 3 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.2.3",
"version": "4.2.4",
"description": "Web3 module encode and decode EVM in/output.",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -43,8 +43,8 @@
},
"dependencies": {
"abitype": "0.7.1",
"web3-errors": "^1.2.0",
"web3-types": "^1.7.0",
"web3-errors": "^1.3.0",
"web3-types": "^1.8.0",
"web3-utils": "^4.3.1",
"web3-validator": "^2.0.6"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/web3-eth-personal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ Documentation:

- Dependencies updated

## [Unreleased]
## [4.1.0]

### Changed

- Forwards the new `web3Context.config.customTransactionSchema` to `formatTransaction`

## [Unreleased]
16 changes: 8 additions & 8 deletions packages/web3-eth-personal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-personal",
"version": "4.0.8",
"version": "4.1.0",
"description": "Web3 module to interact with the Ethereum blockchain accounts stored in the node.",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -42,12 +42,12 @@
"test:integration": "jest --config=./test/integration/jest.config.js"
},
"dependencies": {
"web3-core": "^4.3.0",
"web3-eth": "^4.3.1",
"web3-rpc-methods": "^1.1.3",
"web3-types": "^1.3.0",
"web3-utils": "^4.0.7",
"web3-validator": "^2.0.3"
"web3-core": "^4.6.0",
"web3-eth": "^4.9.0",
"web3-rpc-methods": "^1.3.0",
"web3-types": "^1.8.0",
"web3-utils": "^4.3.1",
"web3-validator": "^2.0.6"
},
"devDependencies": {
"@types/jest": "^28.1.6",
Expand All @@ -62,6 +62,6 @@
"prettier": "^2.7.1",
"ts-jest": "^29.1.1",
"typescript": "^4.7.4",
"web3-providers-ws": "^4.0.7"
"web3-providers-ws": "^4.0.8"
}
}
4 changes: 3 additions & 1 deletion packages/web3-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Documentation:
- Adds transaction property to be an empty list rather than undefined when no transactions are included in the block (#7151)
- Change method `getTransactionReceipt` to not be casted as `TransactionReceipt` to give proper return type (#7159)

## [Unreleased]
## [4.9.0]

### Changed

Expand All @@ -278,3 +278,5 @@ Documentation:
### Added

- Adds the same `{transactionSchema?: ValidationSchemaInput}` that exists in `formatTransaction` to `validateTransactionForSigning`

## [Unreleased]
14 changes: 7 additions & 7 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.8.2",
"version": "4.9.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 @@ -59,18 +59,18 @@
"prettier": "^2.7.1",
"ts-jest": "^29.1.1",
"typescript": "^4.7.4",
"web3-providers-http": "^4.1.0"
"web3-providers-http": "^4.2.0"
},
"dependencies": {
"setimmediate": "^1.0.5",
"web3-core": "^4.5.0",
"web3-errors": "^1.2.1",
"web3-eth-abi": "^4.2.3",
"web3-eth-accounts": "^4.1.3",
"web3-core": "^4.6.0",
"web3-errors": "^1.3.0",
"web3-eth-abi": "^4.2.4",
"web3-eth-accounts": "^4.2.1",
"web3-net": "^4.1.0",
"web3-providers-ws": "^4.0.8",
"web3-rpc-methods": "^1.3.0",
"web3-types": "^1.7.0",
"web3-types": "^1.8.0",
"web3-utils": "^4.3.1",
"web3-validator": "^2.0.6"
}
Expand Down
6 changes: 6 additions & 0 deletions packages/web3-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,10 @@ Documentation:
- Added `result` as optional `never` and `error` as optional `never in type `JsonRpcNotification` (#7091)
- Added `JsonRpcNotfication` as a union type in `JsonRpcResponse` (#7091)

## [1.8.0]

### Added

- Add COMMITTED to BlockTags (#7124)

## [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.7.0",
"version": "1.8.0",
"description": "Provide the common data structures and interfaces for web3 modules.",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
7 changes: 7 additions & 0 deletions packages/web3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,11 @@ Documentation:

- Revert `TransactionFactory.registerTransactionType` if there is a version mistatch between `web3-eth` and `web3-eth-accounts` and fix nextjs problem. (#7216)

## [4.13.0]

### Changed

- `Web3.providers` namespace exports `type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>`. Return type for the static `Web3.requestEIP6963Providers` is now `Promise<EIP6963ProviderResponse>`. (#7239)
- The callback function provided to the static `Web3.onNewProviderDiscovered` function expects a parameter of type `EIP6963ProvidersMapUpdateEvent` as opposed to `EIP6963AnnounceProviderEvent`. (#7242)

## [Unreleased]
12 changes: 6 additions & 6 deletions packages/web3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3",
"version": "4.12.1",
"version": "4.13.0",
"description": "Ethereum JavaScript API",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -86,21 +86,21 @@
"web3-providers-ipc": "^4.0.7"
},
"dependencies": {
"web3-core": "^4.5.1",
"web3-core": "^4.6.0",
"web3-errors": "^1.3.0",
"web3-eth": "^4.8.2",
"web3-eth-abi": "^4.2.3",
"web3-eth": "^4.9.0",
"web3-eth-abi": "^4.2.4",
"web3-eth-accounts": "^4.2.1",
"web3-eth-contract": "^4.7.0",
"web3-eth-ens": "^4.4.0",
"web3-eth-iban": "^4.0.7",
"web3-eth-personal": "^4.0.8",
"web3-eth-personal": "^4.1.0",
"web3-net": "^4.1.0",
"web3-providers-http": "^4.2.0",
"web3-providers-ws": "^4.0.8",
"web3-rpc-methods": "^1.3.0",
"web3-rpc-providers": "^1.0.0-rc.2",
"web3-types": "^1.7.0",
"web3-types": "^1.8.0",
"web3-utils": "^4.3.1",
"web3-validator": "^2.0.6"
}
Expand Down
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.12.1' };
/* eslint-disable header/header */ export const Web3PkgInfo = { version: '4.13.0' };

1 comment on commit 5a7e302

@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: 5a7e302 Previous: a21078b Ratio
processingTx 22309 ops/sec (±7.22%) 22494 ops/sec (±8.39%) 1.01
processingContractDeploy 40363 ops/sec (±6.95%) 38470 ops/sec (±7.11%) 0.95
processingContractMethodSend 16570 ops/sec (±7.02%) 16121 ops/sec (±6.53%) 0.97
processingContractMethodCall 28034 ops/sec (±6.73%) 28342 ops/sec (±6.29%) 1.01
abiEncode 44249 ops/sec (±8.56%) 43839 ops/sec (±6.81%) 0.99
abiDecode 32311 ops/sec (±5.75%) 30836 ops/sec (±5.71%) 0.95
sign 1547 ops/sec (±3.62%) 1545 ops/sec (±3.43%) 1.00
verify 367 ops/sec (±0.54%) 370 ops/sec (±0.49%) 1.01

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

Please sign in to comment.