Skip to content

0.16.0

Choose a tag to compare

@github-actions github-actions released this 14 Jun 22:10
· 1781 commits to main since this release
e9dbe49

@metamask/snaps-cli

Changed

  • BREAKING: Snaps are now required to export onRpcRequest to receive RPC requests (#481, #533, #538, #541, #544)
    • The type of the function is available in @metamask/snap-types as OnRpcRequestHandler.

Fixed

  • Fix importing local files in TypeScript Snaps (#527)
  • Fix build command when the CLI is installed globally (#542)

@metamask/snap-controllers

Added

  • BREAKING: Encrypt Snap state by default (#369)
    • Breaks existing installed snaps that use snap_manageState. All such Snaps must be reinstalled.

Changed

  • BREAKING: Snaps are now required to export onRpcRequest to receive RPC requests (#481, #533, #538)
    • The type of the function is available in @metamask/snap-types as OnRpcRequestHandler.
  • Snaps can no longer run timers outside of pending RPC requests (#490)

Fixed

  • Allow version matching with prerelease versions (#508)
  • Fix issue with iframe error reporting (#501)
  • Fix an issue with file paths with leading ./ in npm snap manifests (#537)

examples

Added

  • Add Browserify Snap example (#478)
  • Add CLI as dependency to examples (#528)

Changed

  • BREAKING: Update examples to use CommonJS exported onRpcRequest and named parameters (#481, #533, #538, #541)
  • Update TypeScript example to use OnRpcRequestHandler (#531, #533, #538)
  • Update TypeScript example to use multiple files (#527)

@metamask/execution-environments

Changed

  • BREAKING: Snaps are now required to export onRpcRequest to receive RPC requests (#481, #533, #538, #541)
  • Snaps can no longer run timers outside of pending RPC requests (#490)

Removed

  • BREAKING: Remove wallet.registerRpcMessageHandler support #481

Fixed

  • Fix issue with iframe error reporting (#501)

@metamask/snaps-browserify-plugin

Changed

  • No changes this release.

@metamask/rollup-plugin-snaps

Changed

  • No changes this release.

@metamask/snaps-webpack-plugin

Changed

  • No changes this release.

@metamask/rpc-methods

Changed

  • No changes this release.

@metamask/snap-types

Added

Changed

  • BREAKING: Change SnapRpcHandler type to reflect new function signature (#534, #533, #481)

Removed

  • BREAKING: Remove wallet.registerRpcMessageHandler #481

@metamask/snap-utils

Changed

  • No changes this release.