Skip to content

56.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Jul 14:31
face4fe

@metamask/snaps-rpc-methods 10.0.0

Added

  • BREAKING: snap_dialog now takes the requestUserApproval hook (#2509)
    • It should bind to the addAndShowRequest method of the ApprovalController.
    • Add type DialogApprovalTypes and object DIALOG_APPROVAL_TYPES.

Changed

  • Bump @metamask/key-tree from ^9.1.1 to ^9.1.2 (#2445)
  • Bump @metamask/permission-controller from ^10.0.0 to ^10.0.1 (#2445)
  • Bump @metamask/rpc-errors from ^6.2.1 to ^6.3.1 (#2445)
  • Bump @metamask/utils from ^8.3.0 to ^9.1.0 (#2445)

Fixed

  • Replace superstruct with ESM-compatible @metamask/superstruct ^3.1.0 (#2445)
    • This fixes the issue of this package being unusable by any TypeScript project that uses Node16 or NodeNext as its moduleResolution option.

@metamask/snaps-sdk 6.1.0

Added

  • Add non-restricted RPC method snap_resolveInterface (#2509)
    • This method allows a Snap to resolve a given user interface bound to a snap_dialog with a custom value.
    • Add new types ResolveInterfaceParams, ResolveInterfaceResult.
  • Add Card component (#2480)
  • Add BoxChildStruct, FormChildStruct, FieldChildUnionStruct (#2409)
  • Add Container and Footer components (#2517)

Changed

  • Update RootJSXElement to allow Container or Box at the root (#2526)
  • Bump @metamask/key-tree from ^9.1.1 to ^9.1.2 (#2445)
  • Bump @metamask/rpc-errors from ^6.2.1 to ^6.3.1 (#2445)
  • Bump @metamask/utils from ^8.3.0 to ^9.1.0 (#2445)

Fixed

  • Replace superstruct with ESM-compatible @metamask/superstruct ^3.1.0 (#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)
    • 17.1.0 and 17.1.1 introduce regressions.

@metamask/snaps-utils 7.8.0

Added

  • Move serialiseJsx function from snaps-jest to snaps-utils (#2409)

Changed

  • Bump @metamask/base-controller from ^6.0.0 to ^6.0.1 (#2445)
  • Bump @metamask/key-tree from ^9.1.1 to ^9.1.2 (#2445)
  • Bump @metamask/permission-controller from ^10.0.0 to ^10.0.1 (#2445)
  • Bump @metamask/rpc-errors from ^6.2.1 to ^6.3.1 (#2445)
  • Bump @metamask/snaps-registry from ^3.1.0 to ^3.2.1 (#2445)
  • Bump @metamask/utils from ^8.3.0 to ^9.1.0 (#2445)

Fixed

  • Replace superstruct with ESM-compatible @metamask/superstruct ^3.1.0 (#2445)
    • This fixes the issue of this package being unusable by any TypeScript project that uses Node16 or NodeNext as its moduleResolution option.
  • Fix allowedOrigins bypass caused by unterminated regex (#2576)