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

Commit e48f2a0

Browse files
authored
Merge branch '4.x' into 4.x
2 parents 789f937 + 7b97011 commit e48f2a0

File tree

27 files changed

+551
-247
lines changed

27 files changed

+551
-247
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build:
1515
strategy:
1616
matrix:
17-
node: [18, 16]
17+
node: [18, 20]
1818
name: Build CJS
1919
runs-on: ubuntu-latest
2020
steps:
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
strategy:
3939
matrix:
40-
node: [ 18, 16 ]
40+
node: [ 18 ]
4141
steps:
4242
- uses: actions/setup-node@v3
4343
with:
@@ -54,7 +54,7 @@ jobs:
5454
runs-on: ubuntu-latest
5555
strategy:
5656
matrix:
57-
node: [ 18, 16 ]
57+
node: [ 18 ]
5858
steps:
5959
- uses: actions/setup-node@v3
6060
with:
@@ -123,7 +123,7 @@ jobs:
123123
runs-on: ubuntu-latest
124124
strategy:
125125
matrix:
126-
node: [18, 16]
126+
node: [18, 20]
127127
steps:
128128
- uses: actions/setup-node@v3
129129
with:
@@ -142,7 +142,7 @@ jobs:
142142
if: ${{ matrix.node == 18 }}
143143

144144
integration:
145-
name: Integration
145+
name: Integration # (ganache with HTTP)
146146
needs: build
147147
runs-on: ubuntu-latest
148148
env:
@@ -151,9 +151,9 @@ jobs:
151151
strategy:
152152
fail-fast: false
153153
matrix:
154-
node: [18, 16]
155-
backend: ['geth', 'ganache']
156-
mode: ['http', 'ws']
154+
node: [18]
155+
backend: ['ganache']
156+
mode: ['http']
157157
steps:
158158
- uses: actions/setup-node@v3
159159
with:
@@ -167,7 +167,7 @@ jobs:
167167
shell: bash
168168

169169
e2e-ipc:
170-
name: Integration IPC
170+
name: Integration # (geth with HTTP, IPC & WS)
171171
needs: build
172172
runs-on: ubuntu-latest
173173
env:
@@ -176,9 +176,9 @@ jobs:
176176
strategy:
177177
fail-fast: false
178178
matrix:
179-
node: [ 18, 16 ]
179+
node: [ 18 ]
180180
backend: [ 'geth' ]
181-
mode: [ 'ipc' ]
181+
mode: [ 'ipc', 'ws', 'http' ]
182182
steps:
183183
- uses: actions/setup-node@v3
184184
with:
@@ -198,7 +198,7 @@ jobs:
198198
strategy:
199199
fail-fast: false
200200
matrix:
201-
node: [18, 16]
201+
node: [18]
202202
browser: ['electron', 'chrome', 'firefox']
203203
steps:
204204
- uses: actions/setup-node@v3

.github/workflows/e2e_network_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
INFURA_SEPOLIA_HTTP: ${{ secrets.INFURA_SEPOLIA_HTTP }}
3131
INFURA_MAINNET_HTTP: ${{ secrets.INFURA_MAINNET_HTTP }}
3232
MODE: ${{ matrix.mode }}
33-
TEST_ACCOUNT_ADDRESS: ${{ fromJSON('{"sepolia":"0x0000000000000000000000000000000000000000","mainnet":"0x0000000000000000000000000000000000000000"}')[matrix.network] }}
33+
TEST_ACCOUNT_ADDRESS: ${{ fromJSON('{"sepolia":"0xa127C5E6a7E3600Ac34A9a9928E52521677e7211","mainnet":"0x98AF911164f9d4E0f5983ed114949c3Bfe3ADc9d"}')[matrix.network] }}
3434
ALLOWED_SEND_TRANSACTION: ${{ secrets.E2E_TESTS_ALLOWED_SEND_TRANSACTION }}
3535
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
3636
strategy:

CHANGELOG.md

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,37 +2289,50 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
22892289

