v5.2.0
5.2.0 (2024-09-16)
Features
- The SDK now relies on
message.reaction_groupsfield which allows ordering existing reactions based onfirst_reaction_atfield (for example in the below screenshot the first reaction is 😮 because it was the first type of reaction a user added to the message)
- The SDK utilizes the new
queryReactionsendpoint 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-reactionscomponent in a custom component do the following:- Remove the
messageReactionCountsinput, and use themessageReactionGroupsinstead - Remove the
latestReactionsinput, the component no longer uses it
- Remove the
- If you have a custom
customReactionClickHandler you should use themessageReactionsService.queryReactionsmethod to fetch reactions (this endpoint uses pagination as opposed tochannelService.getMessageReactions()which only gets the last 1200 reactions). If you want to use some ready-made-components for the pagination, you can checkout thestream-user-listandstream-paginated-listcomponents
