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.
- Throw an error when response is unserializable (#840)
- No changes this release.
- BREAKING: Remove origin parameter from transaction insight payload (#730)
- 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
- No changes this release.
- Fixed network teardown so that snaps can't be escape by late returning promises (#661)
- Fix error serialization issues (#637)
- Reduce TypeScript compilation target to ES2017 (#628)
- Fix
crypto
andSubtleCrypto
endowments (#631)
- Add Node.js
child_process
execution environment (#523) - Add Node.js
worker_threads
execution environment (#587) - Added network endowment teardown (#514)
- BREAKING: Bump minimum Node version to 16 (#601)
- Monitor outbound snap requests to pause request timeout (#593)
- Remove WebWorker implementation (#591)
- 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)
- BREAKING: Remove
wallet.registerRpcMessageHandler
support #481
- Fix issue with iframe error reporting (#501)
- Added missing properties to
WebAssembly
global (#459) - Fix interval handle leak (#485)
- Fix timer handle leak (#483)
- BREAKING: Increase TypeScript compilation target to ES2020 (#449)
- This should not be breaking for consumers on any non-deprecated browser or Node.js version.
- BREAKING: Change
execution-environment
build output (#424)
- Add support for endowment teardown (#407)
- No changes this release.
- Bump
ses
to0.15.15
(#396) - Upgraded TypeScript version to minimum 4.4 (#360)
- Remove cross-fetch (#349)
- Add setInterval and clearInterval as default endowments (#326)
- BREAKING: Bump minimum Node version from 12 to 14 (#331)
- Fix missing properties on WebAssembly endowment (#334)
- Fix function endowment bindings (#311)
- Fix missing index.js (#303)
- Fix endowed global functions with properties (#294)
- Endowments like
Date
were missing all properties exceptname
andlength
, causing e.g.Date.now
to beundefined
. This is no longer the case.
- Endowments like
- No changes this release.
- Remove faulty postinstall script (#279)
- The faulty script caused the installation of this package to fail for consumers.
- Removed deprecated package (#272)
- This package now uses the functionally equivalent
@metamask/providers
instead of the deprecated@metamask/inpage-provider
.
- This package now uses the functionally equivalent
- 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 thewallet
API object.
- Previously, default endowments were specified in the execution environment itself. Now, all endowments must be specified in the
- Add endowments to the global
self
in addition towindow
(#263)