Skip to content

Commit be7a16d

Browse files
committed
v4.2.9
1 parent adc0cb1 commit be7a16d

15 files changed

+57
-25
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11

22
# Changelog
33

4+
## v4.2.9 (Feb 01, 2023)
5+
### **Features**
6+
#### **Participant class in Open Channel**
7+
8+
Participant is a new interface for User who joined Open Channel. It's optimized for scalability and contains much lighter information about the User than a Member in Group Channel.
9+
Now clients can implement Open Channels easier in SDK with more built-in capabilities. You can compare how Member, Participant, and User are different [here](https://sendbird.com/docs/chat/v4/javascript/guides/user-types)
10+
11+
- `Participant` holds essential information about the participant like below. They contain their muted status (`is_muted`) on top of basic User information
12+
```
13+
class Participant extends User {
14+
readonly isMuted: boolean;
15+
}
16+
```
17+
18+
- `ParticipantListQuery.next()` now returns `Promise<Participant[]>`
19+
- For backward compatibility, the return type remains as `Promise<User[]>`, but the return value can be casted into `Promise<Participant[]>`
20+
21+
#### **Others**
22+
- Added `SendbirdChatOptions.sessionTokenRefreshTimeout`. You can now set longer timeout value for session token expire. (Default: 60s, Maximum: 1800s). This means that Sendbird SDK will wait longer for your new session token, making it easier for you to reconnect to our service.
23+
24+
### **Improvements**
25+
- Improved stability
26+
427
## v4.2.8 (Jan 27, 2023)
528
### **Improvements**
629
- Fixed a bug where `groupChannelHandler.onChannelChanged()` is not called on pin or unpin message event

__bundle-5fa378b6.js renamed to __bundle-24eb0b85.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__bundle-45f43fc1.js renamed to __bundle-416b75ff.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__bundle-793cbf60.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

__bundle-95db0489.js

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

__bundle-72ac5445.js renamed to __bundle-b74c1b1a.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

groupChannel.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export {
3636
OnlineDetectorListener,
3737
OperatorListQuery,
3838
OperatorListQueryParams,
39+
Participant,
3940
Plugin,
4041
PushTemplate,
4142
PushTokenRegistrationState,

lib/__definition.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,10 @@ export declare class OperatorListQuery extends ChannelDataListQuery {
914914

915915
export type OperatorListQueryParams = BaseListQueryParams;
916916

917+
export declare class Participant extends User {
918+
readonly isMuted: boolean;
919+
}
920+
917921
export declare class ParticipantListQuery extends ChannelDataListQuery {
918922
next(): Promise<User[]>;
919923
}
@@ -1301,11 +1305,13 @@ export declare class SendbirdChatOptions {
13011305
typingIndicatorInvalidateTime,
13021306
typingIndicatorThrottle,
13031307
websocketResponseTimeout,
1308+
sessionTokenRefreshTimeout,
13041309
}?: {
13051310
useMemberInfoInMessage?: boolean;
13061311
typingIndicatorInvalidateTime?: number;
13071312
typingIndicatorThrottle?: number;
13081313
websocketResponseTimeout?: number;
1314+
sessionTokenRefreshTimeout?: number;
13091315
});
13101316
get useMemberInfoInMessage(): boolean;
13111317
set useMemberInfoInMessage(value: boolean);
@@ -1315,6 +1321,8 @@ export declare class SendbirdChatOptions {
13151321
set typingIndicatorThrottle(value: number);
13161322
get websocketResponseTimeout(): number;
13171323
set websocketResponseTimeout(value: number);
1324+
get sessionTokenRefreshTimeout(): number;
1325+
set sessionTokenRefreshTimeout(value: number);
13181326
}
13191327

13201328
export declare interface SendbirdChatParams<Modules extends Module[]> {

message.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openChannel.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "4.2.8",
2+
"version": "4.2.9",
33
"description": "Sendbird SDK for JavaScript",
44
"name": "@sendbird/chat",
55
"author": "Sendbird <[email protected]>",

poll.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sendbird.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sendbird.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)