Skip to content

Commit 2dcef1b

Browse files
committed
v3.1.5
1 parent b96b0dd commit 2dcef1b

File tree

6 files changed

+31
-24
lines changed

6 files changed

+31
-24
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v3.1.5 (DEC 24, 2021)
4+
- Fixed pending message not being added to a message collection issue when local cache enabled in React Native.
5+
- All properties of `MessageSearchQueryOptions` are now made optional.
6+
- Added type definitions `PUSH_TEMPLATE_DEFAULT` and `PUSH_TEMPLATE_ALTERNATIVE` in `SendBird`.
7+
- Added `clearCachedData()` interface in `SendBird` for local caching.
8+
39
## v3.1.4 (DEC 14, 2021)
410
- Improved stability.
511

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,11 @@ Additionally, migration guide for clients currently using SyncManager will be av
341341

342342
## Changelogs
343343

344-
### v3.1.4 (DEC 14, 2021)
344+
### v3.1.5 (DEC 24, 2021)
345345

346346
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).
347347

348-
- Improved stability.
348+
- Fixed pending message not being added to a message collection issue when local cache enabled in React Native.
349+
- All properties of `MessageSearchQueryOptions` are now made optional.
350+
- Added type definitions `PUSH_TEMPLATE_DEFAULT` and `PUSH_TEMPLATE_ALTERNATIVE` in `SendBird`.
351+
- Added `clearCachedData()` interface in `SendBird` for local caching.

SendBird.d.ts

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Type Definitions for Sendbird SDK v3.1.4
2+
* Type Definitions for Sendbird SDK v3.1.5
33
* homepage: https://sendbird.com/
44
* git: https://github.com/sendbird/Sendbird-SDK-JavaScript
55
*/
@@ -118,6 +118,9 @@ declare namespace SendBird {
118118
friendName?: string;
119119
}
120120
interface SendBirdInstance {
121+
PUSH_TEMPLATE_DEFAULT: string;
122+
PUSH_TEMPLATE_ALTERNATIVE: string;
123+
121124
User: UserStatic;
122125
Member: MemberStatic;
123126
RestrictedUser: RestrictedUserStatic;
@@ -223,7 +226,7 @@ declare namespace SendBird {
223226
createUserListQuery(userIds: Array<string>): UserListQuery;
224227
createApplicationUserListQuery(): ApplicationUserListQuery;
225228
createBlockedUserListQuery(): BlockedUserListQuery;
226-
createMessageSearchQuery(keyword: String, options: MessageSearchQueryOptions): MessageSearchQuery;
229+
createMessageSearchQuery(keyword: String, options?: MessageSearchQueryOptions): MessageSearchQuery;
227230

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

351354
clearCachedMessages(channelUrls: string[]): Promise<void[]>;
355+
clearCachedData(): Promise<void>;
352356

353357
useAsyncStorageAsDatabase(AsyncStorage: object): void;
354358
}
@@ -378,16 +382,16 @@ declare namespace SendBird {
378382
next(callback?: messageListCallback): Promise<Array<User>>;
379383
}
380384
interface MessageSearchQueryOptions {
381-
limit: number;
382-
reverse: boolean;
383-
exactMatch: boolean;
384-
channelUrl: string;
385-
channelCustomType: string;
386-
messageTimestampFrom: number;
387-
messageTimestampTo: number;
388-
order: 'score' | 'ts';
389-
advancedQuery: boolean;
390-
targetFields: Array<string>;
385+
limit?: number;
386+
reverse?: boolean;
387+
exactMatch?: boolean;
388+
channelUrl?: string;
389+
channelCustomType?: string;
390+
messageTimestampFrom?: number;
391+
messageTimestampTo?: number;
392+
order?: 'score' | 'ts';
393+
advancedQuery?: boolean;
394+
targetFields?: Array<string>;
391395
}
392396

393397
interface SessionHandlerStatic {
@@ -1981,13 +1985,11 @@ declare namespace SendBird {
19811985
value: Array<string>;
19821986
}
19831987
interface Reaction {
1984-
new(): Reaction;
19851988
key: string;
19861989
userIds: Array<string>;
19871990
updatedAt: number;
19881991
}
19891992
interface ReactionEvent {
1990-
new(): ReactionEvent;
19911993
messageId: number;
19921994
userId: string;
19931995
key: string;
@@ -1996,29 +1998,25 @@ declare namespace SendBird {
19961998
}
19971999

19982000
interface ThreadInfo {
1999-
new(): ThreadInfo;
20002001
replyCount: number;
20012002
mostRepliedUsers: Array<User>;
20022003
lastRepliedAt: number;
20032004
updatedAt: number;
20042005
}
20052006
interface ThreadInfoUpdateEvent {
2006-
new(): ThreadInfoUpdateEvent;
20072007
threadInfo: ThreadInfo;
20082008
targetMessageId: number;
20092009
channelUrl: string;
20102010
channelType: string;
20112011
}
20122012

20132013
interface OGMetaData {
2014-
new(): OGMetaData;
20152014
title: string;
20162015
url: string;
20172016
description: string;
20182017
defaultImage: OGImage;
20192018
}
20202019
interface OGImage {
2021-
new(): OGImage;
20222020
url: string;
20232021
secureUrl: string;
20242022
type: string;

SendBird.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.1.4",
3+
"version": "3.1.5",
44
"authors": [
55
"Sendbird <[email protected]>"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.1.4",
3+
"version": "3.1.5",
44
"description": "Sendbird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {

0 commit comments

Comments
 (0)