Skip to content

Releases: MetaMask/snaps

153.0.0

21 Apr 10:52
353d009

Choose a tag to compare

@metamask/snaps-execution-environments 11.1.0

Added

  • Export endowment factories via @metamask/snaps-execution-environments/endowments (#3957)

Changed

  • Bump @metamask/utils from 11.10.0 to 11.11.0 (#3935)
  • Bump @metamask/json-rpc-engine from 10.2.3 to 10.2.4 (#3925)
  • Bump @lavamoat/webpack from 2.0.0 to 2.1.1 (#3945)

152.0.0

15 Apr 08:44
c2d6c7d

Choose a tag to compare

@metamask/snaps-controllers 20.0.1

Fixed

  • Skip refetching the registry in handleRegistryUpdate (#3961)

151.0.0

14 Apr 16:40
d3466f6

Choose a tag to compare

@metamask/snaps-rpc-methods 15.1.1

Fixed

  • Make KeyringOrigin caveat explicitly optional (#3955)

150.0.0

14 Apr 12:03
c339e31

Choose a tag to compare

@metamask/name-lookup-example-snap 3.1.2

Fixed

  • Allow Snap to resolve names on multiple chains (#3953)

@metamask/snaps-controllers 20.0.0

Changed

  • BREAKING: Always consume latest registry in updateRegistry (#3948, #3949)
    • SnapController now listens for SnapRegistryController:registryUpdated.
  • Bump @metamask/messenger from ^1.1.0 to ^1.1.1 (#3944)
  • Bump @metamask/utils from ^11.10.0 to ^11.11.0 (#3935)

@metamask/snaps-rpc-methods 15.1.0

Added

  • Add capabilities caveat support to endowment:keyring (#3903)
    • Snap manifests can now declare a capabilities object under endowment:keyring describing the capabilities supported by the keyring.
    • New getKeyringCaveatCapabilities function to retrieve the capabilities caveat value from a permission.

Changed

  • Bump @metamask/messenger from ^1.1.0 to ^1.1.1 (#3944)
  • Bump @metamask/utils from ^11.10.0 to ^11.11.0 (#3935)

@metamask/snaps-sdk 11.1.0

Added

  • Add CollapsibleSection component (#3952)
  • Add types for KeyringCapabilities (#3903)

Changed

  • Bump @metamask/utils from ^11.10.0 to ^11.11.0 (#3935)

@metamask/snaps-utils 12.2.0

Added

  • Add KeyringCapabilities type and KeyringCapabilitiesStruct / assertIsKeyringCapabilities exports for the endowment:keyring capabilities caveat (#3903)

Changed

  • Bump @metamask/messenger from ^1.1.0 to ^1.1.1 (#3944)
  • Bump @metamask/utils from ^11.10.0 to ^11.11.0 (#3935)

@metamask/test-snaps 3.4.2

Changed

  • Use latest versions of example Snaps (#3954)

149.0.0

02 Apr 22:26
26ff2aa

Choose a tag to compare

@metamask/snaps-controllers 19.0.1

Changed

  • Bump @metamask/approval-controller from ^9.0.0 to ^9.0.1 (#3930)
  • Bump @metamask/base-controller from ^9.0.0 to ^9.0.1 (#3930)
  • Bump @metamask/json-rpc-engine from ^10.2.3 to ^10.2.4 (#3925)
  • Bump @metamask/messenger from ^0.3.0 to ^1.1.0 (#3930, #3934)
  • Bump @metamask/permission-controller from ^12.2.1 to ^12.3.0 (#3930)
  • Bump @metamask/storage-service from ^1.0.0 to ^1.0.1 (#3930)

@metamask/snaps-rpc-methods 15.0.2

Changed

  • Bump @metamask/json-rpc-engine from ^10.2.3 to ^10.2.4 (#3925)
  • Bump @metamask/messenger from ^0.3.0 to ^1.1.0 (#3930, #3934)
  • Bump @metamask/permission-controller from ^12.2.1 to ^12.3.0 (#3930)

@metamask/snaps-simulation 4.1.3

Changed

  • Bump @metamask/messenger from ^0.3.0 to ^1.1.0 (#3930, #3934)
  • Bump @metamask/permission-controller from ^12.2.1 to ^12.3.0 (#3930)

@metamask/snaps-utils 12.1.3

Changed

  • Bump @metamask/messenger from ^0.3.0 to ^1.1.0 (#3930, #3934)
  • Bump @metamask/permission-controller from ^12.2.1 to ^12.3.0 (#3930)

148.0.0

26 Mar 14:36
c656aa0

Choose a tag to compare

@metamask/snaps-controllers 19.0.0

Changed

  • BREAKING: All action types were renamed from DoSomething to ControllerNameDoSomethingAction (#3907, #3911, #3912, #3916, #3918)
    • SnapController actions:
      • GetSnap is now SnapControllerGetSnapAction.
        • Note: The method is now called getSnap instead of get.
        • Note: It now returns null if a Snap is not found, instead of
          undefined.
      • HandleSnapRequest is now SnapControllerHandleRequestAction.
      • GetSnapState is now SnapControllerGetSnapStateAction.
      • HasSnap is now SnapControllerHasSnapAction.
        • Note: The method is now called hasSnap instead of has.
      • UpdateSnapState is now SnapControllerUpdateSnapStateAction.
      • ClearSnapState is now SnapControllerClearSnapStateAction.
      • UpdateRegistry is now SnapControllerUpdateRegistryAction.
      • EnableSnap is now SnapControllerEnableSnapAction.
        • Note: The method is now called enableSnap instead of enable.
      • DisableSnap is now SnapControllerDisableSnapAction.
        • Note: The method is now called disableSnap instead of disable.
      • RemoveSnap is now SnapControllerRemoveSnapAction.
        • Note: The method is now called removeSnap instead of remove.
      • GetPermittedSnaps is now SnapControllerGetPermittedSnapsAction.
        • Note: The method is now called getPermittedSnaps instead of getPermitted.
      • GetAllSnaps is now SnapControllerGetAllSnapsAction.
        • Note: The method is now called getAllSnaps instead of getAll.
      • GetRunnableSnaps is now SnapControllerGetRunnableSnapsAction.
      • StopAllSnaps is now SnapControllerStopAllSnapsAction.
      • InstallSnaps is now SnapControllerInstallSnapsAction.
        • Note: The method is now called installSnaps instead of install.
      • DisconnectOrigin is now SnapControllerDisconnectOriginAction.
        • Note: The method is now called disconnectOrigin instead of removeSnapFromSubject.
      • RevokeDynamicPermissions is now SnapControllerRevokeDynamicSnapPermissionsAction.
      • GetSnapFile is now SnapControllerGetSnapFileAction.
      • IsMinimumPlatformVersion is now SnapControllerIsMinimumPlatformVersionAction.
      • SetClientActive is now SnapControllerSetClientActiveAction.
    • CronjobController actions:
      • Schedule is now CronjobControllerScheduleAction.
      • Cancel is now CronjobControllerCancelAction.
      • Get is now CronjobControllerGetAction.
    • SnapInterfaceController actions:
      • CreateInterface is now SnapInterfaceControllerCreateInterfaceAction.
      • GetInterface is now SnapInterfaceControllerGetInterfaceAction.
      • UpdateInterface is now SnapInterfaceControllerUpdateInterfaceAction.
      • DeleteInterface is now SnapInterfaceControllerDeleteInterfaceAction.
      • UpdateInterfaceState is now SnapInterfaceControllerUpdateInterfaceStateAction.
      • ResolveInterface is now SnapInterfaceControllerResolveInterfaceAction.
    • ExecutionService actions:
      • ExecuteSnap is now ExecutionServiceExecuteSnapAction.
      • HandleRequest is now ExecutionServiceHandleRequestAction.
      • TerminateSnap is now ExecutionServiceTerminateSnapAction.
      • GetExecutionStatus is now ExecutionServiceGetExecutionStatusAction.
    • SnapRegistryController actions:
      • GetResult is now SnapRegistryControllerGetAction.
      • GetMetadata is now SnapRegistryControllerGetMetadataAction.
      • ResolveVersion is now SnapRegistryControllerResolveVersionAction.
      • Update is now SnapRegistryControllerRequestUpdateAction.
        • Note: The method is now called requestUpdate instead of update.
  • BREAKING: All event types were renamed from OnSomething to ControllerOnSomethingEvent (#3907, #3916)
    • SnapController events:
      • SnapStateChange was removed in favour of SnapControllerStateChangeEvent.
      • SnapBlocked is now SnapControllerSnapBlockedEvent.
      • SnapInstallStarted is now SnapControllerSnapInstallStartedEvent.
      • SnapInstallFailed is now SnapControllerSnapInstallFailedEvent.
      • SnapInstalled is now SnapControllerSnapInstalledEvent.
      • SnapUninstalled is now SnapControllerSnapUninstalledEvent.
      • SnapUnblocked is now SnapControllerSnapUnblockedEvent.
      • SnapUpdated is now SnapControllerSnapUpdatedEvent.
      • SnapRolledback is now SnapControllerSnapRolledbackEvent.
      • SnapTerminated is now SnapControllerSnapTerminatedEvent.
      • SnapEnabled is now SnapControllerSnapEnabledEvent.
      • SnapDisabled is now SnapControllerSnapDisabledEvent.
    • ExecutionService events:
      • ErrorMessageEvent is now ExecutionServiceUnhandledErrorEvent.
      • OutboundRequest is now ExecutionServiceOutboundRequestEvent.
      • OutboundResponse is now ExecutionServiceOutboundResponseEvent.
  • BREAKING:: Rename MultichainRouter to MultichainRoutingService and update action types accordingly (#3913)
    • This is consistent with the naming of other services.
  • BREAKING: Rename JsonSnapsRegistry to SnapRegistryController and update action types accordingly (#3918)
    • This is consistent with the naming of other controllers.
    • The controller name is now SnapRegistryController instead of SnapsRegistry as well.
  • BREAKING: MultichainRoutingService now requires SnapController:getRunnableSnaps instead of SnapController:getAllSnaps (#3913)
  • BREAKING: SnapInsightsController now requires SnapController:getRunnableSnaps instead of SnapController:getAllSnaps (#3915)
  • RREAKING: Replace ExecutionService interface with abstract class (#3916)
    • The ExecutionService is now an abstract class and replaces the previous AbstractExecutionService class interface.

Removed

  • RREAKING: Remove AbstractExecutionService class in favour of ExecutionService (#3916)
  • BREAKING: Remove incrementActiveReferences and decrementActiveReferences actions and methods from SnapController (#3907, #3920)
    • This was never used in production.
  • BREAKING: Remove public getTruncatedSnap and getTruncatedSnapExpect methods from SnapController (#3923)

@metamask/snaps-execution-environments 11.0.2

Changed

  • Bump lavamoat from 10.1.1 to 11.0.0 (#3908)
  • Bump @lavamoat/webpack from 1.5.8 to 2.0.0 (#3909)

@metamask/snaps-jest 10.1.2

Changed

  • Bump @metamask/snaps-controllers from 18.0.4 to 19.0.0 and handle breaking changes (#3922)

@metamask/snaps-rpc-methods 15.0.1

Changed

  • Bump @metamask/snaps-controllers from 18.0.4 to 19.0.0 and handle breaking changes (#3922)

@metamask/snaps-simulation 4.1.2

Changed

  • Bump @metamask/snaps-controllers from 18.0.4 to 19.0.0 and handle breaking changes (#3922)

@metamask/snaps-utils 12.1.2

Changed

  • Bump @metamask/snaps-controllers from 18.0.4 to 19.0.0 and handle breaking changes (#3922)

147.0.0

11 Mar 14:30
97709cb

Choose a tag to compare

@metamask/snaps-controllers 18.0.4

Fixed

  • Always attach error handler to RPC stream (#3898)

146.0.0

10 Mar 22:16
5a88d61

Choose a tag to compare

@metamask/send-flow-example-snap 1.2.1

Changed

  • Update interface logic (#3888)

@metamask/snaps-controllers 18.0.3

Changed

  • Track whether interface has been displayed before allowing snap_getInterfaceState (#3888)

@metamask/snaps-execution-environments 11.0.1

Changed

  • Bump ses from 1.14.0 to 1.15.0 (#3880)

@metamask/snaps-jest 10.1.1

Changed

  • Track whether interface has been displayed before allowing snap_getInterfaceState (#3888)

@metamask/snaps-rpc-methods 15.0.0

Changed

  • Track whether interface has been displayed before allowing snap_getInterfaceState (#3888)

Removed

  • BREAKING: Remove snap_getCurrencyRate (#3866)
  • BREAKING: Remove snap_experimentalProviderRequest (#3858)

Fixed

  • Require any interface permission to use RPC methods (#3864)

@metamask/snaps-sdk 11.0.0

Changed

  • Allow additional icon colors in Icon component (#3895)
    • This adds the warning, error, and success colors to the Icon
      component.
  • Move isSnapError and isSerializedSnapError to SDK (#3891)

Removed

  • BREAKING: Remove snap_getCurrencyRate (#3866)
  • BREAKING: Remove deprecated UI builders (#3859)
  • BREAKING: Remove snap_experimentalProviderRequest (#3858)

@metamask/snaps-simulation 4.1.1

Changed

  • Track whether interface has been displayed before allowing snap_getInterfaceState (#3888)

@metamask/snaps-utils 12.1.1

Changed

  • Move isSnapError and isSerializedSnapError to @metamask/snaps-sdk (#3891)
    • They are re-exported from this package for backwards compatibility, but will
      be removed in a future release.

@metamask/test-snaps 3.4.1

Changed

  • Use latest versions of example Snaps (#3896)

145.0.0

06 Mar 10:55
b0f99c1

Choose a tag to compare

@metamask/snaps-cli 8.4.1

Changed

  • Bump @metamask/snaps-sandbox from ^1.0.0 to ^1.0.1 (#3894)

@metamask/snaps-sandbox 1.0.1

Changed

144.0.0

04 Mar 13:13
e8eb084

Choose a tag to compare

@metamask/snaps-controllers 18.0.2

Changed

  • Bump @metamask/json-rpc-engine from 10.2.2 to 10.2.3 (#3884)

Fixed

  • Recover if preinstalled Snaps source code is missing (#3886)