Skip to content

Releases: MetaMask/snaps

0.8.1

23 Jan 00:23
32843a7
Compare
Choose a tag to compare

@metamask/snap-controllers

Added

  • A variety of SnapController actions (#199)

0.8.0

21 Jan 02:53
28b7e8e
Compare
Choose a tag to compare

@metamask/snap-controllers

Added

  • Expose more PermissionController functionality via actions (#194)

Changed

  • BREAKING: Replace PermissionController functions with actions in SnapController (#194)

@metamask/iframe-execution-environment-service

Changed

  • No changes this release.

@metamask/rpc-methods

Changed

  • No changes this release.

@metamask/snap-examples

Changed

  • No changes this release.

@metamask/snaps-cli

Changed

  • Update template snap created by mm-snap init (#195)
  • Exit by throwing errors instead of calling process.exit (#190)

@metamask/snap-types

Changed

  • No changes this release.

@metamask/snap-workers

Changed

  • No changes this release.

0.7.0

13 Jan 01:38
92e5dae
Compare
Choose a tag to compare

@metamask/snap-controllers

Changed

  • BREAKING: Rename execution environment service class and events (#188)
    • ServiceMessenger events are now named ExecutionService.
    • WebWorkerExecutionEnvironmentService is now named WebWorkerExecutionService.

@metamask/example-snap

Changed

  • No changes this release.

@metamask/iframe-execution-environment-service

Changed

  • BREAKING: Rename execution environment service class and events (#188)
    • ServiceMessenger events are now named ExecutionService.
    • IframeExecutionEnvironmentService is now named IframeExecutionService.

@metamask/rpc-methods

Changed

  • No changes this release.

@metamask/snap-examples

Changed

  • No changes this release.

@metamask/snaps-cli

Added

  • ESM support for mm-snap build (#185)
    • The build command can now handle snap source code that includes ESM import / export statements. They will be transpiled to their CommonJS equivalents via Babel.

Fixed

  • Fix mm-snap init src default value (#186)
    • It now correctly defaults to src/index.js instead of just index.js.
  • Fix comment stripping (#189)
    • Comments wouldn't be stripped under certain circumstances due to a RegEx error, details here.

@metamask/snap-types

Changed

  • BREAKING: Rename ServiceMessenger events to ExecutionService (#188)

@metamask/snap-workers

Changed

  • No changes this release.

0.6.3

21 Dec 00:59
54803e6
Compare
Choose a tag to compare

@metamask/snap-controllers

Fixed

  • Prevent disableSnap from throwing if the specified Snap is stopped (#175)

@metamask/example-snap

Changed

  • No changes this release.

@metamask/iframe-execution-environment-service

Changed

  • No changes this release.

@metamask/rpc-methods

Changed

  • No changes this release.

@metamask/snap-examples

Changed

  • No changes this release.

@metamask/snaps-cli

Changed

  • No changes this release.

@metamask/snap-types

Changed

  • No changes this release.

@metamask/snap-workers

Changed

  • No changes this release.

0.6.2

18 Dec 23:26
9c3890e
Compare
Choose a tag to compare

@metamask/snap-controllers

Changed

  • BREAKING: Rename endowment permission builder exports (#171)

Removed

  • BREAKING: Remove the svgIcon property from Snap state (#172)
    • The SVG icon content string is instead emitted with the SnapController:snapAdded event.

@metamask/example-snap

Changed

  • No changes this release.

@metamask/iframe-execution-environment-service

Changed

  • No changes this release.

@metamask/rpc-methods

Changed

  • BREAKING: Rename restricted method permission builder exports (#171)

@metamask/snap-examples

Changed

  • No changes this release.

@metamask/snaps-cli

Changed

  • No changes this release.

@metamask/snap-types

Changed

  • No changes this release.

@metamask/snap-workers

Changed

  • No changes this release.

0.6.1

17 Dec 07:07
34ac003
Compare
Choose a tag to compare

@metamask/snap-controllers

Changed

  • No changes this release.

@metamask/example-snap

Fixed

  • snap_confirm call (#168)
    • The Snap was passing invalid parameters to the method.

@metamask/iframe-execution-environment-service

Changed

  • No changes this release.

@metamask/rpc-methods

Fixed

  • Fix snap_confirm validation logic (#168)
    • [0.6.0] contained a bug where the method would reject most valid parameter combinations.

@metamask/snap-examples

Fixed

  • bls-signer example Snap snap_confirm call (#168)
    • The bls-signer Snap was passing invalid parameters to the method.

@metamask/snaps-cli

Fixed

  • mm-snap init Snap snap_confirm call (#168)
    • The generated Snap was passing invalid parameters to the method.

@metamask/snap-types

Changed

  • No changes this release.

@metamask/snap-workers

Changed

  • No changes this release.

0.6.0

16 Dec 07:02
a57a2ed
Compare
Choose a tag to compare

@metamask/snap-controllers

Added

  • "Endowment" permissions (#152)
  • SnapController endowment permissions support (#155)
  • Network access endowment permission (#154)
  • Snap installation events (#162)

Changed

  • BREAKING: Refactor SnapController to support the new Snaps publishing specification (#140, #157, #163)
    • This introduces several breaking changes to how Snaps are developed, hosted, and represented at runtime. See the specification and the referenced pull requests for details.
  • BREAKING: Rename Snap name property to id (#147)
  • BREAKING: Introduce the required permissionType field to PermissionController permission specifications (#152)
  • Make SubjectMetadataController subject metadata name optional (#151)

Removed

  • BREAKING: Inline snap functionality (#148)

@metamask/example-snap

Added

  • SVG icon (#163)
    • Adds an icon file at images/icon.svg and a reference to it in snap.manifest.json.

Changed

  • BREAKING: Support the new Snaps publishing specification (#140, #157)
    • This introduces several breaking changes to how Snaps are developed, hosted, and represented at runtime. See the specification and the referenced pull requests for details.

@metamask/iframe-execution-environment-service

Changed

  • BREAKING: Support the new Snaps publishing specification (#140)
    • This introduces several breaking changes to how Snaps are developed, hosted, and represented at runtime. See the specification and the referenced pull request for details.
  • BREAKING: Rename Snap name property to id (#147)

@metamask/rpc-methods

Added

  • "Endowment" permissions (#152)

Changed

  • BREAKING: Support the new Snaps publishing specification (#140)
    • This introduces several breaking changes to how Snaps are developed, hosted, and represented at runtime. See the specification and the referenced pull request for details.
  • BREAKING: Rename Snap name property to id (#147)
  • BREAKING: Update snap_confirm parameters (#158)
  • Improve types and documentation for selectHooks (#149)

Fixed

  • Restricted Snap method origin handling (#150)

@metamask/snap-examples

Changed

  • BREAKING: Support the new Snaps publishing specification (#140)
    • This introduces several breaking changes to how Snaps are developed, hosted, and represented at runtime. See the specification and the referenced pull request for details.
  • BREAKING: Update all example Snaps per new publishing specification (#157)

Removed

  • BREAKING: "hello-snaps` example (#157)

@metamask/snaps-cli

Added

  • Snap SVG icon support (#163)

Changed

  • BREAKING: Support the new Snaps publishing specification (#140, #160)
    • This introduces several breaking changes to how Snaps are developed, hosted, and represented at runtime. See the specification and the referenced pull requests for details.
  • BREAKING: Rename Snap name property to id (#147)
  • BREAKING: Update ses to version ^0.15.3 (#159)
    • This will cause behavioral changes for code executed under SES, and may require modifications to code that previously executed without issues.

@metamask/snap-types

Added

  • SnapExecutionData type (#155)

Changed

  • BREAKING: Rename Snap name property to id (#147)

@metamask/snap-workers

Changed

  • BREAKING: Support the new Snaps publishing specification (#140)
    • This introduces several breaking changes to how Snaps are developed, hosted, and represented at runtime. See the specification and the referenced pull requests for details.
  • BREAKING: Rename Snap name property to id (#147)
  • BREAKING: Update ses to version ^0.15.3 (#159)
    • This will cause behavioral changes for code executed under SES, and may require modifications to code that previously executed without issues.

0.5.0

07 Dec 04:31
e19ef8d
Compare
Choose a tag to compare

@metamask/snap-controllers

Changed

  • BREAKING: Update restricted RPC methods per new PermissionController (#143)
  • BREAKING: Convert all TypeScript interface declarations to type equivalents (#143)
  • Bump @metamask/obs-store to 7.0.0 (#144)

@metamask/iframe-execution-environment-service

Changed

  • BREAKING: Convert all TypeScript interface declarations to type equivalents (#143)
  • Bump @metamask/obs-store to 7.0.0 (#144)

@metamask/rpc-methods

Added

  • Added title and subtitle to snap_confirm (#145)

Changed

  • BREAKING: Update restricted RPC methods per new PermissionController (#143)
  • BREAKING: Convert all TypeScript interface declarations to type equivalents (#143)
  • Update restricted RPC methods per new permissions system (#143)

@metamask/snap-examples

Changed

  • No changes this release.

@metamask/snaps-cli

Changed

  • BREAKING: Convert all TypeScript interface declarations to type equivalents (#143)

@metamask/snap-types

Changed

  • BREAKING: Convert all TypeScript interface declarations to type equivalents (#143)

@metamask/snap-workers

Changed

  • BREAKING: Convert all TypeScript interface declarations to type equivalents (#143)

0.4.0

25 Nov 19:21
26a1d8d
Compare
Choose a tag to compare

@metamask/snap-controllers

Added

  • SubjectMetadataController (#61)
  • PermissionController (#132, #141)
  • BREAKING: SnapController: Add max request processing time (#128)

Fixed

  • SnapController: Clean up timeouts after stopping a Snap (#139)
  • WebWorkerExecutionEnvironmentService: Clean up post-termination timeouts (#128)

@metamask/iframe-execution-environment-service

Fixed

  • Clean up post-termination timeouts (#128)

@metamask/rpc-methods

Changed

  • BREAKING: Consolidate Snap state management methods into single method (#135)
    • snap_manageState
  • BREAKING: Replace RPC method and permission description properties with docstrings (#130)

Removed

  • BREAKING: Remove snap_manageAssets (#134)

@metamask/snap-examples

Changed

  • No changes this release.

@metamask/snaps-cli

Fixed

  • Make Windows-compatible (#131)

@metamask/snap-types

Changed

  • No changes this release.

@metamask/snap-workers

Changed

  • No changes this release.

0.3.1

08 Nov 05:52
8132d8e
Compare
Choose a tag to compare

@metamask/snap-controllers

Changed

  • BREAKING: Update Snap initial states (#126)
    • The idle status is now named installing, and rehydrated snaps will have the status stopped.

Fixed

  • Fix Snap execution and installation bugs (#125)
  • Prevent Snaps from being started before installation is finished (#124)
  • Correctly identify breaking changes in [0.3.0] release (#123)

@metamask/iframe-execution-environment-service

Fixed

  • Correctly identify breaking changes in [0.3.0] release (#123)

@metamask/rpc-methods

Changed

  • No changes this release.

@metamask/snap-examples

Changed

  • No changes this release.

@metamask/snaps-cli

Changed

  • No changes this release.

@metamask/snap-types

Changed

  • No changes this release.

@metamask/snap-workers

Changed

  • No changes this release.