# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.3.21](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.20...v1.3.21) (2020-04-01)


### Features

* add system notice ([02b704e](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/02b704e))



### [1.3.20](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.19...v1.3.20) (2020-03-25)


### Features

* update proto file and header version ([b0a453b](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/b0a453b))



### [1.3.19](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.18...v1.3.19) (2020-03-20)


### Features

* **message.ts:** send message support file type ([b5d5101](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/b5d5101))



### [1.3.18](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.17...v1.3.18) (2020-03-04)


### Features

* update IM.BaseDefine.proto ([db12304](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/db12304))



### [1.3.17](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.16...v1.3.17) (2020-02-27)


### Bug Fixes

* update protos.json ([199ec6e](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/199ec6e))


### Features

* **IM.BaseDefine.proto:** add errorCode ([3f099eb](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/3f099eb))



### [1.3.16](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.15...v1.3.16) (2020-02-21)


### Bug Fixes

* sendMessage add sessionType ([2008ba3](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/2008ba3))
* **message.ts:** onMessageGet return sessionType ([24f1f9e](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/24f1f9e))



### [1.3.15](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.14...v1.3.15) (2020-02-20)


### Features

* **defaults.ts:** update version 3 -> 4 ([0ee41eb](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/0ee41eb))



### [1.3.14](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.13...v1.3.14) (2020-02-17)


### Features

* add sessionType param ([591c037](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/591c037))



### [1.3.13](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.12...v1.3.13) (2020-02-17)


### Features

* **IM.Message.proto:** update proto ([847c2c9](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/847c2c9))
* **message.ts:** add sessionType param ([c8cb85c](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/c8cb85c))



### [1.3.12](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.11...v1.3.12) (2020-02-13)


### Features

* update protos.json ([c99745d](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/c99745d))
* **IM.BaseDefine.proto:** update ProtocolVersion ([3795566](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/3795566))



### [1.3.11](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.10...v1.3.11) (2020-02-12)


### Features

* **IM.BaseDefine.proto:** update sessionType ([aa46265](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/aa46265))



### [1.3.10](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.9...v1.3.10) (2020-02-12)


### Bug Fixes

* test spec ([31b01c3](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/31b01c3))


### Features

* update protos.json ([1650ace](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/1650ace))
* **IM.BaseDefine.proto:** update file ([439fe6f](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/439fe6f))



### [1.3.9](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.8...v1.3.9) (2019-10-31)


### Bug Fixes

* **IM.BaseDefine.proto:** update proto and header version ([4532a26](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/4532a26))



### [1.3.8](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.7...v1.3.8) (2019-10-17)


### Features

* update protos.json ([bc61913](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/bc61913))



### [1.3.7](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.6...v1.3.7) (2019-09-11)


### Bug Fixes

* onMsgDataReadNotify CID_MSG_READ_NOTIFY ([cf0a584](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/cf0a584))



### [1.3.6](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.5...v1.3.6) (2019-09-11)


### Features

* 接收到已读消息的通知触发事件message:read ([d75411b](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/d75411b))



### [1.3.5](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.4...v1.3.5) (2019-09-10)


### Bug Fixes

* 处理消息已读通知 ([b2958b6](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/b2958b6))
* 对于未知的操作ID不再抛出错误，让代码继续执行 ([6b00d12](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/6b00d12))



### [1.3.4](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.3...v1.3.4) (2019-09-06)


### Features

* 增加logout请求 ([a34ac02](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/a34ac02))
* 暴露单独获取未读信息和数量的接口 getUnreadMsgCnt ([5af6489](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/5af6489))



### [1.3.3](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.2...v1.3.3) (2019-09-04)


### Bug Fixes

* PING_INTERVAL to 20 sec ([f0d288e](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/f0d288e))
* remove globalThis ([a555c14](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/a555c14))



### [1.3.2](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.1...v1.3.2) (2019-08-23)


### Bug Fixes

* move encode and decode to helper ([a6d8aee](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/a6d8aee))
* move examples to chat-demo ([2863288](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/2863288))
* test spec ([fefcc0b](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/fefcc0b))
* use eventemitter3 to support for electron and browser ([2227218](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/2227218))
* webpack plugin warning ([71ccfca](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/71ccfca))



### [1.3.1](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.3.0...v1.3.1) (2019-08-22)


### Bug Fixes

* declare types ([8537b3b](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/8537b3b))
* declare types ([2b51f52](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/2b51f52))
* use api-extractor to bundle d.ts ([adda4b8](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/adda4b8))



## [1.3.0](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.2.1...v1.3.0) (2019-08-20)


### Bug Fixes

* declare types ([fa2d135](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/fa2d135))
* platform access bug ([f12af9e](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/f12af9e))



### [1.2.1](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.2.0...v1.2.1) (2019-08-20)


### Bug Fixes

* build output path ([35f66e5](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/35f66e5))
* electron support ([3e57db5](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/3e57db5))
* login and init logic ([58eed22](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/58eed22))
* MessageList scrollToBottom ([13be602](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/13be602))


### Features

