File tree Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 10
10
* ` grunt test `
11
11
* ` grunt release `
12
12
* 提交代码合并到 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 协作者身份)
Original file line number Diff line number Diff line change 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
2
15
* 创建 Room 更简单,支持只传入 CallBack,参数变为可选
3
16
* 修改初始化 Room 属性为 attr(原来是 data 字段)
4
17
* 初始化属性在服务端 Conversation 表中结构修改,与之前版本不兼容,存储在 attr 字段内
5
18
* 增加创建 Room 的名称,提供一个默认字段 name
6
19
* 防止同一个 realtime 实例可能产生两个 websocket 实例
7
20
8
- # 2.0.7
21
+ ## 2.0.7
9
22
* 修正创建暂态聊天室失败的问题
10
23
* 兼容 IE9
11
24
* 对在 open 之前调用方法增加友好报错
12
25
13
- # 2.0.6
26
+ ## 2.0.6
14
27
* 支持自定义的 JSON,并兼容其他端 SDK
15
28
* close 事件中可以获取 websocket 关闭的 event 对象
16
29
17
- # 2.0.5
30
+ ## 2.0.5
18
31
* 修正获取 conversation 历史消息的 bug,并且支持多端通信协议
19
32
* 修正 tool.ajax 有时不会返回错误信息的 bug
20
33
21
- # 2.0.4
34
+ ## 2.0.4
22
35
* 修正关闭 encodeHTML 时多媒体格式没有对 text 赋值
23
36
24
- # 2.0.3
37
+ ## 2.0.3
25
38
* 提供兼容 IE8+ 低版本浏览器的插件方式
26
39
* 修改获取已有 conversation id 没有判断在服务器端是否存在
27
40
* 提供获取 conversation 初始化属性的方式
28
41
* 开放 secure 选项,用户可以手动关闭 SSL 协议
29
42
30
- # 2.0.2
43
+ ## 2.0.2
31
44
* 修复与 iOS 及 Android 端 SDK 通信的 bug
32
45
* 创建 conversation 成功后,回调中可以直接取到 convObject
33
46
* 修正 convObject.update 方法的 bug
34
47
* 补充对接受的消息做 HTML 转义处理,SDK 层面支持 XSS 防御
35
48
36
- # 2.0.1
49
+ ## 2.0.1
37
50
* 修正事件中心中的 bug
38
51
* 增加 realtimeObject.ping 判断用户在线状态
39
52
* 修正调用 close() 方法的 bug
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " js -realtime-sdk " ,
2
+ "name" : " leancloud -realtime" ,
3
3
"version" : " 2.2.0" ,
4
4
"description" : " LeanCloud Realtime Message JavaScript SDK" ,
5
5
"main" : " src/realtime.js" ,
You can’t perform that action at this time.
0 commit comments