sendbird-chat-sdk-javascript

Sendbird Chat SDK for JavaScript.

OTHER License

Downloads
223.1K
Stars
25
Committers
8

Bot releases are hidden (Show)

sendbird-chat-sdk-javascript - v4.9.8

Published by liamcho about 1 year ago

v4.9.8 (Aug 9, 2023)

Features

  • Added BaseChannel.copyMessage() that supports user, file, and multiple files message
  • Added BaseChannel.resendMessage() that supports user, file, and multiple files message
// Copy a succeeded multiple files message.
channelA.copyMessage(channelB, multipleFilesMessageToCopy)
  .onPending((message: MultipleFilesMessage) => {
    // ...
  })
  .onFailed((err: SendbirdError, message: MultipleFilesMessage) => {
    // ...
  })
  .onSucceeded((message: MultipleFilesMessage) => {
    // ...
  });

// Resend a failed or canceled multiple files message.
channel.resendMessage(failedOrCanceledMultipleFilesMessage)
  .onPending((message: MultipleFilesMessage) => {
    // ...
  })
  .onFailed((err: SendbirdError, message: MultipleFilesMessage) => {
    // ...
  })
  .onSucceeded((message: MultipleFilesMessage) => {
    // ...
  })
  .onFileUploaded((
    requestId: string,
    index: number,
    uploadableFileInfo: UploadableFileInfo,
    err?: Error
  ) => {
    // ...
  });

Deprecated

  • Deprecated BaseChannel.copyUserMessage()
  • Deprecated BaseChannel.copyFileMessage()
  • Deprecated BaseChannel.resendUserMessage()
  • Deprecated BaseChannel.resendFileMessage()

Improvements

  • Changed MessageHandler, FailedMessageHandler, MessageRequestHandler, and MultipleFilesMessageRequestHandler to have generic message type
  • Fixed the bug where reply messages were not being automatically resent
  • Fixed the bug where initializing the message collection without result handler throws an error
  • Fixed the bug where message collection updating the left group channel
  • Added createdAfter and createdBefore filters in GroupChannelListQuery
sendbird-chat-sdk-javascript - v4.9.7

Published by danney-chun about 1 year ago

v4.9.7 (Aug 3, 2023)

Improvements

  • Fixed a bug where HugeGabCheck in MessageCollection has missed some filters
sendbird-chat-sdk-javascript - v4.9.6

Published by chrisallo about 1 year ago

Notifications

  • Added FeedChannelModule
    • FeedChannelModule could be imported from @sendbird/chat/feedChannel
    • Added createMyFeedChannelListQuery() to create FeedChannelListQuery
    • Added getChannel(), getMyFeedChannelChangeLogsByTimestamp(), getMyFeedChannelChangeLogsByToken() to fetch FeedChannel data
    • Added getGlobalNotificationChannelSetting() to get notification settings
    • Added getNotificationTemplateListByToken(), getNotificationTemplate() to fetch NotificationTemplate
  • Added FeedChannelHandler
  • Added FeedChannel
    • Added FEED channel type
    • Added createNotificationCollection() to create NotificationCollection
    • Added refresh() to refresh the feed channel
    • Added markAsRead()
  • Added FeedChannelListQuery
  • Added NotificationCollection
    • NotificationCollection acts as same as MessageCollection
  • Added isChatNotification in GroupChannel
  • Added includeChatNotification in GroupChannelListQuery, GroupChannelListParams, GroupChannelChangeLogsParams
  • Added notificationInfo in AppInfo
  • Added onTotalUnreadMessageCountChanged in UserEventHandler
    • Deprecated onTotalUnreadMessageCountUpdated in UserEventHandler

Improvements

  • Added meta data and meta counter related event to pass to GroupChannelCollection
  • Fixed a bug in parsing parent message info
  • Fixed a bug where a deactivated or deleted user hangs on reconnect
  • Fixed a bug where the removed metadata would not be updated when receiving the channel's metadata from the server
  • Improved stability
sendbird-chat-sdk-javascript - v4.9.5

Published by danney-chun about 1 year ago

v4.9.5 (July 27, 2023)

Improvements

  • Fixed bug when received CHANNEL_INVITE event inviter is null
  • Updated MessageCollectionEventHandler members to be optional
sendbird-chat-sdk-javascript - v4.9.4

Published by danney-chun about 1 year ago

v4.9.4 (July 21, 2023)

