Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- **BREAKING**: Drop support for Node.js versions 18 and 20 ([#422](https://github.com/MetaMask/eth-sig-util/pull/422))
- The minimum supported Node.js version is now 22.

## [9.0.0]
### Changed
- **BREAKING**: Reject ambiguous `bool` values in `signTypedData` (all versions) instead of coercing them ([#419](https://github.com/MetaMask/eth-sig-util/pull/419))
- `bool` fields now only accept the boolean values `true`/`false` or the exact strings `'true'`/`'false'`. Any other value (e.g. `0`, `1`, `'0'`, `''`, or an arbitrary string) now throws instead of being coerced via `Boolean(value)`.
- This fixes a signing footgun where a `bool` field supplied as the string `'false'` was encoded and signed as `true` (every non-empty string is truthy in JavaScript), while interfaces displaying the raw value showed `'false'`.
Expand Down Expand Up @@ -185,8 +182,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix package metadata ([#81](https://github.com/MetaMask/eth-sig-util/pull/81)
- Switch from Node.js v8 to Node.js v10 ([#76](https://github.com/MetaMask/eth-sig-util/pull/77) and [#80](https://github.com/MetaMask/eth-sig-util/pull/80))

[Unreleased]: https://github.com/MetaMask/eth-sig-util/compare/v9.0.0...HEAD
[9.0.0]: https://github.com/MetaMask/eth-sig-util/compare/v8.2.0...v9.0.0
[Unreleased]: https://github.com/MetaMask/eth-sig-util/compare/v8.2.0...HEAD
[8.2.0]: https://github.com/MetaMask/eth-sig-util/compare/v8.1.2...v8.2.0
[8.1.2]: https://github.com/MetaMask/eth-sig-util/compare/v8.1.1...v8.1.2
[8.1.1]: https://github.com/MetaMask/eth-sig-util/compare/v8.1.0...v8.1.1
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/eth-sig-util",
"version": "9.0.0",
"version": "8.2.0",
"description": "A few useful functions for signing ethereum data",
"keywords": [
"ethereum",
Expand Down