Releases: MetaMask/snaps
Releases · MetaMask/snaps
19.0.0
18.0.0
@metamask/snaps-cli 3.0.2
Changed
- Use
@metamask/snaps-sdk
package (#1951)- This package replaces the
@metamask/snaps-types
and
@metamask/snaps-ui
packages.
- This package replaces the
@metamask/snaps-controllers 3.4.0
Changed
- Use
SubtleCrypto
for checksum calculation if available (#1953)- This reduces the time of the checksum calculation by up to 95% in some
environments.
- This reduces the time of the checksum calculation by up to 95% in some
- Use
@metamask/snaps-sdk
package (#1930, #1949)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages.
- This package replaces the
Fixed
- Fix support for transaction insight Snaps returning
null
(#1952)
@metamask/snaps-execution-environments 3.3.0
Changed
- Use
@metamask/snaps-sdk
package (#1930,
#1946, #1949,
#1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages.
- This package replaces the
@metamask/snaps-jest 4.0.0
Changed
- Use
@metamask/snaps-sdk
package (#1930,
#1950, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages.
- This package replaces the
Removed
- BREAKING:
DialogType
,ManageStateOperation
,NotificationType
are no
longer re-exported from@metamask/snaps-jest
(#1930)- These enums can now be imported from
@metamask/snaps-sdk
instead.
- These enums can now be imported from
@metamask/snaps-rpc-methods 4.0.0
Changed
- Use
@metamask/snaps-sdk
package (#1930,
#1950, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages.
- This package replaces the
Removed
- BREAKING: Remove
DialogType
,ManageStateOperation
, andNotificationType
enums (#1930)- These are now defined in the
@metamask/snaps-sdk
package.
- These are now defined in the
@metamask/snaps-sdk 1.0.0
Added
- Initial release of this package.
@metamask/snaps-simulator 2.4.0
Changed
- Use
SubtleCrypto
for checksum calculation if available (#1953)- This reduces the time of the checksum calculation by up to 95% in some
environments.
- This reduces the time of the checksum calculation by up to 95% in some
- Use
@metamask/snaps-sdk
package (#1930,
#1949, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages.
- This package replaces the
- Bump
@metamask/eth-json-rpc-middleware
from12.0.0
to12.0.1
(#1935)
@metamask/snaps-utils 4.0.0
Changed
- Use
SubtleCrypto
for checksum calculation if available (#1953)- This reduces the time of the checksum calculation by up to 95% in some
environments.
- This reduces the time of the checksum calculation by up to 95% in some
- Use
@metamask/snaps-sdk
package (#1930,
#1946, #1950,
#1949, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
Removed
- BREAKING: Remove
ValidatedSnapId
andSnapId
types (#1930)ValidatedSnapId
was moved to the@metamask/snaps-sdk
package as
SnapId
.SnapId
was an alias ofstring
, and is no longer needed.
- BREAKING: Remove
SnapError
(#1949)- This class was moved to the
@metamask/snaps-sdk
package.
- This class was moved to the
- BREAKING: Remove
EnumToUnion
type (#1930)- This type was moved to the
@metamask/snaps-sdk
package.
- This type was moved to the
- BREAKING: Remove
RequestedSnapPermissions
type (#1930)- This type was deprecated, and is now replaced by the
InitialPermissions
type from the@metamask/snaps-sdk
package.
- This type was deprecated, and is now replaced by the
Fixed
- Include localization files in checksum calculations (#1956)
@metamask/snaps-webpack-plugin 3.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1949)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages.
- This package replaces the
@metamask/bip32-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1930,
#1946, #1950,
#1949, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/bip44-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1930,
#1946, #1950,
#1949, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/browserify-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/browserify-plugin-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/cronjob-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/dialog-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1930,
#1946, #1950,
#1949, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/error-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/ethereum-provider-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/ethers-js-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/get-entropy-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1930,
#1946, #1950,
#1949, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/get-file-example-snap 1.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/home-page-example-snap 1.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/json-rpc-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/lifecycle-hooks-example-snap 2.1.0
Changed
- Use
@metamask/snaps-sdk
package (#1946, #1954)- This package replaces the
@metamask/snaps-types
and @metamask/snaps-ui
packages, and is much more lightweight.
- This package replaces the
@metamask/localization-example-snap 1.1.0
...
17.0.0
@metamask/create-snap 3.1.0
Added
- Create an initial commit when creating a Snap from the template (#1917)
Fixed
- Handle unhandled errors (#1916)
@metamask/snaps-controllers 3.3.0
Added
- Add manifest localization functionality (#1889)
- Add support for unencrypted storage using
snap_manageState
(#1902) - Add
OnHomePage
export (#1896)
@metamask/snaps-execution-environments 3.2.0
Added
- Add
OnHomePage
export (#1896)
Fixed
- Await stream message delivery (#1928)
@metamask/snaps-rpc-methods 3.3.0
Added
- Add support for unencrypted storage using
snap_manageState
(#1902)
@metamask/snaps-simulator 2.3.0
Added
- Add manifest localization functionality (#1889)
- Add support for unencrypted storage using
snap_manageState
(#1902)
@metamask/snaps-types 3.1.0
Added
- Add types for
OnHomePage
export (#1918)
@metamask/snaps-utils 3.3.0
Added
@metamask/home-page-example-snap 1.0.0
Added
- Initial release (#1918)
@metamask/localization-example-snap 1.0.0
Added
- Initial release (#1889)
@metamask/manage-state-example-snap 2.1.0
Changed
- Add support for unencrypted storage (#1915)
@metamask/insights-example-snap 2.0.2
Changed
- Update example insight snap to support transaction insights v2 (#1911)
16.0.0
15.0.0
@metamask/snaps-controllers 3.2.0
Added
- Add support for links in custom UI and notifications (#1814)
Fixed
- Fix an issue where snaps throwing a
SnapError
would be allowed to run for longer than expected (#1897)
@metamask/snaps-jest 3.1.0
Added
- Add support for links in custom UI and notifications (#1814)
@metamask/snaps-rpc-methods 3.2.0
Added
- Add support for links in custom UI and notifications (#1814)
@metamask/snaps-simulator 2.2.0
Added
- Add support for links in custom UI (#1814)
@metamask/snaps-ui 3.1.0
Added
- Add support for links in custom UI and notifications (#1814)
@metamask/snaps-utils 3.2.0
Added
- Add support for links in custom UI and notifications (#1814)
@metamask/get-file-example-snap 1.0.1
Fixed
- Fix missing files in package.json (#1894)
14.0.0
13.0.0
@metamask/create-snap 3.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/snaps-browserify-plugin 3.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/snaps-cli 3.0.1
Changed
@metamask/snaps-controllers 3.1.0
Added
- Add static file API (#1836)
- This adds a
snap_getFile
method, which Snaps can use to load files.
- This adds a
- Add
origin
parameter tosnapInstalled
andsnapUpdated
events (#1867)
Changed
- Improve error handling (#1841)
- Snaps can now throw a
SnapError
, without causing the Snap to crash.
- Snaps can now throw a
- Bump
tar-stream
from^2.2.0
to^3.1.6
(#1853) - Make
snaps-execution-environments
an optional peer dependency (#1845) - Remove snap errors from state (#1837)
Fixed
- Try to match requested versions with an allowlisted version (#1877)
- Improve performance when installing snaps with a static version (#1878)
- Stop persisting snaps in the installing state (#1876)
@metamask/snaps-execution-environments 3.1.0
Changed
- Improve error handling (#1841)
- Snaps can now throw a
SnapError
, without causing the Snap to crash.
- Snaps can now throw a
- Standardise all errors thrown in execution environments (#1830)
@metamask/snaps-jest 3.0.0
Changed
- BREAKING: Improve error handling (#1841)
- This is a breaking change, because errors returned by the Snap now have a different format. For example, if the Snap throws a JSON-RPC method not found error, previously, the following error would be returned:
Now, the following error is returned instead:
{ code: -32603, message: 'Internal JSON-RPC error.', data: { cause: { message: 'The method does not exist / is not available.', stack: expect.any(String), }, }, }
{ code: -32601, message: 'The method does not exist / is not available.', stack: expect.any(String), data: { method: 'foo', cause: null, }, }
- This is a breaking change, because errors returned by the Snap now have a different format. For example, if the Snap throws a JSON-RPC method not found error, previously, the following error would be returned:
@metamask/snaps-rollup-plugin 3.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/snaps-rpc-methods 3.1.0
Changed
@metamask/snaps-simulator 2.1.0
Added
- Add support for the static file API (#1836)
Changed
- Improve error handling (#1841)
- Errors shown in the simulator now more accurately reflect the error thrown by the Snap.
@metamask/snaps-types 3.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/snaps-ui 3.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/snaps-utils 3.1.0
Added
Changed
@metamask/snaps-webpack-plugin 3.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/bip32-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/bip44-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/browserify-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/browserify-plugin-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/cronjob-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/dialog-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/error-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/ethereum-provider-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/ethers-js-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/get-entropy-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/get-file-example-snap 1.0.0
Added
@metamask/get-locale-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/json-rpc-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/lifecycle-hooks-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/manage-state-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/name-lookup-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/network-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/notification-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/rollup-plugin-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/insights-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/wasm-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/webpack-plugin-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/consumer-signer-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
@metamask/core-signer-example-snap 2.0.1
Changed
- Update multiple MetaMask dependencies (#1841)
12.0.0
@metamask/create-snap 3.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/rpc-methods 3.0.0
Added
- Add keyring export and endowment (#1787)
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-browserify-plugin 3.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-cli 3.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-controllers 3.0.0
Added
- Add keyring export and endowment (#1787)
- Add optional
allowedOrigins
field toendowment:rpc
(#1822)- This can be used to only accept certain origins in your Snap.
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-execution-environments 3.0.0
Added
- Add keyring export and endowment (#1787)
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-jest 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-rollup-plugin 3.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-simulator 2.0.0
Added
- Add image component (#1783)
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-types 3.0.0
Added
- Add keyring export and endowment (#1787)
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-ui 3.0.0
Added
- Add image component (#1783)
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-utils 3.0.0
Added
- Add keyring export and endowment (#1787)
- Add optional
allowedOrigins
field toendowment:rpc
(#1822)- This can be used to only accept certain origins in your Snap.
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/snaps-webpack-plugin 3.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/bip32-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/bip44-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/browserify-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/browserify-plugin-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/cronjob-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/dialog-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/error-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/ethereum-provider-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/ethers-js-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/get-entropy-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/get-locale-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/json-rpc-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/lifecycle-hooks-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/manage-state-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/name-lookup-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/network-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/notification-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/rollup-plugin-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/insights-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/wasm-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/webpack-plugin-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/consumer-signer-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
@metamask/core-signer-example-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
^18.16.0
(#1741)
11.0.0
@metamask/create-snap 2.0.0
Changed
- BREAKING: Bump minimum Node.js version to
18.6.0
(#1789)
@metamask/snaps-cli 2.0.2
Fixed
- Fix Webpack being unable to find
swc-loader
in some cases (#1798) - Check minimum Node version in CLI (#1797)
@metamask/snaps-controllers 2.0.2
Added
- Add
SnapController:snapUninstalled
event (#1800)
Fixed
- Fix some issues with SnapController events (#1800)
- Fix an issue where cronjobs would continually be executed on init (#1790)
@metamask/snaps-webpack-plugin 2.0.1
Changed
- Improve error messaging (#1798)
10.0.0
@metamask/create-snap 1.0.1
Fixed
- Fix shell command injection (#1784)
@metamask/snaps-cli 2.0.1
Fixed
- Disable the
fullySpecified
rule for.js
imports in the default Webpack config (#1780)
@metamask/snaps-controllers 2.0.1
Changed
- Remove deprecated
endowment:long-running
(#1751)
@metamask/snaps-execution-environments 2.0.1
Changed
Fixed
- Allow passing
undefined
parameters torequest()
(#1776) - Fix an issue where errors would not correctly be returned (#1772)
@metamask/snaps-utils 2.0.1
Changed
- Remove deprecated
endowment:long-running
(#1751)