This repository has been archived by the owner on Aug 3, 2020. It is now read-only.
Releases: momocow/node-cq-websocket
Releases · momocow/node-cq-websocket
v2.1.1
v2.1.0
v2.0.2
v2.0.1
v2.0.0
2.0.0 (2018-11-02)
Bug Fixes
- fix CQTag #equals() performs not as expected (0d1bbbd), closes #17 #34
- fix error JSON representative of CQText (732522d)
- fix string messages without CQTags are not parsed as a CQText instance. (0f345cf), closes #17
- replace CQEvent #cancel() with #stopPropagation() (1ad3408), closes #29
Code Refactoring
- expose CQWebSocket as default export (f36e864), closes #21 #23
- remove "event" event in favour of "notice" event (405b48c), closes #29
- remove CQEvent instance method "cancel()" (c8923d8), closes #29
- remove CQWebSocket instance method "isConnected()" (c38b1cf), closes #29
- rename constructor option "access_token" to "accessToken" (6caedb6), closes #29
- use CQWebSocket instead of CQWebsocket for public API (0b81b53), closes #22
- browser: expose the API under global variable "CQWebSocketSDK". (db37019), closes #23
Features
- add CQ tags and add the 3rd parameter of message events to be a list of parsed tags (06e38a7), closes #17 #34
- CQ tags parsing now is based on "message" field instead of "raw_message" field (e6b4992)
- support mixing string, CQTag and CQHTTPMessage in array-type messages. (777281e)
- support to append string when the CQEvent message is in array type (b3091da)
Tests
BREAKING CHANGES
- browser: global variable "CQWebSocketSDK" will retrieve the same structure of API as
require('cq-websocket') - all message events now receive a list of parsed tags as the 3rd parameter
- Option renaming from "access_token" to "accessToken"
- No more CQWebsocket => use CQWebSocket
- CQWebSocket is exposed as default export and a named export, "CQWebSocket".
- Use "[email protected]" instead of "message.discuss.@me" and
"[email protected]" instead of "message.group.@me" - Use CQEvent #stopPropagation() instead of #cancel().
- Use CQWebSocket #isReady() instead of #isConnected()
- No longer provide support for CQHTTP v3.x