Skip to content

Latest commit

 

History

History
387 lines (236 loc) · 15.9 KB

CHANGELOG.md

File metadata and controls

387 lines (236 loc) · 15.9 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • Add JSX content property to snap_notify (#2881)
    • This content will be displayed in an upcoming expanded view for notifications.
  • Add getClientCryptography hook for specifying custom cryptography functions (#2909)

Added

  • Add snap_getInterfaceContext JSON-RPC method (#2902)

Changed

  • Bump MetaMask dependencies (#2853)

Removed

  • Remove support for JSX in snap_notify notifications (#2837)
    • This is technically a breaking change, but this feature was never actually implemented, so it should not affect any existing code.
    • This will be re-implemented in a future release.

Added

  • Add snap_experimentalProviderRequest JSON-RPC method (#2773)
    • This method is experimental and will likely be removed in a future release.

Changed

  • Allow updating interface context (#2809)
    • snap_updateInterface now accepts a context parameter to update the context of an interface.

Fixed

  • Use BigInt to parse chain IDs (#2781)

Added

  • Add snap_getCurrencyRate JSON-RPC method (#2763)

Added

  • Add support for metamask: schemed URLs (#2719)
  • Add support for JSX in snap_notify notifications (#2706)

Fixed

  • Fix invalid types in type declaration in some cases (#2714)

Changed

  • Improve error messaging (#2696)
  • Increase character limit for in-app notification messages (#2684)

Fixed

  • Fix ESM version of the package (#2682)
    • This fixes the ESM version of the package to be fully compliant with the ESM standard.
  • Bump @metamask/utils from ^9.1.0 to ^9.2.1 (#2680)
  • Bump other MetaMask dependencies (#2703)

Added

  • BREAKING: Add snap_getPreferences (#2607)
    • This is breaking because a getPreferences method hook is now required.

Changed

  • Bump @metamask/json-rpc-engine from ^9.0.0 to ^9.0.2 (#2593)
  • Bump @metamask/permission-controller from ^10.0.1 to ^11.0.0 (#2593)
  • Bump @metamask/snaps-utils from ^7.8.0 to ^7.8.1 (#2595)

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.

Changed

  • Bump MetaMask dependencies (#2516)

Changed

  • Bump MetaMask dependencies (#2460)

Fixed

  • Fix invalid @metamask/snaps-sdk imports (#2452)

Changed

  • Bump @metamask/key-tree from 9.1.0 to 9.1.1 (#2431)

Added

  • Add context field to snap_createInterface (#2413)

Added

  • Add support for BIP-32-Ed25519 / CIP-3 key derivation (#2408)
    • The ed25519Bip32 curve is now supported for snap_getBip32Entropy and snap_getBip32PublicKey

Changed

  • BREAKING: Use hooks in wallet_invokeSnap instead of remapping the request to wallet_snap (#2406)

Added

  • Add JSX support for custom UI (#2258)

Changed

  • BREAKING: Refactor to support changes to encryption (#2316)
    • No longer expects encrypt or decrypt, instead expects updateSnapState and getSnapState to be asynchronous

Changed

  • Bump MetaMask dependencies (#2270)
  • Bump @metamask/json-rpc-engine from 7.3.2 to 7.3.3 (#2247)

Fixed

  • Fix minor build configuration problems (#2220)

Changed

  • BREAKING: Update ESM build to be fully compliant with the ESM standard (#2210)
  • Bump @metamask/rpc-errors to ^6.2.1 (#2209)

Added

  • BREAKING: Add support for dynamic user interfaces (#1465, #2144, #2143)
    • This adds the snap_createInterface, snap_updateInterface, and snap_getInterfaceState methods.
    • This is breaking because it changes the expected type of the showDialog RPC method hook.
  • BREAKING: Update the permission format for the name lookup endowment (#2113)
    • The new format is documented in SIP-12.
  • Add endowment permission specifications to this package (#2155)

Changed

Added

  • Add snap_getClientStatus (#2051)

Changed

  • BREAKING: Use origin bound hooks for invokeKeyring (#2090)
  • Bump several MetaMask dependencies (#2069, #2100)

Added

  • Add wallet_getAllSnaps method to get all installed Snaps (#2047)

Changed

  • Bump several MetaMask dependencies (#2064, #2065)

Changed

  • Use prototype startsWith for RPC method middleware (#2035)

Changed

  • Bump several MetaMask dependencies (#1989)

Changed

  • Bump several MetaMask dependencies (#1964, #1968)

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.

Added

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

Fixed

  • Fix assertLinksAreSafe import (#1908)

Added

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

Changed

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

Added

  • Add keyring export and endowment (#1787)

Changed

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

Changed

  • Initial stable release from main branch (#1757)

Changed

  • Bump metamask/utils and metamask/snaps-registry (#1738)

Changed

  • Remove business-logic callbacks from manageAccounts (#1725)
  • Bump @metamask/utils and @metamask/snaps-registry (#1694)

Fixed

  • Make manageAccounts arguments extend RestrictedMethodParameters (#1687)

Added

  • Add snap_getLocale JSON-RPC method (#1557)
    • This will let snaps get the user locale from the client.

Fixed

  • Fix ed25519 public key derivation (#1678)

Changed

  • Release package independently (#1600)
    • The version of the package no longer needs to match the version of all other MetaMask Snaps packages.