Skip to content

Commit d3fb481

Browse files
committed
v3.0.113
1 parent 335d233 commit d3fb481

File tree

6 files changed

+586
-468
lines changed

6 files changed

+586
-468
lines changed

CHANGELOG.md

Lines changed: 537 additions & 406 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 35 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,61 @@
1-
[![npm](https://img.shields.io/npm/v/sendbird.svg?style=popout&colorB=red)](https://www.npmjs.com/package/sendbird)
2-
3-
SendBird JavaScript SDK
4-
===========
5-
6-
[SendBird](https://sendbird.com) provides the chat API and SDK for your app enabling real-time communication among your users.
1+
[![npm](https://img.shields.io/npm/v/sendbird.svg?style=popout&colorB=red)](https://www.npmjs.com/package/sendbird)
72

3+
# SendBird JavaScript SDK
84

9-
# Getting Started
5+
[SendBird](https://sendbird.com) provides the chat API and SDK for your app enabling real-time communication among your users.
106

11-
[Bower](http://bower.io) package for [SendBird.com](https://sendbird.com) JavaScript SDK
7+
# Getting Started
128

13-
bower install sendbird
9+
[Bower](http://bower.io) package for [SendBird.com](https://sendbird.com) JavaScript SDK
1410

11+
bower install sendbird
1512

16-
[npm](https://www.npmjs.com/package/sendbird) module for [SendBird.com](https://sendbird.com) JavaScript SDK
13+
[npm](https://www.npmjs.com/package/sendbird) module for [SendBird.com](https://sendbird.com) JavaScript SDK
1714

18-
npm install sendbird --save
15+
npm install sendbird --save
1916

17+
[download](https://github.com/sendbird/SendBird-SDK-JavaScript) for [SendBird.com](https://sendbird.com) JavaScript SDK
2018

21-
[download](https://github.com/sendbird/SendBird-SDK-JavaScript) for [SendBird.com](https://sendbird.com) JavaScript SDK
19+
# TypeScript
2220

21+
Install via NPM and import like below in your TypeScript file:
2322

24-
# TypeScript
25-
Install via NPM and import like below in your TypeScript file:
26-
```javascript
27-
import * as SendBird from 'sendbird';
28-
var sb = new SendBird({'appId': 'APP_ID'});
23+
```javascript
24+
import * as SendBird from "sendbird";
25+
var sb = new SendBird({ appId: "APP_ID" });
2926
// do something...
30-
```
31-
If you have trouble importing `SendBird`, please check your `tsconfig.json` file and change the value of `"allowSyntheticDefaultImports"` to `true` in `compilerOptions`.
27+
```
28+
29+
If you have trouble importing `SendBird`, please check your `tsconfig.json` file and change the value of `"allowSyntheticDefaultImports"` to `true` in `compilerOptions`.
3230

31+
# [Sample](https://github.com/sendbird/SendBird-JavaScript)
32+
33+
- [Basic Sample](https://sample.sendbird.com/basic) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-sample)
34+
- [Widget Sample](https://sample.sendbird.com/widget) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-widget)
35+
- [LiveChat Sample](https://sample.sendbird.com/livechat) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-live-chat)
3336

34-
# [Sample](https://github.com/sendbird/SendBird-JavaScript)
3537

36-
* [Basic Sample](https://sample.sendbird.com/basic) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-sample)
37-
* [Widget Sample](https://sample.sendbird.com/widget) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-widget)
38-
* [LiveChat Sample](https://sample.sendbird.com/livechat) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-live-chat)
39-
4038
## SyncManager
41-
`SyncManager` is a support add-on for [SendBird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). Major benefits of `SyncManager` are,
42-
43-
* Local cache integrated: store channel/message data in local storage for fast view loading.
44-
* Event-driven data handling: subscribe channel/message event like `insert`, `update`, `remove` at a single spot in order to apply data event to view.
45-
46-
Check out [Basic Sample with SyncManager](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-basic-sample-syncmanager) which is similar to [Basic Sample](https://sample.sendbird.com/basic) but `SyncManager` integrated. For more information about `SyncManager`, please refer to [SyncManager README](https://github.com/sendbird/sendbird-syncmanager-javascript/blob/master/README.md).
4739

40+
`SyncManager` is a support add-on for [SendBird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). Major benefits of `SyncManager` are,
4841

49-
# [Documentation](https://docs.sendbird.com/javascript)
42+
- Local cache integrated: store channel/message data in local storage for fast view loading.
43+
- Event-driven data handling: subscribe channel/message event like `insert`, `update`, `remove` at a single spot in order to apply data event to view.
5044

51-
## v3.0.112(NOV 8, 2019)
52-
If you want to check the record of other version, go to [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md).
45+
Check out [Basic Sample with SyncManager](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-basic-sample-syncmanager) which is similar to [Basic Sample](https://sample.sendbird.com/basic) but `SyncManager` integrated. For more information about `SyncManager`, please refer to [SyncManager README](https://github.com/sendbird/sendbird-syncmanager-javascript/blob/master/README.md).
46+
47+
# [Documentation](https://docs.sendbird.com/javascript)
5348

54-
* Added `updateCurrentUserInfoWithPreferredLanguages()` in `SendBird`.
55-
* When `preferredLanguages` is set, push notification message would get translated with target languages.
56-
* Added `preferredLanguages` in `User`.
57-
* Added `messageOffsetTimestamp` in `GroupChannel`.
58-
* Added `reqId` for the `BaseMessage`s which are fetched from API call.
59-
* Improved stability.
49+
## v3.0.113(DEC 4, 2019)
6050

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

62-
## [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md)
53+
- Added `errorCode` and `isResendable()` in `UserMessage` and `FileMessage`.
54+
- `resendUserMessage()` and `resendFileMessage()` work only when `isResendable()` is `true`.
55+
- Improved stability.
6356

57+
## [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md)
6458

6559
## License
66-
[SendBird License](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/LICENSE.md)
67-
6860

61+
[SendBird License](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/LICENSE.md)

SendBird.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Type Definitions for SendBird SDK v3.0.112
2+
* Type Definitions for SendBird SDK v3.0.113
33
* homepage: https://sendbird.com/
44
* git: https://github.com/sendbird/SendBird-SDK-JavaScript
55
*/
@@ -344,6 +344,8 @@ declare namespace SendBird {
344344
translations: Object;
345345
requestState: 'none' | 'pending' | 'failed' | 'succeeded';
346346
requestedMentionUserIds: Array<string>;
347+
errorCode: number;
348+
isResendable(): boolean;
347349
}
348350
interface UserMessageStatic {
349351
buildFromSerializedData(serializedObject: Object): UserMessage;
@@ -375,6 +377,8 @@ declare namespace SendBird {
375377
thumbnails: Array<ThumbnailObject>;
376378
requestState: 'none' | 'pending' | 'failed' | 'succeeded';
377379
requestedMentionUserIds: Array<string>;
380+
errorCode: number;
381+
isResendable(): boolean;
378382
}
379383
interface FileMessageStatic {
380384
buildFromSerializedData(serializedObject: Object): FileMessage;

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: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.112",
4-
"authors": [
5-
"SendBird <[email protected]>"
6-
],
3+
"version": "3.0.113",
4+
"authors": ["SendBird <[email protected]>"],
75
"homepage": "https://github.com/sendbird/SendBird-SDK-JavaScript",
86
"description": "SendBird JavaScript SDK",
97
"main": "SendBird.min.js",
108
"moduleType": [],
11-
"keywords": [
12-
"sendbird",
13-
"sendbird.com",
14-
"messaging",
15-
"chat",
16-
"js"
17-
],
9+
"keywords": ["sendbird", "sendbird.com", "messaging", "chat", "js"],
1810
"license": "LICENSE.md",
19-
"ignore": [
20-
"package.json"
21-
]
22-
}
11+
"ignore": ["package.json"]
12+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.112",
3+
"version": "3.0.113",
44
"description": "SendBird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {
@@ -29,4 +29,4 @@
2929
},
3030
"homepage": "https://sendbird.com",
3131
"typings": "SendBird.d.ts"
32-
}
32+
}

0 commit comments

Comments
 (0)