From 20bbcf98d6c0a72787dc6185c72ef4303ee004ed Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Wed, 24 Apr 2024 17:22:02 +0200 Subject: [PATCH] Release 44.0.0 (#2356) Small release primarily to release some stability improvements to `snaps-controllers`, `snaps-execution-environments` and a hotfix to `snaps-cli`. --------- Co-authored-by: Maarten Zuidhoorn --- package.json | 2 +- packages/snaps-cli/CHANGELOG.md | 8 +++++++- packages/snaps-cli/package.json | 2 +- packages/snaps-controllers/CHANGELOG.md | 15 ++++++++++++++- packages/snaps-controllers/package.json | 2 +- .../snaps-execution-environments/CHANGELOG.md | 7 ++++++- .../snaps-execution-environments/package.json | 2 +- packages/snaps-utils/CHANGELOG.md | 7 ++++++- packages/snaps-utils/package.json | 2 +- 9 files changed, 38 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 9775a761dc..d119368f3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "root", - "version": "43.0.0", + "version": "44.0.0", "private": true, "repository": { "type": "git", diff --git a/packages/snaps-cli/CHANGELOG.md b/packages/snaps-cli/CHANGELOG.md index 788e30b24b..2fd79fe9a4 100644 --- a/packages/snaps-cli/CHANGELOG.md +++ b/packages/snaps-cli/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [6.1.1] +### Fixed +- Disable `topLevelAwait` configuration option ([#2358](https://github.com/MetaMask/snaps/pull/2358)) + - Before this the CLI would produce invalid builds when using top-level await. + ## [6.1.0] ### Added - Add support for importing SVG, PNG, and JPEG files directly ([#2284](https://github.com/MetaMask/snaps/pull/2284)) @@ -146,7 +151,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. -[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.1.0...HEAD +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.1.1...HEAD +[6.1.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.1.0...@metamask/snaps-cli@6.1.1 [6.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.0.2...@metamask/snaps-cli@6.1.0 [6.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.0.1...@metamask/snaps-cli@6.0.2 [6.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.0.0...@metamask/snaps-cli@6.0.1 diff --git a/packages/snaps-cli/package.json b/packages/snaps-cli/package.json index c3a4274480..a99c7e8152 100644 --- a/packages/snaps-cli/package.json +++ b/packages/snaps-cli/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-cli", - "version": "6.1.0", + "version": "6.1.1", "description": "A CLI for developing MetaMask Snaps.", "repository": { "type": "git", diff --git a/packages/snaps-controllers/CHANGELOG.md b/packages/snaps-controllers/CHANGELOG.md index ad8f75a1c0..18bab2a620 100644 --- a/packages/snaps-controllers/CHANGELOG.md +++ b/packages/snaps-controllers/CHANGELOG.md @@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [8.0.0] +### Changed +- **BREAKING:** Move `maxInitTime` constructor argument from `SnapController` to `ExecutionService` ([#2348](https://github.com/MetaMask/snaps/pull/2348)) + +### Fixed +- Increase max UI size limit from 250 KB to 10 MB ([#2342](https://github.com/MetaMask/snaps/pull/2342)) +- Consider caveats in permissions difference calculation ([#2345](https://github.com/MetaMask/snaps/pull/2345)) + - This fixes a bug where certain caveats would not be correctly applied when updating Snaps. +- Gracefully handle errors for multiple simultaneous failing requests ([#2346](https://github.com/MetaMask/snaps/pull/2346)) +- Properly handle termination of Snaps that are currently executing ([#2304](https://github.com/MetaMask/snaps/pull/2304)) +- Properly tear down partially initialized executors and improve stability when executor initialization fails ([#2348](https://github.com/MetaMask/snaps/pull/2348)) + ## [7.0.1] ### Fixed - Fix encryption key caching issues ([#2326](https://github.com/MetaMask/snaps/pull/2326)) @@ -234,7 +246,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. -[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@7.0.1...HEAD +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@8.0.0...HEAD +[8.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@7.0.1...@metamask/snaps-controllers@8.0.0 [7.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@7.0.0...@metamask/snaps-controllers@7.0.1 [7.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@6.0.4...@metamask/snaps-controllers@7.0.0 [6.0.4]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@6.0.3...@metamask/snaps-controllers@6.0.4 diff --git a/packages/snaps-controllers/package.json b/packages/snaps-controllers/package.json index 61991511e1..13abbc1838 100644 --- a/packages/snaps-controllers/package.json +++ b/packages/snaps-controllers/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-controllers", - "version": "7.0.1", + "version": "8.0.0", "description": "Controllers for MetaMask Snaps.", "repository": { "type": "git", diff --git a/packages/snaps-execution-environments/CHANGELOG.md b/packages/snaps-execution-environments/CHANGELOG.md index 5ab405009d..a1995c573b 100644 --- a/packages/snaps-execution-environments/CHANGELOG.md +++ b/packages/snaps-execution-environments/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [6.0.2] +### Fixed +- Throw an error if starting Snap has no exports ([#2357](https://github.com/MetaMask/snaps/pull/2357)) + ## [6.0.1] ### Fixed - Allow `null` in `FormSubmitEventStruct` form state ([#2333](https://github.com/MetaMask/snaps/pull/2333)) @@ -180,7 +184,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. -[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.0.1...HEAD +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.0.2...HEAD +[6.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.0.1...@metamask/snaps-execution-environments@6.0.2 [6.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.0.0...@metamask/snaps-execution-environments@6.0.1 [6.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@5.0.4...@metamask/snaps-execution-environments@6.0.0 [5.0.4]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@5.0.3...@metamask/snaps-execution-environments@5.0.4 diff --git a/packages/snaps-execution-environments/package.json b/packages/snaps-execution-environments/package.json index 6f46b63155..7338e1cd95 100644 --- a/packages/snaps-execution-environments/package.json +++ b/packages/snaps-execution-environments/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-execution-environments", - "version": "6.0.1", + "version": "6.0.2", "description": "Snap sandbox environments for executing SES javascript", "repository": { "type": "git", diff --git a/packages/snaps-utils/CHANGELOG.md b/packages/snaps-utils/CHANGELOG.md index 295d2d3397..f061a4b36e 100644 --- a/packages/snaps-utils/CHANGELOG.md +++ b/packages/snaps-utils/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [7.2.0] +### Added +- Add `getJsonSizeUnsafe` ([#2342](https://github.com/MetaMask/snaps/pull/2342)) + ## [7.1.0] ### Added - Add derivation path for Nimiq ([#2309](https://github.com/MetaMask/snaps/pull/2309)) @@ -213,7 +217,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. -[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.1.0...HEAD +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.2.0...HEAD +[7.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.1.0...@metamask/snaps-utils@7.2.0 [7.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.4...@metamask/snaps-utils@7.1.0 [7.0.4]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.3...@metamask/snaps-utils@7.0.4 [7.0.3]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.2...@metamask/snaps-utils@7.0.3 diff --git a/packages/snaps-utils/package.json b/packages/snaps-utils/package.json index 729738cc6a..a4a22ba42e 100644 --- a/packages/snaps-utils/package.json +++ b/packages/snaps-utils/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-utils", - "version": "7.1.0", + "version": "7.2.0", "repository": { "type": "git", "url": "https://github.com/MetaMask/snaps.git"