Skip to content

Releases: MetaMask/snaps

114.0.0

Choose a tag to compare

@github-actions github-actions released this 18 Jun 07:37
728e3f7

@metamask/cronjob-duration-example-snap 1.0.0

Added

  • Initial release (#3461)

@metamask/lifecycle-hooks-example-snap 2.2.0

Added

  • Add onStart functionality (#3455)

@metamask/network-example-snap 2.2.0

Added

  • Add WebSocket functionality (#3458)

@metamask/snaps-controllers 13.1.0

Added

  • Add WebSocketService for WebSockets support (#3450)
    • This service must be instantiated to invoke onWebSocketEvent when WebSocket
      messages are received.
  • Add SnapController:init to support onStart handler (#3455)
    • This function should be called when the client has been fully started.

@metamask/snaps-execution-environments 9.1.0

Added

  • Add support for the onWebSocketEvent handler (#3450)
  • Add support for the onStart handler (#3455)

@metamask/snaps-jest 9.1.0

Added

  • Add support for onStart (#3455)

@metamask/snaps-rpc-methods 13.1.0

Added

  • Add RPC methods for WebSockets (#3450, #3459)
  • Add onStart to lifecycle hooks endowment (#3455)

@metamask/snaps-sdk 8.1.0

Added

  • Add WebSockets support (#3450, #3459)
    • This introduces types for the onWebSocketEvent handler which receives
      events from WebSocketService.
  • Add types for onStart handler (#3455)

@metamask/snaps-simulation 3.1.0

Added

  • Add support for onStart (#3455)

@metamask/snaps-utils 10.1.0

Added

  • Add support for the onWebSocketEvent handler (#3450, #3459)
  • Add support for the onStart handler (#3455)

Fixed

  • Fix unused permission detection for endowments with multiple handlers (#3452)

113.0.0

Choose a tag to compare

@github-actions github-actions released this 10 Jun 11:24
08bb538

@metamask/snaps-cli 8.0.0

Changed

  • BREAKING: Drop support for Node.js 18 and 21 (#3447)
  • Bump minimum supported browser versions (#3441)
    • The minimum supported browser versions are now:
      • Chrome 113
      • Firefox 115
  • Bump @swc/core from 1.3.78 to 1.11.31 (#3442)
  • Bump swc-loader from 0.2.3 to 0.2.6 (#3442)

@metamask/snaps-controllers 13.0.0

Changed

  • BREAKING: Drop support for Node.js 18 and 21 (#3447)
  • BREAKING: Refactor cronjob controller to reduce duplication (#3421)
    • The jobs state property was removed in favour of the events property,
      which now contains all background events and cronjobs.
    • CronjobController:schedule now expects a schedule field instead of
      date.
    • Some actions were renamed to remove the BackgroundEvent suffix:
      • CronjobController:scheduleBackgroundEvent ->
        CronjobController:schedule.
      • CronjobController:cancelBackgroundEvent -> CronjobController:cancel.
      • CronjobController:getBackgroundEvents -> CronjobController:get.

Fixed

  • Log errors that cause a crash (#3443)
  • Recover from a crash more gracefully (#3440)
    • This resolves possible race conditions when sending requests to a Snap
      that is in the process of being stopped.

@metamask/snaps-execution-environments 9.0.0

Changed

  • BREAKING: Drop support for Node.js 18 and 21 (#3447)
  • Bump ses from 1.12.0 to 1.13.0 (#3438)

@metamask/snaps-jest 9.0.0

Added

  • Add support for onClientRequest (#3445)

Changed

  • BREAKING: Drop support for Node.js 18 and 21 (#3447)

@metamask/snaps-rpc-methods 13.0.0

Changed

  • BREAKING: Drop support for Node.js 18 and 21 (#3447)
  • BREAKING: Refactor background event methods to reduce duplication (#3421)
    • This requires @metamask/snaps-controllers version 13.0.0 or later.

@metamask/snaps-sdk 8.0.0

Added

  • Support scheduling cronjobs with an ISO 8601 duration (#3421)
    • Instead of using a cron expression, you can now use a duration string to
      schedule a cronjob. This is useful for scheduling recurring events that are
      not based on a specific time of day.
    • To schedule a cronjob with a duration, use duration instead of
      expression in the Snap manifest.

Changed

  • BREAKING: Drop support for Node.js 18 and 21 (#3447)

Fixed

  • Allow AccountSelector in Field and add disabled prop. (#3430)

@metamask/snaps-simulation 3.0.0

Added

  • Add support for onClientRequest (#3445)

Changed

  • BREAKING: Drop support for Node.js 18 and 21 (#3447)
  • Bump @metamask/eth-json-rpc-middleware from 17.0.0 to 17.0.1 (#3427)

@metamask/snaps-utils 10.0.0

Added

  • Support scheduling cronjobs with an ISO 8601 duration (#3421)

Changed

  • BREAKING: Drop support for Node.js 18 and 21 (#3447)

Fixed

  • Unwrap double-wrapped JSON-RPC errors (#3432)

112.0.0

Choose a tag to compare

@github-actions github-actions released this 28 May 10:07
59964cf

@metamask/snaps-execution-environments 8.2.0

Added

  • Add support for AccountSelector component (#3088)

111.0.0

Choose a tag to compare

@github-actions github-actions released this 28 May 08:08
de6f899

@metamask/snaps-controllers 12.3.1

Fixed

  • Support lifecycle hooks for preinstalled Snaps (#3426)

110.0.0

Choose a tag to compare

@github-actions github-actions released this 27 May 14:17
5c758a1

@metamask/snaps-cli 7.2.0

Added

  • Validate platform version against production (#3417)
  • Detect unused permissions (#3335)

@metamask/snaps-controllers 12.3.0

Added

  • Add support for AccountSelector component (#3088)

Changed

  • Fetch registry files in parallel (#3416)

Fixed

  • Prevent scheduling background events less than 1 second in the future (#3414)

@metamask/snaps-jest 8.16.0

Added

  • Add support for onProtocolRequest (#3422)

@metamask/snaps-rpc-methods 12.4.0

Added

  • Add active flag for snap_getClientStatus (#3424)

Fixed

  • Prevent scheduling background events less than 1 second in the future (#3414)

@metamask/snaps-sdk 7.1.0

Added

  • Add active flag for snap_getClientStatus (#3424)
  • Add AccountSelector component (#3088)

@metamask/snaps-simulation 2.7.0

Added

  • Add active flag for snap_getClientStatus (#3424)
  • Add support for onProtocolRequest (#3422)

@metamask/snaps-utils 9.4.0

Added

  • Validate platform version against production (#3417)
  • Detect unused permissions in Snaps CLI (#3335)
  • Add support for AccountSelector component (#3088)
  • Add toCensoredISO8601String util function (#3414)

Changed

  • Bump @metamask/slip44 from 4.1.0 to 4.2.0 (#3419)

@metamask/snaps-webpack-plugin 4.3.0

Changed

  • Improve readability of eval errors (#3335)
  • Bump @metamask/utils from 11.0.1 to 11.3.0 (#3050, #3091,#3232)

109.0.0

Choose a tag to compare

@github-actions github-actions released this 21 May 09:23
ab98e6f

@metamask/snaps-sdk 7.0.0

Added

  • BREAKING: KeyringRequest now includes an origin property (#3412)
    • This requires @metamask/keyring-api version 18.0.0 or newer.

108.0.0

Choose a tag to compare

@github-actions github-actions released this 20 May 09:06
c99e664

@metamask/background-events-example-snap 1.0.0

Added

  • Initial release (#3409)

@metamask/ethereum-provider-example-snap 2.4.0

Added

  • Add getChainId method to get current chain ID (#3407)

@metamask/snaps-controllers 12.2.0

Added

  • Add isMinimumPlatformVersion action (#3405)

Changed

  • Pass origin to SnapKeyring via MultichainRouter (#3403)

107.0.0

Choose a tag to compare

@github-actions github-actions released this 16 May 10:34
e178e41

@metamask/ethereum-provider-example-snap 2.3.0

Changed

  • Use wallet_switchEthereumChain to switch to specified chain ID (#2634)

@metamask/preinstalled-example-snap 0.4.0

Changed

  • Use initialConnections (#3391)

@metamask/snaps-controllers 12.1.0

Added

  • Add support for wallet_switchEthereumChain (#2634)
  • Add support for SIP-31 onClientRequest handler (#3394)

@metamask/snaps-execution-environments 8.1.0

Added

  • Add support for wallet_switchEthereumChain (#2634)
  • Add support for SIP-31 onClientRequest handler (#3394)

@metamask/snaps-jest 8.15.0

Added

  • Add support for wallet_switchEthereumChain (#2634)

@metamask/snaps-rpc-methods 12.3.0

Added

  • Add support for SIP-31 onClientRequest handler (#3394)
  • Add showTestnets to snap_getPreferences (#3395)

@metamask/snaps-sdk 6.24.0

Added

  • Add support for SIP-31 onClientRequest handler (#3394)
    • This adds the corresponding OnClientRequestHandler type.
  • Add showTestnets to snap_getPreferences (#3395)

@metamask/snaps-simulation 2.6.0

Added

  • Add support for wallet_switchEthereumChain (#2634)
  • Add showTestnets to snap_getPreferences (#3395)

@metamask/snaps-utils 9.3.0

Added

  • Add support for SIP-31 onClientRequest handler (#3394)

106.0.0

Choose a tag to compare

@github-actions github-actions released this 13 May 15:20
b428e83

@metamask/snaps-controllers 12.0.1

Fixed

  • Fix wrong event name for Snap Export Used (#3389)
  • Remove undefined parameters in MultichainRouter (#3388)

105.0.0

Choose a tag to compare

@github-actions github-actions released this 08 May 11:48
ee0c1f3

@metamask/snaps-execution-environments 8.0.1

Fixed

  • Fix deployment of execution environments (#3386)