Skip to content

Releases: sendbird/sendbird-chat-sdk-javascript

v4.0.8

26 Jul 05:08
Compare
Choose a tag to compare

v4.0.8 (Jul 26, 2022)

  • Fixed a bug where request url is malformed when it includes a stringified array as a parameter value
  • Fixed a bug where groupChannelCollection.onChannelsUpdated() is not called when groupChannel.lastMessage is updated
  • Fixed a bug where file upload failed messages are not resendable
  • Improved stability

v.4.0.7

20 Jul 05:07
Compare
Choose a tag to compare

v4.0.7 (Jul 20, 2022)

  • Fixed a bug where groupChannelCollection.hasNext is always true.
  • Fixed a bug where messageCollection.initialize() returning the result in reverse order.
  • Fixed a bug where channelHandler.onMentionReceived() returning a channel with mentionedCount value not updated when expected to be updated.
  • Params parameter of getUnreadItemCount(), getTotalUnreadMessageCount(), getTotalScheduledMessageCount(), createDistinctChannelIfNotExist() in GroupChannelModule are now made optional.
  • Deprecated sessionHandler.onSessionExpired().
  • Improved stability.

v4.0.6

08 Jul 09:15
Compare
Choose a tag to compare

https://sendbird.atlassian.net/browse/CORE-2604?filter=-4&jql=project%20%3D%20CORE%20AND%20fixVersion%20%3D%20%22js_core%404.0.6%22%20order%20by%20created%20DESC

## v4.0.6 (Jul 8, 2022)

- Fixed a bug `messageRequestHandler.onFailed()` to always return a failed message.
- Improved stability.

v4.0.5

06 Jul 05:09
Compare
Choose a tag to compare

v4.0.5 (Jul 6, 2022)

  • Fixed a bug on AppStateChangeDetector in ReactNative.

v4.0.4

01 Jul 04:38
Compare
Choose a tag to compare
## v4.0.4 (Jul 1, 2022)
- Changed `GroupChannel.createScheduledUserMessage()` and `GroupChannel.createScheduledFileMessage()` to return a `MessageRequestHandler` instance.
- An optional property `scheduledMessageParams` has been added to `ScheduledInfo`.
- Fixed a bug where `succeededMessage.replyToChannel` is false when a message is sent with `messageParams.isReplyToChannel` set to true.
- Improved stability.

v4.0.3

28 Jun 01:25
Compare
Choose a tag to compare
  • Fixed bug: Crash on using OpenChannelModule alone.

v4.0.2

22 Jun 04:39
Compare
Choose a tag to compare

v4.0.2 (Jun 22, 2022)

  • Added missing GroupChannelListQueryParams, GroupChannelCollectionParams, and PublicGroupChannelListQueryParams in GroupChannelModule.

v4.0.1

17 Jun 06:06
Compare
Choose a tag to compare

v4.0.1 (Jun 17, 2022)

  • Added appInfo getter in SendbirdChat.
  • Improved stability.

v4.0.0

