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

Commit 0f33f43

Browse files
authored
Merge branch '4.x' into 7182-web3utilspadright-cannot-pad-hex-strings-that-begin-with-0x8-or-higher
2 parents 0978e94 + d6baee6 commit 0f33f43

File tree

18 files changed

+72
-47
lines changed

18 files changed

+72
-47
lines changed

CHANGELOG.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,24 +2696,22 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
26962696

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

2699-
#### web3
2700-
2701-
- `Web3.providers` namespace exports `type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>`. Return type for the static `Web3.requestEIP6963Providers` is now `Promise<EIP6963ProviderResponse>`. (#7239)
2702-
- The callback function provided to the static `Web3.onNewProviderDiscovered` function expects a parameter of type `EIP6963ProvidersMapUpdateEvent` as opposed to `EIP6963AnnounceProviderEvent`. (#7242)
2703-
2704-
## [Unreleased]
2699+
## [4.13.0]
27052700

27062701
### Added
27072702

27082703
#### web3-core
27092704

2710-
- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions`
2711-
- Adds a new property (`config`) to `Web3RequestManager`
2705+
- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions` (#7227)
27122706

27132707
#### web3-eth
27142708

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

2711+
#### web3-types
2712+
2713+
- Add COMMITTED to BlockTags (#7124)
2714+
27172715
### Changed
27182716

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

27252723
- Forwards the new `web3Context.config.customTransactionSchema` to `formatTransaction`
2724+
2725+
#### web3
2726+
2727+
- Return type for the static `Web3.requestEIP6963Providers` function is now `Promise<EIP6963ProviderResponse>`. (#7239)
2728+
- The callback function provided to the static `Web3.onNewProviderDiscovered` function expects a parameter of type `EIP6963ProvidersMapUpdateEvent` as opposed to `EIP6963AnnounceProviderEvent`. (#7242)
2729+
2730+
## [Unreleased]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ yarn add web3
4444
## Migration Guide
4545

4646
- [Migration Guide from Web3.js 1.x to 4.x](https://docs.web3js.org/guides/web3_upgrade_guide/x/)
47-
Breaking changes are listed in migration guide and its first step for migrating from Web3.js 1.x to 4.x. If there is any question or discussion feel free to ask in [Discord](https://discord.gg/yjyvFRP), and in case of any bug or new feature request [open issue](https://github.com/web3/web3.js/issues/new) or create a pull request for [contributions](https://github.com/web3/web3.js/blob/4.x/CONTRIBUTIONS.md).
47+
Breaking changes are listed in migration guide and its first step for migrating from Web3.js 1.x to 4.x. If there is any question or discussion feel free to ask in [Discord](https://discord.gg/yjyvFRP), and in case of any bug or new feature request [open issue](https://github.com/web3/web3.js/issues/new) or create a pull request for [contributions](https://github.com/web3/web3.js/blob/4.x/.github/CONTRIBUTING.md).
4848

4949
## Useful links
5050

docs/docs/guides/wallet/web3_modal_guide/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const web3Config = defaultConfig({
6868

6969
// 5. Create a Web3Modal instance
7070
createWeb3Modal({
71-
ethersConfig,
71+
web3Config,
7272
chains: [mainnet],
7373
projectId,
7474
enableAnalytics: true // Optional - defaults to your Cloud configuration

docs/docs/guides/wallet/web3_modal_guide/react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const web3Config = defaultConfig({
7878

7979
// 5. Create a Web3Modal instance
8080
createWeb3Modal({
81-
ethersConfig,
81+
web3Config,
8282
chains: [mainnet],
8383
projectId,
8484
enableAnalytics: true // Optional - defaults to your Cloud configuration

packages/web3-core/CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,10 @@ Documentation:
233233

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

236-
## [Unreleased]
236+
## [4.6.0]
237237

238238
### Added
239239

240-
- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions`
241-
- Adds a new property (`config`) to `Web3RequestManager`
240+
- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions`(#7227)
241+
242+
## [Unreleased]

packages/web3-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-core",
3-
"version": "4.5.1",
3+
"version": "4.6.0",
44
"description": "Web3 core tools for sub-packages. This is an internal package.",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -43,11 +43,11 @@
4343
},
4444
"dependencies": {
4545
"web3-errors": "^1.3.0",
46-
"web3-eth-accounts": "^4.2.0",
46+
"web3-eth-accounts": "^4.2.1",
4747
"web3-eth-iban": "^4.0.7",
4848
"web3-providers-http": "^4.2.0",
4949
"web3-providers-ws": "^4.0.8",
50-
"web3-types": "^1.7.0",
50+
"web3-types": "^1.8.0",
5151
"web3-utils": "^4.3.1",
5252
"web3-validator": "^2.0.6"
5353
},

packages/web3-eth-abi/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ Documentation:
182182

183183
- fix encodedata in EIP-712 (#7095)
184184

185-
## [Unreleased]
185+
## [4.2.4]
186186

187187
### Added
188188

189189
- 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)
190+
191+
## [Unreleased]

packages/web3-eth-abi/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-abi",
3-
"version": "4.2.3",
3+
"version": "4.2.4",
44
"description": "Web3 module encode and decode EVM in/output.",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -43,8 +43,8 @@
4343
},
4444
"dependencies": {
4545
"abitype": "0.7.1",
46-
"web3-errors": "^1.2.0",
47-
"web3-types": "^1.7.0",
46+
"web3-errors": "^1.3.0",
47+
"web3-types": "^1.8.0",
4848
"web3-utils": "^4.3.1",
4949
"web3-validator": "^2.0.6"
5050
},

packages/web3-eth-personal/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ Documentation:
147147

148148
- Dependencies updated
149149

150-
## [Unreleased]
150+
## [4.1.0]
151151

152152
### Changed
153153

154154
- Forwards the new `web3Context.config.customTransactionSchema` to `formatTransaction`
155+
156+
## [Unreleased]

packages/web3-eth-personal/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-personal",
3-
"version": "4.0.8",
3+
"version": "4.1.0",
44
"description": "Web3 module to interact with the Ethereum blockchain accounts stored in the node.",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -42,12 +42,12 @@
4242
"test:integration": "jest --config=./test/integration/jest.config.js"
4343
},
4444
"dependencies": {
45-
"web3-core": "^4.3.0",
46-
"web3-eth": "^4.3.1",
47-
"web3-rpc-methods": "^1.1.3",
48-
"web3-types": "^1.3.0",
49-
"web3-utils": "^4.0.7",
50-
"web3-validator": "^2.0.3"
45+
"web3-core": "^4.6.0",
46+
"web3-eth": "^4.9.0",
47+
"web3-rpc-methods": "^1.3.0",
48+
"web3-types": "^1.8.0",
49+
"web3-utils": "^4.3.1",
50+
"web3-validator": "^2.0.6"
5151
},
5252
"devDependencies": {
5353
"@types/jest": "^28.1.6",
@@ -62,6 +62,6 @@
6262
"prettier": "^2.7.1",
6363
"ts-jest": "^29.1.1",
6464
"typescript": "^4.7.4",
65-
"web3-providers-ws": "^4.0.7"
65+
"web3-providers-ws": "^4.0.8"
6666
}
6767
}

packages/web3-eth/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Documentation:
269269
- Adds transaction property to be an empty list rather than undefined when no transactions are included in the block (#7151)
270270
- Change method `getTransactionReceipt` to not be casted as `TransactionReceipt` to give proper return type (#7159)
271271

272-
## [Unreleased]
272+
## [4.9.0]
273273

274274
### Changed
275275

@@ -278,3 +278,5 @@ Documentation:
278278
### Added
279279

280280
- Adds the same `{transactionSchema?: ValidationSchemaInput}` that exists in `formatTransaction` to `validateTransactionForSigning`
281+
282+
## [Unreleased]

packages/web3-eth/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth",
3-
"version": "4.8.2",
3+
"version": "4.9.0",
44
"description": "Web3 module to interact with the Ethereum blockchain and smart contracts.",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -59,18 +59,18 @@
5959
"prettier": "^2.7.1",
6060
"ts-jest": "^29.1.1",
6161
"typescript": "^4.7.4",
62-
"web3-providers-http": "^4.1.0"
62+
"web3-providers-http": "^4.2.0"
6363
},
6464
"dependencies": {
6565
"setimmediate": "^1.0.5",
66-
"web3-core": "^4.5.0",
67-
"web3-errors": "^1.2.1",
68-
"web3-eth-abi": "^4.2.3",
69-
"web3-eth-accounts": "^4.1.3",
66+
"web3-core": "^4.6.0",
67+
"web3-errors": "^1.3.0",
68+
"web3-eth-abi": "^4.2.4",
69+
"web3-eth-accounts": "^4.2.1",
7070
"web3-net": "^4.1.0",
7171
"web3-providers-ws": "^4.0.8",
7272
"web3-rpc-methods": "^1.3.0",
73-
"web3-types": "^1.7.0",
73+
"web3-types": "^1.8.0",
7474
"web3-utils": "^4.3.1",
7575
"web3-validator": "^2.0.6"
7676
}

packages/web3-types/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,10 @@ Documentation:
202202
- Added `result` as optional `never` and `error` as optional `never in type `JsonRpcNotification` (#7091)
203203
- Added `JsonRpcNotfication` as a union type in `JsonRpcResponse` (#7091)
204204

205+
## [1.8.0]
206+
207+
### Added
208+
209+
- Add COMMITTED to BlockTags (#7124)
210+
205211
## [Unreleased]

packages/web3-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-types",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "Provide the common data structures and interfaces for web3 modules.",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",

packages/web3/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,4 +482,11 @@ Documentation:
482482

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

485+
## [4.13.0]
486+
487+
### Changed
488+
489+
- Return type for the static `Web3.requestEIP6963Providers` function is now `Promise<EIP6963ProviderResponse>`. (#7239)
490+
- The callback function provided to the static `Web3.onNewProviderDiscovered` function expects a parameter of type `EIP6963ProvidersMapUpdateEvent` as opposed to `EIP6963AnnounceProviderEvent`. (#7242)
491+
485492
## [Unreleased]

packages/web3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ yarn add web3
5757
## Migration Guide
5858

5959
- [Migration Guide from Web3.js 1.x to 4.x](https://docs.web3js.org/docs/guides/web3_migration_guide)
60-
Breaking changes are listed in migration guide and its first step for migrating from Web3.js 1.x to 4.x. If there is any question or discussion feel free to ask in discord, and in case of any bug or new feature request [open issue](https://github.com/web3/web3.js/issues/new) or create a pull request for [contributions](https://github.com/web3/web3.js/blob/4.x/CONTRIBUTIONS.md).
60+
Breaking changes are listed in migration guide and its first step for migrating from Web3.js 1.x to 4.x. If there is any question or discussion feel free to ask in discord, and in case of any bug or new feature request [open issue](https://github.com/web3/web3.js/issues/new) or create a pull request for [contributions](https://github.com/web3/web3.js/blob/4.x/.github/CONTRIBUTING.md).
6161

6262
## Package.json Scripts
6363

packages/web3/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3",
3-
"version": "4.12.1",
3+
"version": "4.13.0",
44
"description": "Ethereum JavaScript API",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -86,21 +86,21 @@
8686
"web3-providers-ipc": "^4.0.7"
8787
},
8888
"dependencies": {
89-
"web3-core": "^4.5.1",
89+
"web3-core": "^4.6.0",
9090
"web3-errors": "^1.3.0",
91-
"web3-eth": "^4.8.2",
92-
"web3-eth-abi": "^4.2.3",
91+
"web3-eth": "^4.9.0",
92+
"web3-eth-abi": "^4.2.4",
9393
"web3-eth-accounts": "^4.2.1",
9494
"web3-eth-contract": "^4.7.0",
9595
"web3-eth-ens": "^4.4.0",
9696
"web3-eth-iban": "^4.0.7",
97-
"web3-eth-personal": "^4.0.8",
97+
"web3-eth-personal": "^4.1.0",
9898
"web3-net": "^4.1.0",
9999
"web3-providers-http": "^4.2.0",
100100
"web3-providers-ws": "^4.0.8",
101101
"web3-rpc-methods": "^1.3.0",
102102
"web3-rpc-providers": "^1.0.0-rc.2",
103-
"web3-types": "^1.7.0",
103+
"web3-types": "^1.8.0",
104104
"web3-utils": "^4.3.1",
105105
"web3-validator": "^2.0.6"
106106
}

packages/web3/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/* eslint-disable header/header */ export const Web3PkgInfo = { version: '4.12.1' };
1+
/* eslint-disable header/header */ export const Web3PkgInfo = { version: '4.13.0' };

0 commit comments

Comments
 (0)