easemob-websdk 4.9.2 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -10
- package/Easemob-chat.d.ts +3 -0
- package/Easemob-chat.js +1 -1
- package/contact/contact.js +1 -1
- package/group/group.js +1 -1
- package/localCache/localCache.js +1 -1
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/presence/presence.js +1 -1
- package/silent/silent.js +1 -1
- package/thread/thread.js +1 -1
- package/translation/translation.js +1 -1
- package/uniApp/Easemob-chat.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,37 @@
|
|
|
1
1
|
# Changes to easemob chat
|
|
2
2
|
|
|
3
|
+
## 4.10.0 (Oct 10, 2024)
|
|
4
|
+
|
|
5
|
+
### 新增特性
|
|
6
|
+
|
|
7
|
+
1. 聊天室修改公告时回调中增加公告内容, updateAnnouncement 事件中增加 announcement 字段,表示更新的公告
|
|
8
|
+
2. 增加错误码 :
|
|
9
|
+
WEBIM_USER_ALREADY_LOGIN 208 用户已登录
|
|
10
|
+
MESSAGE_SEND_TIMEOUT 512 发送消息超时
|
|
11
|
+
3. 增加 onShow 方法, 小程序或 uniapp 在 onShow 生命周期里执行这个方法, 可以优化重连速度
|
|
12
|
+
|
|
13
|
+
### 优化
|
|
14
|
+
|
|
15
|
+
登录方法优化, 调整 open 方法执行 open().then 时机, 调整为在连接鉴权成功之后触发, 在 open().then 中就可以发送消息, 不用再等 onConnected 事件, 同时鉴权失败等登录的错误会在 open.catch 中抛出
|
|
16
|
+
|
|
3
17
|
# 4.9.2 (Sep 19, 2024)
|
|
4
18
|
|
|
5
|
-
-
|
|
19
|
+
- feat: `removeHistoryMessages` support chatRoom.
|
|
6
20
|
|
|
7
21
|
# 4.9.1 (Sep 5, 2024)
|
|
8
22
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
23
|
+
- feat: support uni-push plugin.
|
|
24
|
+
- chore: fix type errors and debug logs.
|
|
11
25
|
|
|
12
26
|
# 4.9.0 (August 29, 2024)
|
|
13
27
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
28
|
+
- Add `onOfflineMessageSyncStart` and `onOfflineMessageSyncFinish` event.
|
|
29
|
+
- Add multi device events `setSilentModeForConversation` and `removeSilentModeForConversation`.
|
|
30
|
+
- Fix `ChatroomEvent` and `GroupEvent` missed `reason` field.
|
|
31
|
+
- PIN message support single chat.
|
|
32
|
+
- Add callback error when get DNS failed
|
|
33
|
+
- Remove redundant judgment at reconnecting.
|
|
34
|
+
- chore: fix type errors and debug logs
|
|
21
35
|
|
|
22
36
|
# 4.8.1 (Jul 15, 2024)
|
|
23
37
|
|
package/Easemob-chat.d.ts
CHANGED
|
@@ -5634,6 +5634,9 @@ export declare namespace EasemobChat {
|
|
|
5634
5634
|
pageSize: number;
|
|
5635
5635
|
}
|
|
5636
5636
|
): Promise<AsyncResult<JoinedChatRoomsResult>>;
|
|
5637
|
+
|
|
5638
|
+
/** Execute this method during the onShow declaration cycle of the application, which will actively detect whether the current connection is valid. */
|
|
5639
|
+
onShow(): void;
|
|
5637
5640
|
}
|
|
5638
5641
|
|
|
5639
5642
|
// ----- for EventHandler ------
|