Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/56.0.0 #2581

Merged
merged 6 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "root",
"version": "55.0.0",
"version": "56.0.0",
"private": true,
"repository": {
"type": "git",
Expand Down
18 changes: 17 additions & 1 deletion packages/snaps-rpc-methods/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [10.0.0]
### Added
- **BREAKING:** `snap_dialog` now takes the `requestUserApproval` hook which is meant to bind to the `addAndShowRequest` method of the `ApprovalController`. ([#2509](https://github.com/metamask/snaps/pull/2509))
MajorLift marked this conversation as resolved.
Show resolved Hide resolved
- Add type `DialogApprovalTypes` and object `DIALOG_APPROVAL_TYPES`.

### Changed
- Bump `@metamask/key-tree` from `^9.1.1` to `^9.1.2` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/permission-controller` from `^10.0.0` to `^10.0.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/utils` from `^8.3.0` to `^9.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))

### Fixed
- Replace `superstruct` with ESM-compatible `@metamask/superstruct` `^3.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- This fixes the issue of this package being unusable by any TypeScript project that uses `Node16` or `NodeNext` as its `moduleResolution` option.

## [9.1.4]
### Changed
- Bump MetaMask dependencies ([#2516](https://github.com/MetaMask/snaps/pull/2516))
Expand Down Expand Up @@ -162,7 +177,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The version of the package no longer needs to match the version of all other
MetaMask Snaps packages.

[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]
[10.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[9.1.4]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[9.1.3]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[9.1.2]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-rpc-methods/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/snaps-rpc-methods",
"version": "9.1.4",
"version": "10.0.0",
"description": "MetaMask Snaps JSON-RPC method implementations.",
"repository": {
"type": "git",
Expand Down
24 changes: 23 additions & 1 deletion packages/snaps-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [7.0.0]
### Added
- **BREAKING:** Add non-restricted RPC method `snap_resolveInterface`, which allows a snap to resolve a given user interface bound to a `snap_dialog` with a custom value. ([#2509](https://github.com/metamask/snaps/pull/2509))
Mrtenz marked this conversation as resolved.
Show resolved Hide resolved
- Add new types `ResolveInterfaceParams`, `ResolveInterfaceResult`.
- feat: Card component ([#2480](https://github.com/metamask/snaps/pull/2480))
MajorLift marked this conversation as resolved.
Show resolved Hide resolved
- Add `BoxChildStruct`, `FormChildStruct`, `FieldChildUnionStruct`. ([#2409](https://github.com/metamask/snaps/pull/2409))
MajorLift marked this conversation as resolved.
Show resolved Hide resolved
- Add `Container` and `Footer` components ([#2517](https://github.com/metamask/snaps/pull/2517))

### Changed
- `RootJSXElementStruct` is updated so that the allowed JSX elements at the root are the null union of the Container component and the allowed children of the Box component. ([#2526](https://github.com/metamask/snaps/pull/2526))
MajorLift marked this conversation as resolved.
Show resolved Hide resolved
- Bump `@metamask/key-tree` from `^9.1.1` to `^9.1.2` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/utils` from `^8.3.0` to `^9.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))

### Fixed
- Add `typedUnion` utility which strictly validates members of the union based on a type field. ([#2534](https://github.com/metamask/snaps/pull/2534))
MajorLift marked this conversation as resolved.
Show resolved Hide resolved
- Replace `superstruct` with ESM-compatible `@metamask/superstruct` `^3.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- This fixes the issue of this package being unusable by any TypeScript project that uses `Node16` or `NodeNext` as its `moduleResolution` option.
- Set `@metamask/providers` from `^17.0.0` to `17.0.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- `17.1.0` and `17.1.1` introduce regressions.

## [6.0.0]
### Added
- **BREAKING:** Add `FileInput` component ([#2469](https://github.com/MetaMask/snaps/pull/2469), [#2504](https://github.com/MetaMask/snaps/pull/2504))
Expand Down Expand Up @@ -181,7 +202,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial release of this package.

[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]
[7.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[6.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[5.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[4.4.2]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/snaps-sdk",
"version": "6.0.0",
"version": "7.0.0",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/snaps.git"
Expand Down
20 changes: 19 additions & 1 deletion packages/snaps-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [7.8.0]
### Added
- Add function `serialiseJsx`, which serializes a JSX node to a string. ([#2409](https://github.com/metamask/snaps/pull/2409))
MajorLift marked this conversation as resolved.
Show resolved Hide resolved

### Changed
- Bump `@metamask/base-controller` from `^6.0.0` to `^6.0.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/key-tree` from `^9.1.1` to `^9.1.2` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/permission-controller` from `^10.0.0` to `^10.0.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/snaps-registry` from `^3.1.0` to `^3.2.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- Bump `@metamask/utils` from `^8.3.0` to `^9.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))

### Fixed
- Replace `superstruct` with ESM-compatible `@metamask/superstruct` `^3.1.0` ([#2445](https://github.com/MetaMask/snaps/pull/2445))
- This fixes the issue of this package being unusable by any TypeScript project that uses `Node16` or `NodeNext` as its `moduleResolution` option.
- Prevent `allowedOrigins` from being bypassed by enforcing that regex are terminated with $. ([#2576](https://github.com/metamask/snaps/pull/2576))
MajorLift marked this conversation as resolved.
Show resolved Hide resolved

## [7.7.0]
### Added
- Support conditional children in most JSX components ([#2506](https://github.com/MetaMask/snaps/pull/2506))
Expand Down Expand Up @@ -265,7 +282,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The version of the package no longer needs to match the version of all other
MetaMask Snaps packages.

[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]
[7.8.0]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[7.7.0]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[7.6.0]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
[7.5.0]: https://github.com/MetaMask/snaps/compare/@metamask/[email protected]...@metamask/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/snaps-utils",
"version": "7.7.0",
"version": "7.8.0",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/snaps.git"
Expand Down
Loading