Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sendbird

Package Overview
Dependencies
Maintainers
1
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sendbird - npm Package Compare versions

Comparing version 3.0.122 to 3.0.123

2

bower.json
{
"name": "sendbird",
"version": "3.0.122",
"version": "3.0.123",
"authors": ["SendBird <support@sendbird.com>"],

@@ -5,0 +5,0 @@ "homepage": "https://github.com/sendbird/SendBird-SDK-JavaScript",

# Changelog
## v3.0.123(MAY 22, 2020)
- Added message thread feature support
- Added `parentMessageId`, `parentMessageText`, `threadInfo` in `UserMessage` and `FileMessage`.
- Added `onThreadInfoUpdated()` in `ChannelHandler`.
- Added `getThreadedMessagesByTimestamp()`, `applyThreadInfoUpdateEvent()` in `UserMessage` and `FileMessage`.
- Added thread-related parameters in `GroupChannelListQuery`.
- Added emoji feature support
- Added `getAllEmoji()`, `getEmojiCategory()`, and `getEmoji()` in `SendBird`.
- Added parameter classes for message retrieval.
- Bug-fix: Crash on IE strict mode.
## v3.0.122(APR 29, 2020)

@@ -4,0 +15,0 @@

{
"name": "sendbird",
"version": "3.0.122",
"version": "3.0.123",
"description": "SendBird JavaScript SDK",

@@ -5,0 +5,0 @@ "main": "SendBird.min.js",

@@ -48,8 +48,15 @@ [![npm](https://img.shields.io/npm/v/sendbird.svg?style=popout&colorB=red)](https://www.npmjs.com/package/sendbird)

## v3.0.122(APR 29, 2020)
## v3.0.123(MAY 22, 2020)
If you want to check the record of other version, go to [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md).
- Added `metaArrays` in `UserMessageParams` and `FileMessageParams`.
- Message could be sent with predefined `metaArrays`.
- Added message thread feature support
- Added `parentMessageId`, `parentMessageText`, `threadInfo` in `UserMessage` and `FileMessage`.
- Added `onThreadInfoUpdated()` in `ChannelHandler`.
- Added `getThreadedMessagesByTimestamp()`, `applyThreadInfoUpdateEvent()` in `UserMessage` and `FileMessage`.
- Added thread-related parameters in `GroupChannelListQuery`.
- Added emoji feature support
- Added `getAllEmoji()`, `getEmojiCategory()`, and `getEmoji()` in `SendBird`.
- Added parameter classes for message retrieval.
- Bug-fix: Crash on IE strict mode.

@@ -56,0 +63,0 @@ ## [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md)

/**
* Type Definitions for SendBird SDK v3.0.122
* Type Definitions for SendBird SDK v3.0.123
* homepage: https://sendbird.com/

@@ -43,2 +43,8 @@ * git: https://github.com/sendbird/SendBird-SDK-JavaScript

type getEmojiContainerHandler = (data: EmojiContainer, error: SendBirdError) => void;
type getEmojiCategoryHandler = (data: EmojiCategory, error: SendBirdError) => void;
type getEmojiHandler = (data: Emoji, error: SendBirdError) => void;
type pushTokens = {

@@ -222,2 +228,10 @@ deviceTokens: Array<string>;

): void;
getAllEmoji(callback: getEmojiContainerHandler): void;
getEmojiCategory(categoryId: number, callback: getEmojiCategoryHandler): void;
getEmoji(emojiKey: string, callback: getEmojiHandler): void;
getAllEmoji(): Promise<EmojiContainer>;
getEmojiCategory(categoryId: number): Promise<EmojiCategory>;
getEmoji(emojiKey: string): Promise<Emoji>;
}

@@ -293,2 +307,3 @@

onMentionReceived(channel: OpenChannel | GroupChannel, message: AdminMessage | UserMessage | FileMessage): void;
onThreadInfoUpdated(channel: OpenChannel | GroupChannel, threadInfoUpdateEvent: ThreadInfoUpdateEvent): void;
}

@@ -321,2 +336,5 @@

updatedAt: number;
parentMessageId: number;
parentMessageText: string;
threadInfo: ThreadInfo;

@@ -333,2 +351,4 @@ isEqual(target: BaseMessageInstance): boolean;

applyReactionEvent(event: ReactionEvent): void;
getThreadedMessagesByTimestamp(timestamp: number, params: ThreadedMessageListParams, callback: threadedMessageListCallback): void;
applyThreadInfoUpdateEvent(threadInfoUpdateEvent: ThreadInfoUpdateEvent): boolean;

@@ -346,2 +366,3 @@ metaArray: Object; // DEPRECATED

buildFromSerializedData(serializedObject: Object): AdminMessage;
getMessage(params: MessageRetrievalParams, callback: messageCallback): void;
}

@@ -355,2 +376,19 @@

interface Emoji {
key: string;
url: string;
}
interface EmojiCategory {
id: number;
name: string;
url: string;
emojis: Array<Emoji>;
}
interface EmojiContainer {
emojiHash: string;
emojiCategories: Array<EmojiCategory>;
}
interface UserMessageParams {

@@ -369,2 +407,3 @@ new (): UserMessageParams;

pushNotificationDeliveryOption: 'default' | 'suppress';
parentMessageId: number;
}

@@ -386,2 +425,3 @@ interface UserMessage extends BaseMessageInstance {

buildFromSerializedData(serializedObject: Object): UserMessage;
getMessage(params: MessageRetrievalParams, callback: messageCallback): void;
}

@@ -405,2 +445,3 @@

pushNotificationDeliveryOption: 'default' | 'suppress';
parentMessageId: number;
}

@@ -425,4 +466,51 @@ interface FileMessage extends BaseMessageInstance {

buildFromSerializedData(serializedObject: Object): FileMessage;
getMessage(params: MessageRetrievalParams, callback: messageCallback): void;
}
interface MessageRetrievalParams {
new (): MessageRetrievalParams;
channelUrl: string;
channelType: string;
messageId: number;
includeMetaArray: boolean;
includeParentMessageText: boolean;
includeThreadInfo: boolean;
}
interface MessageListParams {
new (): MessageListParams;
prevResultSize: number;
nextResultSize: number;
isInclusive: boolean;
shouldReverse: boolean;
messageType: string;
customType: string;
senderUserIds: Array<string>;
includeMetaArray: boolean;
includeReactions: boolean;
includeReplies: boolean;
includeParentMessageText: boolean;
includeThreadInfo: boolean;
}
interface ThreadedMessageListParams {
new (): ThreadedMessageListParams;
prevResultSize: number;
nextResultSize: number;
isInclusive: boolean;
shouldReverse: boolean;
messageType: string;
customType: string;
senderUserIds: Array<string>;
includeMetaArray: boolean;
includeReactions: boolean;
includeParentMessageText: boolean;
}
interface MessageChangeLogsParams {
new (): MessageChangeLogsParams;
includeMetaArray: boolean;
includeReactions: boolean;
includeReplies: boolean;
includeParentMessageText: string;
includeThreadInfo: boolean;
}
interface ThumbnailObject {

@@ -526,2 +614,3 @@ url: string;

/* DEPRECATED */
getMessageChangeLogsByToken(callback: getMessageChangeLogsHandler): void;

@@ -537,2 +626,3 @@ getMessageChangeLogsByToken(token: string, callback: getMessageChangeLogsHandler): void;

/* DEPRECATED */
getMessageChangeLogsByTimestamp(ts: number, callback: getMessageChangeLogsHandler): void;

@@ -547,2 +637,5 @@ getMessageChangeLogsByTimestamp(ts: number, includeMetaArray: boolean, callback: getMessageChangeLogsHandler): void;

getMessageChangeLogsSinceToken(token: string, params: MessageChangeLogsParams, callback: getMessageChangeLogsHandler): void;
getMessageChangeLogsSinceTimestamp(timestamp: number, params: MessageChangeLogsParams, callback: getMessageChangeLogsHandler): void;
getMyMutedInfo(callback: getMyMutedInfoHandler): void;

@@ -554,2 +647,4 @@ createOperatorListQuery(): OperatorListQuery;

createPreviousMessageListQuery(): PreviousMessageListQuery;
/* DEPRECATED */
getNextMessagesByTimestamp(

@@ -808,2 +903,5 @@ ts: number,

getMessagesByTimestamp(timestamp: number, params: MessageListParams, callback: messageListCallback): void;
getMessagesByMessageId(messageId: number, params: MessageListParams, callback: messageListCallback): void;
/** FileMessage */

@@ -1093,2 +1191,11 @@ sendFileMessage(fileMessageParams: FileMessageParams, callback: messageCallback): FileMessage;

type threadedMessageList = {
parentMessage: UserMessage | FileMessage | AdminMessage,
threadedReplies: Array<UserMessage | FileMessage | AdminMessage>
};
type threadedMessageCallback = (
threadedMessageList: threadedMessageList,
error: SendBirdError
) => void;
interface PreviousMessageListQuery {

@@ -1104,2 +1211,5 @@ hasMore: boolean;

includeReaction: boolean;
includeReplies: boolean;
includeParentMessageText: boolean;
includeThreadInfo: boolean;

@@ -1402,2 +1512,16 @@ load(limit: number, reverse: boolean, callback: messageListCallback): void;

interface ThreadInfo {
new (): ThreadInfo;
replyCount: number;
mostRepliedUsers: Array<User>
lastRepliedAt: number;
}
interface ThreadInfoUpdateEvent {
new (): ThreadInfoUpdateEvent;
threadInfo: ThreadInfo;
targetMessageId: number;
channelUrl: string;
channelType: string;
}
type groupChannelCallback = (groupChannel: GroupChannel, error: SendBirdError) => void;

@@ -1404,0 +1528,0 @@ type distinctGroupChannelCallback = (response: DistinctGroupChannelResponse, error: SendBirdError) => void;

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc