From 501e632e81a129a8b2a2bcb75515b7639b061372 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Wed, 17 Jul 2024 14:40:05 -0400 Subject: [PATCH] Update changelog --- packages/snaps-rpc-methods/CHANGELOG.md | 144 ++++++------------ packages/snaps-rpc-methods/package.json | 2 +- packages/snaps-sdk/CHANGELOG.md | 141 ++++++------------ packages/snaps-sdk/package.json | 2 +- packages/snaps-utils/CHANGELOG.md | 186 +++++++----------------- packages/snaps-utils/package.json | 2 +- 6 files changed, 139 insertions(+), 338 deletions(-) diff --git a/packages/snaps-rpc-methods/CHANGELOG.md b/packages/snaps-rpc-methods/CHANGELOG.md index 3b741925cf..4f40b63924 100644 --- a/packages/snaps-rpc-methods/CHANGELOG.md +++ b/packages/snaps-rpc-methods/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/), @@ -7,92 +6,74 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [9.1.5] +## [10.0.0] +### Added +- **BREAKING:** `snap_dialog` now takes the `requestUserApproval` hook which is meant to bind to the `addAndShowRequest` method of the `ApprovalController`. ([#2509](https://github.com/metamask/snaps/pull/2509)) + - Add type `DialogApprovalTypes` and object `DIALOG_APPROVAL_TYPES`. -### Uncategorized +### Changed +- Bump `@metamask/key-tree` from `^9.1.1` to `^9.1.2` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) +- Bump `@metamask/permission-controller` from `^10.0.0` to `^10.0.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) +- 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)) -- Replace `superstruct` with ESM-compatible fork `@metamask/superstruct` ([#2445](https://github.com/metamask/snaps/pull/2445)) -- Fix jsdoc ([#2554](https://github.com/metamask/snaps/pull/2554)) -- [BREAKING] Add `snap_resolveInterface` RPC method ([#2509](https://github.com/metamask/snaps/pull/2509)) +### 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. ## [9.1.4] - ### Changed - - Bump MetaMask dependencies ([#2516](https://github.com/MetaMask/snaps/pull/2516)) ## [9.1.3] - ### Changed - - Bump MetaMask dependencies ([#2460](https://github.com/MetaMask/snaps/pull/2460)) ## [9.1.2] - ### Fixed - - Fix invalid `@metamask/snaps-sdk` imports ([#2452](https://github.com/MetaMask/snaps/pull/2452)) ## [9.1.1] - ### Changed - - Bump `@metamask/key-tree` from `9.1.0` to `9.1.1` ([#2431](https://github.com/MetaMask/snaps/pull/2431)) ## [9.1.0] - ### Added - - Add `context` field to `snap_createInterface` ([#2413](https://github.com/MetaMask/snaps/pull/2413)) ## [9.0.0] - ### Added - - Add support for BIP-32-Ed25519 / CIP-3 key derivation ([#2408](https://github.com/MetaMask/snaps/pull/2408)) - The `ed25519Bip32` curve is now supported for `snap_getBip32Entropy` and `snap_getBip32PublicKey` ### Changed - - **BREAKING:** Use hooks in `wallet_invokeSnap` instead of remapping the request to `wallet_snap` ([#2406](https://github.com/MetaMask/snaps/pull/2406)) ## [8.1.0] - ### Added - - Add JSX support for custom UI ([#2258](https://github.com/MetaMask/snaps/pull/2258)) ## [8.0.0] - ### Changed - - **BREAKING:** Refactor to support changes to encryption ([#2316](https://github.com/MetaMask/snaps/pull/2316)) - No longer expects `encrypt` or `decrypt`, instead expects `updateSnapState` and `getSnapState` to be asynchronous ## [7.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)) ## [7.0.1] - ### Fixed - - Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220)) ## [7.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)) ## [6.0.0] - ### Added - - **BREAKING:** Add support for dynamic user interfaces ([#1465](https://github.com/MetaMask/snaps/pull/1465), [#2144](https://github.com/MetaMask/snaps/pull/2144), [#2143](https://github.com/MetaMask/snaps/pull/2143)) - This adds the `snap_createInterface`, `snap_updateInterface`, and `snap_getInterfaceState` methods. - This is breaking because it changes the expected type of the `showDialog` RPC method hook. @@ -101,169 +82,128 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add endowment permission specifications to this package ([#2155](https://github.com/MetaMask/snaps/pull/2155)) ### Changed - - Bump MetaMask dependencies ([#2129](https://github.com/MetaMask/snaps/pull/2129), [#2142](https://github.com/MetaMask/snaps/pull/2142)) ## [5.0.0] - ### Added - - Add `snap_getClientStatus` ([#2051](https://github.com/MetaMask/snaps/pull/2051)) ### Changed - - **BREAKING:** Use origin bound hooks for `invokeKeyring` ([#2090](https://github.com/MetaMask/snaps/pull/2090)) - Bump several MetaMask dependencies ([#2069](https://github.com/MetaMask/snaps/pull/2069), [#2100](https://github.com/MetaMask/snaps/pull/2100)) ## [4.1.0] - ### Added - - Add `wallet_getAllSnaps` method to get all installed Snaps ([#2047](https://github.com/MetaMask/snaps/pull/2047)) ### Changed - - Bump several MetaMask dependencies ([#2064](https://github.com/MetaMask/snaps/pull/2064), [#2065](https://github.com/MetaMask/snaps/pull/2065)) ## [4.0.3] - ### Changed - - Use prototype `startsWith` for RPC method middleware ([#2035](https://github.com/MetaMask/snaps/pull/2035)) ## [4.0.2] - ### Changed - - Bump several MetaMask dependencies ([#1989](https://github.com/MetaMask/snaps/pull/1989)) ## [4.0.1] - ### Changed - - Bump several MetaMask dependencies ([#1964](https://github.com/MetaMask/snaps/pull/1964), [#1968](https://github.com/MetaMask/snaps/pull/1968)) ## [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**: Remove `DialogType`, `ManageStateOperation`, and `NotificationType` enums ([#1930](https://github.com/MetaMask/snaps/pull/1930)) - These are now defined in the `@metamask/snaps-sdk` package. ## [3.3.0] - ### Added - - Add support for unencrypted storage using `snap_manageState` ([#1902](https://github.com/MetaMask/snaps/pull/1902)) ## [3.2.1] - ### Fixed - - Fix `assertLinksAreSafe` import ([#1908](https://github.com/MetaMask/snaps/pull/1908)) ## [3.2.0] - ### Added - - Add support for links in custom UI and notifications ([#1814](https://github.com/MetaMask/snaps/pull/1814)) ## [3.1.0] - ### Changed - - Rename package to `@metamask/snaps-rpc-methods` ([#1864](https://github.com/MetaMask/snaps/pull/1864)) - Update multiple MetaMask dependencies ([#1841](https://github.com/MetaMask/snaps/pull/1841)) ## [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.0] - ### Changed - - Initial stable release from main branch ([#1757](https://github.com/MetaMask/snaps/pull/1757)) ## [0.38.3-flask.1] - ### Changed - - Bump `metamask/utils` and `metamask/snaps-registry` ([#1738](https://github.com/MetaMask/snaps/pull/1738)) ## [0.38.2-flask.1] - ### Changed - - Remove business-logic callbacks from `manageAccounts` ([#1725](https://github.com/MetaMask/snaps/pull/1725)) - Bump `@metamask/utils` and `@metamask/snaps-registry` ([#1694](https://github.com/MetaMask/snaps/pull/1694)) ## [0.38.1-flask.1] - ### Fixed - - Make `manageAccounts` arguments extend `RestrictedMethodParameters` ([#1687](https://github.com/MetaMask/snaps/pull/1687)) ## [0.38.0-flask.1] - ### Added - - Add `snap_getLocale` JSON-RPC method ([#1557](https://github.com/MetaMask/snaps/pull/1557)) - This will let snaps get the user locale from the client. ### Fixed - - Fix ed25519 public key derivation ([#1678](https://github.com/MetaMask/snaps/pull/1678)) ## [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. -[Unreleased]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@9.1.5...HEAD -[9.1.5]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@9.1.4...@metamask/snaps-rpc-methods@9.1.5 -[9.1.4]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@9.1.3...@metamask/snaps-rpc-methods@9.1.4 -[9.1.3]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@9.1.2...@metamask/snaps-rpc-methods@9.1.3 -[9.1.2]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@9.1.1...@metamask/snaps-rpc-methods@9.1.2 -[9.1.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@9.1.0...@metamask/snaps-rpc-methods@9.1.1 -[9.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@9.0.0...@metamask/snaps-rpc-methods@9.1.0 -[9.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@8.1.0...@metamask/snaps-rpc-methods@9.0.0 -[8.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@8.0.0...@metamask/snaps-rpc-methods@8.1.0 -[8.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@7.0.2...@metamask/snaps-rpc-methods@8.0.0 -[7.0.2]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@7.0.1...@metamask/snaps-rpc-methods@7.0.2 -[7.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@7.0.0...@metamask/snaps-rpc-methods@7.0.1 -[7.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@6.0.0...@metamask/snaps-rpc-methods@7.0.0 -[6.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@5.0.0...@metamask/snaps-rpc-methods@6.0.0 -[5.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@4.1.0...@metamask/snaps-rpc-methods@5.0.0 -[4.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@4.0.3...@metamask/snaps-rpc-methods@4.1.0 -[4.0.3]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@4.0.2...@metamask/snaps-rpc-methods@4.0.3 -[4.0.2]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@4.0.1...@metamask/snaps-rpc-methods@4.0.2 -[4.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@4.0.0...@metamask/snaps-rpc-methods@4.0.1 -[4.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@3.3.0...@metamask/snaps-rpc-methods@4.0.0 -[3.3.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@3.2.1...@metamask/snaps-rpc-methods@3.3.0 -[3.2.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@3.2.0...@metamask/snaps-rpc-methods@3.2.1 -[3.2.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@3.1.0...@metamask/snaps-rpc-methods@3.2.0 -[3.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@3.0.0...@metamask/snaps-rpc-methods@3.1.0 -[3.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@2.0.0...@metamask/snaps-rpc-methods@3.0.0 -[2.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@0.38.3-flask.1...@metamask/snaps-rpc-methods@2.0.0 -[0.38.3-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@0.38.2-flask.1...@metamask/snaps-rpc-methods@0.38.3-flask.1 -[0.38.2-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@0.38.1-flask.1...@metamask/snaps-rpc-methods@0.38.2-flask.1 -[0.38.1-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@0.38.0-flask.1...@metamask/snaps-rpc-methods@0.38.1-flask.1 -[0.38.0-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-rpc-methods@0.37.2-flask.1...@metamask/snaps-rpc-methods@0.38.0-flask.1 -[0.37.2-flask.1]: https://github.com/metamask/snaps/releases/tag/@metamask/snaps-rpc-methods@0.37.2-flask.1 +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@10.0.0...HEAD +[10.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@9.1.3...@metamask/snaps-rpc-methods@10.0.0 +[9.1.3]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@9.1.2...@metamask/snaps-rpc-methods@9.1.3 +[9.1.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@9.1.1...@metamask/snaps-rpc-methods@9.1.2 +[9.1.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@9.1.0...@metamask/snaps-rpc-methods@9.1.1 +[9.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@9.0.0...@metamask/snaps-rpc-methods@9.1.0 +[9.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@8.1.0...@metamask/snaps-rpc-methods@9.0.0 +[8.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@8.0.0...@metamask/snaps-rpc-methods@8.1.0 +[8.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@7.0.2...@metamask/snaps-rpc-methods@8.0.0 +[7.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@7.0.1...@metamask/snaps-rpc-methods@7.0.2 +[7.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@7.0.0...@metamask/snaps-rpc-methods@7.0.1 +[7.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@6.0.0...@metamask/snaps-rpc-methods@7.0.0 +[6.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@5.0.0...@metamask/snaps-rpc-methods@6.0.0 +[5.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@4.1.0...@metamask/snaps-rpc-methods@5.0.0 +[4.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@4.0.3...@metamask/snaps-rpc-methods@4.1.0 +[4.0.3]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@4.0.2...@metamask/snaps-rpc-methods@4.0.3 +[4.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@4.0.1...@metamask/snaps-rpc-methods@4.0.2 +[4.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@4.0.0...@metamask/snaps-rpc-methods@4.0.1 +[4.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@3.3.0...@metamask/snaps-rpc-methods@4.0.0 +[3.3.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@3.2.1...@metamask/snaps-rpc-methods@3.3.0 +[3.2.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@3.2.0...@metamask/snaps-rpc-methods@3.2.1 +[3.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@3.1.0...@metamask/snaps-rpc-methods@3.2.0 +[3.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@3.0.0...@metamask/snaps-rpc-methods@3.1.0 +[3.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@2.0.0...@metamask/snaps-rpc-methods@3.0.0 +[2.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@0.38.3-flask.1...@metamask/snaps-rpc-methods@2.0.0 +[0.38.3-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@0.38.2-flask.1...@metamask/snaps-rpc-methods@0.38.3-flask.1 +[0.38.2-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@0.38.1-flask.1...@metamask/snaps-rpc-methods@0.38.2-flask.1 +[0.38.1-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@0.38.0-flask.1...@metamask/snaps-rpc-methods@0.38.1-flask.1 +[0.38.0-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@0.37.2-flask.1...@metamask/snaps-rpc-methods@0.38.0-flask.1 +[0.37.2-flask.1]: https://github.com/MetaMask/snaps/releases/tag/@metamask/snaps-rpc-methods@0.37.2-flask.1 diff --git a/packages/snaps-rpc-methods/package.json b/packages/snaps-rpc-methods/package.json index fd0144bb3d..52d96e1830 100644 --- a/packages/snaps-rpc-methods/package.json +++ b/packages/snaps-rpc-methods/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-rpc-methods", - "version": "9.1.5", + "version": "10.0.0", "description": "MetaMask Snaps JSON-RPC method implementations.", "repository": { "type": "git", diff --git a/packages/snaps-sdk/CHANGELOG.md b/packages/snaps-sdk/CHANGELOG.md index 89106e57a4..b4238b7130 100644 --- a/packages/snaps-sdk/CHANGELOG.md +++ b/packages/snaps-sdk/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/), @@ -7,22 +6,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [6.0.1] - -### Uncategorized - -- Replace `superstruct` with ESM-compatible fork `@metamask/superstruct` ([#2445](https://github.com/metamask/snaps/pull/2445)) -- fix: Add typed union validation ([#2534](https://github.com/metamask/snaps/pull/2534)) +## [7.0.0] +### Added +- **BREAKING:** Add non-restricted RPC method `snap_resolveInterface`, which allows a snap to resolve a given user interface bound to a `snap_dialog` with a custom value. ([#2509](https://github.com/metamask/snaps/pull/2509)) + - Add new types `ResolveInterfaceParams`, `ResolveInterfaceResult`. - feat: Card component ([#2480](https://github.com/metamask/snaps/pull/2480)) -- Add support for custom dialogs in `snaps-jest` ([#2526](https://github.com/metamask/snaps/pull/2526)) -- [BREAKING] Add `snap_resolveInterface` RPC method ([#2509](https://github.com/metamask/snaps/pull/2509)) -- Support JSX and Interactive UI in simulator ([#2409](https://github.com/metamask/snaps/pull/2409)) +- Add `BoxChildStruct`, `FormChildStruct`, `FieldChildUnionStruct`. ([#2409](https://github.com/metamask/snaps/pull/2409)) - Add `Container` and `Footer` components ([#2517](https://github.com/metamask/snaps/pull/2517)) -## [6.0.0] +### Changed +- `RootJSXElementStruct` is updated so that the allowed JSX elements at the root are the null union of the Container component and the allowed children of the Box component. ([#2526](https://github.com/metamask/snaps/pull/2526)) +- Bump `@metamask/key-tree` from `^9.1.1` to `^9.1.2` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) +- 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)) -### Added +### Fixed +- Add `typedUnion` utility which strictly validates members of the union based on a type field. ([#2534](https://github.com/metamask/snaps/pull/2534)) +- 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.0.0] +### Added - **BREAKING:** Add `FileInput` component ([#2469](https://github.com/MetaMask/snaps/pull/2469), [#2504](https://github.com/MetaMask/snaps/pull/2504)) - `FormSubmitEvent` may now contain values of type `File`. - **BREAKING:** Add `Checkbox` component ([#2501](https://github.com/MetaMask/snaps/pull/2501)) @@ -33,55 +39,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support conditional children in most JSX components ([#2506](https://github.com/MetaMask/snaps/pull/2506)) ## [5.0.0] - ### Added - - Allow row tooltips ([#2483](https://github.com/MetaMask/snaps/pull/2483)) - Support nested children in JSX ([#2482](https://github.com/MetaMask/snaps/pull/2482)) ### Changed - - Update `onNameLookup` response types ([#2484](https://github.com/MetaMask/snaps/pull/2484)) ### Removed - - **BREAKING:** Remove `parseSvg` and `isSvg` internals ([#2475](https://github.com/MetaMask/snaps/pull/2475)) ### Fixed - - Correct Row variant in JSX ([#2486](https://github.com/MetaMask/snaps/pull/2486)) - Revert requiring at least one child in JSX components ([#2481](https://github.com/MetaMask/snaps/pull/2481), [#2470](https://github.com/MetaMask/snaps/pull/2470)) - Correct docs for `Input` and `Dropdown` ([#2479](https://github.com/MetaMask/snaps/pull/2479)) ## [4.4.2] - ### Fixed - - Require at least 1 child in JSX components ([#2466](https://github.com/MetaMask/snaps/pull/2466)) ## [4.4.1] - ### Fixed - - Fix invalid `@metamask/snaps-sdk` imports ([#2452](https://github.com/MetaMask/snaps/pull/2452)) ## [4.4.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)) - Bump `@metamask/key-tree` from `9.1.0` to `9.1.1` ([#2431](https://github.com/MetaMask/snaps/pull/2431)) ## [4.3.0] - ### Added - - Add `Value` component ([#2435](https://github.com/MetaMask/snaps/pull/2435)) - Add `Dropdown` component ([#2420](https://github.com/MetaMask/snaps/pull/2420)) - Add positioning props to `Box` ([#2422](https://github.com/MetaMask/snaps/pull/2422)) @@ -89,23 +81,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `context` field to `snap_createInterface` ([#2413](https://github.com/MetaMask/snaps/pull/2413), [#2427](https://github.com/MetaMask/snaps/pull/2427)) ### Fixed - - Correct validation for children of Box component ([#2423](https://github.com/MetaMask/snaps/pull/2423)) ## [4.2.0] - ### Added - - Add support for BIP-32-Ed25519 / CIP-3 key derivation ([#2408](https://github.com/MetaMask/snaps/pull/2408)) ### Fixed - - Add missing TypeScript declarations for JSX entry points ([#2404](https://github.com/MetaMask/snaps/pull/2404)) ## [4.1.0] - ### Added - - Add JSX support for custom UI ([#2258](https://github.com/MetaMask/snaps/pull/2258), [#2379](https://github.com/MetaMask/snaps/pull/2379)) - It's now possible to use JSX components from this package to build user interfaces for Snaps. @@ -116,167 +102,128 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 will be used automatically. ### Changed - - Deprecate legacy UI components ([#2388](https://github.com/MetaMask/snaps/pull/2388)) - Bump `@metamask/providers` from `16.0.0` to `16.1.0` ([#2386](https://github.com/MetaMask/snaps/pull/2386)) ## [4.0.1] - ### Fixed - - Allow `null` in `FormSubmitEventStruct` form state ([#2333](https://github.com/MetaMask/snaps/pull/2333)) ## [4.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. ## [3.2.0] - ### Added - - Add support for importing SVG, PNG, and JPEG files directly ([#2284](https://github.com/MetaMask/snaps/pull/2284)) ### Changed - - Narrow type for `endowment:name-lookup` ([#2293](https://github.com/MetaMask/snaps/pull/2293)) - Bump MetaMask dependencies ([#2270](https://github.com/MetaMask/snaps/pull/2270)) ## [3.1.1] - ### Changed - - Bump `@metamask/providers` to `^15.0.0` ([#2231](https://github.com/MetaMask/snaps/pull/2231)) ### Fixed - - Fix address validation in row component ([#2257](https://github.com/MetaMask/snaps/pull/2257)) ## [3.1.0] - ### Added - - Add `InputChangeEvent` event ([#2237](https://github.com/MetaMask/snaps/pull/2237)) - Add `error` prop to input component ([#2239](https://github.com/MetaMask/snaps/pull/2239)) ## [3.0.1] - ### Fixed - - Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220)) ## [3.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)) ## [2.1.0] - ### Changed - - Improve support for Snap errors without a message ([#2176](https://github.com/MetaMask/snaps/pull/2176)) - You can now add data to an error without having to specify a message. For example: ```ts - throw new MethodNotFoundError({ method: "some method name" }); + throw new MethodNotFoundError({ method: 'some method name' }); ``` - Strip empty `data` from Snap errors ([#2179](https://github.com/MetaMask/snaps/pull/2179)) ## [2.0.0] - ### Changed - - **BREAKING:** Update name lookup API types ([#2113](https://github.com/MetaMask/snaps/pull/2113)) - The return value and the permission format has changed, see [SIP-12](https://metamask.github.io/SIPs/SIPS/sip-12) for more details. - Add support for dynamic user interfaces ([#1465](https://github.com/MetaMask/snaps/pull/1465), [#2126](https://github.com/MetaMask/snaps/pull/2126), [#2143](https://github.com/MetaMask/snaps/pull/2143)) - Add support for snap defined execution timeouts ([#2098](https://github.com/MetaMask/snaps/pull/2098)) ### Fixed - - Fix initial permissions types ([#2111](https://github.com/MetaMask/snaps/pull/2111)) ## [1.4.0] - ### Added - - Add support for signature insights ([#2074](https://github.com/MetaMask/snaps/pull/2074), [#2079](https://github.com/MetaMask/snaps/pull/2079)) - Add types for `snap_getClientStatus` ([#2051](https://github.com/MetaMask/snaps/pull/2051)) ### Changed - - Bump @metamask/utils from 8.2.1 to 8.3.0 ([#2100](https://github.com/MetaMask/snaps/pull/2100)) ## [1.3.2] - ### Fixed - - Fix missing `sensitive` property in `Copyable` type ([#2070](https://github.com/MetaMask/snaps/pull/2070)) ## [1.3.1] - ### Fixed - - Export error wrappers ([#2043](https://github.com/MetaMask/snaps/pull/2043)) ## [1.3.0] - ### Added - - Add image fetching utility functions ([#1995](https://github.com/MetaMask/snaps/pull/1995)) - This adds two functions: - `getImageComponent` to get an `image` component from a PNG or JPEG URL. - `getImageData` to get a base64 data string, which can be embedded in an SVG image. ## [1.2.0] - ### Added - - Add `row` and `address` component ([#1968](https://github.com/MetaMask/snaps/pull/1968)) - Add `enumValue`, `literal` and `union` from `snaps-utils` ([#1968](https://github.com/MetaMask/snaps/pull/1968)) ### Changed - - Bump several MetaMask dependencies ([#1964](https://github.com/MetaMask/snaps/pull/1964)) ## [1.1.0] - ### Added - - Add Snap error wrappers of JSON-RPC errors ([#1924](https://github.com/MetaMask/snaps/pull/1924)) ## [1.0.0] - ### Added - - Initial release of this package. -[Unreleased]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@6.0.1...HEAD -[6.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@6.0.0...@metamask/snaps-sdk@6.0.1 -[6.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@5.0.0...@metamask/snaps-sdk@6.0.0 -[5.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@4.4.2...@metamask/snaps-sdk@5.0.0 -[4.4.2]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@4.4.1...@metamask/snaps-sdk@4.4.2 -[4.4.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@4.4.0...@metamask/snaps-sdk@4.4.1 -[4.4.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@4.3.0...@metamask/snaps-sdk@4.4.0 -[4.3.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@4.2.0...@metamask/snaps-sdk@4.3.0 -[4.2.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@4.1.0...@metamask/snaps-sdk@4.2.0 -[4.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@4.0.1...@metamask/snaps-sdk@4.1.0 -[4.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@4.0.0...@metamask/snaps-sdk@4.0.1 -[4.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@3.2.0...@metamask/snaps-sdk@4.0.0 -[3.2.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@3.1.1...@metamask/snaps-sdk@3.2.0 -[3.1.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@3.1.0...@metamask/snaps-sdk@3.1.1 -[3.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@3.0.1...@metamask/snaps-sdk@3.1.0 -[3.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@3.0.0...@metamask/snaps-sdk@3.0.1 -[3.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@2.1.0...@metamask/snaps-sdk@3.0.0 -[2.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@2.0.0...@metamask/snaps-sdk@2.1.0 -[2.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@1.4.0...@metamask/snaps-sdk@2.0.0 -[1.4.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@1.3.2...@metamask/snaps-sdk@1.4.0 -[1.3.2]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@1.3.1...@metamask/snaps-sdk@1.3.2 -[1.3.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@1.3.0...@metamask/snaps-sdk@1.3.1 -[1.3.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@1.2.0...@metamask/snaps-sdk@1.3.0 -[1.2.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@1.1.0...@metamask/snaps-sdk@1.2.0 -[1.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-sdk@1.0.0...@metamask/snaps-sdk@1.1.0 -[1.0.0]: https://github.com/metamask/snaps/releases/tag/@metamask/snaps-sdk@1.0.0 +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@7.0.0...HEAD +[7.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@5.0.0...@metamask/snaps-sdk@7.0.0 +[5.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.2...@metamask/snaps-sdk@5.0.0 +[4.4.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.1...@metamask/snaps-sdk@4.4.2 +[4.4.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.0...@metamask/snaps-sdk@4.4.1 +[4.4.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.3.0...@metamask/snaps-sdk@4.4.0 +[4.3.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.2.0...@metamask/snaps-sdk@4.3.0 +[4.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.1.0...@metamask/snaps-sdk@4.2.0 +[4.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.0.1...@metamask/snaps-sdk@4.1.0 +[4.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.0.0...@metamask/snaps-sdk@4.0.1 +[4.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@3.2.0...@metamask/snaps-sdk@4.0.0 +[3.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@3.1.1...@metamask/snaps-sdk@3.2.0 +[3.1.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@3.1.0...@metamask/snaps-sdk@3.1.1 +[3.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@3.0.1...@metamask/snaps-sdk@3.1.0 +[3.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@3.0.0...@metamask/snaps-sdk@3.0.1 +[3.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@2.1.0...@metamask/snaps-sdk@3.0.0 +[2.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@2.0.0...@metamask/snaps-sdk@2.1.0 +[2.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@1.4.0...@metamask/snaps-sdk@2.0.0 +[1.4.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@1.3.2...@metamask/snaps-sdk@1.4.0 +[1.3.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@1.3.1...@metamask/snaps-sdk@1.3.2 +[1.3.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@1.3.0...@metamask/snaps-sdk@1.3.1 +[1.3.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@1.2.0...@metamask/snaps-sdk@1.3.0 +[1.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@1.1.0...@metamask/snaps-sdk@1.2.0 +[1.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@1.0.0...@metamask/snaps-sdk@1.1.0 +[1.0.0]: https://github.com/MetaMask/snaps/releases/tag/@metamask/snaps-sdk@1.0.0 diff --git a/packages/snaps-sdk/package.json b/packages/snaps-sdk/package.json index 2fea529111..48525482d5 100644 --- a/packages/snaps-sdk/package.json +++ b/packages/snaps-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-sdk", - "version": "6.0.1", + "version": "7.0.0", "repository": { "type": "git", "url": "https://github.com/MetaMask/snaps.git" diff --git a/packages/snaps-utils/CHANGELOG.md b/packages/snaps-utils/CHANGELOG.md index 3cb76182ef..13509426ac 100644 --- a/packages/snaps-utils/CHANGELOG.md +++ b/packages/snaps-utils/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/), @@ -7,63 +6,57 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [7.7.1] +## [7.8.0] +### Added +- Add function `serialiseJsx`, which serializes a JSX node to a string. ([#2409](https://github.com/metamask/snaps/pull/2409)) -### Uncategorized +### Changed +- Bump `@metamask/base-controller` from `^6.0.0` to `^6.0.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) +- Bump `@metamask/key-tree` from `^9.1.1` to `^9.1.2` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) +- Bump `@metamask/permission-controller` from `^10.0.0` to `^10.0.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) +- Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) +- Bump `@metamask/snaps-registry` from `^3.1.0` to `^3.2.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)) -- Replace `superstruct` with ESM-compatible fork `@metamask/superstruct` ([#2445](https://github.com/metamask/snaps/pull/2445)) -- fix: Properly terminate origin regex with $ ([#2576](https://github.com/metamask/snaps/pull/2576)) -- fix: Enforce stricter size limits for source code and auxiliary files ([#2527](https://github.com/metamask/snaps/pull/2527)) -- Support JSX and Interactive UI in simulator ([#2409](https://github.com/metamask/snaps/pull/2409)) +### 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. +- Prevent `allowedOrigins` from being bypassed by enforcing that regex are terminated with $. ([#2576](https://github.com/metamask/snaps/pull/2576)) ## [7.7.0] - ### Added - - Support conditional children in most JSX components ([#2506](https://github.com/MetaMask/snaps/pull/2506)) - Support additional components inside forms ([#2497](https://github.com/MetaMask/snaps/pull/2497)) ### Fixed - - Improve validation of `endowment:rpc` ([#2512](https://github.com/MetaMask/snaps/pull/2512)) ## [7.6.0] - ### Added - - Support nested children in JSX ([#2482](https://github.com/MetaMask/snaps/pull/2482)) ### 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)) ### Fixed - - Fix a problem with converting legacy UIs that used `row()` ([#2486](https://github.com/MetaMask/snaps/pull/2486)) - Revert requiring at least one child in JSX components ([#2470](https://github.com/MetaMask/snaps/pull/2470)) ## [7.5.0] - ### Added - - Allow wildcards in `allowedOrigins` ([#2458](https://github.com/MetaMask/snaps/pull/2458)) - Add `hidden` flag for preinstalled Snaps ([#2463](https://github.com/MetaMask/snaps/pull/2463)) ### Fixed - - Require at least 1 child in JSX components ([#2466](https://github.com/MetaMask/snaps/pull/2466)) ## [7.4.1] - ### Fixed - - Fix invalid `@metamask/snaps-sdk` imports ([#2452](https://github.com/MetaMask/snaps/pull/2452)) ## [7.4.0] - ### Added - - Add support for BIP-32-Ed25519 / CIP-3 key derivation ([#2408](https://github.com/MetaMask/snaps/pull/2408)) ## Fixed @@ -71,66 +64,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix build producing invalid JSX types ([#2410](https://github.com/MetaMask/snaps/pull/2410)) ## [7.3.0] - ### Added - - Add JSX support for custom UI ([#2258](https://github.com/MetaMask/snaps/pull/2258), [#2383](https://github.com/MetaMask/snaps/pull/2383)) - This adds utility functions for working with JSX in Snaps. ### Changed - - Bump `@metamask/base-controller` from `5.0.1` to `5.0.2` ([#2375](https://github.com/MetaMask/snaps/pull/2375)) ## [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)) ### Fixed - - Disable GitHub flavored Markdown when lexing ([#2317](https://github.com/MetaMask/snaps/pull/2317)) ## [7.0.4] - ### Changed - - Bump MetaMask dependencies ([#2270](https://github.com/MetaMask/snaps/pull/2270)) ### Fixed - - Allow `maxRequestTime` on `endowment:rpc` ([#2291](https://github.com/MetaMask/snaps/pull/2291)) ## [7.0.3] - ### Changed - - Update markdown parsing for better link validation ([#2261](https://github.com/MetaMask/snaps/pull/2261)) - Bump `@metamask/snaps-registry` to `^3.0.1` ([#2255](https://github.com/MetaMask/snaps/pull/2255)) ## [7.0.2] - ### Fixed - - Remove usage of `Buffer` from browser entrypoint ([#2238](https://github.com/MetaMask/snaps/pull/2238)) ## [7.0.1] - ### Fixed - - Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220)) - Fix regex for HTML comment tokens ([#2222](https://github.com/MetaMask/snaps/pull/2222)) ## [7.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. @@ -138,110 +112,81 @@ 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)) ### Removed - - **BREAKING:** Move `file` struct to CLI ([#2207](https://github.com/MetaMask/snaps/pull/2207)) - The previously exported `file` struct can now be found in `@metamask/snaps-cli`. ### Fixed - - Add sizing limits for custom UI ([#2199](https://github.com/MetaMask/snaps/pull/2199)) - Properly validate links contained in rows ([#2205](https://github.com/MetaMask/snaps/pull/2205)) ## [6.1.0] - ### Added - - Add a manifest warning when no icon is found and when icon is not square ([#2185](https://github.com/MetaMask/snaps/pull/2185)) ## [6.0.0] - ### Added - - Add support for dynamic user interfaces ([#1465](https://github.com/MetaMask/snaps/pull/1465), [#2126](https://github.com/MetaMask/snaps/pull/2126)) - Add support for snap defined execution timeouts ([#2098](https://github.com/MetaMask/snaps/pull/2098)) ### Changed - - **BREAKING:** Update name lookup type validation ([#2113](https://github.com/MetaMask/snaps/pull/2113)) - The return value and the permission format has changed, see [SIP-12](https://metamask.github.io/SIPs/SIPS/sip-12) for more details. - Speed up eval-worker for improved CLI performance ([#2147](https://github.com/MetaMask/snaps/pull/2147)) - Update MetaMask dependencies ([#2132](https://github.com/MetaMask/snaps/pull/2132), [#2142](https://github.com/MetaMask/snaps/pull/2142)) ### Fixed - - Fix initial permissions types ([#2111](https://github.com/MetaMask/snaps/pull/2111)) ## [5.2.0] - ### Added - - Add support for initial connections ([#2048](https://github.com/MetaMask/snaps/pull/2048)) - Add support for preinstalled snaps ([#2008](https://github.com/MetaMask/snaps/pull/2008)) - Add support for signature insights ([#2074](https://github.com/MetaMask/snaps/pull/2074)) ### Changed - - Bump several MetaMask dependencies ([#2086](https://github.com/MetaMask/snaps/pull/2086), [#2100](https://github.com/MetaMask/snaps/pull/2100)) ## [5.1.2] - ### Fixed - - Fix missing `global` during snap evaluation ([#2072](https://github.com/MetaMask/snaps/pull/2072)) ## [5.1.1] - ### Changed - - Fix missing export ([#2045](https://github.com/MetaMask/snaps/pull/2045)) - Bump `@metamask/permission-controller` from `6.0.0` to `7.0.0` ([#2064](https://github.com/MetaMask/snaps/pull/2064)) ### Removed - - Remove support for object-like syntax for cronjobs ([#2057](https://github.com/MetaMask/snaps/pull/2057)) - Since this never worked in the first place we aren't marking it as breaking. ## [5.1.0] - ### Added - - Add `getSnapDerivationPathName` and `getSlip44ProtocolName` to be shared across clients ([#2033](https://github.com/MetaMask/snaps/pull/2033)) ### Changed - - Bump `snaps-registry` ([#2020](https://hub.com/MetaMask/snaps/pull/2020)) ## [5.0.1] - ### Changed - - Improve base64 encoding/decoding speeds ([#1985](https://github.com/MetaMask/snaps/pull/1985)) - Bump several MetaMask dependencies ([#1989](https://github.com/MetaMask/snaps/pull/1989), [#1993](https://github.com/MetaMask/snaps/pull/1993)) ## [5.0.0] - ### Changed - - Bump several MetaMask dependencies ([#1964](https://github.com/MetaMask/snaps/pull/1964)) ### Removed - - **BREAKING:** Move `enumValue`, `literal` and `union` to `snaps-sdk` ([#1968](https://github.com/MetaMask/snaps/pull/1968)) ### Fixed - - Fix issues generating checksum with binary auxiliary files ([#1975](https://github.com/MetaMask/snaps/pull/1975)) ## [4.0.1] - ### Fixed - - Change `validateTextLinks` to only get URL in markdown links ([#1914](https://github.com/MetaMask/snaps/pull/1914)) ## [4.0.0] - ### Changed - - Use `SubtleCrypto` for checksum calculation if available ([#1953](https://github.com/MetaMask/snaps/pull/1953)) - This reduces the time of the checksum calculation by up to 95% in some environments. @@ -252,7 +197,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `@metamask/snaps-ui` packages, and is much more lightweight. ### Removed - - **BREAKING**: Remove `ValidatedSnapId` and `SnapId` types ([#1930](https://github.com/MetaMask/snaps/pull/1930)) - `ValidatedSnapId` was moved to the `@metamask/snaps-sdk` package as `SnapId`. @@ -266,141 +210,111 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 type from the `@metamask/snaps-sdk` package. ### Fixed - - Include localization files in checksum calculations ([#1956](https://github.com/MetaMask/snaps/pull/1956)) ## [3.3.0] - ### Added - - Add manifest localization functionality ([#1889](https://github.com/MetaMask/snaps/pull/1889)) - Add `OnHomePage` export ([#1896](https://github.com/MetaMask/snaps/pull/1896)) ## [3.2.0] - ### Added - - Add support for links in custom UI and notifications ([#1814](https://github.com/MetaMask/snaps/pull/1814)) ## [3.1.0] - ### Added - - Add static file API ([#1836](https://github.com/MetaMask/snaps/pull/1836), [#1858](https://github.com/MetaMask/snaps/pull/1858)) ### Changed - - Update multiple MetaMask dependencies ([#1841](https://github.com/MetaMask/snaps/pull/1841)) - Bump Babel packages from `^7.20.12` to `^7.23.2` ([#1862](https://github.com/MetaMask/snaps/pull/1862)) ## [3.0.0] - ### Added - - Add keyring export and endowment ([#1787](https://github.com/MetaMask/snaps/pull/1787)) - Add optional `allowedOrigins` field to `endowment:rpc` ([#1822](https://github.com/MetaMask/snaps/pull/1822)) - This can be used to only accept certain origins in your Snap. ### Changed - - **BREAKING:** Bump minimum Node.js version to `^18.16.0` ([#1741](https://github.com/MetaMask/snaps/pull/1741)) ## [2.0.1] - ### Changed - - Remove deprecated `endowment:long-running` ([#1751](https://github.com/MetaMask/snaps/pull/1751)) ## [2.0.0] - ### Changed - - Initial stable release from main branch ([#1757](https://github.com/MetaMask/snaps/pull/1757)) ## [0.38.4-flask.1] - ### Added - - Add `onNameLookup` export ([#1394](https://github.com/MetaMask/snaps/pull/1394), [#1759](https://github.com/MetaMask/snaps/pull/1759)) ### Changed - - Bump `metamask/utils` and `metamask/snaps-registry` ([#1738](https://github.com/MetaMask/snaps/pull/1738)) ## [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)) ## [0.38.2-flask.1] - ### Fixed - - Remove unused dependencies ([#1680](https://github.com/MetaMask/snaps/pull/1680)) ## [0.38.1-flask.1] - ### Changed - - Update transaction insights response and add severity level enum ([#1653](https://github.com/MetaMask/snaps/pull/1653)) - Snaps are now able to specify a `severity` for alongside their insights. - See [SIP-11](https://metamask.github.io/SIPs/SIPS/sip-11) for more information. ## [0.38.0-flask.1] - ### Added - - Add `onInstall` and `onUpdate` lifecycle hooks ([#1643](https://github.com/MetaMask/snaps/pull/1643)) ### Changed - - Move source code and snap state back to controller state ([#1634](https://github.com/MetaMask/snaps/pull/1634)) - 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. -[Unreleased]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.7.1...HEAD -[7.7.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.7.0...@metamask/snaps-utils@7.7.1 -[7.7.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.6.0...@metamask/snaps-utils@7.7.0 -[7.6.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.5.0...@metamask/snaps-utils@7.6.0 -[7.5.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.4.1...@metamask/snaps-utils@7.5.0 -[7.4.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.4.0...@metamask/snaps-utils@7.4.1 -[7.4.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.3.0...@metamask/snaps-utils@7.4.0 -[7.3.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.2.0...@metamask/snaps-utils@7.3.0 -[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 -[7.0.2]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.0.1...@metamask/snaps-utils@7.0.2 -[7.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@7.0.0...@metamask/snaps-utils@7.0.1 -[7.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@6.1.0...@metamask/snaps-utils@7.0.0 -[6.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@6.0.0...@metamask/snaps-utils@6.1.0 -[6.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@5.2.0...@metamask/snaps-utils@6.0.0 -[5.2.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@5.1.2...@metamask/snaps-utils@5.2.0 -[5.1.2]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@5.1.1...@metamask/snaps-utils@5.1.2 -[5.1.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@5.1.0...@metamask/snaps-utils@5.1.1 -[5.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@5.0.1...@metamask/snaps-utils@5.1.0 -[5.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@5.0.0...@metamask/snaps-utils@5.0.1 -[5.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@4.0.1...@metamask/snaps-utils@5.0.0 -[4.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@4.0.0...@metamask/snaps-utils@4.0.1 -[4.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@3.3.0...@metamask/snaps-utils@4.0.0 -[3.3.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@3.2.0...@metamask/snaps-utils@3.3.0 -[3.2.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@3.1.0...@metamask/snaps-utils@3.2.0 -[3.1.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@3.0.0...@metamask/snaps-utils@3.1.0 -[3.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@2.0.1...@metamask/snaps-utils@3.0.0 -[2.0.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@2.0.0...@metamask/snaps-utils@2.0.1 -[2.0.0]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@0.38.4-flask.1...@metamask/snaps-utils@2.0.0 -[0.38.4-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@0.38.3-flask.1...@metamask/snaps-utils@0.38.4-flask.1 -[0.38.3-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@0.38.2-flask.1...@metamask/snaps-utils@0.38.3-flask.1 -[0.38.2-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@0.38.1-flask.1...@metamask/snaps-utils@0.38.2-flask.1 -[0.38.1-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@0.38.0-flask.1...@metamask/snaps-utils@0.38.1-flask.1 -[0.38.0-flask.1]: https://github.com/metamask/snaps/compare/@metamask/snaps-utils@0.37.2-flask.1...@metamask/snaps-utils@0.38.0-flask.1 -[0.37.2-flask.1]: https://github.com/metamask/snaps/releases/tag/@metamask/snaps-utils@0.37.2-flask.1 +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.8.0...HEAD +[7.8.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.6.0...@metamask/snaps-utils@7.8.0 +[7.6.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.5.0...@metamask/snaps-utils@7.6.0 +[7.5.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.4.1...@metamask/snaps-utils@7.5.0 +[7.4.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.4.0...@metamask/snaps-utils@7.4.1 +[7.4.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.3.0...@metamask/snaps-utils@7.4.0 +[7.3.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.2.0...@metamask/snaps-utils@7.3.0 +[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 +[7.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.1...@metamask/snaps-utils@7.0.2 +[7.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.0...@metamask/snaps-utils@7.0.1 +[7.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@6.1.0...@metamask/snaps-utils@7.0.0 +[6.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@6.0.0...@metamask/snaps-utils@6.1.0 +[6.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@5.2.0...@metamask/snaps-utils@6.0.0 +[5.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@5.1.2...@metamask/snaps-utils@5.2.0 +[5.1.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@5.1.1...@metamask/snaps-utils@5.1.2 +[5.1.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@5.1.0...@metamask/snaps-utils@5.1.1 +[5.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@5.0.1...@metamask/snaps-utils@5.1.0 +[5.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@5.0.0...@metamask/snaps-utils@5.0.1 +[5.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@4.0.1...@metamask/snaps-utils@5.0.0 +[4.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@4.0.0...@metamask/snaps-utils@4.0.1 +[4.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@3.3.0...@metamask/snaps-utils@4.0.0 +[3.3.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@3.2.0...@metamask/snaps-utils@3.3.0 +[3.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@3.1.0...@metamask/snaps-utils@3.2.0 +[3.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@3.0.0...@metamask/snaps-utils@3.1.0 +[3.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@2.0.1...@metamask/snaps-utils@3.0.0 +[2.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@2.0.0...@metamask/snaps-utils@2.0.1 +[2.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@0.38.4-flask.1...@metamask/snaps-utils@2.0.0 +[0.38.4-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@0.38.3-flask.1...@metamask/snaps-utils@0.38.4-flask.1 +[0.38.3-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@0.38.2-flask.1...@metamask/snaps-utils@0.38.3-flask.1 +[0.38.2-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@0.38.1-flask.1...@metamask/snaps-utils@0.38.2-flask.1 +[0.38.1-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@0.38.0-flask.1...@metamask/snaps-utils@0.38.1-flask.1 +[0.38.0-flask.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@0.37.2-flask.1...@metamask/snaps-utils@0.38.0-flask.1 +[0.37.2-flask.1]: https://github.com/MetaMask/snaps/releases/tag/@metamask/snaps-utils@0.37.2-flask.1 diff --git a/packages/snaps-utils/package.json b/packages/snaps-utils/package.json index 1958df6ab3..319c83e1db 100644 --- a/packages/snaps-utils/package.json +++ b/packages/snaps-utils/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-utils", - "version": "7.7.1", + "version": "7.8.0", "repository": { "type": "git", "url": "https://github.com/MetaMask/snaps.git"