Releases: sendbird/sendbird-chat-sdk-javascript
v4.0.2
v4.0.1
v4.0.0
v4.0.0 (Jun 14, 2022)
To see detailed changes for below items, please refer to the migration guide
-
All apis are now made
async
and callbacks are removed -
The way to instantiate
SendBird
instance has changed fromnew SendBird
toSendbirdChat.init()
-
sendUserMessage()
,sendFileMessage()
no longer takes callback as argument but addedonPending()
,onFailed()
,onSucceeded
event handler instead -
All
XxxParams
classes (exceptXxxHandlerParams
classes) are now interfaces// old const params = new XxxParams(); // new const params = { ... };
-
All
XxxListQuery
classes are now immutable.// old const query = sb.GroupChannel.createMyGroupChannelListQuery(); query.customTypesFilter = ['a', 'b'] // new const query = sb.groupChannel.createMyGroupChannelListQuery({ customTypesFilter: [‘a’, ‘b’] });
-
Added
SendbirdChatParams.localCacheEncryption
-
Added
onConnected
, andonDisconnected
toConnectionHandler
-
Added
addOpenChannelHandler
,removeOpenChannelHandler
,removeAllOpenChannelHandlers
inOpenChannelModule
-
Added
addGroupChannelHandler
,removeGroupChannelHandler
,removeAllGroupChannelHandlers
inGroupChannelModule
-
Added
UserUpdateParams
-
Added
UnreadItemCountParams
-
Removed
sb.addChannelHandler()
,sb.removeChannelHandler()
, andsb.removeAllChannelHandlers()
-
Removed builder pattern for
GroupChannelCollection
andMessageCollection
-
Removed
sb.updateCurrentUserInfoWithProfileImage()
. Usesb.updateCurrentUserInfo()
instead -
Removed
MessageCollectionInitPolicy.CACHE_ONLY
-
Replaced
SendBirdParams
withSendbirdChatParams
-
Replaced
sb.GroupChannel
withGroupChannelModule
-
Replaced
sb.OpenChannel
withOpenChannelModule
-
Replaced
sb.BaseMessage
withMessageModule
-
Replaced
SendBird.setLogLevel()
withsb.logLevel
andSendbirdChatParams.logLevel
-
Replaced
sb.useAsyncStorageAsDatabase()
toSendbirdChatParams.useAsyncStorageStore
-
Replaced
channelHandler.onReadReceiptUpdated
togroupChannelHandler.onUnreadMemberStatusUpdated
-
Replaced
channelHandler.onDeliveryReceiptUpdated
togroupChannelHandler.onUndeliveredMemberStatusUpdated
-
Replaced
GroupChannelParams
withGroupChannelCreateParams
andGroupChannelUpdateParams
-
Replaced
OpenChannelParams
withOpenChannelCreateParams
andOpenChannelUpdateParams
-
Replaced
UserMessageParams
withUserMessageCreateParams
andUserMessageUpdateParams
-
Replaced
FileMessageParams
withFileMessageCreateParams
andFileMessageUpdateParams
-
Replaced
SendBird.getInstance()
withSendbirdChat.instance
-
Replaced
sb.getApplicationId()
withsb.appId
-
Replaced
sb.getConnectionState()
withsb.connectionState
-
Replaced
sb.getLastConnectedAt()
withsb.lastConnectedAt
-
Replaced
sb.Options.useMemberAsMessageSender
withsb.options.useMemberInfoInMessage
-
Replaced
channel.getCachedMetaData()
withchannel.cachedMetaData
-
Replaced
message.isResendable()
withmessage.isResendable
-
Replaced
sb.UserMessage.buildFromSerializedData()
,sb.FileMessage.buildFromSerializedData()
, andsb.AdminMessage.buildFromSerializedData()
withsb.message.buildMessageFromSerializedData()
-
Replaced
requestedMentionUserIds
withmentionedUserIds
inBaseMessage
-
Replaced
isUserMessage
,isFileMessage
,isAdminMessage
withisUserMessage()
,isFileMessage()
andisAdminMessage()
inBaseMessage
-
Replaced
isGroupChannel
,isOpenChannel
withisGroupChannel()
andisOpenChannel()
-
Moved
sb.appVersion
toSendbirdChatParams.appVersion
-
Moved
sb.getMyGroupChannelChangeLogsByToken()
tosb.groupChannel.getMyGroupChannelChangeLogsByToken()
-
Moved
sb.getMyGroupChannelChangeLogsByTimestamp()
tosb.groupChannel.getMyGroupChannelChangeLogsByTimestamp()
-
Moved
sb.getUnreadItemCount()
tosb.groupChannel.getUnreadItemCount()
-
Moved
sb.getTotalUnreadChannelCount()
tosb.groupChannel.getTotalUnreadChannelCount()
-
Moved
sb.getTotalUnreadMessageCount()
tosb.groupChannel.getTotalUnreadMessageCount()
-
Moved
sb.getTotalScheduledMessageCount()
tosb.groupChannel.getTotalScheduledMessageCount()
-
Moved
sb.getSubscribedTotalUnreadMessageCount()
tosb.groupChannel.getSubscribedTotalUnreadMessageCount()
-
Moved
sb.getSubscribedCustomTypeTotalUnreadMessageCount()
tosb.groupChannel.getSubscribedCustomTypeTotalUnreadMessageCount()
-
Moved
sb.getSubscribedCustomTypeUnreadMessageCount()
tosb.groupChannel.getSubscribedCustomTypeUnreadMessageCount()
-
Moved
sb.Sender.buildFromSerializedData()
tosb.message.buildSenderFromSerializedData()
-
Moved
sb.GroupChannel.buildFromSerializedData()
tosb.groupChannel.buildGroupChannelFromSerializedData()
-
Moved
sb.GroupChannelListQuery.buildFromSerializedData()
tosb.groupChannel.buildGroupChannelListQueryFromSerializedData()
-
Moved
sb.Member.buildFromSerializedData()
tosb.groupChannel.buildMemberFromSerializedData()
-
Moved
sb.OpenChannel.buildFromSerializedData()
tosb.openChannel.buildOpenChannelFromSerializedData()
-
Moved
sb.User.buildFromSerializedData()
tosb.buildUserFromSerializedData()
-
Divided
ChannelHandler
intoGroupChannelHandler
andOpenChannelHandler
-
Renamed
SendbirdException
toSendbirdError
-
Renamed
sb.initializeDatabase()
tosb.initializeCache()
-
Renamed
sb.clearDatabase()
tosb.clearCachedData()
-
Renamed
Options
toSendbirdChatOptions
-
Renamed
groupChannel.cachedReadReceiptStatus
togroupChannel.cachedUnreadMemberState
-
Renamed
groupChannel.cachedDeliveryReceiptStatus
togroupChannel.cachedUndeliveredMemberState
-
Renamed
GCMPushToken
toFCMPushToken
v4.0.0-beta.*
For the changelog between the beta release, please refer to this page
v3 Changelog
Please refer to this page
v4.0.0-beta.12
v4.0.0-beta.12 (June 09, 2022)
- Type of
SendbirdChatParams.useAsyncStorageStore
has changed to AsyncStorage of@react-native-async-storage/async-storage
. - Added
clearCachedMessages()
inSendbirdChat
. - Rename
SendbirdChat.clearCache()
toSendbirdChat.clearCachedData()
. - Bug fixed the logic for filtering public group channel in
GroupChannelCollection
. - Rename
SendbirdChat.Options.useMemberAsMessageSender
toSendbirdChat.Options.useMemberInfoInMessage
. useMemberInfoInMessage
now applies to bothmessage.sender
andmessage.mentionedUsers
.- Bug fixed cached channel not updated when disconnect and then connect.
- Bug fixed broken file data of auto-resent file message.
- Added
BaseMessage.parentMessage
. - Added
BaseMessage.applyParentMessage()
. - Parent message update event now updates
parentMessage
value of all its child messages. - Bug fixed
message.metaArrays
value not being updated after callingcreateMessageMetaArrayKeys()
,deleteMessageMetaArrayKeys()
,addMessageMetaArrayValues()
, andremoveMessageMetaArrayValues()
ofBaseChannel
. MessageCollectionInitPolicy.API_ONLY
has been removed.- All classes whose namespace ends with params (ex.
UserMessageCreateParams
,GroupChannelCreateParams
, etc.) is now changed to interfaces. - Improved stability.
v4.0.0-beta.11
v4.0.0-beta.11 (May 24, 2022)
groupChannel.leave()
now takes an optional inputshouldRemoveOperatorStatus: boolean = false
.SendbirdChat.connect()
now returnsUser
instance from the cache if local cache is enabled.- Improved stability.
v4.0.0-beta.10
Changelog (2022-05-17)
BaseMessage
’srequestedMentionUserIds
has been replaced withmentionedUserIds
.- Getter and setter for
mentionedUsers
have been added touserMessageCreateParams
,userMessageUpdateParams
,fileMessageUpdateParams
, andfileMessageUpdateParams
. - Getters for
BaseMessage
,isUserMessage
,isFileMessage
, andisAdminMessage
have been replaced withisUserMessage()
,isFileMessage()
, andisAdminMessage()
. - Getters for
BaseChannel
,isGroupChannel
, andisOpenChannel
, have been replaced withisGroupChannel()
, andisOpenChannel()
. reqId
inBaseMessageCreateParamsProperties
has been removed.- Added
translationTargetLanguages
inUserMessage
. - Added
translationTargetLanguages
inUserMessageUpdateParamsProperties
. - Scheduled message support:
- Deleted
ScheduledUserMessageParams
. - Deleted
ScheduledUserMessage
. - Deleted
registerScheduledUserMessage()
inGroupChannel
. - Added
scheduledInfo
inBaseMessage
. - Added
ScheduledStatus
. - Added
SCHEDULED
inSendingStatus
. - Added
ScheduledMessageRetrievalParams
. - Added
ScheduledFileMessageCreateParams
. - Added
ScheduledFileMessageUpdateParams
. - Added
ScheduledUserMessageCreateParams
. - Added
ScheduledUserMessageUpdateParams
. - Added
TotalScheduledMessageCountParams
. - Added
ScheduledMessageListOrder
. - Added
ScheduledMessageListQuery
. - Added
ScheduledMessageListQueryParams
. - Added
getScheduledMessage()
inMessageModule
, . - Added
createScheduledMessageListQuery() in
GroupChannelModule`. - Added
getTotalScheduledMessageCount() in
SendbirdChat`. - Added
createScheduledUserMessage()
,updateScheduledUserMessage()
,createScheduledFileMessage()
,updateScheduledFileMessage()
,cancelScheduledMessage()
,sendScheduledMessageNow() in
GroupChannel`.
- Deleted
v4.0.0-beta.9
- Bug-fix in sending a message.
v4.0.0-beta.8
v4.0.0-beta.8