diff --git a/package.json b/package.json index 394096c22fb..d03b1c1b129 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/core-monorepo", - "version": "1131.0.0", + "version": "1132.0.0", "private": true, "description": "Monorepo for packages shared between MetaMask clients", "repository": { diff --git a/packages/money-account-api-data-service/CHANGELOG.md b/packages/money-account-api-data-service/CHANGELOG.md index 21e6aea47e9..81106eabf2f 100644 --- a/packages/money-account-api-data-service/CHANGELOG.md +++ b/packages/money-account-api-data-service/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.0] + ### Added - Add optional nullable `balance` field to the positions response (`musd_balance`, `vmusd_value_in_musd`, `total_balance`), matching the Money Account API contract. Export `PositionBalance` type. ([#9554](https://github.com/MetaMask/core/pull/9554)) @@ -21,5 +23,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fetch cursor-paginated cash-flow history (`fetchHistory`) - Fetch vault exchange-rate time series (`fetchRateHistory`) -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/money-account-api-data-service@0.1.0...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/money-account-api-data-service@0.2.0...HEAD +[0.2.0]: https://github.com/MetaMask/core/compare/@metamask/money-account-api-data-service@0.1.0...@metamask/money-account-api-data-service@0.2.0 [0.1.0]: https://github.com/MetaMask/core/releases/tag/@metamask/money-account-api-data-service@0.1.0 diff --git a/packages/money-account-api-data-service/package.json b/packages/money-account-api-data-service/package.json index a5231593e2e..11fa87165c1 100644 --- a/packages/money-account-api-data-service/package.json +++ b/packages/money-account-api-data-service/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/money-account-api-data-service", - "version": "0.1.0", + "version": "0.2.0", "description": "Data service for fetching Money account positions, interest, cash-flow history, and vault rate history from the Money Account API", "keywords": [ "Ethereum", diff --git a/packages/money-account-balance-service/CHANGELOG.md b/packages/money-account-balance-service/CHANGELOG.md index f2327cfda04..e50d91c6d7a 100644 --- a/packages/money-account-balance-service/CHANGELOG.md +++ b/packages/money-account-balance-service/CHANGELOG.md @@ -7,12 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.3.0] + ### Added - Add `fetchBalanceWithFallback` facade that selects Money API or RPC balance sources from the `moneyAccountBalanceSource` remote feature flag (`api` | `rpc` | `api-only` | `rpc-only`; default `rpc` = RPC primary with Money API fallback). Returns canonical amounts plus `source` and `usedFallback` provenance; reports validation/unavailable source defects via messenger `captureException`; throws `MoneyAccountBalanceFetchError` when all eligible sources fail. ([#9554](https://github.com/MetaMask/core/pull/9554)) - Permit `MoneyAccountApiDataService:fetchPositions` on the balance service messenger so the facade can read Money API balances. ([#9554](https://github.com/MetaMask/core/pull/9554)) - Export `CanonicalMoneyAccountBalanceResponse`, balance-source constants/types, and `MoneyAccountBalanceFetchError` / `MoneyAccountBalanceUnavailableError` / `MoneyAccountBalanceValidationError`. ([#9554](https://github.com/MetaMask/core/pull/9554)) +### Changed + +- Bump `@metamask/money-account-api-data-service` from `^0.1.0` to `^0.2.0` ([#9573](https://github.com/MetaMask/core/pull/9573)) + ## [2.2.0] ### Added @@ -113,7 +119,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Compute mUSD-equivalent value of vault share holdings (`getMusdEquivalentValue`) - Fetch vault APY from the Veda performance REST API (`getVaultApy`) -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.2.0...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.3.0...HEAD +[2.3.0]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.2.0...@metamask/money-account-balance-service@2.3.0 [2.2.0]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.1.2...@metamask/money-account-balance-service@2.2.0 [2.1.2]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.1.1...@metamask/money-account-balance-service@2.1.2 [2.1.1]: https://github.com/MetaMask/core/compare/@metamask/money-account-balance-service@2.1.0...@metamask/money-account-balance-service@2.1.1 diff --git a/packages/money-account-balance-service/package.json b/packages/money-account-balance-service/package.json index bc9a7d380bc..9f46592f0f6 100644 --- a/packages/money-account-balance-service/package.json +++ b/packages/money-account-balance-service/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/money-account-balance-service", - "version": "2.2.0", + "version": "2.3.0", "description": "Data service for fetching Money account balances, exchange rates, and vault APY", "keywords": [ "Ethereum", @@ -61,7 +61,7 @@ "@metamask/controller-utils": "^12.3.0", "@metamask/messenger": "^2.0.0", "@metamask/metamask-eth-abis": "^3.1.1", - "@metamask/money-account-api-data-service": "^0.1.0", + "@metamask/money-account-api-data-service": "^0.2.0", "@metamask/network-controller": "^34.0.0", "@metamask/remote-feature-flag-controller": "^4.2.2", "@metamask/superstruct": "^3.1.0", diff --git a/yarn.lock b/yarn.lock index 688172e9620..bc50c2e90b7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7485,7 +7485,7 @@ __metadata: languageName: node linkType: hard -"@metamask/money-account-api-data-service@npm:^0.1.0, @metamask/money-account-api-data-service@workspace:packages/money-account-api-data-service": +"@metamask/money-account-api-data-service@npm:^0.2.0, @metamask/money-account-api-data-service@workspace:packages/money-account-api-data-service": version: 0.0.0-use.local resolution: "@metamask/money-account-api-data-service@workspace:packages/money-account-api-data-service" dependencies: @@ -7520,7 +7520,7 @@ __metadata: "@metamask/controller-utils": "npm:^12.3.0" "@metamask/messenger": "npm:^2.0.0" "@metamask/metamask-eth-abis": "npm:^3.1.1" - "@metamask/money-account-api-data-service": "npm:^0.1.0" + "@metamask/money-account-api-data-service": "npm:^0.2.0" "@metamask/network-controller": "npm:^34.0.0" "@metamask/remote-feature-flag-controller": "npm:^4.2.2" "@metamask/superstruct": "npm:^3.1.0"