Skip to content

Commit 56b3212

Browse files
committed
Merge pull request #138 from leeyeh/master
Release v2.2.0
2 parents f94bf00 + 5c86184 commit 56b3212

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,5 @@
1010
* `grunt test`
1111
* `grunt release`
1212
* 提交代码合并到 master
13-
* Github 生成 release 包
14-
* 发布到 npm 与 bower
15-
16-
```
17-
bower register leancloud-realtime [email protected]:leancloud/js-realtime-sdk.git
18-
```
13+
* Github 生成 release 包(for bower)
14+
* 发布到 npm(`npm publish`,需 npm 协作者身份)

changelog.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,52 @@
1-
# 2.1.0
1+
## 2.2.0
2+
### Features
3+
* 支持 node 运行环境
4+
* 支持使用 browserify 打包
5+
* 优化了用户使用过程中的流量消耗 (2c0f88cc23f5ed29c0a84e9af5e5576ae4c74193)
6+
* RealtimeObject 实例暴露了 clientId 字段 (05a6f2668aad1576ff7324004733efe62f174d5f)
7+
8+
### Breaking Changes
9+
* 由于增加了编译环节,现在在浏览器中直接使用时应该加载 dist/AV.realtime.js(之前是直接使用 src/AV.realtime.js)
10+
11+
### Bug Fixes
12+
* 切换到了 leancloud.cn 域名,解决某些地区的劫持问题 (d0cd5f934a1c25f61504edb1e180448b61634fb5)
13+
14+
## 2.1.0
215
* 创建 Room 更简单,支持只传入 CallBack,参数变为可选
316
* 修改初始化 Room 属性为 attr(原来是 data 字段)
417
* 初始化属性在服务端 Conversation 表中结构修改,与之前版本不兼容,存储在 attr 字段内
518
* 增加创建 Room 的名称,提供一个默认字段 name
619
* 防止同一个 realtime 实例可能产生两个 websocket 实例
720

8-
# 2.0.7
21+
## 2.0.7
922
* 修正创建暂态聊天室失败的问题
1023
* 兼容 IE9
1124
* 对在 open 之前调用方法增加友好报错
1225

13-
# 2.0.6
26+
## 2.0.6
1427
* 支持自定义的 JSON,并兼容其他端 SDK
1528
* close 事件中可以获取 websocket 关闭的 event 对象
1629

17-
# 2.0.5
30+
## 2.0.5
1831
* 修正获取 conversation 历史消息的 bug,并且支持多端通信协议
1932
* 修正 tool.ajax 有时不会返回错误信息的 bug
2033

21-
# 2.0.4
34+
## 2.0.4
2235
* 修正关闭 encodeHTML 时多媒体格式没有对 text 赋值
2336

24-
# 2.0.3
37+
## 2.0.3
2538
* 提供兼容 IE8+ 低版本浏览器的插件方式
2639
* 修改获取已有 conversation id 没有判断在服务器端是否存在
2740
* 提供获取 conversation 初始化属性的方式
2841
* 开放 secure 选项,用户可以手动关闭 SSL 协议
2942

30-
# 2.0.2
43+
## 2.0.2
3144
* 修复与 iOS 及 Android 端 SDK 通信的 bug
3245
* 创建 conversation 成功后,回调中可以直接取到 convObject
3346
* 修正 convObject.update 方法的 bug
3447
* 补充对接受的消息做 HTML 转义处理,SDK 层面支持 XSS 防御
3548

36-
# 2.0.1
49+
## 2.0.1
3750
* 修正事件中心中的 bug
3851
* 增加 realtimeObject.ping 判断用户在线状态
3952
* 修正调用 close() 方法的 bug

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "js-realtime-sdk",
2+
"name": "leancloud-realtime",
33
"version": "2.2.0",
44
"description": "LeanCloud Realtime Message JavaScript SDK",
55
"main": "src/realtime.js",

0 commit comments

Comments
 (0)