Skip to content

Releases: cometchat/chat-sdk-javascript

v4.1.0

Choose a tag to compare

@raj-dubey1 raj-dubey1 released this 14 Aug 13:18
5024348

New

  • Added AI Assistant Event Classes to provide detailed lifecycle tracking for AI assistant interactions:

    • AIAssistantBaseEvent – Serves as the base type for all AI assistant-related events.
    • AIAssistantRunStartedEvent – Triggered when an AI assistant run begins.
    • AIAssistantRunFinishedEvent – Triggered when an AI assistant run completes.
    • AIAssistantMessageStartedEvent – Triggered when an AI assistant begins sending a message.
    • AIAssistantMessageEndedEvent – Triggered when an AI assistant finishes sending a message.
    • AIAssistantContentReceivedEvent – Triggered when content is received from the AI assistant.
    • AIAssistantToolStartedEvent – Triggered when the AI assistant starts executing a tool.
    • AIAssistantToolEndedEvent – Triggered when the AI assistant completes a tool execution.
    • AIAssistantToolArgumentEvent – Triggered when arguments are passed to an AI tool.
    • AIAssistantToolResultEvent – Triggered when results are returned from an AI tool.
  • Introduced AIAssistantListener for subscribing to and handling AI assistant events.

    • addAIAssistantListener – Registers a listener for AI assistant events.
    • removeAIAssistantListener – Unregisters an AI assistant listener.
    • onAIAssistantEventReceived - Handles incoming AI assistant events.
  • Introduced new methods in MessageListener for subscribing to and handling new AI assistant messages.

    • onAIAssistantMessageReceived – Handles incoming AI assistant message.
    • onAIToolArgumentsReceived – Handles incoming AI tool arguments.
    • onAIToolResultReceived – Handles incoming AI tool result.
  • Added Messages & Data Classes for structured handling of AI tool call, argument, result and message:

    • AIToolResultMessage – Represents a message containing the result of a tool execution.
    • AIToolResultMessageData – Contains structured data for a tool result message.
    • AIToolCall – Contains structured data for a specific AI tool call.
    • AIToolCallFunction – Contains structured data for a specific AI tool call function.
    • AIToolArgumentMessage – Represents a message containing tool arguments.
    • AIToolArgumentMessageData – Contains structured data for a tool argument message.
    • AIAssistantMessage – Represents a message sent by the AI assistant.
    • AIAssistantMessageData – Contains structured data for an AI assistant message.

Enhancements

  • None

Fixes

  • None

v4.0.14

Choose a tag to compare

@raj-dubey1 raj-dubey1 released this 30 Jul 15:15
f83e508

New

  • None

Enhancements

  • Added Dependency identification for Chat Builder.

Fixes

  • None

v4.0.13

Choose a tag to compare

@raj-dubey1 raj-dubey1 released this 16 Jun 12:50
40814c9

New

  • Added a new method setAttachmentTypes in MessagesRequestBuilder, enabling users to filter messages by attachment type (image, file, video, audio).
  • Introduced an AttachmentType enum to support the new attachment filtering feature.

Enhancements

  • None

Fixes

  • Resolved a crash that occurred when null was passed as the last message parameter while creating a conversation object using new CometChat.Conversation().
  • Fixed an issue where special characters such as # and @ in tags or search keywords were not being sent to the API.
  • Addressed a problem where string values like "0", "null", "undefined", and "false" passed as search keywords were ignored by the SDK.
  • Removed unnecessary references to sendFriendRequests, acceptFriendRequest, and rejectFriendRequest to streamline the SDK.

v4.0.12

Choose a tag to compare

@raj-dubey1 raj-dubey1 released this 23 Apr 14:43
aff045f

