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.6.2

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Fixed a bug where GroupChannelCollection could not handle EVENT_MESSAGE_SENT
sendbird-chat-sdk-javascript - v4.6.1

Published by sendbird-sdk-deployment over 1 year ago

Improvements

  • Added fetch polyfill with AbortController support
  • Fixed a bug where messages in MessageCollection not carrying parentMessage value when they should
  • Improved stability
sendbird-chat-sdk-javascript - v4.6.0

Published by sendbird-sdk-deployment over 1 year ago

v4.6.0 (Mar 16, 2023)

Features

Set your own Local Caching DB size

You can now control the size of your local cache. Starting from 64mb, decide how much you want to store (Default: 256mb).
Once the size limit is reached, the SDK will automatically remove messages and channels with pre-specified logic (clearOrder) so that you don't have to actively manage it.

  • Added DB size related properties in LocalCacheConfig
const localCacheConfig: LocalCacheConfig = new LocalCacheConfig({
   maxSize: 256,
   clearOrder: CachedDataClearOrder.MESSAGE_COLLECTION_ACCESSED_AT,
});

Improvements

  • Added SendbirdErrorCode.DATABASE_ERROR
  • Added getCachedDataSize() in SendBirdChat
  • Added OpenChannelCreateParams.isEphemeral
  • Fixed a bug where SDK reconnects internally in disconnected state after disconnectWebsocket() is called
  • Fixed a bug to use MemoryStore when SDK is running in a browser that does not support indexedDB
  • Improvement stability
sendbird-chat-sdk-javascript - v4.5.0

Published by liamcho over 1 year ago

v4.5.0 (Mar 3, 2023)

Features

Polls in Open Channel

Polls is now supported in both Open Channels and Group Channels!

Specification

  • Added Poll.serialize()
  • Added PollModule.buildPollFromSerializedData()
  • Added onPollUpdated, onPollVoted, and onPollDeleted in OpenChannelHandlerParams
  • Moved following methods from GroupChannel to BaseChannel:
    • updatePoll()
    • deletePoll()
    • closePoll()
    • addPollOption()
    • updatePollOption()
    • deletePollOption()
    • votePoll()
    • getPollChangeLogsSinceTimestamp()
    • getPollChangeLogsSinceToken()
    • createPollListQuery()
    • createPollVoterListQuery()

Improvements

  • Fixed a bug where GroupChannelFilter using nicknames (nicknameContainsFilter, nicknameExactMatchFilter, and nicknameExactMatchFilter) includes current user's nickname when searching from locally cached group channels
  • Fixed a bug where BaseMessage.applyThreadInfoUpdateEvent() always returning false
  • Fixed a bug where BaseChannel’s createMessageMetaArrayKeys, deleteMessageMetaArrayKeys, addMessageMetaArrayValues, and removeMessageMetaArrayValues returning unexpected result when file message is given
sendbird-chat-sdk-javascript - v4.4.0

Published by danney-chun over 1 year ago

v4.4.0 (Feb 24, 2023)

Features

Disconnect Websocket only

When you call sb.disconnect, it disconnects the WebSocket and clears local cache. You can think of it as logging out.

In some cases, you need to only disconnect the WebSocket. You can now do it by calling sb.disconnectWebSocket.
It only disconnects the WebSocket and preserves the local cache.

sb.disconnectWebSocket();

To connect again after disconnecting with disconnectWebSocket(),
use sb.connect().

const user = await sb.connect(userId: userId); 

Added appStateToggleEnabled param

Added SendbirdChatParams.appStateToggleEnabled which can be used to optionally disable internal control of Websocket connection on document.visibilityState change

Improvements

  • Fixed a bug where changed groupChannel.members was not updated while disconnected
sendbird-chat-sdk-javascript - v4.3.1

Published by liamcho over 1 year ago

v4.3.1 (Feb 15, 2023)

Improvements

  • Fixed a bug where poll.votedOptionIds is not updated upon calling poll.applyPollUpdateEvent(pollUpdateEvent)
  • Fixed a bug where auto-resending file message fails occasionally
  • MessageCollectionEventHandler.onMessagesDeleted
    • Added a new parameter messages: BaseMessage[]
    • Deprecated messageIds: number[]
    • onMessagesDeleted callback now returns either unsent or sent messages through a new parameter messages: BaseMessage[], which you can use to remove pending messages
  • Fixed a bug where MessageRequestHandler.onPending is called when pending message is marked for auto-resend
  • Fixed a bug where MessageCollection.hasNext remains true after MessageCollection.initialize() is called with startingPoint as now
  • Fixed a bug where SDK calls MessageCollectionEventHandler when handler has not been set
  • Fixed a bug where MessageCollectionEventHandler.onMessagesUpdated is called on update of GroupChannels getUnreadMemberCount and getUndeliveredMemberCount
  • Deprecated EVENT_MESSAGE_READ and EVENT_MESSAGE_DELIVERED in MessageEventSource
  • Exported BaseMessageCreateParams and BaseMessageUpdateParams
  • Improved stability
sendbird-chat-sdk-javascript - v4.3.0

Published by liamcho over 1 year ago

Changelog

v4.3.0 (Feb 01, 2023)

Features

Participant class in Open Channel

Participant is a new interface for User who joined Open Channel. It's optimized for scalability and contains much lighter information about the User than a Member in Group Channel.
Now clients can implement Open Channels easier in SDK with more built-in capabilities. You can compare how Member, Participant, and User are different here

  • Participant holds essential information about the participant like below. They contain their muted status (is_muted) on top of basic User information
