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

Commit e28bba7

Browse files
Merge branch '4.x' into 6451
2 parents 715cfe2 + 42502b6 commit e28bba7

43 files changed

Lines changed: 1286 additions & 126 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
days-before-stale: 60
1616
days-before-close: 14
1717
operations-per-run: 100
18-
exempt-pr-labels: 'work-in-progress','4.x'
19-
exempt-issue-labels: 'work-in-progress','4.x'
18+
exempt-pr-labels: 'work-in-progress,4.x'
19+
exempt-issue-labels: 'work-in-progress,4.x'

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,6 +2098,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
20982098
#### web3-eth
20992099

21002100
- Ensure provider.supportsSubscriptions exists before watching by subscription (#6440)
2101+
- Fixed `withdrawalsSchema.address` property type `bytes32` to `address` (#6470)
21012102

21022103
### Changed
21032104

docs/docs/guides/web3_providers_guide/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ Follow these steps to connect to the Ethereum network with MetaMask and web3.js,
471471
</pre
472472
>
473473
474-
<script src="https://cdnjs.cloudflare.com/ajax/libs/web3/4.0.1-alpha.5/web3.min.js"></script>
474+
<script src="https://cdn.jsdelivr.net/npm/web3/dist/web3.min.js"></script>
475475
<script>
476476
window.addEventListener('load', async function () {
477477
// Check if web3 is available

docs/docs/guides/web3_providers_guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ As stated above, the injected provider should be in compliance with [EIP-1193](h
101101
The web3.js 4.x Provider specifications are defined in [web3 base provider](https://github.com/ChainSafe/web3.js/blob/4.x/packages/web3-types/src/web3_base_provider.ts) for Injected Providers.
102102

103103
```html
104-
<script src="https://cdn.jsdelivr.net/npm/web3@4.0.1-rc.1/dist/web3.min.js"></script>
104+
<script src="https://cdn.jsdelivr.net/npm/web3/dist/web3.min.js"></script>
105105
<script>
106106
window.addEventListener('load', function () {
107107
// Check if web3 is available

docs/docs/guides/web3_upgrade_guide/1.x/web3_eth_migration_guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ await web3.eth.getFeeHistory('0x1', 'latest', []);
176176

177177
#### sending
178178

179-
- In 1.x, the event listener would receive a `payload` object as an argument. In 4.x, just the sent transaction object is recieved
179+
- In 1.x, the event listener would receive a `payload` object as an argument. In 4.x, just the sent transaction object is received
180180

181181
```typescript
182182
// in 1.x
@@ -211,7 +211,7 @@ web3.eth.sendTransaction({ ... }).on('sending', (sendTransactionObject) => { ...
211211

212212
#### sent
213213

214-
- In 1.x, the event listener would receive a `payload` object as an argument. In 4.x just the sent transaction object is recieved
214+
- In 1.x, the event listener would receive a `payload` object as an argument. In 4.x just the sent transaction object is received
215215

216216
```typescript
217217
// in 1.x

docs/src/theme/SearchBar/algolia.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
.algolia-docsearch-suggestion--highlight {
1111
color: #3a33d1;
1212
}
13-
/* Highligted search terms in the main category headers */
13+
/* Highlighted search terms in the main category headers */
1414
.algolia-docsearch-suggestion--category-header
1515
.algolia-docsearch-suggestion--highlight {
1616
background-color: #4d47d5;

docs/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6222,9 +6222,9 @@ postcss-zindex@^5.1.0:
62226222
integrity sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==
62236223

62246224
postcss@^8.3.11, postcss@^8.4.14, postcss@^8.4.17, postcss@^8.4.21:
6225-
version "8.4.24"
6226-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.24.tgz#f714dba9b2284be3cc07dbd2fc57ee4dc972d2df"
6227-
integrity sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==
6225+
version "8.4.31"
6226+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d"
6227+
integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
62286228
dependencies:
62296229
nanoid "^3.3.6"
62306230
picocolors "^1.0.0"

packages/web3-core/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,8 @@ Documentation:
185185

186186
- defaultTransactionType is now type 0x2 instead of 0x0 (#6282)
187187
- Allows formatter to parse large base fee (#6456)
188+
- The package now uses `EventEmitter` from `web3-utils` that works in node envrioment as well as in the browser. (#6398)
189+
190+
### Fixed
191+
192+
- Fix the issue: "Uncaught TypeError: Class extends value undefined is not a constructor or null #6371". (#6398)

packages/web3-core/src/web3_event_emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You should have received a copy of the GNU Lesser General Public License
1515
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
import { EventEmitter } from 'events';
18+
import { EventEmitter } from 'web3-utils';
1919

2020
export type Web3EventMap = Record<string, unknown>;
2121
export type Web3EventKey<T extends Web3EventMap> = string & keyof T;

packages/web3-eth-abi/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,8 @@ Documentation:
142142

143143
- Dependencies updated
144144

145-
## [Unreleased]
145+
## [Unreleased]
146+
147+
### Fixed
148+
149+
- Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #6187" (#6506)

0 commit comments

Comments
 (0)