Skip to content

Latest commit

 

History

History
173 lines (138 loc) · 8.37 KB

CHANGELOG.md

File metadata and controls

173 lines (138 loc) · 8.37 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.

Fixed

  • Throw an error when response is unserializable (#840)

Changed

  • No changes this release.

Added

Removed

  • BREAKING: Remove origin parameter from transaction insight payload (#730)

Added

  • BREAKING: Add Transaction Insight API (#642)
    • Part of this change made changes to the execution environments to support multiple request handlers
    • It also changed the exports of @metamask/execution-environments

Changed

  • No changes this release.

Fixed

  • Fixed network teardown so that snaps can't be escape by late returning promises (#661)

Fixed

  • Fix error serialization issues (#637)

Changed

  • Reduce TypeScript compilation target to ES2017 (#628)

Fixed

  • Fix crypto and SubtleCrypto endowments (#631)

Added

  • Add Node.js child_process execution environment (#523)
  • Add Node.js worker_threads execution environment (#587)
  • Added network endowment teardown (#514)

Changed

  • BREAKING: Bump minimum Node version to 16 (#601)
  • Monitor outbound snap requests to pause request timeout (#593)

Removed

  • Remove WebWorker implementation (#591)

Changed

  • BREAKING: Snaps are now required to export onRpcRequest to receive RPC requests (#481, #533, #538, #541)
  • Snaps can no longer run timers outside of pending RPC requests (#490)

Removed

  • BREAKING: Remove wallet.registerRpcMessageHandler support #481

Fixed

  • Fix issue with iframe error reporting (#501)

Fixed

  • Added missing properties to WebAssembly global (#459)
  • Fix interval handle leak (#485)
  • Fix timer handle leak (#483)

Changed

  • BREAKING: Increase TypeScript compilation target to ES2020 (#449)
    • This should not be breaking for consumers on any non-deprecated browser or Node.js version.

Changed

  • BREAKING: Change execution-environment build output (#424)

Added

  • Add support for endowment teardown (#407)

Changed

  • No changes this release.

Changed

  • Bump ses to 0.15.15 (#396)
  • Upgraded TypeScript version to minimum 4.4 (#360)
  • Remove cross-fetch (#349)

Added

  • Add setInterval and clearInterval as default endowments (#326)

Changed

  • BREAKING: Bump minimum Node version from 12 to 14 (#331)

Fixed

  • Fix missing properties on WebAssembly endowment (#334)

Fixed

  • Fix function endowment bindings (#311)

Fixed

  • Fix missing index.js (#303)

Fixed

  • Fix endowed global functions with properties (#294)
    • Endowments like Date were missing all properties except name and length, causing e.g. Date.now to be undefined. This is no longer the case.

Changed

  • No changes this release.

Fixed

  • Remove faulty postinstall script (#279)
    • The faulty script caused the installation of this package to fail for consumers.

Fixed

  • Removed deprecated package (#272)
    • This package now uses the functionally equivalent @metamask/providers instead of the deprecated @metamask/inpage-provider.

Changed

  • Initial release, made using components from the deprecated @metamask/snap-workers package. (#231)
    • Breaking changes are relative to the old package.
  • BREAKING: Endowments must be passed to the execution environment (#252), (#266)
    • Previously, default endowments were specified in the execution environment itself. Now, all endowments must be specified in the executeSnap RPC parameters, except for the wallet API object.
  • Add endowments to the global self in addition to window (#263)