Skip to content

Commit 1d1852d

Browse files
github-actions[bot]github-actionsMrtenz
authored
5.1.0 (#90)
* 5.1.0 * Update CHANGELOG.md --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
1 parent a388854 commit 1d1852d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [5.1.0]
10+
### Added
11+
- Allow passing a cause to predefined error functions ([#83](https://github.com/MetaMask/rpc-errors/pull/83))
12+
- This allows passing an `Error` instance as cause, by using `{ data: { cause: /* some error */ } }`
13+
- The error will be properly serialised when calling `serialize`
14+
915
## [5.0.0]
1016
### Changed
1117
- **BREAKING:** Bump minimum version to Node 16 ([#68](https://github.com/MetaMask/rpc-errors/pull/68))
@@ -103,7 +109,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
103109
- `serializeError`
104110
- 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
105111

106-
[Unreleased]: https://github.com/MetaMask/rpc-errors/compare/v5.0.0...HEAD
112+
[Unreleased]: https://github.com/MetaMask/rpc-errors/compare/v5.1.0...HEAD
113+
[5.1.0]: https://github.com/MetaMask/rpc-errors/compare/v5.0.0...v5.1.0
107114
[5.0.0]: https://github.com/MetaMask/rpc-errors/compare/v4.0.3...v5.0.0
108115
[4.0.3]: https://github.com/MetaMask/rpc-errors/compare/v4.0.2...v4.0.3
109116
[4.0.2]: https://github.com/MetaMask/rpc-errors/compare/v4.0.1...v4.0.2

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": "5.0.0",
3+
"version": "5.1.0",
44
"description": "Ethereum RPC and Provider errors.",
55
"keywords": [
66
"rpc",

0 commit comments

Comments
 (0)