Skip to content

Commit fb247ec

Browse files
authored
15.2.0 (#360)
See updates to changelog.
1 parent 76f07aa commit fb247ec

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

CHANGELOG.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [15.2.0]
10+
### Added
11+
- Add a way to pass an RPC service to `createFetchMiddleware` ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/357))
12+
- The new, recommended function signature is now `createFetchMiddleware({ rpcService: AbstractRpcService; options?: { originHttpHeaderKey?: string; } })`, where `AbstractRpcService` matches the same interface from `@metamask/network-controller`
13+
- This allows us to support automatic failover to a secondary node when the network goes down
14+
815
### Changed
916
- Bump `@metamask/utils` to `^11.1.0` ([#358](https://github.com/MetaMask/eth-json-rpc-middleware/pull/358))
10-
- Deprecate passing an RPC endpoint to `createFetchMiddleware`, and add a way to pass an RPC service instead ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/357))
11-
- The new, recommended method signature is now `createFetchMiddleware({ rpcService: AbstractRpcService; options?: { originHttpHeaderKey?: string; } })`, where `AbstractRpcService` matches the same interface from `@metamask/network-controller`
12-
- This allows us to support automatic failover to a secondary node when the network goes down
13-
- The existing method signature `createFetchMiddleware({ btoa: typeof btoa; fetch: typeof fetch; rpcUrl: string; originHttpHeaderKey?: string; })` will be removed in a future major version
17+
18+
### Deprecated
19+
- Deprecate passing an RPC endpoint to `createFetchMiddleware` ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/357))
20+
- See recommended function signature above
21+
- The existing signature `createFetchMiddleware({ btoa: typeof btoa; fetch: typeof fetch; rpcUrl: string; originHttpHeaderKey?: string; })` will be removed in a future major version
22+
- Deprecate `PayloadWithOrigin` type ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/357))
23+
- There is no replacement for this type; it will be removed in a future major version.
1424

1525
## [15.1.2]
1626
### Changed
@@ -249,7 +259,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
249259
- `[email protected]` ([#53](https://github.com/MetaMask/eth-json-rpc-middleware/pull/53))
250260
- `[email protected]` ([#55](https://github.com/MetaMask/eth-json-rpc-middleware/pull/55))
251261

252-
[Unreleased]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.1.2...HEAD
262+
[Unreleased]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.2.0...HEAD
263+
[15.2.0]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.1.2...v15.2.0
253264
[15.1.2]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.1.1...v15.1.2
254265
[15.1.1]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.1.0...v15.1.1
255266
[15.1.0]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.0.1...v15.1.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/eth-json-rpc-middleware",
3-
"version": "15.1.2",
3+
"version": "15.2.0",
44
"description": "Ethereum-related json-rpc-engine middleware.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)