Web
Version 4.1.0 (2021-02-16)
API / Behavior Changes
You can now create custom posts
PostRepository.createPost({ dataType: string, data: Object })
Version 4.0.36 (2021-02-05)
API / Behavior Changes
Comment
Fix the issue of fetching X comments with first / last sorting in CommentRepository.queryComments(parameters: Object)
Version 4.0.0 (2020-09-11)
API / Behavior Changes
Reaction
Normalized API accross the SDK
Post
PostRepository()
PostRepository.postForId(postId: string)
PostRepository.createPost(postType: string)
PostRepository.updatePost({ postId: string, data: Object })
async PostRepository.deletePost(postId: string)
async PostRepository.addReaction(postId: string)
async PostRepository.removeReaction(postId: string)
async PostRepository.flag(postId: string)
async PostRepository.unflag(postId: string)
async PostRepository.isFlaggedByMe(postId: string)
Comment
CommentRepository()
CommentRepository.queryComments(parameters: Object)
CommentRepository.commentForId(commentId: string)
CommentRepository.createComment(parameters: Object)
CommentRepository.editComment({ commentId: string, data: Object })
async CommentRepository.deleteComment(commentId: string)
async CommentRepository.addReaction(commentId: string)
async CommentRepository.removeReaction(commentId: string)
async CommentRepository.flag(commentId: string)
async CommentRepository.unflag(commentId: string)
async CommentRepository.isFlaggedByMe(commentId: string)
User
UserRepository.getAllUsers(sortBy?: EkoUserSortingMethod)
UserRepository.searchUserByDisplayName(search: string)
Version 1.3.0 (2020-07-22)
API / Behavior Changes
Added unreadCount in ChannelMembershipModel
exampleChannelMembershipModel.unreadCount;
Threaded messages:
MessageModel.parentId;
: Message ID of a parent messageMessageRepository.messagesForChannel
now allow parametersparentId: string
andfilterByParentId: boolean
to perform queries on threads of messages
Reactions:
{ reactions: Object, reactionsCount: number, myReactions: string[] }
is added to MessageModel to support reactionsReactorRepository(messageModel: MessageModel);
async ReactorRepository.addReaction(reactionName: string);
async ReactorRepository.removeReaction(reactionName: string);
Version 1.2.0 (2020-04-09)
BREAKING CHANGES
A new Message Flagger Repository has been added and all message flagging has been moving to this repository:
MessageFlagRepository(messageId);
MessageFlagRepository.flag({ messageId });
MessageFlagRepository.unflag({ messageId });
API / Behavior Changes
You can check if you have flagged a message before
await MessageFlagRepository.isFlaggedByMe();
MessageModel now contains a cache for the isFlaggedByMe result
MessageModel.isFlaggedByMeCache;
Version 1.1.0 (2020-01-24)
API / Behavior Changes
You can now edit user metadata:
client.setUserMetadata({ test: "test" });
Version 1.0.0 (2019-11-20)
API / Behavior Changes
You can now filter channels by tags/excludingTags:
ChannelRepository.channelsWithFilters({ tags: [1,2,3], excludingTags: [4,5,6] });
You can now edit and delete message text:
MessageEditorRepository.editText('new edited text');
MessageEditorRepository.delete();
You can now read and unread channels:
ChannelMembershipRepository.startReading()
ChannelMembershipRepository.stopReading()
Version 0.13.0 (2019-04-24)
API / Behavior Changes
You can now be able to flag/unflag a message:
MessageRepository.flag({ messageId });
MessageRepository.unflag({ messageId });
You can now be able to flag/unflag a user:
UserRepository.flag({ userId });
UserRepository.unflag({ userId });
Bug Fixes
Fixed an issue with LiveObject and LiveCollection when they stop listen for updates from server after unregister/register. (case with SPA multiuser UI).
Enhanced Array.prototype.sort() comparison functions to be in sync with last updates in V8 (changes for
sort()
already delivered in Chrome 70 and node-v11).
Last updated