You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 16, 2025. It is now read-only.
This PR does the following:
- bumps `action-create-release-pr` to `v3` (May fix
https://github.com/MetaMask/create-release-branch/actions/runs/14524263811)
- formats `CHANGELOG.md` using Prettier and updates the pipelines to use
the correct parameters for changelog validation: both non-RC `yarn
auto-changelog validate --prettier` and RC `yarn auto-changelog validate
--rc --prettier` branches.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,138 +1,187 @@
1
1
# Changelog
2
+
2
3
All notable changes to this project will be documented in this file.
3
4
4
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7
7
8
## [Unreleased]
9
+
8
10
### Fixed
11
+
9
12
- Fixed hanging `getLatestBlock()` promises when block tracker is stopped before request completion ([#320](https://github.com/MetaMask/eth-block-tracker/pull/320))
10
13
- Pending `getLatestBlock()` requests are now properly rejected with "Block tracker destroyed" error when the tracker is stopped
11
14
12
15
## [12.0.0]
16
+
13
17
### Changed
18
+
14
19
- Errors that occur while polling are no longer wrapped ([#310](https://github.com/MetaMask/eth-block-tracker/pull/310))
- Although we continue to maintain this, we have not used it internally for quite some time. In general we have found a polling-based approval to be reliable than a subscription-based approach. We recommend using `PollingBlockTracker` instead.
19
25
20
26
### Fixed
27
+
21
28
- Fix `PollingBlockTracker.getLatestBlock` so that it throws an error encountered while making the request instead of hanging, regardless of whether the request occurs inside or outside of a polling loop ([#313](https://github.com/MetaMask/eth-block-tracker/pull/313))
22
29
- Fix `PollingBlockTracker.getLatestBlock` so that if invoked while a previous invocation is pending, it will throw if that invocation also throws ([#313](https://github.com/MetaMask/eth-block-tracker/pull/313))
23
30
24
31
## [11.0.4]
32
+
25
33
### Changed
34
+
26
35
- Bump `@metamask/utils` from `^9.1.0` to `^11.0.1` ([#297](https://github.com/MetaMask/eth-block-tracker/pull/297))
27
36
28
37
## [11.0.3]
38
+
29
39
### Fixed
40
+
30
41
- Avoid risk of infinite retry loops when fetching new blocks ([#284](https://github.com/MetaMask/eth-block-tracker/pull/284))
31
42
- When the provider returns an error and `PollingBlockTracker` or `SubscribeBlockTracker` is destroyed, the promise returned by the `getLatestBlock` method will be rejected.
32
43
33
44
## [11.0.2]
45
+
34
46
### Fixed
47
+
35
48
- Bump `@metamask/eth-json-rpc-provider` from `^4.1.1` to `^4.1.5` ([#273](https://github.com/MetaMask/eth-block-tracker/pull/273))
36
49
37
50
## [11.0.1]
51
+
38
52
### Changed
53
+
39
54
- Bump `@metamask/eth-json-rpc-provider` from `^4.1.0` to `^4.1.1` ([#261](https://github.com/MetaMask/eth-block-tracker/pull/261))
40
55
- Bump `@metamask/safe-event-emitter` from `^3.0.0` to `^3.1.1` ([#261](https://github.com/MetaMask/eth-block-tracker/pull/261))
41
56
- Bump `@metamask/utils` from `^8.1.0` to `^9.1.0` ([#261](https://github.com/MetaMask/eth-block-tracker/pull/261))
42
57
43
58
## [11.0.0]
59
+
44
60
### Changed
61
+
45
62
-**BREAKING**: Adapt to EIP-1193 provider changes by using `request` method of provider instead of `sendAsync` ([#252](https://github.com/MetaMask/eth-block-tracker/pull/252))
46
63
- This change included in `10.1.0` was mistakenly categorised as a non-breaking change.
47
64
- This requires provider object to have the `request` method. You need to upgrade to minimum `4.1.0` of `@metamask/eth-json-rpc-provider` so that the `request` method is available.
48
65
49
66
## [10.1.0][DEPRECATED]
67
+
50
68
### Changed
69
+
51
70
- Adapt to EIP-1193 provider changes ([#252](https://github.com/MetaMask/eth-block-tracker/pull/252))
52
71
- Deprecated `sendAsync` method is replaced with `request` method
53
72
- Bump `@metamask/eth-json-rpc-provider` from `^4.0.0` to `^4.1.0` ([#252](https://github.com/MetaMask/eth-block-tracker/pull/252))
54
73
55
74
## [10.0.0]
75
+
56
76
### Changed
77
+
57
78
- BREAKING: Drop support for Node.js v16; add support for Node.js v20, v22 ([#245](https://github.com/MetaMask/eth-block-tracker/pull/245))
58
79
- Update `@metamask/eth-json-rpc-provider` from `^3.0.2` to `^4.0.0` ([#247](https://github.com/MetaMask/eth-block-tracker/pull/247))
59
80
60
81
## [9.0.3]
82
+
61
83
### Fixed
84
+
62
85
- Update dependency `@metamask/eth-json-rpc-engine` from `^7.1.1` to `^8.0.2` ([#235](https://github.com/MetaMask/eth-block-tracker/pull/235))
63
86
- Update dependency `@metamask/eth-json-rpc-provider` from `^2.3.1` to `^3.0.2` ([#235](https://github.com/MetaMask/eth-block-tracker/pull/235))
64
87
65
88
## [9.0.2]
89
+
66
90
### Fixed
91
+
67
92
- Put back missing empty `params` to `eth_blockNumber` call removed in 9.0.1 ([#198](https://github.com/MetaMask/eth-block-tracker/pull/198))
- Bump `@metamask/eth-json-rpc-provider` from `^2.1.0` to `^2.3.1` ([#198](https://github.com/MetaMask/eth-block-tracker/pull/198)) ([#217](https://github.com/MetaMask/eth-block-tracker/pull/217))
73
100
74
101
## [9.0.0]
102
+
75
103
### Changed
104
+
76
105
- Rename package from `eth-block-tracker` to `@metamask/eth-block-tracker` ([#183](https://github.com/MetaMask/eth-block-tracker/pull/183))
77
106
78
107
## [8.1.0]
108
+
79
109
### Changed
110
+
80
111
- Typescript: Add `checkForLatestBlock` function to `BlockTracker` interface ([#184](https://github.com/MetaMask/eth-block-tracker/pull/184))
81
112
82
113
## [8.0.0]
114
+
83
115
### Changed
116
+
84
117
- Bump @metamask/utils from ^5.0.2 to ^8.1.0 ([#178](https://github.com/MetaMask/eth-block-tracker/pull/178))
85
118
-**BREAKING**: Bump @metamask/eth-json-rpc-provider from ^1.0.0 to ^2.1.0 ([#174](https://github.com/MetaMask/eth-block-tracker/pull/174))
86
119
-**BREAKING**: Increase minimum Node.js version to 16 ([#173](https://github.com/MetaMask/eth-block-tracker/pull/173))
- Bump @metamask/safe-event-emitter from 2.0.0 to 3.0.0 ([#143](https://github.com/MetaMask/eth-block-tracker/pull/143))
109
149
110
150
## [7.0.0]
151
+
111
152
### Changed
153
+
112
154
-**BREAKING:** The type of the `provider` option for `PollingBlockTracker` and `SubscribeBlockTracker` has changed ([#130](https://github.com/MetaMask/eth-block-tracker/pull/130))
113
155
- The `provider` option must be compatible with the `SafeEventEmitterProvider` type from `@metamask/eth-json-rpc-middleware`.
114
156
- The new provider type should be mostly equivalent, except that it's now expected to have a `send` method. We don't use that `send` method in this package though.
115
157
116
158
### Removed
159
+
117
160
-**BREAKING:** Remove the `Provider` exported type ([#130](https://github.com/MetaMask/eth-block-tracker/pull/130))
118
161
- We now use `@metamask/eth-json-rpc-provider` for this instead, so there was no need to re-export it.
119
162
120
163
## [6.1.0]
164
+
121
165
### Added
166
+
122
167
- Add back Provider type that was accidentally removed in 6.0.0 ([#117](https://github.com/MetaMask/eth-block-tracker/pull/117))
123
168
124
169
### Fixed
170
+
125
171
- Align Provider type with `eth-json-rpc-middleware` to prevent typecasting ([#117](https://github.com/MetaMask/eth-block-tracker/pull/117))
- You will not be able to see log messages by default, but you can turn them on for this library by setting the `DEBUG` environment variable to `metamask:eth-block-tracker:*` or `metamask:*`.
131
179
- Add `destroy` method to block tracker classes ([#106](https://github.com/MetaMask/eth-block-tracker/pull/106))
132
180
- Update PollingBlockTracker to support new `blockResetDuration` option ([#103](https://github.com/MetaMask/eth-block-tracker/pull/103))
133
181
- Expose types that represent options to PollingBlockTracker and SubscribeBlockTracker constructors ([#103](https://github.com/MetaMask/eth-block-tracker/pull/103))
-**BREAKING:** Make BaseBlockTracker abstract ([#103](https://github.com/MetaMask/eth-block-tracker/pull/103))
138
187
- If you are using this class directly, you must only use PollingBlockTracker or SubscribeBlockTracker.
@@ -146,45 +195,59 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
146
195
- This change was made because OpenEthereum does not support this parameter. While we've done our best to confirm that this will not be a breaking change for other Ethereum implementations, you will want to confirm no breakages for yours.
147
196
148
197
### Security
198
+
149
199
- Add `@lavamoat/allow-scripts` to ensure that install scripts are opt-in for dependencies ([#97](https://github.com/MetaMask/eth-block-tracker/pull/97))
150
200
151
201
## [5.0.1] - 2021-03-25
202
+
152
203
### Fixed
204
+
153
205
- Add missing `types` field to `package.json` ([#75](https://github.com/MetaMask/eth-block-tracker/pull/75))
- Remove unused production dependencies ([#60](https://github.com/MetaMask/eth-block-tracker/pull/60), [#68](https://github.com/MetaMask/eth-block-tracker/pull/68))
164
219
165
220
## [4.4.3] - 2019-08-30
221
+
166
222
### Added
223
+
167
224
- Add SubscribeBlockTracker
168
225
169
226
### Changed
227
+
170
228
- Change events so that they now only return the block number (internal polling is done via `eth_blockNumber`)
171
229
- Add `retryTimeout` and `keepEventLoopActive` to constructor
172
230
- Update block trackers to inherit from `safe-event-emitter` rather than EventEmitter
173
231
174
232
### Removed
233
+
175
234
- Remove `block` event
176
235
- Please use `latest` or `sync`.
177
236
178
237
## [4.0.0] - 2018-04-26
238
+
179
239
### Added
240
+
180
241
- Add isRunning method
181
242
- Add `error` event
182
243
183
244
### Changed
245
+
184
246
- Significantly rewrite `eth-block-tracker` (primarily due to optimizing network IO)
185
247
- Rename `awaitCurrentBlock` to `getLatestBlock`
186
248
187
249
### Removed
250
+
188
251
- Remove `stop`/`start` methods from BlockTrackers
189
252
- BlockTrackers now automatically start and stop based on listener count for the `latest` and `sync` events. You can force a stop by calling the `EventEmitter` method `removeAllListeners`.
190
253
- Remove tx body from block
@@ -193,7 +256,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
193
256
- Remove test/util/testBlockMiddleware
194
257
195
258
## [3.0.0] - 2018-04-16
259
+
196
260
### Changed
261
+
197
262
- Update published version so main module now exports unprocessed source
198
263
- Module includes dist:
199
264
- Bundle: `dist/EthBlockTracker.js`
@@ -203,16 +268,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
203
268
- It no longer provides a callback to event handlers.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ The project follows the same release process as the other libraries in the MetaM
123
123
- Generally any changes that don't affect consumers of the package (e.g. lockfile changes or development environment changes) are omitted. Exceptions may be made for changes that might be of interest despite not having an effect upon the published package (e.g. major test improvements, security improvements, improved documentation, etc.).
124
124
- Try to explain each change in terms that users of the package would understand (e.g. avoid referencing internal variables/concepts).
125
125
- Consolidate related changes into one change entry if it makes it easier to explain.
126
-
- Run `yarn auto-changelog validate --rc` to check that the changelog is correctly formatted.
126
+
- Run `yarn auto-changelog validate --rc --prettier` to check that the changelog is correctly formatted.
0 commit comments