Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Latest commit

 

History

History
92 lines (52 loc) · 5.62 KB

CHANGELOG.md

File metadata and controls

92 lines (52 loc) · 5.62 KB

CQWebSocket

2.1.1 (2020-03-23)

Bug Fixes

  • Fix typing (#87) and upgrade dependencies. (bbb54ad)

2.1.0 (2020-01-31)

Features

2.0.2 (2019-07-23)

Bug Fixes

  • types: Fix definitions of meta events. (ca1a731), closes #77

2.0.1 (2019-04-21)

Bug Fixes

  • pack: Fix missing .d.ts in the NPM package. (a6bf75b)

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

  • remove tests for event "message.discuss.@me" and "message.group.@me" (0698300), closes #29

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

1.8.1 (2018-10-24)

Bug Fixes

  • do not include version in filename of browser bundle (374f378), closes #36

1.8.0 (2018-10-22)

Features

  • add meta events: lifecycle and heartbeat. (bd8b9f9), closes #35