Skip to content

Commit 7471a50

Browse files
github-actions[bot]github-actionsFrederikBolding
authored
5.0.0 (#81)
* 5.0.0 * Update changelog --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
1 parent 8a4da96 commit 7471a50

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [5.0.0]
10+
### Changed
11+
- **BREAKING:** Bump minimum version to Node 16 ([#68](https://github.com/MetaMask/rpc-errors/pull/68))
12+
- **BREAKING:** Rewrite error serialization ([#61](https://github.com/MetaMask/rpc-errors/pull/61))
13+
- Allows errors that conform to the `JsonRpcError` type
14+
- If errors don't conform to the type, the error will be wrapped in an internal error and the original error will be available as `data.cause`
15+
- **BREAKING:** Rename exports to be more generic ([#75](https://github.com/MetaMask/rpc-errors/pull/75))
16+
- JSON-RPC errors and Ethereum EIP-1474 errors are namespaced under "rpcErrors"
17+
- Ethereum EIP-1193 Provider errors are namespaced under "providerErrors"
18+
- **BREAKING:** Target `ES2020` ([#77](https://github.com/MetaMask/rpc-errors/pull/77))
19+
- Rename package to `@metamask/rpc-errors` ([#67](https://github.com/MetaMask/rpc-errors/pull/67))
20+
921
## [4.0.3] - 2021-03-10
1022
### Fixed
1123
- Correctly type `ethErrors` getter function argument objects as optional ([#36](https://github.com/MetaMask/eth-rpc-errors/pull/36))
@@ -91,7 +103,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
91103
- `serializeError`
92104
- If the object passed to the function has a `.message` property, it will preferred over the `.message` property of the fallback error when creating the returned serialized error object
93105

94-
[Unreleased]: https://github.com/MetaMask/rpc-errors/compare/v4.0.3...HEAD
106+
[Unreleased]: https://github.com/MetaMask/rpc-errors/compare/v5.0.0...HEAD
107+
[5.0.0]: https://github.com/MetaMask/rpc-errors/compare/v4.0.3...v5.0.0
95108
[4.0.3]: https://github.com/MetaMask/rpc-errors/compare/v4.0.2...v4.0.3
96109
[4.0.2]: https://github.com/MetaMask/rpc-errors/compare/v4.0.1...v4.0.2
97110
[4.0.1]: https://github.com/MetaMask/rpc-errors/compare/v4.0.0...v4.0.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/rpc-errors",
3-
"version": "4.0.3",
3+
"version": "5.0.0",
44
"description": "Ethereum RPC and Provider errors.",
55
"keywords": [
66
"rpc",

0 commit comments

Comments
 (0)