From 887c7546aa5ba59a21857e0a266e108a7a8d8e20 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 16 Oct 2024 11:22:47 +0000 Subject: [PATCH 1/6] 7.1.0 --- CHANGELOG.md | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c393dec3..c5131e9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [7.1.0] +### Uncategorized +- Bypass numerical address cast ([#391](https://github.com/MetaMask/eth-sig-util/pull/391)) +- Bump the npm_and_yarn group across 1 directory with 2 updates ([#374](https://github.com/MetaMask/eth-sig-util/pull/374)) +- Bump @metamask/utils from 9.0.0 to 9.3.0 ([#392](https://github.com/MetaMask/eth-sig-util/pull/392)) +- drop support for Node.js versions 16, 21 ([#390](https://github.com/MetaMask/eth-sig-util/pull/390)) + ## [7.0.3] ### Changed - Bump `@metamask/abi-utils` to `^2.0.4` ([#381](https://github.com/MetaMask/eth-sig-util/pull/381)) @@ -153,7 +160,8 @@ 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/v7.0.3...HEAD +[Unreleased]: https://github.com/MetaMask/eth-sig-util/compare/v7.1.0...HEAD +[7.1.0]: https://github.com/MetaMask/eth-sig-util/compare/v7.0.3...v7.1.0 [7.0.3]: https://github.com/MetaMask/eth-sig-util/compare/v7.0.2...v7.0.3 [7.0.2]: https://github.com/MetaMask/eth-sig-util/compare/v7.0.1...v7.0.2 [7.0.1]: https://github.com/MetaMask/eth-sig-util/compare/v7.0.0...v7.0.1 diff --git a/package.json b/package.json index 974ab871..d9c6e79c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/eth-sig-util", - "version": "7.0.3", + "version": "7.1.0", "description": "A few useful functions for signing ethereum data", "keywords": [ "ethereum", From 62c453bf5c75d5a90981b4c52a7fe7e359cd9e02 Mon Sep 17 00:00:00 2001 From: OGPoyraz Date: Wed, 16 Oct 2024 13:24:50 +0200 Subject: [PATCH 2/6] Adjust changelog --- CHANGELOG.md | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5131e9b..73e2582a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Changelog + All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), @@ -7,53 +8,71 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [7.1.0] -### Uncategorized + +### Changed + - Bypass numerical address cast ([#391](https://github.com/MetaMask/eth-sig-util/pull/391)) - Bump the npm_and_yarn group across 1 directory with 2 updates ([#374](https://github.com/MetaMask/eth-sig-util/pull/374)) - Bump @metamask/utils from 9.0.0 to 9.3.0 ([#392](https://github.com/MetaMask/eth-sig-util/pull/392)) -- drop support for Node.js versions 16, 21 ([#390](https://github.com/MetaMask/eth-sig-util/pull/390)) +- Drop support for Node.js versions 16, 21 ([#390](https://github.com/MetaMask/eth-sig-util/pull/390)) ## [7.0.3] + ### Changed + - Bump `@metamask/abi-utils` to `^2.0.4` ([#381](https://github.com/MetaMask/eth-sig-util/pull/381)) - Bump `@metamask/utils` from `^9.0.0` ([#381](https://github.com/MetaMask/eth-sig-util/pull/381)) ## [7.0.2] + ### Fixed + - Replace dependency `tweetnacl-util` with `@scure/base` ([#358](https://github.com/MetaMask/eth-sig-util/pull/358)) ## [7.0.1] + ### Changed + - Remove dependency `ethjs-util` ([#349](https://github.com/MetaMask/eth-sig-util/pull/349)) ### Fixed + - **BREAKING**: fix: interpret 0x as hex in bytes encodeField ([#354](https://github.com/MetaMask/eth-sig-util/pull/354)) - This fixes a regression introduced in `6.0.1` which caused inconsistent signatures when data was supplied as literal `0x`. - fix: Exclude test files from published release ([#350](https://github.com/MetaMask/eth-sig-util/pull/350)) - fix: Bump @babel/traverse from 7.21.5 to 7.23.2 ([#341](https://github.com/MetaMask/eth-sig-util/pull/341)) ## [7.0.0] + ### Changed + - **BREAKING**: Increase minimum Node.js version to v16 ([#332](https://github.com/MetaMask/eth-sig-util/pull/332)) - **BREAKING**: Bump `@metamask/abi-utils` from `^1.0.2` to `^2.0.2` ([#326](https://github.com/MetaMask/eth-sig-util/pull/336)) - Bump `@metamask/utils` from `^5.0.2` to `^8.1.0` ([#333](https://github.com/MetaMask/eth-sig-util/pull/333)) ## [6.0.1] + ### Changed + - Swap out legacy `ethereumjs-abi` for `@metamask/abi-utils` ([#319](https://github.com/MetaMask/eth-sig-util/pull/319)) ### Fixed + - Bump `ethereum-cryptography` from `^2.0.0` to `^2.1.2` ([#302](https://github.com/MetaMask/eth-sig-util/pull/302)) - Bump `ethereumjs/util` from `^8.0.6` to `^8.1.0` ([#302](https://github.com/MetaMask/eth-sig-util/pull/302)) -- Remove unused dependency `bn.js` (#334) ([#302](https://github.com/MetaMask/eth-sig-util/pull/302)) +- Remove unused dependency `bn.js` (#334) ([#302](https://github.com/MetaMask/eth-sig-util/pull/302)) ## [6.0.0] + ### Changed + - **BREAKING**: Fix `normalize` for empty strings and `0` ([#315](https://github.com/MetaMask/eth-sig-util/pull/315)) - This is breaking as it changes the behavior of the function with an empty string or `0` as input: it will now return `0x` for an empty string and `0x00` for `0`, instead of `undefined` ## [5.1.0] + ### Changed + - rawEncode: fix broken BigNumber negativity check ([#307](https://github.com/MetaMask/eth-sig-util/pull/307)) - Specify type interface for multiple functions ([#307](https://github.com/MetaMask/eth-sig-util/pull/307)) - Improve `type` parameter input validation ([#307](https://github.com/MetaMask/eth-sig-util/pull/307)) @@ -61,31 +80,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - devDeps: Support TypeScript version ~4.8.4 ([#307](https://github.com/MetaMask/eth-sig-util/pull/307)) ## [5.0.3] + ### Changed + - Bump ethereum-cryptography, @ethereumjs/util ([#302](https://github.com/MetaMask/eth-sig-util/pull/302)) ## [5.0.2] + ### Changed + - allow `bn.js` to resolve any minor/patch version above 4.11.8 ([#280](https://github.com/MetaMask/eth-sig-util/pull/280)) ## [5.0.1] + ### Fixed + - Fix issue introduced in `v5.0.0` where the method `encodeField` encoded fields typed as `bytes` and passed as hexstrings were encoded differently than previous versions ([#271](https://github.com/MetaMask/eth-sig-util/pull/271), [#274](https://github.com/MetaMask/eth-sig-util/pull/274)) ## [5.0.0] [DEPRECATED] + ### Changed + - **BREAKING:** Removed support for Node v12 in favor of v14 ([#137](https://github.com/MetaMask/eth-json-rpc-middleware/pull/137)) - Replace heavy crypto packages for lighter noble implementations via upgrading `ethereumjs-util` to latest (now called `@ethereumjs/util`) ([#260](https://github.com/MetaMask/eth-sig-util/pull/260)) - Migrate to Yarn 3 ([#264](https://github.com/MetaMask/eth-sig-util/pull/264)) - ## [4.0.1] + ### Fixed + - Fix mistake in TYPED_MESSAGE_SCHEMA ([#243](https://github.com/MetaMask/eth-sig-util/pull/243)) - The schema changed in v4 in a way that accidentally disallowed "reference types" (i.e. custom types) apart from the primary type. Reference types are now once again allowed. ## [4.0.0] + ### Added + - **BREAKING**: Add subpath exports ([#214](https://github.com/MetaMask/eth-sig-util/pull/214), [#211](https://github.com/MetaMask/eth-sig-util/pull/211)) - This is breaking because it prevents the import of modules that are not exposed as subpath exports. - Add `salt` to the EIP-712 `domain` type ([#176](https://github.com/MetaMask/eth-sig-util/pull/176)) @@ -93,6 +123,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improve documentation ([#157](https://github.com/MetaMask/eth-sig-util/pull/157), [#177](https://github.com/MetaMask/eth-sig-util/pull/177), [#174](https://github.com/MetaMask/eth-sig-util/pull/174), [#180](https://github.com/MetaMask/eth-sig-util/pull/180), [#178](https://github.com/MetaMask/eth-sig-util/pull/178), [#181](https://github.com/MetaMask/eth-sig-util/pull/181), [#186](https://github.com/MetaMask/eth-sig-util/pull/186), [#212](https://github.com/MetaMask/eth-sig-util/pull/212), [#207](https://github.com/MetaMask/eth-sig-util/pull/207), [#213](https://github.com/MetaMask/eth-sig-util/pull/213)) ### Changed + - **BREAKING**: Consolidate `signTypedData` and `recoverTypedSignature` functions ([#156](https://github.com/MetaMask/eth-sig-util/pull/156)) - The functions `signTypedDataLegacy`, `signTypedData`, and `signTypedData_v4` have been replaced with a single `signTypedData` function with a `version` parameter. The `version` parameter determines which type of signature you get. - If you used `signTypedDataLegacy`, switch to `signTypedData` with the version `V1`. @@ -136,26 +167,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Replace README API docs with generated docs ([#213](https://github.com/MetaMask/eth-sig-util/pull/213)) ## [3.0.1] - 2021-02-04 + ### Changed + - Update `ethereumjs-abi` ([#96](https://github.com/MetaMask/eth-sig-util/pull/96)) - Remove unused dependencies ([#117](https://github.com/MetaMask/eth-sig-util/pull/117)) - Update minimum `tweetnacl` to latest version ([#123](https://github.com/MetaMask/eth-sig-util/pull/123)) ## [3.0.0] - 2020-11-09 + ### Changed + - [**BREAKING**] Migrate to TypeScript ([#74](https://github.com/MetaMask/eth-sig-util/pull/74)) - 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)) - ## [2.5.4] - 2021-02-04 + ### Changed + - Update `ethereumjs-abi` ([#121](https://github.com/MetaMask/eth-sig-util/pull/121)) - Remove unused dependencies ([#120](https://github.com/MetaMask/eth-sig-util/pull/120)) - Update minimum `tweetnacl` to latest version ([#124](https://github.com/MetaMask/eth-sig-util/pull/124)) ## [2.5.3] - 2020-03-16 [WITHDRAWN] + ### Changed + - [**BREAKING**] Migrate to TypeScript ([#74](https://github.com/MetaMask/eth-sig-util/pull/74)) - 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)) From 799d2125b001bd0669c2ccb847f767a3b391d85f Mon Sep 17 00:00:00 2001 From: OGPoyraz Date: Thu, 17 Oct 2024 12:49:46 +0200 Subject: [PATCH 3/6] Update CHANGELOG.md Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73e2582a..8919862a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Bypass numerical address cast ([#391](https://github.com/MetaMask/eth-sig-util/pull/391)) -- Bump the npm_and_yarn group across 1 directory with 2 updates ([#374](https://github.com/MetaMask/eth-sig-util/pull/374)) - Bump @metamask/utils from 9.0.0 to 9.3.0 ([#392](https://github.com/MetaMask/eth-sig-util/pull/392)) - Drop support for Node.js versions 16, 21 ([#390](https://github.com/MetaMask/eth-sig-util/pull/390)) From eb3871d40b1dd9160591051d2f15e0c4612b9430 Mon Sep 17 00:00:00 2001 From: OGPoyraz Date: Thu, 17 Oct 2024 12:49:54 +0200 Subject: [PATCH 4/6] Update CHANGELOG.md Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8919862a..11a0074c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Bypass numerical address cast ([#391](https://github.com/MetaMask/eth-sig-util/pull/391)) -- Bump @metamask/utils from 9.0.0 to 9.3.0 ([#392](https://github.com/MetaMask/eth-sig-util/pull/392)) +- Bump `@metamask/utils` from `^9.0.0` to `^9.3.0` ([#392](https://github.com/MetaMask/eth-sig-util/pull/392)) - Drop support for Node.js versions 16, 21 ([#390](https://github.com/MetaMask/eth-sig-util/pull/390)) ## [7.0.3] From 5e58ed4e058faa7dfe9fdbf22dc9a3419e23a926 Mon Sep 17 00:00:00 2001 From: OGPoyraz Date: Thu, 17 Oct 2024 12:49:59 +0200 Subject: [PATCH 5/6] Update CHANGELOG.md Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11a0074c..3756db89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bypass numerical address cast ([#391](https://github.com/MetaMask/eth-sig-util/pull/391)) - Bump `@metamask/utils` from `^9.0.0` to `^9.3.0` ([#392](https://github.com/MetaMask/eth-sig-util/pull/392)) -- Drop support for Node.js versions 16, 21 ([#390](https://github.com/MetaMask/eth-sig-util/pull/390)) +- **BREAKING**: Drop support for Node.js versions 16, 21 ([#390](https://github.com/MetaMask/eth-sig-util/pull/390)) ## [7.0.3] From 02c6d72923de135e233f58ccf8b557d7d9217e66 Mon Sep 17 00:00:00 2001 From: OGPoyraz Date: Thu, 17 Oct 2024 12:53:19 +0200 Subject: [PATCH 6/6] Adjust changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3756db89..65adfc52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Bypass numerical address cast ([#391](https://github.com/MetaMask/eth-sig-util/pull/391)) +- Remove numerical address cast ([#391](https://github.com/MetaMask/eth-sig-util/pull/391)) - Bump `@metamask/utils` from `^9.0.0` to `^9.3.0` ([#392](https://github.com/MetaMask/eth-sig-util/pull/392)) - **BREAKING**: Drop support for Node.js versions 16, 21 ([#390](https://github.com/MetaMask/eth-sig-util/pull/390))