Skip to content

Commit

Permalink
v3.0.148
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcho committed Mar 31, 2021
1 parent a1ddb32 commit 0c52d8c
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 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.0.148(MAR 31, 2021)

- Added `AppleCriticalAlertOptions` interface.
- Added `appleCriticalAlertOptions` in `BaseMessage`, `UserMessageParams`, `FileMessageParams`, `ScheduledUserMessage`, and `ScheduledUserMessageParams`.
- Downgraded log level from `ERROR` to `DEBUG` for all internal API calls.

## v3.0.147(MAR 24, 2021)

- Added `onChannelMemberCountChanged` and `onChannelParticipantCountChanged` in `ChannelHandler`.
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Or download the latest Chat SDK for JavaScript from the following link if you do

- https://github.com/sendbird/Sendbird-SDK-JavaScript

> **Note**: You should also add `axios` library into the <script> tag before the Sendbird library inclusion since v3.0.127. You can host the library or utilize the CDN as the library refers to it. The following serves as examples.
> **Note**: You should also add `axios` library into the `<script>` tag before the Sendbird library inclusion since v3.0.127. You can host the library or utilize the CDN as the library refers to it. The following serves as examples.
```javascript
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
Expand Down Expand Up @@ -325,10 +325,10 @@ The `sb.setErrorFirstCallback(false)` returns callbacks to their original parame

## Changelogs

## v3.0.147(MAR 24, 2021)
## v3.0.148(MAR 31, 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).

- Added `onChannelMemberCountChanged` and `onChannelParticipantCountChanged` in `ChannelHandler`.
- Changed `markAsDelivered` policy to remove rate limit timer.
- Improved stability.
- Added `AppleCriticalAlertOptions` interface.
- Added `appleCriticalAlertOptions` in `BaseMessage`, `UserMessageParams`, `FileMessageParams`, `ScheduledUserMessage`, and `ScheduledUserMessageParams`.
- Downgraded log level from `ERROR` to `DEBUG` for all internal API calls.
14 changes: 13 additions & 1 deletion SendBird.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Type Definitions for Sendbird SDK v3.0.147
* Type Definitions for Sendbird SDK v3.0.148
* homepage: https://sendbird.com/
* git: https://github.com/sendbird/Sendbird-SDK-JavaScript
*/
Expand Down Expand Up @@ -395,6 +395,7 @@ declare namespace SendBird {
parentMessageText: string;
threadInfo: ThreadInfo;
ogMetaData: OGMetaData;
appleCriticalAlertOptions: AppleCriticalAlertOptions;

isEqual(target: BaseMessageInstance): boolean;
isIdentical(target: BaseMessageInstance): boolean;
Expand Down Expand Up @@ -462,6 +463,13 @@ declare namespace SendBird {
detail: {};
}

interface AppleCriticalAlertOptions {
name: string;
volume: number;

serialize(): Object;
}

interface UserMessageParams {
new(): UserMessageParams;
message: string;
Expand All @@ -482,6 +490,7 @@ declare namespace SendBird {
metaArrayKeys: Array<string>;
pushNotificationDeliveryOption: 'default' | 'suppress';
parentMessageId: number;
appleCriticalAlertOptions: AppleCriticalAlertOptions;
}
interface UserMessage extends BaseMessageInstance {
messageType: 'user';
Expand Down Expand Up @@ -525,6 +534,7 @@ declare namespace SendBird {
metaArrayKeys: Array<string>;
pushNotificationDeliveryOption: 'default' | 'suppress';
parentMessageId: number;
appleCriticalAlertOptions: AppleCriticalAlertOptions;
}
interface FileMessage extends BaseMessageInstance {
messageType: 'file';
Expand Down Expand Up @@ -1729,6 +1739,7 @@ declare namespace SendBird {
translationTargetLanguages: Array<string>;
errorMessage: string;
errorCode: number;
appleCriticalAlertOptions: AppleCriticalAlertOptions;

isGroupChannel(): boolean;
isOpenChannel(): boolean;
Expand Down Expand Up @@ -1783,6 +1794,7 @@ declare namespace SendBird {
min: number;
timezone: string;
scheduledDateTimeString: string;
appleCriticalAlertOptions: AppleCriticalAlertOptions;

setSchedule(year: number, month: number, day: number, hour: number, min: number, timezone: string): void;
}
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.0.147",
"version": "3.0.148",
"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.0.147",
"version": "3.0.148",
"description": "Sendbird JavaScript SDK",
"main": "SendBird.min.js",
"dependencies": {
Expand Down

0 comments on commit 0c52d8c

Please sign in to comment.