Skip to content

Commit 0c52d8c

Browse files
committed
v3.0.148
1 parent a1ddb32 commit 0c52d8c

File tree

6 files changed

+28
-10
lines changed

6 files changed

+28
-10
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v3.0.148(MAR 31, 2021)
4+
5+
- Added `AppleCriticalAlertOptions` interface.
6+
- Added `appleCriticalAlertOptions` in `BaseMessage`, `UserMessageParams`, `FileMessageParams`, `ScheduledUserMessage`, and `ScheduledUserMessageParams`.
7+
- Downgraded log level from `ERROR` to `DEBUG` for all internal API calls.
8+
39
## v3.0.147(MAR 24, 2021)
410

511
- Added `onChannelMemberCountChanged` and `onChannelParticipantCountChanged` in `ChannelHandler`.

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Or download the latest Chat SDK for JavaScript from the following link if you do
162162

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

165-
> **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.
165+
> **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.
166166
167167
```javascript
168168
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
@@ -325,10 +325,10 @@ The `sb.setErrorFirstCallback(false)` returns callbacks to their original parame
325325

326326
## Changelogs
327327

328-
## v3.0.147(MAR 24, 2021)
328+
## v3.0.148(MAR 31, 2021)
329329

330330
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).
331331

332-
- Added `onChannelMemberCountChanged` and `onChannelParticipantCountChanged` in `ChannelHandler`.
333-
- Changed `markAsDelivered` policy to remove rate limit timer.
334-
- Improved stability.
332+
- Added `AppleCriticalAlertOptions` interface.
333+
- Added `appleCriticalAlertOptions` in `BaseMessage`, `UserMessageParams`, `FileMessageParams`, `ScheduledUserMessage`, and `ScheduledUserMessageParams`.
334+
- Downgraded log level from `ERROR` to `DEBUG` for all internal API calls.

SendBird.d.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Type Definitions for Sendbird SDK v3.0.147
2+
* Type Definitions for Sendbird SDK v3.0.148
33
* homepage: https://sendbird.com/
44
* git: https://github.com/sendbird/Sendbird-SDK-JavaScript
55
*/
@@ -395,6 +395,7 @@ declare namespace SendBird {
395395
parentMessageText: string;
396396
threadInfo: ThreadInfo;
397397
ogMetaData: OGMetaData;
398+
appleCriticalAlertOptions: AppleCriticalAlertOptions;
398399

399400
isEqual(target: BaseMessageInstance): boolean;
400401
isIdentical(target: BaseMessageInstance): boolean;
@@ -462,6 +463,13 @@ declare namespace SendBird {
462463
detail: {};
463464
}
464465

466+
interface AppleCriticalAlertOptions {
467+
name: string;
468+
volume: number;
469+
470+
serialize(): Object;
471+
}
472+
465473
interface UserMessageParams {
466474
new(): UserMessageParams;
467475
message: string;
@@ -482,6 +490,7 @@ declare namespace SendBird {
482490
metaArrayKeys: Array<string>;
483491
pushNotificationDeliveryOption: 'default' | 'suppress';
484492
parentMessageId: number;
493+
appleCriticalAlertOptions: AppleCriticalAlertOptions;
485494
}
486495
interface UserMessage extends BaseMessageInstance {
487496
messageType: 'user';
@@ -525,6 +534,7 @@ declare namespace SendBird {
525534
metaArrayKeys: Array<string>;
526535
pushNotificationDeliveryOption: 'default' | 'suppress';
527536
parentMessageId: number;
537+
appleCriticalAlertOptions: AppleCriticalAlertOptions;
528538
}
529539
interface FileMessage extends BaseMessageInstance {
530540
messageType: 'file';
@@ -1729,6 +1739,7 @@ declare namespace SendBird {
17291739
translationTargetLanguages: Array<string>;
17301740
errorMessage: string;
17311741
errorCode: number;
1742+
appleCriticalAlertOptions: AppleCriticalAlertOptions;
17321743

17331744
isGroupChannel(): boolean;
17341745
isOpenChannel(): boolean;
@@ -1783,6 +1794,7 @@ declare namespace SendBird {
17831794
min: number;
17841795
timezone: string;
17851796
scheduledDateTimeString: string;
1797+
appleCriticalAlertOptions: AppleCriticalAlertOptions;
17861798

17871799
setSchedule(year: number, month: number, day: number, hour: number, min: number, timezone: string): void;
17881800
}

SendBird.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.147",
3+
"version": "3.0.148",
44
"authors": [
55
"Sendbird <[email protected]>"
66
],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.147",
3+
"version": "3.0.148",
44
"description": "Sendbird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {

0 commit comments

Comments
 (0)