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

Releases: momocow/node-cq-websocket

v2.1.1

23 Mar 06:19
Compare
Choose a tag to compare

2.1.1 (2020-03-23)

Bug Fixes

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

v2.1.0

31 Jan 07:30
Compare
Choose a tag to compare

2.1.0 (2020-01-31)

Features

v2.0.2

23 Jul 07:10
Compare
Choose a tag to compare

2.0.2 (2019-07-23)

Bug Fixes

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

v2.0.1

21 Apr 03:48
Compare
Choose a tag to compare

2.0.1 (2019-04-21)

Bug Fixes

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

v2.0.0

02 Nov 10:11
Compare
Choose a tag to compare

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

v1.8.1

24 Oct 10:10
Compare
Choose a tag to compare

1.8.1 (2018-10-24)

Bug Fixes

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

v1.8.0

22 Oct 18:23
Compare
Choose a tag to compare

1.8.0 (2018-10-22)

Features

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

v1.7.0

15 Oct 03:54
ddc8c81
Compare
Choose a tag to compare

1.7.0 (2018-10-15)

✨ Features

  • add new option: "protocol", ensure that base url contains a protocol field (ae1881d), closes #32