Skip to content

Latest commit

 

History

History
482 lines (315 loc) · 20.2 KB

CHANGELOG.md

File metadata and controls

482 lines (315 loc) · 20.2 KB

Changelog

[0.10.0] 2020-04-09

All the changes are non-breaking

  • Adding support for custom UI component prop - Input to MessageInput. It allows shuffling of UI inside MessageInput

  • Adding support for following UI component props to MessageSimple

    • UrlPreview
    • Giphy
    • FileAttachment
    • FileAttachmentGroup
    • Card
    • CardHeader
    • CardCover
    • CardFooter
  • Adding support for following UI component props to Attachment

    • UrlPreview
    • Giphy
    • FileAttachment
    • FileAttachmentGroup
    • Card
    • CardHeader
    • CardCover
    • CardFooter
  • Adding support for following UI component props to Card

    • Header
    • Cover
    • Footer
  • Adding following theme keys:

    • message.card.footer.title (Text)
    • message.card.footer.description (Text)
    • message.card.footer.link (Text)
    • message.card.footer.logo (Image)
    • iconSquare.container (TouchableOpacity or View)
  • Fixing typos in docs

  • Updating format of message date time to LT from hh:ssA, to allow i18n

  • Fixing pagination logic for ChannelList in case of duplicates

[0.9.2] 2020-04-04

NOTE Please make sure to use stream-chat@^1.7.0

  • Fixing moderator, owner, admin checks for message actions 80dfb86

[0.9.1] 2020-04-02

  • Adding support for following props on MessageInput component c5ada59

    • onChangeText
    • initialValue

[0.9.0] 2020-04-02

  • Disabling (disabling TouchableOpacity wrapper) SendButton if message is not valid (empty text and no attachments)
  • Syncing this rc with latest master (0.8.1)
  • Moving external expo dependencies to peerDependencies
  • Fixing issue with MessageStatus not showing up on mount 61388c3

Prop changes to components (non-breaking)

  • MessageSimple

    new props

    • MessageReplies UI component to override default 2 replies text/component
    • MessageHeader UI component to add some content on top of message content (text, attachments)
    • ReactionList UI component to override default ReactionList component
    • supportedReactions Array of reactions which should be available or supported in reaction picker. Example

    deprecated props

    • emojiDate Please use supportedReactions instead
  • MessageAvatar

    new props

    • alignment ('right' | 'left')
  • MessageContent

    new props

    • All the new props to MessageSimple are available in MessageContent
    • alignment ('right' | 'left')
  • ReactionPickerWrapper

    In previous version, you could open reaction picker only after clicking/pressing ReactionList, which made it hard to change the functionality of ReactionList without copy pasting lots of code regarding opening of ReactionPicker. And also ReactionPicker logic was tightly coupled with MessageContent component (which meant added complexity) With ReactionPickerWrapper, we are taking out all the ReactionPicker related logic (setting the position of reaction picker at message which was touched) from MessageContent. So you can now add open reaction picker on press functionality on any component that you wish. You just need to wrap your component with ReactionPickerWrapper component.

    You can also adjust the relative position at which ReactionPicker opens up or shows up by altering offset prop on ReactionPickerWrapper.

    Default value is:

    {
        top: 40,
        left: 30,
        right: 10,
    }
    

    NOTE: This component was present in repository in previous versions as well, but it was super buggy.

    TL;DR Enables you to build custom ReactionList, on touch of which, ReactionPicker will open up

    Please check this example from cookbook for details - https://github.com/GetStream/stream-chat-react-native/blob/vishal/docs-improvement/docs/cookbook.md#message-bubble-with-reactions-at-bottom-of-message

  • Channel

    • Update the component, when channel prop changes.

[0.9.0-rc.3] 2020-04-02

  • Fixing issue with MessageStatus not showing up on mount 61388c3

[0.9.0-rc.2] 2020-04-02

  • Moving external expo dependencies to peerDependencies

[0.9.0-rc.1] 2020-04-02

  • Disabling (disabling TouchableOpacity wrapper) SendButton if message is not valid (empty text and no attachments)
  • Syncing this rc with latest master (0.8.1)

[0.8.1] 2020-04-01

  • Disabling interactions with MessageList and MessageInput if channel is frozen. 2c4e1a2
  • Adding missing style to all our component in typescript a2ac0b4

[0.9.0-rc.0] 2020-03-31

Non-breaking changes

  • MessageSimple

    new props

    • MessageReplies UI component to override default 2 replies text/component
    • MessageHeader UI component to add some content on top of message content (text, attachments)
    • ReactionList UI component to override default ReactionList component
    • supportedReactions Array of reactions which should be available or supported in reaction picker. Example

    deprecated props

    • emojiDate Please use supportedReactions instead
  • MessageAvatar

    new props

    • alignment ('right' | 'left')
  • MessageContent

    new props

    • All the new props to MessageSimple are available in MessageContent
    • alignment ('right' | 'left')
  • ReactionPickerWrapper

    In previous version, you could open reaction picker only after clicking/pressing ReactionList, which made it hard to change the functionality of ReactionList without copy pasting lots of code regarding opening of ReactionPicker. And also ReactionPicker logic was tightly coupled with MessageContent component (which meant added complexity) With ReactionPickerWrapper, we are taking out all the ReactionPicker related logic (setting the position of reaction picker at message which was touched) from MessageContent. So you can now add open reaction picker on press functionality on any component that you wish. You just need to wrap your component with ReactionPickerWrapper component.

    You can also adjust the relative position at which ReactionPicker opens up or shows up by altering offset prop on ReactionPickerWrapper.

    Default value is:

    {
        top: 40,
        left: 30,
        right: 10,
    }
    

    NOTE: This component was present in repository in previous versions as well, but it was super buggy.

    TL;DR Enables you to build custom ReactionList, on touch of which, ReactionPicker will open up

    Please check this example from cookbook for details - https://github.com/GetStream/stream-chat-react-native/blob/vishal/docs-improvement/docs/cookbook.md#message-bubble-with-reactions-at-bottom-of-message

  • Channel

    • Update the component, when channel prop changes.

[0.8.0] 2020-03-30

  • Replacing momentjs with dayjs
  • Changes to Streami18n constructor options:
    • Breaking change: replacing momentLocaleConfigForLanguage with dayjsLocaleConfigForLanguage
    • deprecating Moment. Instead use DateTimeParser
  • Updating stream-chat to 1.6.0 b62fa95
  • Avoid showing empty cover if image url is empty ddbbadb
  • Subscribing ChannelList to user.updated event 7ea6110
  • Fixing channel.updated and channel.deleted event handler to not break if channel is not in list 1404860

[0.7.2] 2020-03-20

  • Extending style support for TypingIndicator component, 5874b73
  • Added styling support for editing box of MessageInput. 2968684
  • Adding prop doMarkReadRequest to Channel component, to override markRead api call. 1afda94
  • Adding boolean prop hideReactionCount and hideReactionOwners in MessageSimple component. 3814266
  • MessageInput and MessageList component as prop in Thread component. db97289
  • Disabling keyboard listeners when app goes to background 8a372e6
  • Dismiss keyboard when opening actionsheet. bb12a55
  • Disable escaping in translator function. a5118dc
  • Allow moderator to edit/delete message. 44165f6

[0.7.1] 2020-03-18

  • Adding support for custom moment object in Streami18n class 7557c70

[0.7.0] 2020-03-17

[0.6.6] 2020-02-20

  • Adding following props to KeyboardCompatibleView component 6650109

    • keyboardDismissAnimationDuration
    • keyboardOpenAnimationDuration
    • enabled
  • Adding following props to Channel component 6650109

    • KeyboardCompatibleView
    • disableKeyboardCompatibleView
  • Fixing title of send button 0990cb5

  • Fixing channel preview avatar for one-on-one conversation 790b0b9

  • Fixing types for context providers - dc40c8a

[0.6.5] 2020-02-04

  • Adding a simple check to see if lastReceivedId has changed, before updating the state - to avoid infinite loop 3da5e4a

[0.6.4] 2020-02-04

  • Fixing image index for Image viewer (d16e86c)

    Issue - if attachment gallery, when you click/touch on 1st photo, it opens image viewer at 1st photo. But if you touch 2nd photo, it still opens image viewer at first photo.

[0.6.3] 2020-01-29

  • Adding support for prop formatLatestMessageDate in ChannelPreviewMessenger component (9a8d9a3)
  • Adding support for prop latestMessageLength in ChannelPreviewMessenger component (ef5b887)
  • Adding types for SendButton to typescript file (ad5c728)
  • Fixing date issue in MessageSystem component. (35c18e3)
  • Adding prop for AttachButton to MessageInput (600b1d2)
  • Adding prop formatDate to MessageSimple component (c3cfdf6)
  • Adding style and text customizability to LoadingIndicator (232241c)

[0.6.2] 2020-01-20

  • Added support for following props to Channel component:
    1. doSendMessageRequest c75be29
    2. doUpdateMessageRequest 7227c19

[0.6.1] 2020-01-14

  • When you change the filters prop on the ChannelList component this now we will refresh the channels with the new query

[0.6.0] 2020-01-07

  • Exporting all the missing components and utils
    • AutoCompleteInput
    • Card
    • CommandsItem
    • DateSeparator
    • EmptyStateIndicator
    • EventIndicator
    • FileAttachmentGroup
    • FileUploadPreview
    • Gallery
    • IconSquare
    • ImageUploadPreview
    • KeyboardCompatibleView
    • LoadingErrorIndicator
    • LoadingIndicator
    • MentionsItem
    • Message
    • MessageNotification
    • MessageSystem
    • ReactionList
    • Spinner
    • SuggestionsProvider
    • UploadProgressIndicator
  • Refining prop-types and typescript types for components.
  • Fixed issue about app crash when document picker is cancelled - #110
  • Adding onPress and onLongPress props on MessageSimple component
  • Fixing theme paths for MessageNotification component.

Breaking Change

  • Replacing theme path messageList.messageNotificationText with messageList.messageNotification.text (#3593dfb)
  • Replacing theme path messageList.messageNotification with messageList.messageNotification.container (#3593dfb)

[0.5.1] 2019-12-23

stream-chat-expo (Expo package)

  • Adding support for following props
    • additionalParentMessageProps
    • additionalMessageListProps
    • additionalMessageInputProps
  • Adding missing types for prop additionalFlatListProps in MessageList and ChannelList

stream-chat-react-native (Native package)

  • Adding support for following props
    • additionalParentMessageProps
    • additionalMessageListProps
    • additionalMessageInputProps
  • Adding missing types for prop additionalFlatListProps in MessageList and ChannelList

[0.5.0] 2019-12-23

stream-chat-expo (Expo package)

  • Changes to add compatibility for Expo 36. Adding netinfo as peer dependency - GetStream#97
  • Disabling the longpress on image viewer (in Attachment) - GetStream#100 to avoid freezing of UI.
  • Fixing broken threads issue
  • Support for additionalFlatListProps prop in MessageList and ChannelList component
  • Changing proptype for component type props to elementType instead of func

stream-chat-react-native (Native package)

  • Disabling the longpress on image viewer (in Attachment) - GetStream#100 to avoid freezing of UI.
  • Fixing broken threads issue
  • Support for additionalFlatListProps prop in MessageList and ChannelList component
  • Changing proptype for component type props to elementType instead of func

[0.4.0] 2019-12-16

[0.3.12] 2019-12-03

  • Adding support for onChannelTruncated prop to ChannelList
  • Updating channel from channel list once channel.truncated event is received
  • Fixed image picker for native package and examples

[0.3.11] 2019-12-02

  • Adding support for onChannelDeleted prop to ChannelList
  • Removing channel from channel list once channel.deleted event is received

[0.3.10] 2019-11-28

  • Adding strict string type check for channel name
  • Updated example apps
  • Updated readme doc

[0.3.9] 2019-11-20

  • Showing TypingIndicatorContainer only when necessary

[0.3.8] 2019-11-06

  • Adding logs to Chat, ChannelList and Channel component
  • Optimizing MessageList and ChannelList component - GetStream#84

[0.3.7] 2019-11-04

  • Adding support for AttachmentFileIcon prop.

[0.3.6] 2019-11-04

  • Adding support for actionSheetStyles prop, so as to add more customizability for styles of actionsheet.

[0.3.5] 2019-10-28

  • Fixing some styles for actionsheet in MessageSimple component.

[0.3.4] 2019-10-03

  • Avoiding query channel api call when there are no more messages to render
  • Making markRead api call only if unread count is > 0

[0.3.3] 2019-10-02

  • Making empty value of typing object - immutable
  • Adding support for SendButton UI component prop

[0.3.2] 2019-10-01

  • Fixing bug in themed HOC

[0.3.1] 2019-09-30

  • Adding typescript declaration file for expo and native package

[0.3.0] 2019-09-30

  • Adding typescript declaration file
  • Adding style customization support for actionsheet

[0.2.6] 2019-09-23

  • Fixing expo package for NetInfo changes

[0.2.5] 2019-09-23

  • Fixing deprecated warnings coming from NetInfo library
  • Adding onMessageTouch and dismissKeyboardOnMessageTouch prop for MessageList component
  • Fixing style issue (background color) of MessageText component, introduced in 0.2.4

[0.2.4] 2019-09-13

  • Fixing bug in theme logic
  • Adding ability to customize more the MessageSimple component

[0.2.3] 2019-09-09

  • Fixing pagination issue when oldest message is not received yet

[0.2.2] 2019-09-06

  • Updated example two to react native 0.60
  • Fixing UX for image/file picker - closing keyboard when you open file/image picker actionsheet

[0.2.1] 2019-09-02

  • Making sdk compatible with Expo 33 and 34

[0.2.0] 2019-08-26

  • Making sdk compatible with react native 0.60

[0.1.19] 2019-08-26

  • Updating ChannelPreviewMessenger component to show other member's name as channel title if channel has no explicate name in channel.data

[0.1.18] 2019-08-12

  • Fixing keyboard compatible view for android. Status bar height was not taken into account while calculating the height of channel after opening keyboard.

[0.1.17] 2019-08-08

  • Fixing prop to override Attachment UI component

[0.1.16] 2019-08-07

  • Attachment for URL preview were broken. Fixed.

[0.1.15] 2019-07-18

  • Adding prop function onChannelUpdated as callback for event channel.updated
  • Bug fix - Channel list component doesn't update when custom data on channel is updated.