14 Jun 09:15
Compare
Choose a tag to compare

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 from new SendBird to SendbirdChat.init()

  • sendUserMessage(), sendFileMessage() no longer takes callback as argument but added onPending(), onFailed(), onSucceeded event handler instead

  • All XxxParams classes (except XxxHandlerParams 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, and onDisconnected to ConnectionHandler

  • Added addOpenChannelHandler,removeOpenChannelHandler, removeAllOpenChannelHandlers in OpenChannelModule

  • Added addGroupChannelHandler,removeGroupChannelHandler, removeAllGroupChannelHandlers in GroupChannelModule

  • Added UserUpdateParams

  • Added UnreadItemCountParams

  • Removed sb.addChannelHandler(), sb.removeChannelHandler(), and sb.removeAllChannelHandlers()

  • Removed builder pattern for GroupChannelCollection and MessageCollection

  • Removed sb.updateCurrentUserInfoWithProfileImage(). Use sb.updateCurrentUserInfo() instead

  • Removed MessageCollectionInitPolicy.CACHE_ONLY

  • Replaced SendBirdParams with SendbirdChatParams

  • Replaced sb.GroupChannel with GroupChannelModule

  • Replaced sb.OpenChannel with OpenChannelModule

  • Replaced sb.BaseMessage with MessageModule

  • Replaced SendBird.setLogLevel() with sb.logLevel and SendbirdChatParams.logLevel

  • Replaced sb.useAsyncStorageAsDatabase() to SendbirdChatParams.useAsyncStorageStore

  • Replaced channelHandler.onReadReceiptUpdated to groupChannelHandler.onUnreadMemberStatusUpdated

  • Replaced channelHandler.onDeliveryReceiptUpdated to groupChannelHandler.onUndeliveredMemberStatusUpdated

  • Replaced GroupChannelParams with GroupChannelCreateParams and GroupChannelUpdateParams

  • Replaced OpenChannelParams with OpenChannelCreateParams and OpenChannelUpdateParams

  • Replaced UserMessageParams with UserMessageCreateParams and UserMessageUpdateParams

  • Replaced FileMessageParams with FileMessageCreateParams and FileMessageUpdateParams

  • Replaced SendBird.getInstance() with SendbirdChat.instance

  • Replaced sb.getApplicationId() with sb.appId

  • Replaced sb.getConnectionState() with sb.connectionState

  • Replaced sb.getLastConnectedAt() with sb.lastConnectedAt

  • Replaced sb.Options.useMemberAsMessageSender with sb.options.useMemberInfoInMessage

  • Replaced channel.getCachedMetaData() with channel.cachedMetaData

  • Replaced message.isResendable() with message.isResendable

  • Replaced sb.UserMessage.buildFromSerializedData(), sb.FileMessage.buildFromSerializedData(), and sb.AdminMessage.buildFromSerializedData() with sb.message.buildMessageFromSerializedData()

  • Replaced requestedMentionUserIds with mentionedUserIds in BaseMessage

  • Replaced isUserMessage,isFileMessage,isAdminMessage with isUserMessage(),isFileMessage() and isAdminMessage() in BaseMessage

  • Replaced isGroupChannel,isOpenChannel with isGroupChannel() and isOpenChannel()

  • Moved sb.appVersion to SendbirdChatParams.appVersion

  • Moved sb.getMyGroupChannelChangeLogsByToken() to sb.groupChannel.getMyGroupChannelChangeLogsByToken()

  • Moved sb.getMyGroupChannelChangeLogsByTimestamp() to sb.groupChannel.getMyGroupChannelChangeLogsByTimestamp()

  • Moved sb.getUnreadItemCount() to sb.groupChannel.getUnreadItemCount()

  • Moved sb.getTotalUnreadChannelCount() to sb.groupChannel.getTotalUnreadChannelCount()

  • Moved sb.getTotalUnreadMessageCount() to sb.groupChannel.getTotalUnreadMessageCount()

  • Moved sb.getTotalScheduledMessageCount() to sb.groupChannel.getTotalScheduledMessageCount()

  • Moved sb.getSubscribedTotalUnreadMessageCount() to sb.groupChannel.getSubscribedTotalUnreadMessageCount()

  • Moved sb.getSubscribedCustomTypeTotalUnreadMessageCount() to sb.groupChannel.getSubscribedCustomTypeTotalUnreadMessageCount()

  • Moved sb.getSubscribedCustomTypeUnreadMessageCount() to sb.groupChannel.getSubscribedCustomTypeUnreadMessageCount()

  • Moved sb.Sender.buildFromSerializedData() to sb.message.buildSenderFromSerializedData()

  • Moved sb.GroupChannel.buildFromSerializedData() to sb.groupChannel.buildGroupChannelFromSerializedData()

  • Moved sb.GroupChannelListQuery.buildFromSerializedData() to sb.groupChannel.buildGroupChannelListQueryFromSerializedData()

  • Moved sb.Member.buildFromSerializedData() to sb.groupChannel.buildMemberFromSerializedData()

  • Moved sb.OpenChannel.buildFromSerializedData() to sb.openChannel.buildOpenChannelFromSerializedData()

  • Moved sb.User.buildFromSerializedData() to sb.buildUserFromSerializedData()

  • Divided ChannelHandler into GroupChannelHandler and OpenChannelHandler

  • Renamed SendbirdException to SendbirdError

  • Renamed sb.initializeDatabase() to sb.initializeCache()

  • Renamed sb.clearDatabase() to sb.clearCachedData()

  • Renamed Options to SendbirdChatOptions

  • Renamed groupChannel.cachedReadReceiptStatus to groupChannel.cachedUnreadMemberState

  • Renamed groupChannel.cachedDeliveryReceiptStatus to groupChannel.cachedUndeliveredMemberState

  • Renamed GCMPushToken to FCMPushToken

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

09 Jun 03:33
Compare
Choose a tag to compare

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() in SendbirdChat.
  • Rename SendbirdChat.clearCache() to SendbirdChat.clearCachedData().
  • Bug fixed the logic for filtering public group channel in GroupChannelCollection.
  • Rename SendbirdChat.Options.useMemberAsMessageSender to SendbirdChat.Options.useMemberInfoInMessage.
  • useMemberInfoInMessage now applies to both message.sender and message.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 calling createMessageMetaArrayKeys(), deleteMessageMetaArrayKeys(), addMessageMetaArrayValues(), and removeMessageMetaArrayValues() of BaseChannel.
  • MessageCollectionInitPolicy.API_ONLY has been removed.
  • All classes whose namespace ends with params (ex. UserMessageCreateParams, GroupChannelCreateParams, etc.) is now changed to interfaces.
  • Improved stability.