Skip to content

v5.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Sep 15:21
· 93 commits to master since this release

5.2.0 (2024-09-16)

Features

  • The SDK now relies on message.reaction_groups field which allows ordering existing reactions based on first_reaction_at field (for example in the below screenshot the first reaction is 😮 because it was the first type of reaction a user added to the message)

Screenshot 2024-09-16 at 16 05 56

  • The SDK utilizes the new queryReactions endpoint which means the SDK can now retrieve all reactions of a message, not just the last 1200.

The SDK now requires a minimum version of [email protected]

The release is non-breaking, but the following fields are now deprecated, so you can make your customization future-proof by updating them:

  • If you use the stream-message-reactions component in a custom component do the following:
    • Remove the messageReactionCounts input, and use the messageReactionGroups instead
    • Remove the latestReactions input, the component no longer uses it
  • If you have a custom customReactionClickHandler you should use the messageReactionsService.queryReactions method to fetch reactions (this endpoint uses pagination as opposed to channelService.getMessageReactions() which only gets the last 1200 reactions). If you want to use some ready-made-components for the pagination, you can checkout the stream-user-list and stream-paginated-list components