From 3f426e2ad4e0bd9741c4915a38bd0eaab0e431fe Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 24 Sep 2025 11:49:10 +0000 Subject: [PATCH 1/3] 11.8.1 --- CHANGELOG.md | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 759f3546..81c95054 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [11.8.1] + +### Uncategorized + +- chore: replace calls of the slow superstruct "is" with faster regex ([#270](https://github.com/MetaMask/utils/pull/270)) + ## [11.8.0] ### Added @@ -467,7 +473,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release -[Unreleased]: https://github.com/MetaMask/utils/compare/v11.8.0...HEAD +[Unreleased]: https://github.com/MetaMask/utils/compare/v11.8.1...HEAD +[11.8.1]: https://github.com/MetaMask/utils/compare/v11.8.0...v11.8.1 [11.8.0]: https://github.com/MetaMask/utils/compare/v11.7.0...v11.8.0 [11.7.0]: https://github.com/MetaMask/utils/compare/v11.6.0...v11.7.0 [11.6.0]: https://github.com/MetaMask/utils/compare/v11.5.0...v11.6.0 diff --git a/package.json b/package.json index 1aac79eb..316b0c3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/utils", - "version": "11.8.0", + "version": "11.8.1", "description": "Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase", "homepage": "https://github.com/MetaMask/utils#readme", "bugs": { From c4af85ac6374e2b11a8b727ffddf78c09287af78 Mon Sep 17 00:00:00 2001 From: Bryan Fullam Date: Wed, 24 Sep 2025 13:53:16 +0200 Subject: [PATCH 2/3] chore: changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81c95054..4bc1f39f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [11.8.1] -### Uncategorized +### Changed - chore: replace calls of the slow superstruct "is" with faster regex ([#270](https://github.com/MetaMask/utils/pull/270)) From 8e3b8cd2b1f0651bbd18194627131e3c84c50215 Mon Sep 17 00:00:00 2001 From: Bryan Fullam Date: Wed, 24 Sep 2025 13:58:52 +0200 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Charly Chevalier --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bc1f39f..3c8add9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- chore: replace calls of the slow superstruct "is" with faster regex ([#270](https://github.com/MetaMask/utils/pull/270)) +- Replace `superstruct.is` with faster regex checks for `isCaip*` functions ([#270](https://github.com/MetaMask/utils/pull/270)) + - Those calls were slow especially on our mobile client. ## [11.8.0]