New

  • Introduced Conversations & Advanced Search to enhance message and conversation filtering capabilities.
  • Added new filters to MessagesRequestBuilder:
    • hasAttachments() – Retrieve messages that contain file attachments.
    • hasReactions() – Retrieve messages that include user reactions.
    • hasMentions() – Retrieve messages where users are mentioned.
    • hasLinks() – Retrieve messages that contain hyperlinks.
    • setMentionedUIDs(string[]) – Retrieve messages mentioning specific user IDs.
  • Added new filters to ConversationsRequestBuilder:
    • setSearchKeyword(string) – Search conversations (user or group) by name keyword.
    • setUnread(boolean) – Retrieve only unread conversations.

Enhancements

  • None

Fixes

  • None

v4.0.11

Choose a tag to compare

@raj-dubey1 raj-dubey1 released this 02 Apr 08:59
216a74e

New

  • Added a new constant named PresenceConstants to replace the deprecated PresenceConstatnts.

Enhancements

  • None

Fixes

  • Fixed an issue where setting roles in the subscribePresenceForRoles() method of AppSettingsBuilder caused presence functionality to stop working entirely. Now, presence updates are received only for the specified roles, as intended.
  • Fixed an issue with MessageReceipt not being exposed in the CometChat class.

Deprecation

Deprecated PresenceConstatnts in favor of PresenceConstants.

v4.0.10

Choose a tag to compare

@mathews-cometchat mathews-cometchat released this 28 Aug 13:58
515d12c

New

  • None

Enhancements

  • None

Fixes

  • Fixed an issue where the timer for marking a call as unanswered would continue running even after the call was accepted, causing problems when the initiator attempted to end the call.

v4.0.9

Choose a tag to compare

@mathews-cometchat mathews-cometchat released this 08 Aug 12:43
6155351

New

  • Added "onMessagesDeliveredToAll" and "onMessagesReadByAll" listeners to notify message sender when group messages are delivered or read by everyone in the group.

Fixes

  • Fixed issue with tags not being passed properly in media message.

v4.0.8

Choose a tag to compare

@mathews-cometchat mathews-cometchat released this 10 Jul 13:53
7e50dbf

New

  • The following new methods have been introduced in the CometChatNotifications class:
    • updateTimezone: This method updates the timezone for receiving Enhanced Email and Enhanced SMS notifications correctly.
    • getTimezone: This method fetches the timezone set for a user.
  • Added new class NotificationPreferences in CometChatNotifications

Enhancements

  • The following methods in the ConversationsRequestBuilder class have been deprecated:
    • setIncludeBlockedUsers is now deprecated. Please use includeBlockedUsers as an alternative.
    • setWithBlockedInfo is now deprecated. Please use withBlockedInfo as an alternative.
  • The following methods in the CometChatNotifications class have been deprecated:
    • fetchPushPreferences is now deprecated. Please use fetchPreferences as an alternative.
    • updatePushPreferences is now deprecated. Please use updatePreferences as an alternative.
    • resetPushPreferences is now deprecated. Please use resetPreferences as an alternative.
  • The following class in the CometChatNotifications has been deprecated:
    • PushPreferences is now deprecated. Please use NotificationPreferences as an alternative.

Fixes

  • Added method clearActiveCall to clear the active call.

v4.0.7

Choose a tag to compare

@kaushikRitik kaushikRitik released this 26 Jun 09:54
8940e4d

New

  • Add new methods in Conversations Request Builder “setIncludeBlockedUsers”, “setWithBlockedInfo”
  • Added getter methods in all the Request classes
  • Add setter & getter method for GUID in BannedMembersRequestBuilder & GroupMembersRequestBuilder

Fixes

  • Resolved the issue with the markAsUnread method. The bug involved one-to-one conversations, where the incorrect receiverId was being sent while marking a message as unread in the SDK method.

v4.0.6

Choose a tag to compare

@mathews-cometchat mathews-cometchat released this 06 Jun 12:56
b309efb

New:

  • Added a method named getConversationUpdateSettings which returns the settings saved in Dashboard.

Fixes:

  • Fixed error handling in getSender() and getReceiver() methods in Message Models