Skip to content

Releases: GetStream/stream-chat-react

v6.0.0

17 May 21:06

Choose a tag to compare

⚠️ BREAKING CHANGES ⚠️ - Please review our v6 implementation guide prior to upgrading.

With this release, we've completely refactored how we share data in the component library. We've segmented our former ChannelContext into the following four sub-contexts:

  • ChannelActionContext - provides the functions needed to operate a Channel
  • ChannelStateContext - provides the stateful data needed to operate a Channel
  • ComponentContext - provides the UI component overrides for all child components of a Channel
  • TypingContext - provides an object of users currently typing in the Channel

NOTE: The ChannelContext no longer exists, so all old references to useChannelContext() or useContext(ChannelContext) need to be replaced with the relevant context above. A list of all data found within each new context can be found here.

Feature

  • We've added a handful of new features in this release, check out this wiki for more details. New features include:
    • custom message actions
    • custom triggers
    • channel search
    • quoted messages
    • cooldown timer / slow mode UI
    • submit key override
  • The Message component now provides the MessageContext to its children. Reference this guide for instructions on creating a custom message UI component.
  • The MessageInput component now provides the MessageInputContext to its children. Reference this guide for instructions on creating a custom input UI component.

v5.4.0

13 May 21:36

Choose a tag to compare

Feature

  • Scroll to bottom of MessageList when the last message receives a reaction or reply #916

Chore

  • Preserve modules during build to optimize tree shaking potential #919
  • Support 'next-images' dependency in NextJS sample app #920

v5.3.2

03 May 15:40

Choose a tag to compare

Feature

  • Add scrollToLatestMessageOnFocus prop to VirtualizedMessageList to handle focus changes on browser tab switching #892
  • Add MessageNotification prop to MessageList components to allow customization of the new messages notification popup #894

Bug

  • Adjust URL parsing for duplicate entries #893

v5.3.1

30 Apr 18:23

Choose a tag to compare

Bug

  • Add message memoization case for read states #888
  • Fix regex trigger for multiple mentions #889
  • Add message memoization case for muted user array #891

v5.3.0

29 Apr 13:27

Choose a tag to compare

Feature

  • Added support for user.deleted and user.updated event handling #884
    • Requires stream-chat >= 3.8.0
    • In case of user.deleted event, messages from corresponding user will be marked as deleted
    • In case of user.updated event, user property on messages from corresponding user will be updated

v5.2.1

28 Apr 17:11

Choose a tag to compare

Chore

  • Adjust processed messages logic #876
  • Make mml-react an optional dependency and lazy load #881

Bug

  • Copy missing translations to built types #879

v5.2.0

26 Apr 17:50

Choose a tag to compare

Feature

  • Add Spanish and Portuguese auto translation support #874

Chore

  • Adjust processed messages conditional logic for VirtualizedMessageList #875

v5.1.8

21 Apr 18:38

Choose a tag to compare

Chore

  • Update message group styling defaults in message UI components #860
  • Refine pin message permission checking #866

Bug

  • Update MessageActions event listener types #855
  • Fix suggestion list command conditional check #865

v5.1.7

13 Apr 19:31

Choose a tag to compare

Feature

  • Remove channel creator's ability to edit/delete other users' messages #853

Chore

  • Generalize event types to allow for greater action handler flexibility #850

v5.1.6

10 Apr 13:05

Choose a tag to compare

Feature

  • Adjust message memoization for custom UI components #849

Bug

  • Fix CSS display issue for messages with reactions #849