Releases: MetaMask/snaps
Releases · MetaMask/snaps
57.0.0
@metamask/snaps-controllers 9.3.0
Added
- Add
snap_resolveInterface
RPC method to theSnapInterfaceController
(#2509) - Add
SnapInsightsController
(#2555)
Changed
- Bump
@metamask/base-controller
from^6.0.0
to^6.0.1
(#2445) - Bump
@metamask/permission-controller
from^10.0.0
to^10.0.1
(#2445) - Bump
@metamask/rpc-errors
from^6.2.1
to^6.3.1
(#2445) - Bump
@metamask/snaps-registry
from^3.1.0
to^3.2.1
(#2445) - Bump
@metamask/snaps-rpc-methods
to^10.0.0
(#2589) - Bump
@metamask/snaps-sdk
to^6.1.0
(#2589) - Bump
@metamask/snaps-utils
to^7.8.0
(#2589) - Bump
@metamask/utils
from^8.3.0
to^9.1.0
(#2445) - Bump peer dependency
@metamask/snaps-execution-environments
to^6.6.1
(#2589)
Fixed
- Handle initial connections for preinstalled Snaps (#2591)
- Account for revoked origins when calculating the difference in
initialConnections
(#2535)- Fixes issue of revoking permissions that are already revoked.
- Enables revoked connections to be highlighted as being re-added in the UI.
- Enforce stricter size limits for source code, static auxiliary files, and
snap_getFile
return values (#2527)- Prevent communication failures by enabling compliance with JSON-RPC extension message requirements.
@metamask/snaps-execution-environments 6.6.1
Changed
- Bump
@metamask/rpc-errors
from^6.2.1
to^6.3.1
(#2445) - Bump
@metamask/utils
from^8.3.0
to^9.1.0
(#2445)
Fixed
- Replace
superstruct
with ESM-compatible@metamask/superstruct
^3.1.0
(#2445)- This fixes the issue of this package being unusable by any TypeScript project that uses
Node16
orNodeNext
as itsmoduleResolution
option.
- This fixes the issue of this package being unusable by any TypeScript project that uses
- Set
@metamask/providers
from^17.0.0
to17.0.0
(#2445)17.1.0
and17.1.1
introduce regressions.
56.0.0
@metamask/snaps-rpc-methods 10.0.0
Added
- BREAKING:
snap_dialog
now takes therequestUserApproval
hook (#2509)- It should bind to the
addAndShowRequest
method of theApprovalController
. - Add type
DialogApprovalTypes
and objectDIALOG_APPROVAL_TYPES
.
- It should bind to the
Changed
- Bump
@metamask/key-tree
from^9.1.1
to^9.1.2
(#2445) - Bump
@metamask/permission-controller
from^10.0.0
to^10.0.1
(#2445) - Bump
@metamask/rpc-errors
from^6.2.1
to^6.3.1
(#2445) - Bump
@metamask/utils
from^8.3.0
to^9.1.0
(#2445)
Fixed
- Replace
superstruct
with ESM-compatible@metamask/superstruct
^3.1.0
(#2445)- This fixes the issue of this package being unusable by any TypeScript project that uses
Node16
orNodeNext
as itsmoduleResolution
option.
- This fixes the issue of this package being unusable by any TypeScript project that uses
@metamask/snaps-sdk 6.1.0
Added
- Add non-restricted RPC method
snap_resolveInterface
(#2509)- This method allows a Snap to resolve a given user interface bound to a
snap_dialog
with a custom value. - Add new types
ResolveInterfaceParams
,ResolveInterfaceResult
.
- This method allows a Snap to resolve a given user interface bound to a
- Add
Card
component (#2480) - Add
BoxChildStruct
,FormChildStruct
,FieldChildUnionStruct
(#2409) - Add
Container
andFooter
components (#2517)
Changed
- Update
RootJSXElement
to allowContainer
orBox
at the root (#2526) - Bump
@metamask/key-tree
from^9.1.1
to^9.1.2
(#2445) - Bump
@metamask/rpc-errors
from^6.2.1
to^6.3.1
(#2445) - Bump
@metamask/utils
from^8.3.0
to^9.1.0
(#2445)
Fixed
- Replace
superstruct
with ESM-compatible@metamask/superstruct
^3.1.0
(#2445)- This fixes the issue of this package being unusable by any TypeScript project that uses
Node16
orNodeNext
as itsmoduleResolution
option.
- This fixes the issue of this package being unusable by any TypeScript project that uses
- Set
@metamask/providers
from^17.0.0
to17.0.0
(#2445)17.1.0
and17.1.1
introduce regressions.
@metamask/snaps-utils 7.8.0
Added
- Move
serialiseJsx
function fromsnaps-jest
tosnaps-utils
(#2409)
Changed
- Bump
@metamask/base-controller
from^6.0.0
to^6.0.1
(#2445) - Bump
@metamask/key-tree
from^9.1.1
to^9.1.2
(#2445) - Bump
@metamask/permission-controller
from^10.0.0
to^10.0.1
(#2445) - Bump
@metamask/rpc-errors
from^6.2.1
to^6.3.1
(#2445) - Bump
@metamask/snaps-registry
from^3.1.0
to^3.2.1
(#2445) - Bump
@metamask/utils
from^8.3.0
to^9.1.0
(#2445)
Fixed
55.0.0
54.0.0
53.0.0
@metamask/snaps-cli 6.2.1
Fixed
- Improve validation of
endowment:rpc
(#2512)
@metamask/snaps-controllers 9.1.0
Added
- Add
Checkbox
component (#2501) - Add
FileInput
component (#2469) - Support additional components inside forms (#2497)
@metamask/snaps-execution-environments 6.5.0
Added
Fixed
- Support parameters in
setTimeout
andsetInterval
(#2513)
@metamask/snaps-jest 8.2.0
Added
- Add support for
Checkbox
tosnaps-jest
(#2515)- Checkboxes can be interacted with using
clickElement
.
- Checkboxes can be interacted with using
- Add support for
FileInput
tosnaps-jest
(#2494)- Files can be uploaded to file inputs using
uploadFile
.
- Files can be uploaded to file inputs using
@metamask/snaps-rpc-methods 9.1.4
Changed
- Bump MetaMask dependencies (#2516)
@metamask/snaps-sdk 6.0.0
Added
- BREAKING: Add
FileInput
component (#2469, #2504)FormSubmitEvent
may now contain values of typeFile
.
- BREAKING: Add
Checkbox
component (#2501)FormSubmitEvent
andInputChangeEvent
may now contain values of typeboolean
.
- Add
alignment
prop toText
(#2489) - Add
Tooltip
component (#2490) - Support additional components inside forms (#2497)
- Support conditional children in most JSX components (#2506)
@metamask/snaps-utils 7.7.0
Added
- Support conditional children in most JSX components (#2506)
- Support additional components inside forms (#2497)
Fixed
- Improve validation of
endowment:rpc
(#2512)
@metamask/file-upload-example-snap 1.0.0
Added
@metamask/interactive-ui-example-snap 2.1.0
Added
- Add
Checkbox
to interactive UI example (#2515)
@metamask/jsx-example-snap 1.1.0
Added
- Add
Tooltip
to JSX example (#2498)
52.0.0
@metamask/snaps-controllers 9.0.0
Changed
- BREAKING: Defer creation of offscreen document in
OffscreenExecutionService
(#2473) - Update
onNameLookup
response to includedomainName
(#2484) - Bump MetaMask dependencies (#2460)
Fixed
- Properly decrypt legacy state blobs (#2472)
@metamask/snaps-execution-environments 6.4.0
Changed
@metamask/snaps-jest 8.1.3
Changed
@metamask/snaps-rpc-methods 9.1.3
Changed
- Bump MetaMask dependencies (#2460)
@metamask/snaps-sdk 5.0.0
Added
Changed
- Update
onNameLookup
response types (#2484)
Removed
- BREAKING: Remove
parseSvg
andisSvg
internals (#2475)
Fixed
- Correct Row variant in JSX (#2486)
- Revert requiring at least one child in JSX components (#2481, #2470)
- Correct docs for
Input
andDropdown
(#2479)
@metamask/snaps-utils 7.6.0
Added
- Support nested children in JSX (#2482)
Changed
Fixed
- Fix a problem with converting legacy UIs that used
row()
(#2486) - Revert requiring at least one child in JSX components (#2470)
@metamask/name-lookup-example-snap 3.1.0
Changed
- Update
onNameLookup
response to includedomainName
(#2484)
51.0.0
@metamask/snaps-controllers 8.4.0
Added
- Add
hidden
flag for preinstalled Snaps (#2463)
Fixed
- Use first Dropdown option as the default value (#2465)
@metamask/snaps-sdk 4.4.2
Fixed
- Require at least 1 child in JSX components (#2466)
@metamask/snaps-utils 7.5.0
Added
Fixed
- Require at least 1 child in JSX components (#2466)
50.0.0
@metamask/snaps-controllers 8.3.1
Fixed
- Fix
react-native
export for tools that don't supportpackage.json
exports (#2451)
@metamask/snaps-jest 8.1.2
Fixed
- Fix invalid
@metamask/snaps-sdk
imports (#2452)
@metamask/snaps-rpc-methods 9.1.2
Fixed
- Fix invalid
@metamask/snaps-sdk
imports (#2452)
@metamask/snaps-sdk 4.4.1
Fixed
- Fix invalid
@metamask/snaps-sdk
imports (#2452)
@metamask/snaps-utils 7.4.1
Fixed
- Fix invalid
@metamask/snaps-sdk
imports (#2452)
49.0.0
@metamask/snaps-controllers 8.3.0
Added
- Add origin to lifecycle hooks (#2441)
- Lifecycle hooks can now use the
origin
parameter to determine the origin
of the installation or update.
- Lifecycle hooks can now use the
@metamask/snaps-execution-environments 6.3.0
Added
- Add origin to lifecycle hooks (#2441)
- Lifecycle hooks can now use the
origin
parameter to determine the origin
of the installation or update.
- Lifecycle hooks can now use the
Changed
- Bump
@metamask/providers
from16.1.0
to17.0.0
(#2442)
@metamask/snaps-jest 8.1.1
Changed
- Bump
@metamask/key-tree
from9.1.0
to9.1.1
(#2431)
@metamask/snaps-rpc-methods 9.1.1
Changed
- Bump
@metamask/key-tree
from9.1.0
to9.1.1
(#2431)
@metamask/snaps-sdk 4.4.0
Added
- Add origin to lifecycle hooks (#2441)
- Lifecycle hooks can now use the
origin
parameter to determine the origin
of the installation or update.
- Lifecycle hooks can now use the
Changed
48.0.0
@metamask/snaps-controllers 8.2.0
Added
- Add
context
field tosnap_createInterface
(#2413) - Add feature flag to disable platform (#2434)
- Add support for
Dropdown
component (#2420) - Add
initialConnections
diff calculations needed for Snap update (#2424)
Fixed
- Correctly merge caveats when using initial connections (#2419)
@metamask/snaps-execution-environments 6.2.0
Added
- Add
context
field tosnap_createInterface
(#2413)
@metamask/snaps-jest 8.1.0
Added
- Add
selectInDropdown
to be used with the newly addedDropdown
component (#2420) - Add
context
field tosnap_createInterface
(#2413)
Fixed
- Properly handle invalid interfaces during test (#2433)
- Properly diff when using legacy UI with
toRender
matcher (#2432)
@metamask/snaps-rpc-methods 9.1.0
Added
- Add
context
field tosnap_createInterface
(#2413)
@metamask/snaps-sdk 4.3.0
Added
- Add
Value
component (#2435) - Add
Dropdown
component (#2420) - Add positioning props to
Box
(#2422) - Allow
Button
withinInput
(#2407) - Add
context
field tosnap_createInterface
(#2413, #2427)
Fixed
- Correct validation for children of Box component (#2423)
@metamask/bip32-example-snap 2.2.0
Added
- Add support for
ed25519Bip32
to the BIP-32 example snap (#2428)
@metamask/interactive-ui-example-snap 2.0.0
Changed
- BREAKING: Revamp interactive UI example using JSX (#2427)
- The
getState
RPC method was removed as part of this refactor.
- The