Skip to content

1277.0.0

Choose a tag to compare

@github-actions github-actions released this 23 Sep 13:13
09e9fbf

@metamask/social-controllers 3.1.0

Added

  • Add optional feed-card stats on FeedItem: actor.winRate30d, actor.pnl30d, actor.tradeCount30d, actor.followerCount, commentCount, replyCount, firstTradeAt, holdTimeMs, and entryPriceUsd. Older social-api responses that omit them still validate (#10352, #10387)
    • holdTimeMs is the final hold and is only set once a position is closed. While a position is still open it is null, because that span grows every second; count from firstTradeAt (Unix seconds of the first fill) to render a live hold.
  • Add optional authorComment on FeedItem (uid, text, timestamp, engagement.reactions / userReaction) so clients can render Call-backed feed reactions (#10345)
  • Add reactToComment and removeCommentReaction methods on SocialService (and the matching messenger actions). Call PUT / DELETE /swap-comment/:id/reaction and return per-emotion counts plus userReaction. Deprecated likeCount / isLikedByUser on the social-api wire are ignored (#10345)

Changed

  • Bump @metamask/profile-sync-controller from ^32.1.1 to ^32.2.0 (#10348)