Skip to content

Commit

Permalink
v3.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
gignac-cha committed Dec 24, 2021
1 parent b96b0dd commit 2dcef1b
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v3.1.5 (DEC 24, 2021)
- Fixed pending message not being added to a message collection issue when local cache enabled in React Native.
- All properties of `MessageSearchQueryOptions` are now made optional.
- Added type definitions `PUSH_TEMPLATE_DEFAULT` and `PUSH_TEMPLATE_ALTERNATIVE` in `SendBird`.
- Added `clearCachedData()` interface in `SendBird` for local caching.

## v3.1.4 (DEC 14, 2021)
- Improved stability.

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,11 @@ Additionally, migration guide for clients currently using SyncManager will be av

## Changelogs

### v3.1.4 (DEC 14, 2021)
### v3.1.5 (DEC 24, 2021)

If you want to check the record of other versions, go to [Change Log](https://github.com/sendbird/Sendbird-SDK-JavaScript/blob/master/CHANGELOG.md).

- Improved stability.
- Fixed pending message not being added to a message collection issue when local cache enabled in React Native.
- All properties of `MessageSearchQueryOptions` are now made optional.
- Added type definitions `PUSH_TEMPLATE_DEFAULT` and `PUSH_TEMPLATE_ALTERNATIVE` in `SendBird`.
- Added `clearCachedData()` interface in `SendBird` for local caching.
34 changes: 16 additions & 18 deletions SendBird.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Type Definitions for Sendbird SDK v3.1.4
* Type Definitions for Sendbird SDK v3.1.5
* homepage: https://sendbird.com/
* git: https://github.com/sendbird/Sendbird-SDK-JavaScript
*/
Expand Down Expand Up @@ -118,6 +118,9 @@ declare namespace SendBird {
friendName?: string;
}
interface SendBirdInstance {
PUSH_TEMPLATE_DEFAULT: string;
PUSH_TEMPLATE_ALTERNATIVE: string;

User: UserStatic;
Member: MemberStatic;
RestrictedUser: RestrictedUserStatic;
Expand Down Expand Up @@ -223,7 +226,7 @@ declare namespace SendBird {
createUserListQuery(userIds: Array<string>): UserListQuery;
createApplicationUserListQuery(): ApplicationUserListQuery;
createBlockedUserListQuery(): BlockedUserListQuery;
createMessageSearchQuery(keyword: String, options: MessageSearchQueryOptions): MessageSearchQuery;
createMessageSearchQuery(keyword: String, options?: MessageSearchQueryOptions): MessageSearchQuery;

blockUser(userToBlock: User, callback?: userCallback): Promise<User>;
blockUserWithUserId(userToBlock: string, callback?: userCallback): Promise<User>;
Expand Down Expand Up @@ -349,6 +352,7 @@ declare namespace SendBird {
setAllowFriendDiscovery(allowFriendDiscovery: boolean, callback?: commonCallback): Promise<boolean>;

clearCachedMessages(channelUrls: string[]): Promise<void[]>;
clearCachedData(): Promise<void>;

useAsyncStorageAsDatabase(AsyncStorage: object): void;
}
Expand Down Expand Up @@ -378,16 +382,16 @@ declare namespace SendBird {
next(callback?: messageListCallback): Promise<Array<User>>;
}
interface MessageSearchQueryOptions {
limit: number;
reverse: boolean;
exactMatch: boolean;
channelUrl: string;
channelCustomType: string;
messageTimestampFrom: number;
messageTimestampTo: number;
order: 'score' | 'ts';
advancedQuery: boolean;
targetFields: Array<string>;
limit?: number;
reverse?: boolean;
exactMatch?: boolean;
channelUrl?: string;
channelCustomType?: string;
messageTimestampFrom?: number;
messageTimestampTo?: number;
order?: 'score' | 'ts';
advancedQuery?: boolean;
targetFields?: Array<string>;
}

interface SessionHandlerStatic {
Expand Down Expand Up @@ -1981,13 +1985,11 @@ declare namespace SendBird {
value: Array<string>;
}
interface Reaction {
new(): Reaction;
key: string;
userIds: Array<string>;
updatedAt: number;
}
interface ReactionEvent {
new(): ReactionEvent;
messageId: number;
userId: string;
key: string;
Expand All @@ -1996,29 +1998,25 @@ declare namespace SendBird {
}

interface ThreadInfo {
new(): ThreadInfo;
replyCount: number;
mostRepliedUsers: Array<User>;
lastRepliedAt: number;
updatedAt: number;
}
interface ThreadInfoUpdateEvent {
new(): ThreadInfoUpdateEvent;
threadInfo: ThreadInfo;
targetMessageId: number;
channelUrl: string;
channelType: string;
}

interface OGMetaData {
new(): OGMetaData;
title: string;
url: string;
description: string;
defaultImage: OGImage;
}
interface OGImage {
new(): OGImage;
url: string;
secureUrl: string;
type: string;
Expand Down
4 changes: 2 additions & 2 deletions SendBird.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sendbird",
"version": "3.1.4",
"version": "3.1.5",
"authors": [
"Sendbird <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sendbird",
"version": "3.1.4",
"version": "3.1.5",
"description": "Sendbird JavaScript SDK",
"main": "SendBird.min.js",
"dependencies": {
Expand Down

0 comments on commit 2dcef1b

Please sign in to comment.