easemob-websdk 4.8.0 → 4.8.1

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 CHANGED
@@ -1,61 +1,70 @@
1
1
  # Changes to easemob chat
2
2
 
3
+ # 4.8.1 (Jul 15, 2024)
4
+
5
+ - Fix uploading logs takes too much time
6
+
7
+ # 4.8.1-beta (Jul 2, 2024)
8
+
9
+ - Fix the mini program is not able to report logs
10
+ - Fix not export types issue
11
+
3
12
  # 4.8.0 (June 28, 2024)
4
13
 
5
- - `onDisconnected` event add callback params to give the disconnected reason.
6
- - Adds allow extension field to be carried when the device logs in and passes them to the kicked device.
7
- - `setLoginInfoCustomExt` Set the device's login extension field.
8
- - `onDisconnected` In a multi-device login scenario, if the current device is kicked offline by the newly logged-in device, the event received by the kicked device will carry the extended information of the new device.
9
- - Adds `Connection Parameters#isFixedDeviceId` initialization params, default is `true`, use fixed deviceId, precede version SDK is used random deviceId.
10
- - `destroyChatRoom` supports the chatroom owner to destroy a chatroom.
11
- - `joinChatRoom` supports passing in extension field and whether to exit other joined chatrooms when joining a chatroom.
12
- - Adds report SDK log feature.
13
- - Increase the timeout period for SDK to connect to the server.
14
- - Fix on uniapp vue3 platform SDK reconnect failed.
14
+ - `onDisconnected` event add callback params to give the disconnected reason.
15
+ - Adds allow extension field to be carried when the device logs in and passes them to the kicked device.
16
+ - `setLoginInfoCustomExt` Set the device's login extension field.
17
+ - `onDisconnected` In a multi-device login scenario, if the current device is kicked offline by the newly logged-in device, the event received by the kicked device will carry the extended information of the new device.
18
+ - Adds `Connection Parameters#isFixedDeviceId` initialization params, default is `true`, use fixed deviceId, precede version SDK is used random deviceId.
19
+ - `destroyChatRoom` supports the chatroom owner to destroy a chatroom.
20
+ - `joinChatRoom` supports passing in extension field and whether to exit other joined chatrooms when joining a chatroom.
21
+ - Adds report SDK log feature.
22
+ - Increase the timeout period for SDK to connect to the server.
23
+ - Fix on uniapp vue3 platform SDK reconnect failed.
15
24
 
16
25
  # 4.7.0 (April 26, 2024)
17
26
 
18
- - `recallMessage` methods add custom field `ext` params.
19
- - Adds `getJoinedChatRooms` method to get the current user has joined chat room list.
20
- - Adds `logger.setConsoleLogVisibility` method to sets whether to output logs to the console.
21
- - Fix `allowGroupAck` status error
27
+ - `recallMessage` methods add custom field `ext` params.
28
+ - Adds `getJoinedChatRooms` method to get the current user has joined chat room list.
29
+ - Adds `logger.setConsoleLogVisibility` method to sets whether to output logs to the console.
30
+ - Fix `allowGroupAck` status error
22
31
 
23
32
  # 4.6.0 (April 2, 2024)
24
33
 
25
- - Adds pin message feature.
26
- - pinMessage
27
- - unpinMessage
28
- - getServerPinnedMessages
29
- - Adds `onMessagePinEvent` callback to handle the message pin event.
30
- - `onModifiedMessage` support custom message.
31
- - `getHistoryMessages` support get chat room history message.
32
- - Support custom chat room ID.
33
- - Optimize token login failed error code for make the reason more clearly.
34
- - Fix the message field `onlineState` status error.
34
+ - Adds pin message feature.
35
+ - pinMessage
36
+ - unpinMessage
37
+ - getServerPinnedMessages
38
+ - Adds `onMessagePinEvent` callback to handle the message pin event.
39
+ - `onModifiedMessage` support custom message.
40
+ - `getHistoryMessages` support get chat room history message.
41
+ - Support custom chat room ID.
42
+ - Optimize token login failed error code for make the reason more clearly.
43
+ - Fix the message field `onlineState` status error.
35
44
 
