diff --git a/.changeset/moo-391-fix-morpho-graphql-schema.md b/.changeset/moo-391-fix-morpho-graphql-schema.md deleted file mode 100644 index c2d2a3db..00000000 --- a/.changeset/moo-391-fix-morpho-graphql-schema.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@moonwell-fi/moonwell-sdk": patch ---- - -Fix Morpho GraphQL queries broken by upstream API schema changes. The Morpho API renamed `Market.uniqueKey` to `marketId` and replaced `PublicAllocatorSharedLiquidity.allocationMarket` with `withdrawMarket`, causing the rewards and shared-liquidity queries to fail with 400 errors that were silently swallowed — every Morpho vault reported empty rewards (MOO-391). Also migrates vault rewards to `state.allRewards` and drops the deprecated `amountPerSuppliedToken`/`amountPerBorrowedToken` fields ahead of their removal (reward token amounts are now reported as 0 since the API no longer exposes them), and logs Morpho GraphQL errors in non-browser environments so failures surface in server logs. diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index aa135155..932f471d 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,11 @@ # @moonwell-fi/moonwell-sdk +## 0.20.1 + +### Patch Changes + +- [#303](https://github.com/moonwell-fi/moonwell-sdk/pull/303) [`59d540a511cd7eb14486f8aafdf7f898d994be90`](https://github.com/moonwell-fi/moonwell-sdk/commit/59d540a511cd7eb14486f8aafdf7f898d994be90) Thanks [@lyoungblood](https://github.com/lyoungblood)! - Fix Morpho GraphQL queries broken by upstream API schema changes. The Morpho API renamed `Market.uniqueKey` to `marketId` and replaced `PublicAllocatorSharedLiquidity.allocationMarket` with `withdrawMarket`, causing the rewards and shared-liquidity queries to fail with 400 errors that were silently swallowed — every Morpho vault reported empty rewards (MOO-391). Also migrates vault rewards to `state.allRewards` and drops the deprecated `amountPerSuppliedToken`/`amountPerBorrowedToken` fields ahead of their removal (reward token amounts are now reported as 0 since the API no longer exposes them), and logs Morpho GraphQL errors in non-browser environments so failures surface in server logs. + ## 0.20.0 ### Minor Changes diff --git a/src/errors/version.ts b/src/errors/version.ts index afdae29f..80d9248b 100644 --- a/src/errors/version.ts +++ b/src/errors/version.ts @@ -1 +1 @@ -export const version = "0.20.0"; +export const version = "0.20.1"; diff --git a/src/package.json b/src/package.json index 43cbe6d4..eebf2538 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "@moonwell-fi/moonwell-sdk", "description": "TypeScript Interface for Moonwell", - "version": "0.20.0", + "version": "0.20.1", "type": "module", "main": "./_cjs/index.js", "module": "./_esm/index.js",