Skip to content

Commit cde906f

Browse files
committed
Update Release 953.0.0
1 parent 3bf2e6a commit cde906f

125 files changed

Lines changed: 384 additions & 887 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/core-monorepo",
3-
"version": "952.0.0",
3+
"version": "953.0.0",
44
"private": true,
55
"description": "Monorepo for packages shared between MetaMask clients",
66
"repository": {

packages/account-tree-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"dependencies": {
5656
"@metamask/accounts-controller": "^38.0.0",
57-
"@metamask/base-controller": "^9.1.0",
57+
"@metamask/base-controller": "^9.2.0",
5858
"@metamask/keyring-api": "^23.1.0",
5959
"@metamask/keyring-controller": "^25.4.0",
6060
"@metamask/messenger": "^1.2.0",

packages/accounts-controller/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"dependencies": {
5656
"@ethereumjs/util": "^9.1.0",
57-
"@metamask/base-controller": "^9.1.0",
57+
"@metamask/base-controller": "^9.2.0",
5858
"@metamask/eth-snap-keyring": "^22.0.1",
5959
"@metamask/keyring-api": "^23.1.0",
6060
"@metamask/keyring-controller": "^25.4.0",
@@ -72,7 +72,7 @@
7272
},
7373
"devDependencies": {
7474
"@metamask/auto-changelog": "^6.1.0",
75-
"@metamask/controller-utils": "^11.20.0",
75+
"@metamask/controller-utils": "^11.21.0",
7676
"@metamask/providers": "^22.1.0",
7777
"@ts-bridge/cli": "^0.6.4",
7878
"@types/jest": "^29.5.14",

packages/address-book-controller/CHANGELOG.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
### Uncategorized
11-
12-
- chore: Enable Oxfmt for generating method action types files ([#8498](https://github.com/MetaMask/core/pull/8498))
13-
- chore: Format changelogs with Oxfmt ([#8442](https://github.com/MetaMask/core/pull/8442))
14-
- Revert "Release 912.0.0 (#8451)" ([#8451](https://github.com/MetaMask/core/pull/8451))
15-
- Release 912.0.0 ([#8451](https://github.com/MetaMask/core/pull/8451))
16-
- chore: bump `@metamask/auto-changelog` to `^6.0.0` ([#8441](https://github.com/MetaMask/core/pull/8441))
17-
- chore: Replace Prettier with Oxfmt ([#8434](https://github.com/MetaMask/core/pull/8434))
18-
- feat: extract generate-action-types CLI into @metamask/messenger-cli ([#8378](https://github.com/MetaMask/core/pull/8378))
19-
- feat(messenger): add `generate-action-types` CLI tool as subpath export ([#8264](https://github.com/MetaMask/core/pull/8264))
20-
2110
### Changed
2211

2312
- Bump `@metamask/controller-utils` from `^11.19.0` to `^11.20.0` ([#8344](https://github.com/MetaMask/core/pull/8344))
@@ -109,10 +98,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10998

11099
### Changed
111100

112-
- Bump `@metamask/base-controller` from `^7.0.2` to `^8.0.0`,, ([#5079](https://github.com/MetaMask/core/pull/5079), [#5135](https://github.com/MetaMask/core/pull/5135), [#5305](https://github.com/MetaMask/core/pull/5305))
113-
- Bump `@metamask/controller-utils` from `^11.4.4` to `^11.5.0`, ([#5135](https://github.com/MetaMask/core/pull/5135), [#5272](https://github.com/MetaMask/core/pull/5272))
101+
- Bump `@metamask/base-controller` from `^7.0.2` to `^8.0.0` ([#5079](https://github.com/MetaMask/core/pull/5079)), ([#5135](https://github.com/MetaMask/core/pull/5135)), ([#5305](https://github.com/MetaMask/core/pull/5305))
102+
- Bump `@metamask/controller-utils` from `^11.4.4` to `^11.5.0` ([#5135](https://github.com/MetaMask/core/pull/5135)), ([#5272](https://github.com/MetaMask/core/pull/5272))
114103
- Bump `@metamask/rpc-errors` from `^7.0.1` to `^7.0.2` ([#5080](https://github.com/MetaMask/core/pull/5080))
115-
- Bump `@metamask/utils` from `^10.0.0` to `^11.1.0`, ([#5080](https://github.com/MetaMask/core/pull/5080), [#5223](https://github.com/MetaMask/core/pull/5223))
104+
- Bump `@metamask/utils` from `^10.0.0` to `^11.1.0` ([#5080](https://github.com/MetaMask/core/pull/5080)), ([#5223](https://github.com/MetaMask/core/pull/5223))
116105

117106
## [6.0.2]
118107

@@ -134,7 +123,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
134123
["Are the Types Wrong?"](https://arethetypeswrong.github.io/) tool as
135124
["masquerading as CJS"](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md).
136125
All of the ATTW checks now pass.
137-
- Remove chunk files. ([#4648](https://github.com/MetaMask/core/pull/4648))
126+
- Remove chunk files ([#4648](https://github.com/MetaMask/core/pull/4648)).
138127
- Previously, the build tool we used to generate JavaScript files extracted
139128
common code to "chunk" files. While this was intended to make this package
140129
more tree-shakeable, it also made debugging more difficult for our

packages/address-book-controller/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
5454
},
5555
"dependencies": {
56-
"@metamask/base-controller": "^9.1.0",
57-
"@metamask/controller-utils": "^11.20.0",
56+
"@metamask/base-controller": "^9.2.0",
57+
"@metamask/controller-utils": "^11.21.0",
5858
"@metamask/messenger": "^1.2.0",
5959
"@metamask/utils": "^11.9.0"
6060
},

packages/ai-controllers/CHANGELOG.md

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
### Uncategorized
11-
12-
- chore: Enable Oxfmt for generating method action types files ([#8498](https://github.com/MetaMask/core/pull/8498))
13-
- chore: Format changelogs with Oxfmt ([#8442](https://github.com/MetaMask/core/pull/8442))
14-
- Revert "Release 912.0.0 (#8451)" ([#8451](https://github.com/MetaMask/core/pull/8451))
15-
- Release 912.0.0 ([#8451](https://github.com/MetaMask/core/pull/8451))
16-
- chore: bump `@metamask/auto-changelog` to `^6.0.0` ([#8441](https://github.com/MetaMask/core/pull/8441))
17-
- chore: Replace Prettier with Oxfmt ([#8434](https://github.com/MetaMask/core/pull/8434))
18-
- feat: adopt messenger-cli pattern for 4 controller packages ([#8391](https://github.com/MetaMask/core/pull/8391))
19-
2010
### Changed
2111

2212
- Bump `@metamask/messenger` from `^1.0.0` to `^1.2.0` ([#8364](https://github.com/MetaMask/core/pull/8364), [#8373](https://github.com/MetaMask/core/pull/8373), [#8632](https://github.com/MetaMask/core/pull/8632))
@@ -26,7 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2616

2717
### Fixed
2818

29-
- `RelatedAsset.caip19` is now optional (`string[] | undefined`) to match the live API, which omits the field for perps-only synthetic assets (e.g. ETHFI). `AiDigestService.fetchMarketOverview` normalises absent `caip19` values to `[]` so consumers always receive a `string[]`. ([#8326](https://github.com/MetaMask/core/pull/8326))
19+
- `RelatedAsset.caip19` is now optional (`string[] | undefined`) to match the live API, which omits the field for perps-only synthetic assets (e.g. ETHFI). `AiDigestService.fetchMarketOverview` normalises absent `caip19` values to `[]` so consumers always receive a `string[]` ([#8326](https://github.com/MetaMask/core/pull/8326)).
3020

3121
## [0.6.2]
3222

@@ -39,57 +29,57 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3929

4030
### Changed
4131

42-
- `RelatedAsset.hlPerpsMarket` is now `string[]` (optional) instead of `string` to match the `/market-overview` API payload shape. `AiDigestService.fetchMarketOverview` now validates `hlPerpsMarket` as an array of strings and rejects string values. ([#8308](https://github.com/MetaMask/core/pull/8308))
32+
- `RelatedAsset.hlPerpsMarket` is now `string[]` (optional) instead of `string` to match the `/market-overview` API payload shape. `AiDigestService.fetchMarketOverview` now validates `hlPerpsMarket` as an array of strings and rejects string values ([#8308](https://github.com/MetaMask/core/pull/8308)).
4333

4434
## [0.6.0]
4535

4636
### Added
4737

48-
- `MarketInsightsReport` now includes a required `digestId` field containing the unique UUID returned in the `/asset-summary` API response envelope. ([#8283](https://github.com/MetaMask/core/pull/8283))
49-
- `AiDigestService` now requires the `{ id, digest }` / `{ id, report }` envelope shape and exposes `id` as `digestId` on the returned report objects; bare (non-enveloped) responses are no longer accepted. ([#8283](https://github.com/MetaMask/core/pull/8283))
38+
- `MarketInsightsReport` now includes a required `digestId` field containing the unique UUID returned in the `/asset-summary` API response envelope ([#8283](https://github.com/MetaMask/core/pull/8283)).
39+
- `AiDigestService` now requires the `{ id, digest }` / `{ id, report }` envelope shape and exposes `id` as `digestId` on the returned report objects; bare (non-enveloped) responses are no longer accepted ([#8283](https://github.com/MetaMask/core/pull/8283)).
5040

5141
## [0.5.0]
5242

5343
### Changed
5444

55-
- `AiDigestService.searchDigest` now uses the universal `asset` query parameter instead of the previous `caipAssetType` / `hlPerpsMarket` branching logic. The public TypeScript API is unchanged; any identifier (CAIP-19, ticker, name, perps market id) can be passed as before. ([#8263](https://github.com/MetaMask/core/pull/8263))
56-
- `RelatedAsset.hlPerpsMarket` now covers all HyperLiquid market identifiers — both regular crypto tokens (`BTC`, `ETH`) and purely synthetic perps assets (`xyz:TSLA`). No separate field is needed; clients use `caip19` presence to decide the icon resolution strategy. ([#8263](https://github.com/MetaMask/core/pull/8263))
45+
- `AiDigestService.searchDigest` now uses the universal `asset` query parameter instead of the previous `caipAssetType` / `hlPerpsMarket` branching logic. The public TypeScript API is unchanged; any identifier (CAIP-19, ticker, name, perps market id) can be passed as before ([#8263](https://github.com/MetaMask/core/pull/8263)).
46+
- `RelatedAsset.hlPerpsMarket` now covers all HyperLiquid market identifiers — both regular crypto tokens (`BTC`, `ETH`) and purely synthetic perps assets (`xyz:TSLA`). No separate field is needed; clients use `caip19` presence to decide the icon resolution strategy ([#8263](https://github.com/MetaMask/core/pull/8263)).
5747

5848
## [0.4.0]
5949

6050
### Added
6151

62-
- Export new `RelatedAsset` type representing a rich asset object returned in `MarketOverviewTrend.relatedAssets`. ([#8218](https://github.com/MetaMask/core/pull/8218))
52+
- Export new `RelatedAsset` type representing a rich asset object returned in `MarketOverviewTrend.relatedAssets` ([#8218](https://github.com/MetaMask/core/pull/8218)).
6353

6454
### Changed
6555

66-
- `MarketOverviewTrend.relatedAssets` is now `RelatedAsset[]` instead of `string[]`. Each entry includes `name`, `symbol`, `caip19`, `sourceAssetId`, and optional `hlPerpsMarket` fields. ([#8218](https://github.com/MetaMask/core/pull/8218))
67-
- `MarketOverview.headline`, `summary`, and `sources` have been removed; they are not part of the `/market-overview` API response. ([#8218](https://github.com/MetaMask/core/pull/8218))
68-
- `MarketOverviewTrend.category` and `impact` are now optional to match the live API response shape. ([#8218](https://github.com/MetaMask/core/pull/8218))
69-
- `AiDigestService.fetchMarketOverview` now accepts both flat `MarketOverview` and `{ report: MarketOverview }` enveloped responses, matching the live API shape. ([#8218](https://github.com/MetaMask/core/pull/8218))
56+
- `MarketOverviewTrend.relatedAssets` is now `RelatedAsset[]` instead of `string[]`. Each entry includes `name`, `symbol`, `caip19`, `sourceAssetId`, and optional `hlPerpsMarket` fields ([#8218](https://github.com/MetaMask/core/pull/8218)).
57+
- `MarketOverview.headline`, `summary`, and `sources` have been removed; they are not part of the `/market-overview` API response ([#8218](https://github.com/MetaMask/core/pull/8218)).
58+
- `MarketOverviewTrend.category` and `impact` are now optional to match the live API response shape ([#8218](https://github.com/MetaMask/core/pull/8218)).
59+
- `AiDigestService.fetchMarketOverview` now accepts both flat `MarketOverview` and `{ report: MarketOverview }` enveloped responses, matching the live API shape ([#8218](https://github.com/MetaMask/core/pull/8218)).
7060

7161
## [0.3.0]
7262

7363
### Changed
7464

75-
- `AiDigestService.searchDigest` and `AiDigestController.fetchMarketInsights` now accept any string identifier rather than only CAIP-19 asset types. CAIP-19 identifiers continue to use the `caipAssetType` query parameter; all other strings (e.g. perps market symbols like `ETH`) use the new `hlPerpsMarket` query parameter. ([#8182](https://github.com/MetaMask/core/pull/8182))
76-
- Rename `caip19Id` parameter to `assetIdentifier` in `DigestService.searchDigest`, `MarketInsightsEntry`, and `AiDigestController.fetchMarketInsights`. ([#8182](https://github.com/MetaMask/core/pull/8182))
77-
- Replace `INVALID_CAIP_ASSET_TYPE` error message constant with `INVALID_ASSET_IDENTIFIER` in `AiDigestControllerErrorMessage`. ([#8182](https://github.com/MetaMask/core/pull/8182))
65+
- `AiDigestService.searchDigest` and `AiDigestController.fetchMarketInsights` now accept any string identifier rather than only CAIP-19 asset types. CAIP-19 identifiers continue to use the `caipAssetType` query parameter; all other strings (e.g. perps market symbols like `ETH`) use the new `hlPerpsMarket` query parameter ([#8182](https://github.com/MetaMask/core/pull/8182)).
66+
- Rename `caip19Id` parameter to `assetIdentifier` in `DigestService.searchDigest`, `MarketInsightsEntry`, and `AiDigestController.fetchMarketInsights` ([#8182](https://github.com/MetaMask/core/pull/8182)).
67+
- Replace `INVALID_CAIP_ASSET_TYPE` error message constant with `INVALID_ASSET_IDENTIFIER` in `AiDigestControllerErrorMessage` ([#8182](https://github.com/MetaMask/core/pull/8182)).
7868

7969
## [0.2.0]
8070

8171
### Added
8272

83-
- Add `fetchMarketOverview` method to `AiDigestService`, with superstruct validation of the `MarketOverview` response shape. ([#8109](https://github.com/MetaMask/core/pull/8109))
84-
- Export new shared sub-types `Article`, `Tweet`, `Source`, `AIResponseMetadata`, `MarketOverview`, `MarketOverviewEntry`, `MarketOverviewTrend`, and `AiDigestControllerFetchMarketOverviewAction`. ([#8109](https://github.com/MetaMask/core/pull/8109))
73+
- Add `fetchMarketOverview` method to `AiDigestService`, with superstruct validation of the `MarketOverview` response shape ([#8109](https://github.com/MetaMask/core/pull/8109)).
74+
- Export new shared sub-types `Article`, `Tweet`, `Source`, `AIResponseMetadata`, `MarketOverview`, `MarketOverviewEntry`, `MarketOverviewTrend`, and `AiDigestControllerFetchMarketOverviewAction` ([#8109](https://github.com/MetaMask/core/pull/8109)).
8575

8676
### Changed
8777

88-
- Strengthen `AiDigestService` response validation using nested `superstruct` schemas for market insights payloads, including deep validation of `trends`/`sources` items and support for optional top-level `social` entries while allowing additional unknown API fields for forward compatibility. ([#8006](https://github.com/MetaMask/core/pull/8006))
89-
- Rename shared sub-types `MarketInsightsArticle`, `MarketInsightsTweet`, and `MarketInsightsSource` to `Article`, `Tweet`, and `Source`; original names are kept as type aliases for backward compatibility. ([#8109](https://github.com/MetaMask/core/pull/8109))
90-
- Tighten `MarketInsightsTrend.category` and `MarketInsightsTrend.impact` to closed string unions matching the API spec; `Source.type` is also now a closed union (`'news' | 'data' | 'social'`). ([#8109](https://github.com/MetaMask/core/pull/8109))
91-
- Update `searchDigest` endpoint from `/digests` to `/asset-summary`. ([#8109](https://github.com/MetaMask/core/pull/8109))
92-
- Add optional `metadata` field to `MarketInsightsReport`. ([#8109](https://github.com/MetaMask/core/pull/8109))
78+
- Strengthen `AiDigestService` response validation using nested `superstruct` schemas for market insights payloads, including deep validation of `trends`/`sources` items and support for optional top-level `social` entries while allowing additional unknown API fields for forward compatibility ([#8006](https://github.com/MetaMask/core/pull/8006)).
79+
- Rename shared sub-types `MarketInsightsArticle`, `MarketInsightsTweet`, and `MarketInsightsSource` to `Article`, `Tweet`, and `Source`; original names are kept as type aliases for backward compatibility ([#8109](https://github.com/MetaMask/core/pull/8109)).
80+
- Tighten `MarketInsightsTrend.category` and `MarketInsightsTrend.impact` to closed string unions matching the API spec; `Source.type` is also now a closed union (`'news' | 'data' | 'social'`) ([#8109](https://github.com/MetaMask/core/pull/8109)).
81+
- Update `searchDigest` endpoint from `/digests` to `/asset-summary` ([#8109](https://github.com/MetaMask/core/pull/8109)).
82+
- Add optional `metadata` field to `MarketInsightsReport` ([#8109](https://github.com/MetaMask/core/pull/8109)).
9383

9484
## [0.1.0]
9585

packages/ai-controllers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
5454
},
5555
"dependencies": {
56-
"@metamask/base-controller": "^9.1.0",
56+
"@metamask/base-controller": "^9.2.0",
5757
"@metamask/messenger": "^1.2.0",
5858
"@metamask/superstruct": "^3.1.0",
5959
"@metamask/utils": "^11.9.0"

packages/analytics-controller/CHANGELOG.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
### Uncategorized
11-
12-
- chore: Enable Oxfmt for generating method action types files ([#8498](https://github.com/MetaMask/core/pull/8498))
13-
- chore: Format changelogs with Oxfmt ([#8442](https://github.com/MetaMask/core/pull/8442))
14-
- Revert "Release 912.0.0 (#8451)" ([#8451](https://github.com/MetaMask/core/pull/8451))
15-
- Release 912.0.0 ([#8451](https://github.com/MetaMask/core/pull/8451))
16-
- chore: bump `@metamask/auto-changelog` to `^6.0.0` ([#8441](https://github.com/MetaMask/core/pull/8441))
17-
- chore: Replace Prettier with Oxfmt ([#8434](https://github.com/MetaMask/core/pull/8434))
18-
- feat: extract generate-action-types CLI into @metamask/messenger-cli ([#8378](https://github.com/MetaMask/core/pull/8378))
19-
- feat(messenger): add `generate-action-types` CLI tool as subpath export ([#8264](https://github.com/MetaMask/core/pull/8264))
20-
2110
### Changed
2211

2312
- Bump `@metamask/messenger` from `^1.0.0` to `^1.2.0` ([#8364](https://github.com/MetaMask/core/pull/8364), [#8373](https://github.com/MetaMask/core/pull/8373), [#8632](https://github.com/MetaMask/core/pull/8632))

packages/analytics-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
5454
},
5555
"dependencies": {
56-
"@metamask/base-controller": "^9.1.0",
56+
"@metamask/base-controller": "^9.2.0",
5757
"@metamask/messenger": "^1.2.0",
5858
"@metamask/utils": "^11.9.0"
5959
},

packages/analytics-data-regulation-controller/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
5454
},
5555
"dependencies": {
56-
"@metamask/base-controller": "^9.1.0",
57-
"@metamask/controller-utils": "^11.20.0",
56+
"@metamask/base-controller": "^9.2.0",
57+
"@metamask/controller-utils": "^11.21.0",
5858
"@metamask/messenger": "^1.2.0",
5959
"@metamask/utils": "^11.9.0"
6060
},

0 commit comments

Comments
 (0)