Releases: MetaMask/snaps
Releases · MetaMask/snaps
22.0.0
21.0.0
@metamask/create-snap 3.1.1
Changed
- Bump several MetaMask dependencies (#1964)
@metamask/snaps-browserify-plugin 3.0.2
Changed
- Bump several MetaMask dependencies (#1964)
@metamask/snaps-cli 3.0.3
Changed
- Bump several MetaMask dependencies (#1964)
Fixed
- Fix issues generating checksum with binary auxiliary files (#1975)
@metamask/snaps-controllers 3.4.1
Changed
Fixed
- Fix a few issues with passing non-JSON-serializable values (#1974)
@metamask/snaps-execution-environments 3.4.1
Changed
Fixed
- Fix a few issues with passing non-JSON-serializable values (#1974)
@metamask/snaps-jest 4.0.1
Fixed
- Fix coercing of address values in
sendTransaction
function (#1970)
@metamask/snaps-rpc-methods 4.0.1
Changed
@metamask/snaps-sdk 1.2.0
Added
Changed
- Bump several MetaMask dependencies (#1964)
@metamask/snaps-simulator 2.4.1
Changed
- Bump several MetaMask dependencies (#1964)
@metamask/snaps-utils 5.0.0
Changed
- Bump several MetaMask dependencies (#1964)
Removed
- BREAKING: Move
enumValue
,literal
andunion
tosnaps-sdk
(#1968)
Fixed
- Fix issues generating checksum with binary auxiliary files (#1975)
@metamask/snaps-webpack-plugin 3.1.1
Changed
- Bump several MetaMask dependencies (#1964)
@metamask/insights-example-snap 2.2.0
Added
- Use new
row
andaddress
component (#1968)
20.0.0
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)