Skip to content

Releases: MetaMask/snaps

19.0.0

14 Nov 10:19
1a14e3d
Compare
Choose a tag to compare

@metamask/localization-example-snap 1.1.1

Fixed

  • Publish locales folder to NPM (#1962)

18.0.0

13 Nov 15:08
c271f99
Compare
Choose a tag to compare

@metamask/snaps-cli 3.0.2

Changed

  • Use @metamask/snaps-sdk package (#1951)
    • This package replaces the @metamask/snaps-types and
      @metamask/snaps-ui packages.

@metamask/snaps-controllers 3.4.0

Changed

  • Use SubtleCrypto for checksum calculation if available (#1953)
    • This reduces the time of the checksum calculation by up to 95% in some
      environments.
  • Use @metamask/snaps-sdk package (#1930, #1949)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages.

Fixed

  • Fix support for transaction insight Snaps returning null (#1952)

@metamask/snaps-execution-environments 3.3.0

Changed

  • Use @metamask/snaps-sdk package (#1930,
    #1946, #1949,
    #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages.

@metamask/snaps-jest 4.0.0

Changed

  • Use @metamask/snaps-sdk package (#1930,
    #1950, #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)
    • These enums can now be imported from @metamask/snaps-sdk instead.

@metamask/snaps-rpc-methods 4.0.0

Changed

  • Use @metamask/snaps-sdk package (#1930,
    #1950, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages.

Removed

  • BREAKING: Remove DialogType, ManageStateOperation, and NotificationType enums (#1930)
    • These are now defined in the @metamask/snaps-sdk package.

@metamask/snaps-sdk 1.0.0

Added

  • Initial release of this package.

@metamask/snaps-simulator 2.4.0

Changed

  • Use SubtleCrypto for checksum calculation if available (#1953)
    • This reduces the time of the checksum calculation by up to 95% in some
      environments.
  • Use @metamask/snaps-sdk package (#1930,
    #1949, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages.
  • Bump @metamask/eth-json-rpc-middleware from 12.0.0 to 12.0.1 (#1935)

@metamask/snaps-utils 4.0.0

Changed

  • Use SubtleCrypto for checksum calculation if available (#1953)
    • This reduces the time of the checksum calculation by up to 95% in some
      environments.
  • Use @metamask/snaps-sdk package (#1930,
    #1946, #1950,
    #1949, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

Removed

  • BREAKING: Remove ValidatedSnapId and SnapId types (#1930)
    • ValidatedSnapId was moved to the @metamask/snaps-sdk package as
      SnapId.
    • SnapId was an alias of string, and is no longer needed.
  • BREAKING: Remove SnapError (#1949)
    • This class was moved to the @metamask/snaps-sdk package.
  • BREAKING: Remove EnumToUnion type (#1930)
    • This type was moved to the @metamask/snaps-sdk package.
  • BREAKING: Remove RequestedSnapPermissions type (#1930)
    • This type was deprecated, and is now replaced by the InitialPermissions
      type from the @metamask/snaps-sdk package.

Fixed

  • Include localization files in checksum calculations (#1956)

@metamask/snaps-webpack-plugin 3.1.0

Changed

  • Use @metamask/snaps-sdk package (#1949)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages.

@metamask/bip32-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1930,
    #1946, #1950,
    #1949, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/bip44-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1930,
    #1946, #1950,
    #1949, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/browserify-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/browserify-plugin-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/cronjob-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/dialog-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1930,
    #1946, #1950,
    #1949, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/error-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/ethereum-provider-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/ethers-js-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/get-entropy-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1930,
    #1946, #1950,
    #1949, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/get-file-example-snap 1.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/home-page-example-snap 1.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/json-rpc-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/lifecycle-hooks-example-snap 2.1.0

Changed

  • Use @metamask/snaps-sdk package (#1946, #1954)
    • This package replaces the @metamask/snaps-types and
    • @metamask/snaps-ui packages, and is much more lightweight.

@metamask/localization-example-snap 1.1.0

...

Read more

17.0.0

09 Nov 12:32
e2529f0
Compare
Choose a tag to compare

@metamask/create-snap 3.1.0

Added

  • Create an initial commit when creating a Snap from the template (#1917)

Fixed

  • Handle unhandled errors (#1916)

@metamask/snaps-controllers 3.3.0

Added

  • Add manifest localization functionality (#1889)
  • Add support for unencrypted storage using snap_manageState (#1902)
  • Add OnHomePage export (#1896)

@metamask/snaps-execution-environments 3.2.0

Added

  • Add OnHomePage export (#1896)

Fixed

  • Await stream message delivery (#1928)

@metamask/snaps-rpc-methods 3.3.0

Added

  • Add support for unencrypted storage using snap_manageState (#1902)

@metamask/snaps-simulator 2.3.0

Added

  • Add manifest localization functionality (#1889)
  • Add support for unencrypted storage using snap_manageState (#1902)

@metamask/snaps-types 3.1.0

Added

  • Add types for OnHomePage export (#1918)

@metamask/snaps-utils 3.3.0

Added

  • Add manifest localization functionality (#1889)
  • Add OnHomePage export (#1896)

@metamask/home-page-example-snap 1.0.0

Added

  • Initial release (#1918)

@metamask/localization-example-snap 1.0.0

Added

  • Initial release (#1889)

@metamask/manage-state-example-snap 2.1.0

Changed

  • Add support for unencrypted storage (#1915)

@metamask/insights-example-snap 2.0.2

Changed

  • Update example insight snap to support transaction insights v2 (#1911)

16.0.0

01 Nov 11:00
81ea173
Compare
Choose a tag to compare

@metamask/snaps-rpc-methods 3.2.1

Fixed

  • Fix assertLinksAreSafe import (#1908)

15.0.0

31 Oct 10:25
a3e428d
Compare
Choose a tag to compare

@metamask/snaps-controllers 3.2.0

Added

  • Add support for links in custom UI and notifications (#1814)

Fixed

  • Fix an issue where snaps throwing a SnapError would be allowed to run for longer than expected (#1897)

@metamask/snaps-jest 3.1.0

Added

  • Add support for links in custom UI and notifications (#1814)

@metamask/snaps-rpc-methods 3.2.0

Added

  • Add support for links in custom UI and notifications (#1814)

@metamask/snaps-simulator 2.2.0

Added

  • Add support for links in custom UI (#1814)

@metamask/snaps-ui 3.1.0

Added

  • Add support for links in custom UI and notifications (#1814)

@metamask/snaps-utils 3.2.0

Added

  • Add support for links in custom UI and notifications (#1814)

@metamask/get-file-example-snap 1.0.1

Fixed

  • Fix missing files in package.json (#1894)

14.0.0

25 Oct 13:00
c100b49
Compare
Choose a tag to compare

@metamask/snaps-controllers 3.1.1

Fixed

  • Fix a few issues with allowlist version resolving (#1888)

13.0.0

23 Oct 11:02
48c961f
Compare
Choose a tag to compare

@metamask/create-snap 3.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/snaps-browserify-plugin 3.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/snaps-cli 3.0.1

Changed

  • Bump Babel packages from ^7.20.12 to ^7.23.2 (#1862)
  • Update multiple MetaMask dependencies (#1841)

@metamask/snaps-controllers 3.1.0

Added

  • Add static file API (#1836)
    • This adds a snap_getFile method, which Snaps can use to load files.
  • Add origin parameter to snapInstalled and snapUpdated events (#1867)

Changed

  • Improve error handling (#1841)
    • Snaps can now throw a SnapError, without causing the Snap to crash.
  • Bump tar-stream from ^2.2.0 to ^3.1.6 (#1853)
  • Make snaps-execution-environments an optional peer dependency (#1845)
  • Remove snap errors from state (#1837)

Fixed

  • Try to match requested versions with an allowlisted version (#1877)
  • Improve performance when installing snaps with a static version (#1878)
  • Stop persisting snaps in the installing state (#1876)

@metamask/snaps-execution-environments 3.1.0

Changed

  • Improve error handling (#1841)
    • Snaps can now throw a SnapError, without causing the Snap to crash.
  • Standardise all errors thrown in execution environments (#1830)

@metamask/snaps-jest 3.0.0

Changed

  • BREAKING: Improve error handling (#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:
      {
        code: -32603,
        message: 'Internal JSON-RPC error.',
        data: {
          cause: {
            message: 'The method does not exist / is not available.',
            stack: expect.any(String),
          },
        },
      }
      Now, the following error is returned instead:
      {
        code: -32601,
        message: 'The method does not exist / is not available.',
        stack: expect.any(String),
        data: {
          method: 'foo',
          cause: null,
        },
      }

@metamask/snaps-rollup-plugin 3.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/snaps-rpc-methods 3.1.0

Changed

  • Rename package to @metamask/snaps-rpc-methods (#1864)
  • Update multiple MetaMask dependencies (#1841)

@metamask/snaps-simulator 2.1.0

Added

  • Add support for the static file API (#1836)

Changed

  • Improve error handling (#1841)
    • Errors shown in the simulator now more accurately reflect the error thrown by the Snap.

@metamask/snaps-types 3.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/snaps-ui 3.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/snaps-utils 3.1.0

Added

Changed

  • Update multiple MetaMask dependencies (#1841)
  • Bump Babel packages from ^7.20.12 to ^7.23.2 (#1862)

@metamask/snaps-webpack-plugin 3.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/bip32-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/bip44-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/browserify-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/browserify-plugin-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/cronjob-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/dialog-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/error-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/ethereum-provider-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/ethers-js-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/get-entropy-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/get-file-example-snap 1.0.0

Added

@metamask/get-locale-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/json-rpc-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/lifecycle-hooks-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/manage-state-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/name-lookup-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/network-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/notification-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/rollup-plugin-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/insights-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/wasm-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/webpack-plugin-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/consumer-signer-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

@metamask/core-signer-example-snap 2.0.1

Changed

  • Update multiple MetaMask dependencies (#1841)

12.0.0

09 Oct 09:13
fbf605d
Compare
Choose a tag to compare

@metamask/create-snap 3.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/rpc-methods 3.0.0

Added

  • Add keyring export and endowment (#1787)

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-browserify-plugin 3.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-cli 3.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-controllers 3.0.0

Added

  • Add keyring export and endowment (#1787)
  • Add optional allowedOrigins field to endowment:rpc (#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)

@metamask/snaps-execution-environments 3.0.0

Added

  • Add keyring export and endowment (#1787)

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-jest 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-rollup-plugin 3.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-simulator 2.0.0

Added

  • Add image component (#1783)

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-types 3.0.0

Added

  • Add keyring export and endowment (#1787)

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-ui 3.0.0

Added

  • Add image component (#1783)

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/snaps-utils 3.0.0

Added

  • Add keyring export and endowment (#1787)
  • Add optional allowedOrigins field to endowment:rpc (#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)

@metamask/snaps-webpack-plugin 3.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/bip32-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/bip44-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/browserify-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/browserify-plugin-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/cronjob-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/dialog-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/error-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/ethereum-provider-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/ethers-js-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/get-entropy-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/get-locale-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/json-rpc-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/lifecycle-hooks-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/manage-state-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/name-lookup-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/network-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/notification-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/rollup-plugin-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/insights-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/wasm-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/webpack-plugin-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/consumer-signer-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

@metamask/core-signer-example-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to ^18.16.0 (#1741)

11.0.0

03 Oct 10:52
ece3402
Compare
Choose a tag to compare

@metamask/create-snap 2.0.0

Changed

  • BREAKING: Bump minimum Node.js version to 18.6.0 (#1789)

@metamask/snaps-cli 2.0.2

Fixed

  • Fix Webpack being unable to find swc-loader in some cases (#1798)
  • Check minimum Node version in CLI (#1797)

@metamask/snaps-controllers 2.0.2

Added

  • Add SnapController:snapUninstalled event (#1800)

Fixed

  • Fix some issues with SnapController events (#1800)
  • Fix an issue where cronjobs would continually be executed on init (#1790)

@metamask/snaps-webpack-plugin 2.0.1

Changed

  • Improve error messaging (#1798)

10.0.0

27 Sep 09:07
e08b9af
Compare
Choose a tag to compare

@metamask/create-snap 1.0.1

Fixed

  • Fix shell command injection (#1784)

@metamask/snaps-cli 2.0.1

Fixed

  • Disable the fullySpecified rule for .js imports in the default Webpack config (#1780)

@metamask/snaps-controllers 2.0.1

Changed

  • Remove deprecated endowment:long-running (#1751)

@metamask/snaps-execution-environments 2.0.1

Changed

  • Remove unmaintained OpenRPC doc for execution environment (#1782)
  • Update LavaMoat (#1754)

Fixed

  • Allow passing undefined parameters to request() (#1776)
  • Fix an issue where errors would not correctly be returned (#1772)

@metamask/snaps-utils 2.0.1

Changed

  • Remove deprecated endowment:long-running (#1751)

@metamask/name-lookup-example-snap 1.0.0

Added