class Participant extends User {
  readonly isMuted: boolean;
}
  • ParticipantListQuery.next() now returns Promise<Participant[]>
  • For backward compatibility, the return type remains as Promise<User[]>, but the return value can be casted into Promise<Participant[]>
sendbird-chat-sdk-javascript - v4.2.9

Published by liamcho over 1 year ago

Changelog

v4.2.9 (Feb 01, 2023)

Features

  • Added SendbirdChatOptions.sessionTokenRefreshTimeout. You can now set longer timeout value for session token expire. (Default: 60s, Maximum: 1800s). This means that Sendbird SDK will wait longer for your new session token, making it easier for you to reconnect to our service.

Improvements

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

Published by liamcho over 1 year ago

v4.2.8 (Jan 27, 2023)

Improvements

  • Fixed a bug where groupChannelHandler.onChannelChanged() is not called on pin or unpin message event
  • Parameter params in getMessageChangeLogsSinceTimestamp(), and getMessageChangeLogsSinceToken() is now made optional
sendbird-chat-sdk-javascript - v4.2.7

Published by liamcho over 1 year ago

v4.2.7 (Jan 24, 2023)

Improvements

  • Fixed a bug where MessageCollection.hasPrevious is false when there exists old messages
sendbird-chat-sdk-javascript - v4.2.6

Published by liamcho over 1 year ago

v4.2.6 (Jan 20, 2023)

Improvements

  • Fixed a bug of where onChannelsAdded event is not fired upon creating a first channel in GroupChannelCollection when localCacheEnabled is set to false
  • Improved stability
sendbird-chat-sdk-javascript - v4.2.5

Published by danney-chun almost 2 years ago

v4.2.5 (Jan 17, 2023)

Improvements

  • Fixed a bug in MessageCollection onMessagesUpdated event triggered for old messages
  • Fixed a bug where calling connect while offline did not reconnect even when the app came online
  • Improved stability
sendbird-chat-sdk-javascript - v4.2.4

Published by liamcho almost 2 years ago

v4.2.4 (Jan 11, 2023)

Improvements

  • Fixed a bug in MessageCollection where old messages are being added to the view when app reconnects
  • Added argument validation in GroupChannel.pinMessage() and GroupChannel.unpinMessage()
  • Fixed a bug where GroupChannelHandler.onChannelChanged() and GroupChannelHandler.onPinnedMessageUpdated() events are not called when channel.lastPinnedMessage is updated
  • Improved stability
sendbird-chat-sdk-javascript - v4.2.3

Published by chrisallo almost 2 years ago

Changelog

v4.2.3 (Dec 29, 2022)

Improvements

  • Fixed a bug in GroupChannelCollection.dispose() not to clear the event handler
  • Fixed a bug in MessageCollection.dispose() not to clear the event handler
  • Fixed a bug in flooding semaphore keys in localStorage
sendbird-chat-sdk-javascript - v4.2.2

Published by chrisallo almost 2 years ago

Changelog

v4.2.2 (Dec 23, 2022)

Improvements

  • Unlimited store size support
  • Fixed a bug in MessageCollection.dispose() not to clear the event handler
sendbird-chat-sdk-javascript - v4.2.1

Published by liamcho almost 2 years ago

Changelog

v4.2.1 (Dec 16, 2022)

Improvements

  • Fixed a bug where calling sb.connect() right after sb.disconnect() throws an error given the user had entered an open channel
  • Improved stability on WebSocket connection handling
sendbird-chat-sdk-javascript - v4.2.0

Published by liamcho almost 2 years ago

Changelog

v4.2.0 (Dec 9, 2022)

Features

Pinned Message 📌

Pinned Message is released. You can now maintain a special set of messages (up to 10 per channel) that you want everyone in the channel to share. It can be anything from announcements, surveys, upcoming events, and any many more. Pin your messages and never miss them!
Stay tuned for updates as we are rolling out more exciting features and see below for exact specifications👇

Specification

  • Pin when sending a message
    • UserMessageCreateParams.isPinnedMessage: boolean = false
    • FileMessageCreateParams.isPinnedMessage: boolean = false
  • Pin existing message
    • GroupChannel.pinMessage(messageId: number): Promise<void>
  • Unpin a message
    • GroupChannel.unpinMessage(messageId: number): Promise<void>
  • Pinned messages
    • GroupChannel.lastPinnedMessage: BaseMessage = null
    • GroupChannel.pinnedMessageIds: number[] = []

We strongly recommend using Collections (Message, Channel) to implement Pinned Messages as it would automatically take care of numerous events out of the box when messages are created, updated, and deleted.


Improvements

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

Published by liamcho almost 2 years ago

Changelog

v4.1.5 (Nov 24, 2022)

  • MessageCollection now loads unsent messages from cache before onCacheResult() is called
sendbird-chat-sdk-javascript - v4.1.4

Published by liamcho almost 2 years ago

Changelog

v4.1.4 (Nov 16, 2022)

  • Replaced SendableMessage to BaseMessage in some message updating methods in BaseChannel and GroupChannel
  • Fixed a bug where poll changelog is being called when there is no poll message in a group channel
  • Fixed a bug where SessionHandler triggers onSessionTokenRequired event even when authToken is still valid
sendbird-chat-sdk-javascript - v4.1.3

Published by chrisallo almost 2 years ago

  • Improved stability.
Package Rankings
Top 3.43% on Npmjs.org
Badges
Extracted from project README
npm
Related Projects