36
45
  # 4.5.1 (Feb 21, 2024)
37
46
 
38
- - Format the attachment file url.
39
- - Fixed bug when UniApp run ios platform send receiverList msg
47
+ - Format the attachment file url.
48
+ - Fixed bug when UniApp run ios platform send receiverList msg
40
49
 
41
50
  # 4.5.0 (Jan 30, 2024)
42
51
 
43
52
  - The member absence and presence events of chat rooms and groups have added a `memberCount` field
44
53
  - Adds the `deleteAllMessagesAndConversations` methods, which can clear the chat history of the current user, including messages and conversations
45
54
  - Adds the getSelfIdsOnOtherPlatform method, which can get a list of login IDs of the current user on other login devices, and realize sending messages to specified devices
46
- - Removed unnecessary unique fields from the Web local database
47
- - Format the customExts field of the most recent custom message in the conversation list
48
- - Fix the issue of pulling messages repeatedly
49
- - Fix the issue of abnormal message order in the `onMessage` callback
50
- - Fix the error of introducing the MiniCore plugin in vite electron
51
- - Fix the issue of abnormal API request parameters for `updateOwnUserInfo` after introducing the WeChat SDK in H5
55
+ - Removed unnecessary unique fields from the Web local database
56
+ - Format the customExts field of the most recent custom message in the conversation list
57
+ - Fix the issue of pulling messages repeatedly
58
+ - Fix the issue of abnormal message order in the `onMessage` callback
59
+ - Fix the error of introducing the MiniCore plugin in vite electron
60
+ - Fix the issue of abnormal API request parameters for `updateOwnUserInfo` after introducing the WeChat SDK in H5
52
61
 
53
62
  # 4.4.0 (Dec 22, 2023)
54
63
 
55
64
  - Adds conversation Conversation Mark
56
- - addConversationMark
57
- - removeConversationMark
58
- - getServerConversationsByFilter
65
+ - addConversationMark
66
+ - removeConversationMark
67
+ - getServerConversationsByFilter
59
68
  - Adds Attach Slice Upload
60
69
  - Adds `onMessage` Event
61
70
  - Adds thumbnail to video message
@@ -71,21 +80,22 @@
71
80
  # 4.3.0 (Nov 13, 2023)
72
81
 
73
82
  - Adds contact API
74
- - setContactRemark
75
- - getAllContacts
76
- - getContactsWithCursor
83
+ - setContactRemark
84
+ - getAllContacts
85
+ - getContactsWithCursor
77
86
  - Adds chatRoom broadcast
78
87
  - Adds token expiration callback
79
88
 
80
89
  # 4.2.1 (SEP 26, 2023)
81
90
 
82
91
  - Adds LocalCache API
83
- - getLocalConversations
84
- - setLocalConversationCustomField
85
- - getLocalConversation
86
- - removeLocalConversation
87
- - clearConversationUnreadCount
92
+ - getLocalConversations
93
+ - setLocalConversationCustomField
94
+ - getLocalConversation
95
+ - removeLocalConversation
96
+ - clearConversationUnreadCount
88
97
  - onGroupEvent `joinPublicGroupDeclined` callback add the applicant userID
98
+
89
99
  # 4.2.0 (Jul 27, 2023)
90
100
 
91
101
  - Adds editing message after sent function
package/Easemob-chat.d.ts CHANGED
@@ -1559,6 +1559,8 @@ export declare namespace EasemobChat {
1559
1559
  private reconnect(): void;
1560
1560
  /** send message */
1561
1561
  send(params: MessageBody): Promise<SendMsgResult>;
1562
+ /** Set custom extensions for login information. When a multi-device login is kicked, the custom extension information will be passed to the kicked device. */
1563
+ setLoginInfoCustomExt(ext: string): void;
1562
1564
  /** Updates token. */
1563
1565
  renewToken(token: string): Promise<NewTokenResult>;
1564
1566