Improvements

  • Added EVENT_CHANNEL_BANNED to GroupchannelEventSource
  • Changed err the argument of FailedMessageHandler to not nullable type
  • Changed return value type of sb.connect() to not nullable type
  • Fixed a bug where don't get channel Info in Cache in GroupChannelCollection
  • Fixed a bug where return empty result in loadPrevious in MessageCollection
  • Fixed a bug where HugeGap check in MessageCollection
  • Fixed a bug where Poll.applyPollVoteEvent() not updating Poll.voterCount
  • Fixed a bug where the group channel changelogs did not update the group channel metadata
  • Improved stability
sendbird-chat-sdk-javascript - v4.9.4-rc.1

Published by chrisallo over 1 year ago

sendbird-chat-sdk-javascript - v4.9.4-rc.0

Published by chrisallo over 1 year ago

sendbird-chat-sdk-javascript - v4.9.3

Published by danney-chun over 1 year ago

v4.9.3 (Jun 22, 2023)

Improvements

  • Fixed a bug where sb.connect() fails when localCacheEnabled set to false in browsers with disabled Cookies
  • Fixed a bug where GroupChannelCollection displays channels in wrong order for GroupChannelListOrder.LATEST_LAST_MESSAGE
sendbird-chat-sdk-javascript - v4.9.2

Published by sendbird-sdk-deployment over 1 year ago

IMPORTANT NOTICE

- JS Chat SDK version `4.9.1` and `4.9.2` has a CRTICAL BUG where FileMessage is NOT received when sent from an Android device. Please SKIP version `4.9.0` and `4.9.1`, and update to version `4.9.2` or above instead.

Improvements

  • Fixed a bug where FileMessage is sent as a MultipleFilesMessage
sendbird-chat-sdk-javascript - v4.9.1

Published by sendbird-sdk-deployment over 1 year ago

Features

Improvements

  • Fixed a bug where the name, size, and type of FileMessage's PendingMessage were set to default values
sendbird-chat-sdk-javascript - v4.9.0

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Fixed a bug in the environment that does not allow local storage access
  • Improved stability
sendbird-chat-sdk-javascript - v4.8.5

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Fixed a bug in the environment that does not allow local storage access
  • Improved stability
sendbird-chat-sdk-javascript - v4.8.4

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Fixed a bug where channel metadat disappears when receiving channel events
sendbird-chat-sdk-javascript - v4.8.3

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Added handling of session revocation.
  • Fixed a bug that session refresh fails when session token is expired.
  • Improved stability.
sendbird-chat-sdk-javascript - v4.8.2

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Fixed a bug that PublicGroupChannelListQuery overwrites the cache with missing properties
sendbird-chat-sdk-javascript - v4.8.0

Published by sendbird-sdk-deployment over 1 year ago

PinnedMessageListQuery

You can now retrieve all pinned messages in a GroupChannel by the PinnedMessageListQuery.

  • Added PinnedMessage
  • Added PinnedMessageListQuery, PinnedMessageListQueryParams
  • Added groupChannel.createPinnedMessageListQuery()
const query = groupChannel.createPinnedMessageListQuery(params);
const pinnedMessages = await query.next();

Improvements

Improvements stability

sendbird-chat-sdk-javascript - v4.8.1

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Improved stability
sendbird-chat-sdk-javascript - v4.7.2

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Fixed a bug where MessageCollection.initialize() would throw an Error in some cases
sendbird-chat-sdk-javascript - v4.7.1

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Fixed a bug on AbortController import
sendbird-chat-sdk-javascript - v4.7.0

Published by danney-chun over 1 year ago

v4.7.0 (Apr 17, 2023)

Features

(Moderation) Automatically detect when user is unmuted

You can now automatically detect when a muted user is unmuted by leveraging MessageCollections.
Clients will now receive MessageCollectionHandler.onChannelUpdated() with GroupChannelContext.GroupChannelEventSource.EVENT_CHANNEL_UNMUTED when an user is unmuted after their muted duration has expired, on top of explict unmute calls. This now means that you can easily transition user’s experience and allow them to chat even more seamlessly.
Note that this is a MessageCollections only feature! We recommend all of our clients to give it a try if you haven’t

Improvements

  • Fixed a bug when broken disconnect() before cache initialization
  • Fixed a bug where LOGI error command processing
  • Added collection.close() when disconnect() is called
  • Added support for AbortController compatibility
  • Improved stability
Package Rankings
Top 3.43% on Npmjs.org
Badges
Extracted from project README
npm
Related Projects