* add support for electron ([eab1950](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/eab1950))
* add ttheader support for electron ([f2e7d31](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/f2e7d31))
* electron 采用 node 原生 events 库，支持主线程和UI渲染线程的通信 ([9e6ff63](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/9e6ff63))



## [1.2.0](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.1.0...v1.2.0) (2019-08-12)


### Bug Fixes

* handle error code -160 ([812888d](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/812888d))
* missing cross-env ([03375a3](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/03375a3))
* re auth logic ([f563340](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/f563340))
* remove session bug ([200eaee](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/200eaee))
* Typing ([fb04e7f](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/fb04e7f))
* update latestMsgId when receive new message ([f0367af](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/f0367af))
* update session unReadCnt ([276de2d](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/276de2d))


### Features

* add ParserObject ([bafb260](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/bafb260))
* add TeamTalkMockServer for client spec ([86a5f7c](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/86a5f7c))
* add test spec ([d3136a3](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/d3136a3))
* add test spec for TTHeader ([af7c919](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/af7c919))
* clientStat ([4bf233e](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/4bf233e))
* get login user info ([bb44b23](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/bb44b23))
* get user info from api ([2ab2cae](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/2ab2cae))
* imtoken 过期，重新获取 ([4f94d45](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/4f94d45))
* loading more messages ([90c3f45](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/90c3f45))
* login and get the socket url ([de8ace0](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/de8ace0))
* login and imtoken ([1efff40](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/1efff40))
* mark message as read ([021057e](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/021057e))
* open new chat by user ID ([197a05b](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/197a05b))
* Receive typing event ([97207ed](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/97207ed))
* Send Start Typing and Stop Typing ([1e99c6b](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/1e99c6b))
* support custom message type = 3 (good card) ([3cd7553](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/3cd7553))
* support remove session ([45cd745](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/45cd745))
* support send image ([f3c8180](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/f3c8180))
* support user status ([4a51cc7](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/4a51cc7))
* use ArrayBuffer and DataView in browser instead of Buffer ([e8bc62b](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/e8bc62b))
* use components done ([777503c](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/777503c))
* utils spec done ([70bef2e](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/70bef2e))



## [1.1.0](https://git.zhaogangren.com/Front/teamtalk-web-client/compare/v1.0.0...v1.1.0) (2019-07-12)


### Bug Fixes

* Auto scroll to bottom when message has been loaded ([37f7843](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/37f7843))
* both isCreated and connected ([59170dc](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/59170dc))
* build ([81f2333](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/81f2333))
* change imtoken ([b0aa42f](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/b0aa42f))
* isCreated to connected ([832a032](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/832a032))
* merge actions/message and messages ([e9ae28c](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/e9ae28c))
* move header.ts to utils ([6148311](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/6148311))
* send message with enter ([c1e7dd5](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/c1e7dd5))
* sendHeartBeat ([16b6f3a](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/16b6f3a))


### Features

* add ping and pong event ([463424a](https://git.zhaogangren.com/Front/teamtalk-web-client/commit/463424a))



## 1.0.0 (2019-07-10)


### Bug Fixes

* autoReconnect bug ([b1cbef2](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/b1cbef2))
* make heart beat work ([27f3b98](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/27f3b98))
* message list ([b58eb43](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/b58eb43))
* send message ([50df001](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/50df001))
* send message logic ([42f8434](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/42f8434))
* send messagfe ([691c565](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/691c565))
* session list ([470309e](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/470309e))
* use eventemitter3 ([b723ad1](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/b723ad1))
* use preact in examples ([b306659](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/b306659))


### Features

* add debug ([08d8929](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/08d8929))
* add debug log ([2cd2b23](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/2cd2b23))
* add proto file ([06479db](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/06479db))
* add TeamTalkWebClient ([c8aaece](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/c8aaece))
* add TTHeader ([2075f2e](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/2075f2e))
* aesEncryptText and aesDecryptText ([3de1ea7](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/3de1ea7))
* get buddy list and userinfo ([51d4030](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/51d4030))
* get message list ([09daa7e](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/09daa7e))
* login done ([37f5270](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/37f5270))
* send heart beat ([bbdcf71](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/bbdcf71))
* sessions and messages ([b0d7d9b](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/b0d7d9b))
* use spectre.css to style chat window ([9e47298](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/9e47298))
* use webpack ([9b12254](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/9b12254))
* use webpack dev ([dc360d7](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/dc360d7))
* **WIP:** add all pbBodyParser ([8d8cbbb](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/8d8cbbb))
* **WIP:** add encode and decode parsers ([df57677](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/df57677))
* **WIP:** add Message type ([18e459b](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/18e459b))
* **WIP:** add proto parses ([5d9ec67](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/5d9ec67))
* **WIP:** add some define ([73ea3f4](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/73ea3f4))
* **WIP:** doLogin action ([07d665b](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/07d665b))
* **WIP:** msgList ([ed8ab57](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/ed8ab57))
* **WIP:** socket send ([715582d](https://git.zhaogangren.com/Front/kiwi-chat-api/commit/715582d))
