From b0ef88133397da24c8cab601f49b3ef8426b20e7 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Wed, 18 Sep 2024 10:36:16 +0200 Subject: [PATCH] Update changelogs --- .../snaps-execution-environments/CHANGELOG.md | 97 +------------------ packages/snaps-jest/CHANGELOG.md | 67 +------------ packages/snaps-simulation/CHANGELOG.md | 7 +- 3 files changed, 9 insertions(+), 162 deletions(-) diff --git a/packages/snaps-execution-environments/CHANGELOG.md b/packages/snaps-execution-environments/CHANGELOG.md index 04cc8f2830..e841d1c924 100644 --- a/packages/snaps-execution-environments/CHANGELOG.md +++ b/packages/snaps-execution-environments/CHANGELOG.md @@ -1,5 +1,4 @@ # 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/), @@ -8,21 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [6.7.2] +### Fixed +- Fix missing execution environment bundles ([#2734](https://github.com/MetaMask/snaps/pull/2734)) ## [6.7.1] - ### Fixed - - Fix invalid types in type declaration in some cases ([#2714](https://github.com/MetaMask/snaps/pull/2714)) ## [6.7.0] - ### Changed - - Unblock `wallet_requestSnaps` ([#2661](https://github.com/MetaMask/snaps/pull/2661)) ### Fixed - - Fix ESM version of the package ([#2682](https://github.com/MetaMask/snaps/pull/2682)) - This fixes the ESM version of the package to be fully compliant with the ESM standard. @@ -30,152 +26,110 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump other MetaMask dependencies ([#2703](https://github.com/MetaMask/snaps/pull/2703)) ## [6.6.2] - ### Changed - - Bump `@metamask/json-rpc-engine` from `^9.0.0` to `^9.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593)) - Bump `@metamask/snaps-utils` from `^7.8.0` to `^7.8.1` ([#2595](https://github.com/MetaMask/snaps/pull/2595)) ## [6.6.1] - ### Changed - - Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) - Bump `@metamask/utils` from `^8.3.0` to `^9.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) ### Fixed - - Replace `superstruct` with ESM-compatible `@metamask/superstruct` `^3.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) - This fixes the issue of this package being unusable by any TypeScript project that uses `Node16` or `NodeNext` as its `moduleResolution` option. - Set `@metamask/providers` from `^17.0.0` to `17.0.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) - `17.1.0` and `17.1.1` introduce regressions. ## [6.6.0] - ### Changed - - Inline LavaMoat in WebView bundle ([#2528](https://github.com/MetaMask/snaps/pull/2528), [#2564](https://github.com/MetaMask/snaps/pull/2564)) ## [6.5.0] - ### Added - - Add `Checkbox` component ([#2501](https://github.com/MetaMask/snaps/pull/2501)) - Add `FileInput` component ([#2469](https://github.com/MetaMask/snaps/pull/2469), [#2504](https://github.com/MetaMask/snaps/pull/2504)) ### Fixed - - Support parameters in `setTimeout` and `setInterval` ([#2513](https://github.com/MetaMask/snaps/pull/2513)) ## [6.4.0] - ### Changed - - Update `onNameLookup` response to include `domainName` ([#2484](https://github.com/MetaMask/snaps/pull/2484)) - Bump MetaMask dependencies ([#2460](https://github.com/MetaMask/snaps/pull/2460)) ## [6.3.0] - ### Added - - Add origin to lifecycle hooks ([#2441](https://github.com/MetaMask/snaps/pull/2441)) - Lifecycle hooks can now use the `origin` parameter to determine the origin of the installation or update. ### Changed - - Bump `@metamask/providers` from `16.1.0` to `17.0.0` ([#2442](https://github.com/MetaMask/snaps/pull/2442)) ## [6.2.0] - ### Added - - Add `context` field to `snap_createInterface` ([#2413](https://github.com/MetaMask/snaps/pull/2413)) ## [6.1.0] - ### Changed - - Unblock `eth_sendRawTransaction` ([#2362](https://github.com/MetaMask/snaps/pull/2362)) - Bump `@metamask/providers` from `16.0.0` to `16.1.0` ([#2386](https://github.com/MetaMask/snaps/pull/2386)) ### Fixed - - Make `onUserInput` export optional ([#2373](https://github.com/MetaMask/snaps/pull/2373)) - Snaps will no longer crash when interacting with a user interface when the Snap does not export `onUserInput`. ## [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)) ## [6.0.0] - ### Removed - - **BREAKING:** Remove broken `ethereum` properties ([#2296](https://github.com/MetaMask/snaps/pull/2296)) - Snaps can no longer access `on` and `removeListener` on `ethereum`. - This feature was already non-functional. ## [5.0.4] - ### Changed - - Bump MetaMask dependencies ([#2270](https://github.com/MetaMask/snaps/pull/2270)) ## [5.0.3] - ### Changed - - Bump `@metamask/providers` to `^15.0.0` ([#2231](https://github.com/MetaMask/snaps/pull/2231)) - Bump `@metamask/json-rpc-engine` to `^7.3.3` ([#2247](https://github.com/MetaMask/snaps/pull/2247)) ## [5.0.2] - ### Changed - - Bump LavaMoat packages ([#2234](https://github.com/MetaMask/snaps/pull/2234)) ## [5.0.1] - ### Fixed - - Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220)) ## [5.0.0] - ### Changed - - **BREAKING:** Update ESM build to be fully compliant with the ESM standard ([#2210](https://github.com/MetaMask/snaps/pull/2210)) - Bump `@metamask/rpc-errors` to `^6.2.1` ([#2209](https://github.com/MetaMask/snaps/pull/2209)) ### Fixed - - Enforce JSON-RPC response size limits ([#2201](https://github.com/MetaMask/snaps/pull/2201)) ## [4.0.1] - ### Changed - - Update several LavaMoat packages ([#2173](https://github.com/MetaMask/snaps/pull/2173)) ## [4.0.0] - ### Added - - Add WebView execution environment ([#2005](https://github.com/MetaMask/snaps/pull/2005)) - Add support for dynamic user interfaces ([#1465](https://github.com/MetaMask/snaps/pull/1465)) ### Changed - - **BREAKING:** Stop bundling offscreen execution environment ([#2154](https://github.com/MetaMask/snaps/pull/2154)) - **BREAKING:** Deploy multiple bundles to AWS ([#2150](https://github.com/MetaMask/snaps/pull/2150)) - From now on the bundles will be served at `https://execution.metamask.io/%BUILD_TYPE%/%VERSION%/index.html`. @@ -184,50 +138,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump MetaMask dependencies ([#2129](https://github.com/MetaMask/snaps/pull/2129), [#2132](https://github.com/MetaMask/snaps/pull/2132)) ## [3.5.0] - ### Added - - Add support for signature insights ([#2074](https://github.com/MetaMask/snaps/pull/2074)) ### Changed - - Bump SES and LavaMoat ([#2105](https://github.com/MetaMask/snaps/pull/2105)) - Bump several MetaMask dependencies ([#2054](https://github.com/MetaMask/snaps/pull/2054), [#2100](https://github.com/MetaMask/snaps/pull/2100)) ## [3.4.3] - ### Changed - - Move iframe bundle to HTML body ([#2045](https://github.com/MetaMask/snaps/pull/2045)) - Bump `@metamask/json-rpc-engine` from `7.3.0` to `7.3.1` ([#2065](https://github.com/MetaMask/snaps/pull/2065)) ## [3.4.2] - ### Changed - - Bump `@metamask/providers` from `14.0.1` to `14.0.2` ([#1992](https://github.com/MetaMask/snaps/pull/1992)) ## [3.4.1] - ### Changed - - Block `wallet_revokePermissions` ([#1978](https://github.com/MetaMask/snaps/pull/1978)) - Bump several MetaMask dependencies ([#1964](https://github.com/MetaMask/snaps/pull/1964)) ### Fixed - - Fix a few issues with passing non-JSON-serializable values ([#1974](https://github.com/MetaMask/snaps/pull/1974)) ## [3.4.0] - ### Changed - - Pause request timer when `fetch` is called ([#1756](https://github.com/MetaMask/snaps/pull/1756)) ## [3.3.0] - ### Changed - - Use `@metamask/snaps-sdk` package ([#1930](https://github.com/MetaMask/snaps/pull/1930), [#1946](https://github.com/MetaMask/snaps/pull/1946), [#1949](https://github.com/MetaMask/snaps/pull/1949), [#1954](https://github.com/MetaMask/snaps/pull/1954)) @@ -235,119 +175,86 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `@metamask/snaps-ui` packages. ## [3.2.0] - ### Added - - Add `OnHomePage` export ([#1896](https://github.com/MetaMask/snaps/pull/1896)) ### Fixed - - Await stream message delivery ([#1928](https://github.com/MetaMask/snaps/pull/1928)) ## [3.1.0] - ### Changed - - Improve error handling ([#1841](https://github.com/MetaMask/snaps/pull/1841)) - Snaps can now throw a `SnapError`, without causing the Snap to crash. - Standardise all errors thrown in execution environments ([#1830](https://github.com/MetaMask/snaps/pull/1830)) ## [3.0.0] - ### Added - - Add keyring export and endowment ([#1787](https://github.com/MetaMask/snaps/pull/1787)) ### Changed - - **BREAKING:** Bump minimum Node.js version to `^18.16.0` ([#1741](https://github.com/MetaMask/snaps/pull/1741)) ## [2.0.1] - ### Changed - - Remove unmaintained OpenRPC doc for execution environment ([#1782](https://github.com/MetaMask/snaps/pull/1782)) - Update LavaMoat ([#1754](https://github.com/MetaMask/snaps/pull/1754)) ### Fixed - - Allow passing `undefined` parameters to `request()` ([#1776](https://github.com/MetaMask/snaps/pull/1776)) - Fix an issue where errors would not correctly be returned ([#1772](https://github.com/MetaMask/snaps/pull/1772)) ## [2.0.0] - ### Changed - - Initial stable release from main branch ([#1757](https://github.com/MetaMask/snaps/pull/1757)) ## [0.39.0-flask.1] - ### Added - - Add `onNameLookup` export ([#1394](https://github.com/MetaMask/snaps/pull/1394)) ### Changed - - Remove `pump` ([#1730](https://github.com/MetaMask/snaps/pull/1730)) - Bump `metamask/utils` and `metamask/snaps-registry` ([#1738](https://github.com/MetaMask/snaps/pull/1738)) ### Fixed - - Sanitize JSON before checking for blocked methods ([#1762](https://github.com/MetaMask/snaps/pull/1762)) ## [0.38.3-flask.1] - ### Changed - - Bump `@metamask/post-message-stream` from 6.1.2 to 7.0.0 ([#1707](https://github.com/MetaMask/snaps/pull/1707), [#1724](https://github.com/MetaMask/snaps/pull/1724)) - Bump `@metamask/utils` and `@metamask/snaps-registry` ([#1694](https://github.com/MetaMask/snaps/pull/1694)) ### Fixed - - Add hardening for `Request`, `Headers`, and `Response` endowments ([#1695](https://github.com/MetaMask/snaps/pull/1695)) ## [0.38.2-flask.1] - ### Changed - - Bump `ses` to `0.18.7` ([#1666](https://github.com/MetaMask/snaps/pull/1666)) ### Fixed - - Remove unused dependencies ([#1680](https://github.com/MetaMask/snaps/pull/1680)) ## [0.38.1-flask.1] - ### Changed - - Update LavaMoat packages to latest versions ([#1657](https://github.com/MetaMask/snaps/pull/1657)) ### Removed - - Remove direct dependency on SES ([#1660](https://github.com/MetaMask/snaps/pull/1660)) - It's now a dev dependency, as it's only used in development. ### Fixed - - Pass correct scuttle args ([#1654](https://github.com/MetaMask/snaps/pull/1654)) ## [0.38.0-flask.1] - ### Added - - Add `onInstall` and `onUpdate` lifecycle hooks ([#1643](https://github.com/MetaMask/snaps/pull/1643)) - Unblock `personal_sign` JSON-RPC method ([#1601](https://github.com/MetaMask/snaps/pull/1601)) ## [0.37.3-flask.1] - ### Fixed - - Fix deployment of the iframe execution environment ([#1627](https://github.com/MetaMask/snaps/pull/1627)) ## [0.37.2-flask.1] - ### Changed - - Release package independently ([#1600](https://github.com/MetaMask/snaps/pull/1600)) - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. diff --git a/packages/snaps-jest/CHANGELOG.md b/packages/snaps-jest/CHANGELOG.md index f2e459049e..db2bcaf6ef 100644 --- a/packages/snaps-jest/CHANGELOG.md +++ b/packages/snaps-jest/CHANGELOG.md @@ -1,5 +1,4 @@ # 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/), @@ -8,22 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [8.4.0] +### Added +- Add support for selector component ([#2724](https://github.com/MetaMask/snaps/pull/2724)) + - Interfaces now have a `selectFromSelector` function that can be used to + select an option from a selector. -### Uncategorized - +### Changed - Extract simulation part of `snaps-jest` to separate package ([#2727](https://github.com/MetaMask/snaps/pull/2727)) -- Add example for Selector UI component ([#2724](https://github.com/MetaMask/snaps/pull/2724)) ## [8.3.2] - ### Fixed - - Fix invalid types in type declaration in some cases ([#2714](https://github.com/MetaMask/snaps/pull/2714)) ## [8.3.1] - ### Fixed - - Fix ESM version of the package ([#2682](https://github.com/MetaMask/snaps/pull/2682)) - This fixes the ESM version of the package to be fully compliant with the ESM standard. @@ -31,60 +28,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump other MetaMask dependencies ([#2703](https://github.com/MetaMask/snaps/pull/2703)) ## [8.3.0] - ### Added - - Add support for `snap_getPreferences` ([#2607](https://github.com/MetaMask/snaps/pull/2607)) - Add `RadioGroup` component ([#2592](https://github.com/MetaMask/snaps/pull/2592)) - Add support for custom dialogs in `snaps-jest` ([#2526](https://github.com/MetaMask/snaps/pull/2526), [#2509](https://github.com/MetaMask/snaps/pull/2509)) ### Changed - - Replace `superstruct` with ESM-compatible fork `@metamask/superstruct` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) ## [8.2.0] - ### Added - - Add support for `Checkbox` to `snaps-jest` ([#2515](https://github.com/MetaMask/snaps/pull/2515)) - Checkboxes can be interacted with using `clickElement`. - Add support for `FileInput` to `snaps-jest` ([#2494](https://github.com/MetaMask/snaps/pull/2494)) - Files can be uploaded to file inputs using `uploadFile`. ## [8.1.3] - ### Changed - - Bump MetaMask dependencies ([#2460](https://github.com/MetaMask/snaps/pull/2460), [#2477](https://github.com/MetaMask/snaps/pull/2477)) ## [8.1.2] - ### Fixed - - Fix invalid `@metamask/snaps-sdk` imports ([#2452](https://github.com/MetaMask/snaps/pull/2452)) ## [8.1.1] - ### Changed - - Bump `@metamask/key-tree` from `9.1.0` to `9.1.1` ([#2431](https://github.com/MetaMask/snaps/pull/2431)) ## [8.1.0] - ### Added - - Add `selectInDropdown` to be used with the newly added `Dropdown` component ([#2420](https://github.com/MetaMask/snaps/pull/2420)) - Add `context` field to `snap_createInterface` ([#2413](https://github.com/MetaMask/snaps/pull/2413)) ### Fixed - - Properly handle invalid interfaces during test ([#2433](https://github.com/MetaMask/snaps/pull/2433)) - Properly diff when using legacy UI with `toRender` matcher ([#2432](https://github.com/MetaMask/snaps/pull/2432)) ## [8.0.0] - ### Added - - **BREAKING:** Add JSX support for custom UI ([#2258](https://github.com/MetaMask/snaps/pull/2258)) - It's now possible to use JSX components from `@metamask/snaps-sdk` to build user interfaces for Snaps. @@ -94,52 +75,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 need to update your tests to check the JSX format. ### Changed - - Bump `@metamask/base-controller` from `5.0.1` to `5.0.2` ([#2375](https://github.com/MetaMask/snaps/pull/2375)) ## [7.0.2] - ### Changed - - Bump `@metamask/snaps-execution-environments` to latest ([#2339](https://github.com/MetaMask/snaps/pull/2339)) ## [7.0.1] - ### Fixed - - Improve correctness of `clickElement` ([#2334](https://github.com/MetaMask/snaps/pull/2334)) - The function should now behave closer to the client implementation. ## [7.0.0] - ### Added - - **BREAKING:** Support Interactive UI in `snaps-jest` ([#2286](https://github.com/MetaMask/snaps/pull/2286)) - Remove `content` from the Snap response, instead `getInterface()` must be used - `clickElement` and `typeInField` can be used on the interface return value to simulate actions ### Changed - - Improve Jest expect types ([#2308](https://github.com/MetaMask/snaps/pull/2308)) - Refactor to support changes to encryption ([#2316](https://github.com/MetaMask/snaps/pull/2316)) ## [6.0.2] - ### Changed - - Bump MetaMask dependencies ([#2270](https://github.com/MetaMask/snaps/pull/2270)) - Bump @metamask/json-rpc-engine from 7.3.2 to 7.3.3 ([#2247](https://github.com/MetaMask/snaps/pull/2247)) ## [6.0.1] - ### Fixed - - Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220)) ## [6.0.0] - ### Changed - - **BREAKING:** Update ESM build to be fully compliant with the ESM standard ([#2210](https://github.com/MetaMask/snaps/pull/2210)) - **BREAKING:** Move Node.js exports to separate export ([#2210](https://github.com/MetaMask/snaps/pull/2210)) - The default export is now browser-compatible. @@ -147,9 +114,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump `@metamask/rpc-errors` to `^6.2.1` ([#2209](https://github.com/MetaMask/snaps/pull/2209)) ## [5.0.0] - ### Added - - **BREAKING:** Implement testing framework using Node.js executor ([#1982](https://github.com/MetaMask/snaps/pull/1982), [#2118](https://github.com/MetaMask/snaps/pull/2118)) - The network mocking functionality was removed, but may be reintroduced in a future version. - `mockJsonRpc` no longer returns a `Promise`. @@ -160,40 +125,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `snap_getClientStatus` support ([#2159](https://github.com/MetaMask/snaps/pull/2159)) ### Changed - - Bump several MetaMask dependencies ([#2101](https://github.com/MetaMask/snaps/pull/2101), [#2100](https://github.com/MetaMask/snaps/pull/2100), [#2129](https://github.com/MetaMask/snaps/pull/2129), [#2140](https://github.com/MetaMask/snaps/pull/2140), [#2141](https://github.com/MetaMask/snaps/pull/2141), [#2142](https://github.com/MetaMask/snaps/pull/2142)) ## [4.0.1] - ### Fixed - - Fix coercing of address values in `sendTransaction` function ([#1970](https://github.com/MetaMask/snaps/pull/1970)) ## [4.0.0] - ### Changed - - Use `@metamask/snaps-sdk` package ([#1930](https://github.com/MetaMask/snaps/pull/1930), [#1950](https://github.com/MetaMask/snaps/pull/1950), [#1954](https://github.com/MetaMask/snaps/pull/1954)) - This package replaces the `@metamask/snaps-types` and - `@metamask/snaps-ui` packages. ### Removed - - **BREAKING**: `DialogType`, `ManageStateOperation`, `NotificationType` are no longer re-exported from `@metamask/snaps-jest` ([#1930](https://github.com/MetaMask/snaps/pull/1930)) - These enums can now be imported from `@metamask/snaps-sdk` instead. ## [3.1.0] - ### Added - - Add support for links in custom UI and notifications ([#1814](https://github.com/MetaMask/snaps/pull/1814)) ## [3.0.0] - ### Changed - - **BREAKING:** Improve error handling ([#1841](https://github.com/MetaMask/snaps/pull/1841)) - This is a breaking change, because errors returned by the Snap now have a different format. For example, if the Snap throws a JSON-RPC method not found error, previously, the following error would be returned: ```ts @@ -222,39 +177,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ``` ## [2.0.0] - ### Changed - - **BREAKING:** Bump minimum Node.js version to `^18.16.0` ([#1741](https://github.com/MetaMask/snaps/pull/1741)) ## [1.0.0] - ### Changed - - Initial stable release from main branch ([#1757](https://github.com/MetaMask/snaps/pull/1757)) ## [0.37.5-flask.1] - ### Changed - - Bump `metamask/utils` and `metamask/snaps-registry` ([#1738](https://github.com/MetaMask/snaps/pull/1738), [#1694](https://github.com/MetaMask/snaps/pull/1694)) ## [0.37.4-flask.1] - ### Fixed - - Remove unused dependencies ([#1680](https://github.com/MetaMask/snaps/pull/1680)) ## [0.37.3-flask.1] - ### Changed - - Bump `semver` to `^7.5.4` ([#1631](https://github.com/MetaMask/snaps/pull/1631)) ## [0.37.2-flask.1] - ### Changed - - Release package independently ([#1600](https://github.com/MetaMask/snaps/pull/1600)) - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. diff --git a/packages/snaps-simulation/CHANGELOG.md b/packages/snaps-simulation/CHANGELOG.md index 8fe524f5b3..964395bf0a 100644 --- a/packages/snaps-simulation/CHANGELOG.md +++ b/packages/snaps-simulation/CHANGELOG.md @@ -1,5 +1,4 @@ # 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/), @@ -8,10 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [1.0.0] - -### Uncategorized - -- Extract simulation part of `snaps-jest` to separate package ([#2727](https://github.com/MetaMask/snaps/pull/2727)) +### Added +- Initial release of `@metamask/snaps-simulation` package ([#2727](https://github.com/MetaMask/snaps/pull/2727)) [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-simulation@1.0.0...HEAD [1.0.0]: https://github.com/MetaMask/snaps/releases/tag/@metamask/snaps-simulation@1.0.0