22902290
- Fix unnecessary array copy when pack encoding (#6553)
22912291

2292-
## [Unreleased]
2292+
## [4.4.0]
22932293

22942294
### Added
22952295

2296-
#### web3
2297-
2298-
22992296
#### web3-eth
23002297

23012298
- Catch `TransactionPollingTimeoutError` was added to send transaction events (#6623)
23022299

2303-
#### web3-utils
2304-
2305-
- `SocketProvider` now contains public function `getPendingRequestQueueSize`, `getSentRequestsQueueSize` and `clearQueues` (#6479)
2306-
- Added `safeDisconnect` as a `SocketProvider` method to disconnect only when request queue size and send request queue size is 0 (#6479)
2307-
- Add `isContractInitOptions` method (#6555)
2308-
23092300
### Changed
23102301

2311-
#### web3-core
2302+
#### web3-eth-abi
23122303

2304+
- Use `AbiError` instead of `Error` for errors at web3-eth-abi (#6641).
23132305

23142306
#### web3-eth-contract
23152307

2308+
- Allow the `deploy` function to accept parameters, even when no ABI was provided to the `Contract`(#6635)
2309+
2310+
#### web3
2311+
2312+
- Dependencies updated
23162313

23172314
### Fixed
23182315

2319-
#### web3-rpc-methods
2316+
#### web3-eth-abi
23202317

2321-
- Fix web3-types import #6590 (#6589)
2318+
- Fixed an issue with detecting Uint8Array (#6486)
2319+
2320+
#### web3-eth-accounts
2321+
2322+
- Send Transaction config used to be ignored if the passed `common` did not have a `copy()` and the `chainId` was not provided (#6663)
2323+
- Fixed an issue with detecting Uint8Array (#6486)
2324+
2325+
#### web3-eth-contract
2326+
2327+
- Fix and error that happen when trying to get past events by calling `contract.getPastEvents` or `contract.events.allEvents()`, if there is no matching events. (#6647)
2328+
- Fixed: The Contract is not using the context wallet passed if context was passed at constructor. (#6661)
23222329

23232330
#### web3-utils
23242331

2325-
- Fix unnecessary array copy when pack encoding (#6553)
2332+
- Fixed an issue with detecting Uint8Array (#6486)
2333+
2334+
#### web3-validator
2335+
2336+
- Fixed an issue with detecting Uint8Array (#6486)
2337+
2338+
## [Unreleased]

docs/docusaurus.config.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const packages = [
4242
/** @type {import('@docusaurus/types').Config} */
4343
const config = {
4444
title: 'web3.js',
45-
tagline: 'The ultimate JavaScript library for Ethereum',
45+
tagline: 'Powerful TypeScript libraries for Ethereum interaction and utility functions',
4646
url: 'https://docs.web3js.org',
4747
baseUrl: '/',
4848
onBrokenLinks: 'throw',
@@ -179,6 +179,20 @@ const config = {
179179
*/
180180
playgroundPosition: 'bottom',
181181
},
182+
image:"https://pbs.twimg.com/profile_images/1746099108937363456/duG_Pqem_400x400.jpg",
183+
metadata: [
184+
{ name: 'keywords', content: 'web3.js, web3, web3js, ethereum, ethereum json rpc, blockchain development, smart contracts, dapps, dApp development' },
185+
{ name: 'description', content: 'Collection of comprehensive TypeScript libraries for Interaction with the Ethereum JSON RPC API and utility functions.' },
186+
{ name: 'og:title', content: 'Web3.js Documentation' },
187+
{ name: 'og:description', content: 'Collection of comprehensive TypeScript libraries for Interaction with the Ethereum JSON RPC API and utility functions.' },
188+
{ name: 'og:type', content: 'website' },
189+
{ name: 'og:url', content: 'https://docs.web3js.org' },
190+
{ name: 'og:image', content: 'https://pbs.twimg.com/profile_images/1746099108937363456/duG_Pqem_400x400.jpg' },
191+
{ name: 'twitter:card', content: 'summary_large_image' },
192+
{ name: 'twitter:title', content: 'Web3.js Documentation' },
193+
{ name: 'twitter:description', content: 'Official documentation for web3.js, the Type/JavaScript library for interacting with the Ethereum blockchain.' },
194+
{ name: 'twitter:image', content: 'https://pbs.twimg.com/profile_images/1746099108937363456/duG_Pqem_400x400.jpg' },
195+
],
182196
}),
183197
};
184198

packages/web3-eth-abi/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Documentation:
154154

155155
- Bug fix of `ERR_UNSUPPORTED_DIR_IMPORT` in ABI (#6535)
156156

157-
## [Unreleased]
157+
## [4.2.0]
158158

159159
### Changed
160160

@@ -163,3 +163,5 @@ Documentation:
163163
### Fixed
164164

165165
- Fixed an issue with detecting Uint8Array (#6486)
166+
167+
## [Unreleased]

packages/web3-eth-abi/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-abi",
3-
"version": "4.1.4",
3+
"version": "4.2.0",
44
"description": "Web3 module encode and decode EVM in/output.",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -43,10 +43,10 @@
4343
},
4444
"dependencies": {
4545
"abitype": "0.7.1",
46-
"web3-errors": "^1.1.3",
47-
"web3-types": "^1.3.0",
48-
"web3-utils": "^4.0.7",
49-
"web3-validator": "^2.0.3"
46+
"web3-errors": "^1.1.4",
47+
"web3-types": "^1.3.1",
48+
"web3-utils": "^4.1.1",
49+
"web3-validator": "^2.0.4"
5050
},
5151
"devDependencies": {
5252
"@humeris/espresso-shot": "^4.0.0",

packages/web3-eth-accounts/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,12 @@ Documentation:
149149

150150
- Fixed `recover` function, `v` will be normalized to value 0,1 (#6344)
151151

152-
## [Unreleased]
152+
## [4.1.1]
153153

154154
### Fixed
155155

156156
- Send Transaction config used to be ignored if the passed `common` did not have a `copy()` and the `chainId` was not provided (#6663)
157157
- Fixed an issue with detecting Uint8Array (#6486)
158+
159+
## [Unreleased]
160+

packages/web3-eth-accounts/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-accounts",
3-
"version": "4.1.0",
3+
"version": "4.1.1",
44
"description": "Package for managing Ethereum accounts and signing",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -61,9 +61,9 @@
6161
"@ethereumjs/rlp": "^4.0.1",
6262
"crc-32": "^1.2.2",
6363
"ethereum-cryptography": "^2.0.0",
64-
"web3-errors": "^1.1.3",
65-
"web3-types": "^1.3.0",
66-
"web3-utils": "^4.0.7",
67-
"web3-validator": "^2.0.3"
64+
"web3-errors": "^1.1.4",
65+
"web3-types": "^1.3.1",
66+
"web3-utils": "^4.1.1",
67+
"web3-validator": "^2.0.4"
6868
}
6969
}

packages/web3-eth-contract/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ Documentation:
353353

354354
- By default, contracts will fill `data` instead of `input` within method calls (#6622)
355355

356-
## [Unreleased]
356+
## [4.2.0]
357357

358358
### Changed
359359

@@ -363,3 +363,5 @@ Documentation:
363363

364364
- Fix and error that happen when trying to get past events by calling `contract.getPastEvents` or `contract.events.allEvents()`, if there is no matching events. (#6647)
365365
- Fixed: The Contract is not using the context wallet passed if context was passed at constructor. (#6661)
366+
367+
## [Unreleased]

packages/web3-eth-contract/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-eth-contract",
3-
"version": "4.1.4",
3+
"version": "4.2.0",
44
"description": "Web3 module to interact with Ethereum smart contracts.",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -47,11 +47,11 @@
4747
"dependencies": {
4848
"web3-core": "^4.3.2",
4949
"web3-errors": "^1.1.4",
50-
"web3-eth": "^4.3.1",
51-
"web3-eth-abi": "^4.1.4",
50+
"web3-eth": "^4.4.0",
51+
"web3-eth-abi": "^4.2.0",
5252
"web3-types": "^1.3.1",
53-
"web3-utils": "^4.1.0",
54-
"web3-validator": "^2.0.3"
53+
"web3-utils": "^4.1.1",
54+
"web3-validator": "^2.0.4"
5555
},
5656
"devDependencies": {
5757
"@humeris/espresso-shot": "^4.0.0",
@@ -67,7 +67,7 @@
6767
"prettier": "^2.7.1",
6868
"ts-jest": "^29.1.1",
6969
"typescript": "^4.7.4",
70-
"web3-eth-accounts": "^4.1.0",
70+
"web3-eth-accounts": "^4.1.1",
7171
"web3-providers-ws": "^4.0.7"
7272
}
7373
}

0 commit comments

Comments
 (0)