Skip to content

Commit

Permalink
5.1.1 (#92)
Browse files Browse the repository at this point in the history
* 5.1.1

* Update CHANGELOG.md

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Maarten Zuidhoorn <[email protected]>
  • Loading branch information
3 people authored Apr 19, 2023
1 parent e06f8d8 commit af3ef43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [5.1.1]
### Fixed
- Allow passing unknown values as cause ([#91](https://github.com/MetaMask/rpc-errors/pull/91))
- Prevously, only `Error` instances were allowed, but any value can be thrown as error

## [5.1.0]
### Added
- Allow passing a cause to predefined error functions ([#83](https://github.com/MetaMask/rpc-errors/pull/83))
Expand Down Expand Up @@ -109,7 +114,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `serializeError`
- 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

[Unreleased]: https://github.com/MetaMask/rpc-errors/compare/v5.1.0...HEAD
[Unreleased]: https://github.com/MetaMask/rpc-errors/compare/v5.1.1...HEAD
[5.1.1]: https://github.com/MetaMask/rpc-errors/compare/v5.1.0...v5.1.1
[5.1.0]: https://github.com/MetaMask/rpc-errors/compare/v5.0.0...v5.1.0
[5.0.0]: https://github.com/MetaMask/rpc-errors/compare/v4.0.3...v5.0.0
[4.0.3]: https://github.com/MetaMask/rpc-errors/compare/v4.0.2...v4.0.3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/rpc-errors",
"version": "5.1.0",
"version": "5.1.1",
"description": "Ethereum RPC and Provider errors.",
"keywords": [
"rpc",
Expand Down

0 comments on commit af3ef43

Please sign in to comment.