diff --git a/CHANGELOG.md b/CHANGELOG.md index bc1c152..1759cd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [16.0.0] +### Added +- Support updated EIP-5792 specification ([#363](https://github.com/MetaMask/eth-json-rpc-middleware/pull/363)) + - Add optional `id` to `SendCallsParams`. + - Add optional `capabilities` to each call in `SendCallsParams`. + - Add `optional` property to both top-level and call-level capabilities. + - Add `SendCallsResult` type. + - Add `id`, `version`, and optional `capabilities` to `GetCallsStatusResult`. + - Add `GetCallsStatusCode` enum. + - Add `GetCallsStatusHook` type. + - Add optional `chainIds` argument to `GetCapabilitiesParams`. + +### Changed +- **BREAKING:** Support updated EIP-5792 specification ([#363](https://github.com/MetaMask/eth-json-rpc-middleware/pull/363)) + - Return `SendCallsResult` from `wallet_sendCalls` instead of `string`. + - Change `GetCallsStatusParams` to contain `Hex` instead of `string`. + - Change `status` in `GetCallsStatusResult` to `number` instead of `string`. + - Replace `GetTransactionReceiptsByBatchIdHook` with `GetCallsStatusHook`. + +### Removed +- **BREAKING:** Support updated EIP-5792 specification ([#363](https://github.com/MetaMask/eth-json-rpc-middleware/pull/363)) + - Remove `GetCallsStatusReceipt` type. + - Remove `GetTransactionReceiptsByBatchIdHook` type. + ## [15.3.0] ### Added - Support EIP-5792 ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/359)) @@ -282,7 +306,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `json-rpc-engine@5.3.0` ([#53](https://github.com/MetaMask/eth-json-rpc-middleware/pull/53)) - `eth-rpc-errors@3.0.0` ([#55](https://github.com/MetaMask/eth-json-rpc-middleware/pull/55)) -[Unreleased]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.3.0...HEAD +[Unreleased]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v16.0.0...HEAD +[16.0.0]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.3.0...v16.0.0 [15.3.0]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.2.0...v15.3.0 [15.2.0]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.1.2...v15.2.0 [15.1.2]: https://github.com/MetaMask/eth-json-rpc-middleware/compare/v15.1.1...v15.1.2 diff --git a/package.json b/package.json index 605e2f5..27712a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/eth-json-rpc-middleware", - "version": "15.3.0", + "version": "16.0.0", "description": "Ethereum-related json-rpc-engine middleware.", "repository": { "type": "git", diff --git a/yarn.lock b/yarn.lock index 956b953..a5546d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -993,7 +993,27 @@ __metadata: languageName: node linkType: hard -"@metamask/eth-json-rpc-middleware@^15.0.1, @metamask/eth-json-rpc-middleware@workspace:.": +"@metamask/eth-json-rpc-middleware@npm:^15.0.1": + version: 15.3.0 + resolution: "@metamask/eth-json-rpc-middleware@npm:15.3.0" + dependencies: + "@metamask/eth-block-tracker": ^11.0.4 + "@metamask/eth-json-rpc-provider": ^4.1.7 + "@metamask/eth-sig-util": ^8.1.2 + "@metamask/json-rpc-engine": ^10.0.2 + "@metamask/rpc-errors": ^7.0.2 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^11.1.0 + "@types/bn.js": ^5.1.5 + bn.js: ^5.2.1 + klona: ^2.0.6 + pify: ^5.0.0 + safe-stable-stringify: ^2.4.3 + checksum: 6d6946daf799d898d66133104c10718966e96c3edc59b71c4910fd29587a0aa800dcaa0ba12d404418f7508c5559593d218b5a5f9245f51dd02d229dd913b57f + languageName: node + linkType: hard + +"@metamask/eth-json-rpc-middleware@workspace:.": version: 0.0.0-use.local resolution: "@metamask/eth-json-rpc-middleware@workspace:." dependencies: