New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sendbird/chat

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sendbird/chat - npm Package Versions

1
46
13

4.10.5

Diff
sendbird
published 4.10.5 •

Changelog

Source

v4.10.5 (Dec 8, 2023)

Improvement

  • Added prevResultLimit/nextResultLimit in BaseMessageCollectionParams
  /**
  * @param limit Deprecated since v4.10.5. Use prevResultLimit/nextResultLimit instead.
  */
  groupChannel.createMessagecollection( { limit: 10 } );
  
  or 
  
  groupChannel.createMessageCollection({ prevResultLimit: 5, nextResultLimit: 5, });
  • Added constructor in MessageFilter/GroupChannelFilter
 const filter: MessageFilter = new MessageFilter();
 filter.senderUserIdsFilter = [ ... ];
 
       or
 
 const filter:MessageFilter = new MessageFilter({
   senderUserIdsFilter: [ ... ],
   ...
 });
 
 groupChannel.createMessagecollection( { filter } );
 const filter:GroupChannelFilter = new GroupChannelFilter();
 filter.includeEmpty = true;
  
      or
  
 const filter:GroupChannelFilter = new GroupChannelFilter({
    includeEmpty: true,
    ...
 });
  
 sb.groupChannel.createGroupChannelCollection({ filter });
  • Added markAsRead(messages: NotificationMessage[]) in FeedChannel
  • (internal) Removed markAsReadBy(messages: NotificationMessage[]) in FeedChannel
  • Fixed bug where is_reply_to_channel parsing error in BaseMessage
  • Fixed bug where onMessagesUpdated() event do not called if localCacheEnable is false
  • Improvement stability
sendbird
published 4.10.4 •

Changelog

Source

v4.10.4 (Nov 16, 2023)

Improvement

  • Fixed a bug of flooded cache in React Native
sendbird
published 4.10.3 •

Changelog

Source

v4.10.3 (Nov 03, 2023)

Notification

  • Added logCustom() in FeedChannel to log custom stat
sendbird
published 4.10.2 •

Changelog

Source

v4.10.2 (Nov 02, 2023)

Improvements

  • Fixed a bug where an exception wasn't thrown during connection()
sendbird
published 4.10.1 •

Changelog

Source

v4.10.1 (Oct 31, 2023)

Features

Introduced the extended_message_payload field to the messagePrototype

It simplifies the process by returning Record<{ [string]: any }>, eliminating the need to stringify values like extended_message. This improvement enhances the functionality of the AI chat bot, particularly in areas such as forms, suggested_replies, and custom_views.

Improvements

  • Added markAsClicked() in FeedChannel
  • Updated interface of markAsReadBy() in FeedChannel to take messages as a parameter
  • Updated interface of logImpression() in FeedChannel to take messages as a parameter
  • Fixed a bug where groupChannel.upsert
  • Fixed a bug where getMessageCommand parsing error
  • Fixed a bug where an unhandled exception
  • (internal) Fixed a bug where SessionRefreshAPIResponseCommand parsing
sendbird
published 4.10.0 •

Changelog

Source

v4.10.0 (Oct 13, 2023)

Features

  • Added new read-only attribute messageReviewInfo on the UserMessage
  export default class UserMessage {
	  ...
	
	  // exist only if the message is in review or it has been approved
	  readonly messageReviewInfo: MessageReviewInfo?
	  ...
  }

  export default class MessageReviewInfo {
	  readonly status: MessageReviewStatus;
	  readonly originalMessageInfo?: OriginalMessageInfo;  // (exist only if the status is approved)
	  ...
  }

  export enum MessageReviewStatus {
	  INREVIEW = 'InReview',
	  APPROVED = 'Approved',
  }

  export interface OriginalMessageInfo {
	  createdAt: number;
	  messageId: number;
  }
  • Added getDeliveryStatus(includeAllMembers = true) interface

Improvements

  • Fixed a bug where a session refresh error occurred repeatedly
  • Fixed a bug where uploadableFileInfo.fileUrl does not include auth value when auth is required internally
  • (internal) Fixed a bug that channel refresh not triggering onChannelUpdated event
    • Please use changelog instead for improved stability
  • Fixed a bug that connect() timed out in a certain case
sendbird
published 4.9.14 •

Changelog

Source

v4.9.14 (Oct 6, 2023)

Notification

  • Added messageStatus in NotificationMessage
  • Added markAsReadBy(notificationIds) in FeedChannel
  • Added logImpression(notificationIds) in FeedChannel

Improvements

  • Fixed a bug that MessageCollection has wrong hasPrevious and hasNext in a certain condition
  • Fixed a bug that groupChannel.refresh() does not trigger onChannelUpdated in MessageCollection
  • Fixed a bug that metaArrays parameter does not work in updateUserMessage() and updateFileMessage()
sendbird
published 4.9.13 •

Changelog

Source

v4.9.13 (Sep 27, 2023)

Improvements

  • Improved stability
sendbird
published 4.9.12 •

Changelog

Source

v4.9.12 (Sep 22, 2023)

Notifications

  • Added NotificationMessage
    • NotificationMessage uses notificationId as key instead of messageId
    • FeedChannel to have NotificationMessage as lastMessage

Improvements

  • Fixed a bug that markAsRead() fails with authenticateFeed()
  • Fixed a bug that onSessionClosed() is called unintentionally
sendbird
published 4.9.11 •

Changelog

Source

v4.9.11 (Sep 14, 2023)

Improvements

  • Fixed a bug that session refreshes even if the session is revoked or deactivated
  • Improvement stability