Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复内存泄露以及无限重连等问题 #43

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
2ed828d
fix: ws相关方法参数类型修复
zoswing Dec 24, 2021
04a7511
chore(release): 1.2.0
zoswing Dec 24, 2021
fe7c7cc
fix: err返回值兼容response.data不存在的情况
zoswing Dec 25, 2021
4179d07
docs: 更新readme
zoswing Dec 25, 2021
783fc9b
chore(release): 1.2.1
zoswing Dec 25, 2021
8a37ba5
chore: update ci config
zoswing Dec 28, 2021
a173125
补充完善SDK中intents类型
ggpcn Dec 24, 2021
55313f8
chore: pr被merge时推送消息
zoswing Dec 28, 2021
59f606c
docs: update readme
zoswing Dec 28, 2021
57c2912
chore(release): 1.2.2
zoswing Dec 28, 2021
cb0ae47
feat: 补充'身份组成员'接口传参方式
zoswing Dec 30, 2021
919ba02
chore(release): 1.3.0
zoswing Dec 30, 2021
b151628
feat: 异常返回带上traceid
zoswing Dec 31, 2021
495b5bc
chore(release): 1.3.1
zoswing Dec 31, 2021
400fc34
feat: 添加子频道身份组权限api(测试用例待补充)'
zoswing Jan 1, 2022
8936354
chore(release): 1.4.0
zoswing Jan 1, 2022
99b2c57
feat: 将类型定义导出到打包结果
zoswing Jan 1, 2022
4cdd59b
chore(release): 1.5.0
zoswing Jan 1, 2022
5d7e22e
feat: 重命名sdk
ostli Jan 5, 2022
8a4af45
chore(release): 2.0.0
ostli Jan 5, 2022
9d5e47b
feat: 添加禁言API
zoswing Jan 8, 2022
7ab3a8f
fix: 修复MuteAPI返回类型问题
zoswing Jan 8, 2022
69058d6
feat: sdk中添加撤回消息API
ggpcn Jan 6, 2022
00a5e56
chore(release): 2.1.0
zoswing Jan 8, 2022
dfd33c9
feat: 添加公告API
zoswing Jan 8, 2022
1bb6586
chore(release): 2.2.0
zoswing Jan 8, 2022
ad05262
feat: 添加日程API
zoswing Jan 11, 2022
e34769e
chore(release): 2.3.0
zoswing Jan 11, 2022
bbfc4e7
feat: 获取频道列表参数补齐
zoswing Jan 11, 2022
38ee7a4
feat: 扩展创建子频道参数,支持创建私密子频道
zoswing Jan 12, 2022
ffd2526
chore(release): 2.4.0
zoswing Jan 12, 2022
fdd8569
feat: 完善intents事件
zoswing Jan 12, 2022
796c848
chore(release): 2.5.0
zoswing Jan 12, 2022
5fae53a
refactor(license): 调整license
zoswing Jan 14, 2022
e37f4a4
chore(release): 2.5.1
zoswing Jan 14, 2022
7bd102e
docs(readme): 添加官方频道二维码
zoswing Jan 17, 2022
6965b88
fix: 修复example中的config拼写错误
zoswing Jan 19, 2022
68f6b03
feat: 完善私信API
zoswing Jan 20, 2022
a971f81
chore(release): 2.6.0
zoswing Jan 21, 2022
a77f7ce
perf: 优化示例
ostli Jan 22, 2022
b0e579a
perf: 优化一些细节
ostli Jan 22, 2022
a6339fa
feat: 支持沙箱
ostli Jan 22, 2022
3b42038
perf: 丰富example示例内容
ostli Jan 22, 2022
dbe2bce
fix: 接收数据类型为buffer时不被识别问题
ostli Jan 22, 2022
0398bff
feat: readme增加贡献者展示
ostli Jan 22, 2022
1670aa2
修复内存泄漏以及无限重连等问题
clover14580 Jan 22, 2022
2a2c31e
修复内存泄漏以及无限重连等问题
clover14580 Jan 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@


name: Issues Notifier
on:
issues:
types: [opened, edited, reopened, closed]
types: [opened, reopened]
jobs:
add-assigness:
runs-on: ubuntu-latest
Expand All @@ -12,6 +10,14 @@ jobs:
uses: jerray/work-weixin-notifier@v1.1.0
with:
key: ${{ secrets.weixin_bot_key }}
content: '**【NodeSDK】**`Issues`有更新(${{github.event.issue.state}}),请关注@ostwindli@shaohuizuo [${{ github.event.issue.html_url }}](${{ github.event.issue.html_url }})'
content: |
# 【NodeSDK】 <font color="warning">ISSUE</font> [ <font color="info">${{github.event.issue.state}}</font> ]

> Detail: [${{ github.event.issue.html_url }}](${{ github.event.issue.html_url }})
> Title: ${{ github.event.issue.title }}
> Body: ${{github.event.issue.body}}
> User: ${{ github.event.issue.user.login }}
> Attention: <@shaohuizuo> <@ostwindli>

type: markdown
status: ${{ job.status }}
27 changes: 0 additions & 27 deletions .github/workflows/node-ci.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/pr-merged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
pull_request:
branches: ['main']
types: [closed]

jobs:
pr-approved-notice:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Work Weixin Notifier
uses: jerray/work-weixin-notifier@v1.1.0
with:
key: ${{ secrets.weixin_bot_key }}
content: |
# 【NodeSDK】 <font color="warning">PR</font> [ <font color="info">merged</font> ]

> 标题: ${{ github.event.pull_request.title }}
> 合并人: ${{ github.event.pull_request.merged_by.login }}

> 详情: [${{github.event.pull_request.html_url}}](${{github.event.pull_request.html_url}})
> 请关注: <@shaohuizuo> <@ostwindli>

type: markdown
status: ${{ job.status }}
44 changes: 44 additions & 0 deletions .github/workflows/pr-open-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PR Check & Notifier
on:
pull_request:
branches: [main]
types: [opened, edited, reopened, synchronize]

jobs:
add-assigness:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: wagoid/commitlint-github-action@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run lint

- name: Work Weixin Notifier
uses: jerray/work-weixin-notifier@v1.1.0
with:
key: ${{ secrets.weixin_bot_key }}
content: |
# 【NodeSDK】 <font color="warning">PR</font> [ <font color="info">${{github.event.pull_request.state}}</font> ]

> 标题: ${{ github.event.pull_request.title }}
> 发起人: ${{ github.event.pull_request.user.login }}

> 详情: [${{github.event.pull_request.html_url}}](${{github.event.pull_request.html_url}})
> 请关注: <@shaohuizuo> <@ostwindli>

type: markdown
status: ${{ job.status }}
17 changes: 0 additions & 17 deletions .github/workflows/pr.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ typings
es
lib
test-config
package-lock.json
example/config.json
Empty file modified .husky/commit-msg
100755 → 100644
Empty file.
Empty file modified .husky/pre-commit
100755 → 100644
Empty file.
16 changes: 16 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "refactor",
"section": "Refactors"
}
]
}
115 changes: 110 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,117 @@

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.1.2](https://github.com/tencent-connect/bot-node-sdk/compare/v1.1.0...v1.1.2) (2021-12-22)
## [2.6.0](https://github.com/tencent-connect/bot-node-sdk/compare/v2.5.1...v2.6.0) (2022-01-21)


### Features

* 完善私信API ([68f6b03](https://github.com/tencent-connect/bot-node-sdk/commit/68f6b03af0cdf65b3afe91832f81854a52f03e3f))


### Bug Fixes

* 修复example中的config拼写错误 ([6965b88](https://github.com/tencent-connect/bot-node-sdk/commit/6965b88024acc8431c71b0c5944baf4fd67b3c1a))

### [2.5.1](https://github.com/tencent-connect/bot-node-sdk/compare/v2.5.0...v2.5.1) (2022-01-14)


### Refactors

* **license:** 调整license ([5fae53a](https://github.com/tencent-connect/bot-node-sdk/commit/5fae53a8a13b89c01d926c7dd06a79c738864ab9))

## [2.5.0](https://github.com/tencent-connect/bot-node-sdk/compare/v2.4.0...v2.5.0) (2022-01-12)

### Features

* 完善intents事件 ([fdd8569](https://github.com/tencent-connect/bot-node-sdk/commit/fdd8569ab3c7256ceb0125f62a60f45544f3f1ac))

## [2.4.0](https://github.com/tencent-connect/bot-node-sdk/compare/v2.3.0...v2.4.0) (2022-01-12)

### Features

* 获取频道列表参数补齐 ([bbfc4e7](https://github.com/tencent-connect/bot-node-sdk/commit/bbfc4e72c9766a1487089cfda4f0897dbb53eb08))
* 扩展创建子频道参数,支持创建私密子频道 ([38ee7a4](https://github.com/tencent-connect/bot-node-sdk/commit/38ee7a42237d0deb7ae70a8ca2aeb2d826fe8d16))

## [2.3.0](https://github.com/tencent-connect/bot-node-sdk/compare/v2.2.0...v2.3.0) (2022-01-11)

### Features

* 添加日程API ([ad05262](https://github.com/tencent-connect/bot-node-sdk/commit/ad05262947b045c93dd68502f7f74c0c0bf7d478))

## [2.2.0](https://github.com/tencent-connect/bot-node-sdk/compare/v2.1.0...v2.2.0) (2022-01-08)

### Features

* 添加公告API ([dfd33c9](https://github.com/tencent-connect/bot-node-sdk/commit/dfd33c97b1475278c258cb3d992dcbc0108d839b))

## [2.1.0](https://github.com/tencent-connect/bot-node-sdk/compare/v1.5.0...v2.1.0) (2022-01-08)

### Features

* 添加禁言API ([9d5e47b](https://github.com/tencent-connect/bot-node-sdk/commit/9d5e47bf56ad90358c4c8cba1ceb7dc18e765ad4))
* 重命名sdk ([5d7e22e](https://github.com/tencent-connect/bot-node-sdk/commit/5d7e22efb29c7d60a9432fb0d225db17415894fd))
* sdk中添加撤回消息API ([69058d6](https://github.com/tencent-connect/bot-node-sdk/commit/69058d6a8a4ad20fa634f9d89c58470f415b0459))

### Bug Fixes

* 修复MuteAPI返回类型问题 ([7ab3a8f](https://github.com/tencent-connect/bot-node-sdk/commit/7ab3a8f45de62f6d9bfd7ed29c706b4c7fefba5b))

## [2.0.0](https://github.com/tencent-connect/bot-node-sdk/compare/v1.5.0...v2.0.0) (2022-01-05)

### Features

* 重命名sdk ([f755cc0](https://github.com/tencent-connect/bot-node-sdk/commit/f755cc0584c75a90fa18ab32f76617373d93a445))

## [1.5.0](https://github.com/tencent-connect/bot-node-sdk/compare/v1.4.0...v1.5.0) (2022-01-01)

### Features

* 将类型定义导出到打包结果 ([99b2c57](https://github.com/tencent-connect/bot-node-sdk/commit/99b2c57642f386881b694d032605e538586566b6))

## [1.4.0](https://github.com/tencent-connect/bot-node-sdk/compare/v1.3.1...v1.4.0) (2022-01-01)

### Features

* 添加子频道身份组权限api(测试用例待补充)' ([400fc34](https://github.com/tencent-connect/bot-node-sdk/commit/400fc34232069f740a88af6e19113cf3b550a353))

### [1.3.1](https://github.com/tencent-connect/bot-node-sdk/compare/v1.3.0...v1.3.1) (2021-12-31)

### Features

* 异常返回带上traceid ([b151628](https://github.com/tencent-connect/bot-node-sdk/commit/b1516285bfe1ac3bed798266e5b40c7dcabf9900))

## [1.3.0](https://github.com/tencent-connect/bot-node-sdk/compare/v1.2.2...v1.3.0) (2021-12-30)

### Features

* 补充'身份组成员'接口传参方式 ([cb0ae47](https://github.com/tencent-connect/bot-node-sdk/commit/cb0ae47aea7c1edeebaec58d70e7f28f6a10417d))

### [1.2.2](https://github.com/tencent-connect/bot-node-sdk/compare/v1.2.0...v1.2.2) (2021-12-28)

### Bug Fixes

* err返回值兼容response.data不存在的情况 ([fe7c7cc](https://github.com/tencent-connect/bot-node-sdk/commit/fe7c7cce93869e9a7d360b052d64394a57fe84be))

### [1.2.1](https://github.com/tencent-connect/bot-node-sdk/compare/v1.2.0...v1.2.1) (2021-12-25)

### Bug Fixes

* err返回值兼容response.data不存在的情况 ([fe7c7cc](https://github.com/tencent-connect/bot-node-sdk/commit/fe7c7cce93869e9a7d360b052d64394a57fe84be))

## [1.2.0](https://github.com/tencent-connect/bot-node-sdk/compare/v1.1.2...v1.2.0) (2021-12-24)

### Features

* 修改shards与intents入参为可选 ([29d5c96](https://github.com/tencent-connect/bot-node-sdk/commit/29d5c961ee4fe11faea840264057ba8ddd4cb2da))

### Bug Fixes

* 修复ws模块拼写错误 ([dd3a85b](https://github.com/tencent-connect/bot-node-sdk/commit/dd3a85b97dcd044e679052e061d87ad1052939b7))
* 修改错误拼写 ([56a7270](https://github.com/tencent-connect/bot-node-sdk/commit/56a7270d86221354a846d0603ba2ea70ced78467))
* ws相关方法参数类型修复 ([2ed828d](https://github.com/tencent-connect/bot-node-sdk/commit/2ed828d95c6c9b1564524c3d3ca24d03ef6f7327))

### [1.1.2](https://github.com/tencent-connect/bot-node-sdk/compare/v1.1.0...v1.1.2) (2021-12-22)

### Bug Fixes

Expand All @@ -13,7 +122,6 @@ All notable changes to this project will be documented in this file. See [standa

### [1.1.1](https://github.com/tencent-connect/bot-node-sdk/compare/v1.1.0...v1.1.1) (2021-12-22)


### Bug Fixes

* support for passing filter params when post & patch role ([1f66b6c](https://github.com/tencent-connect/bot-node-sdk/commit/1f66b6cf0ec3b7c903092e364365b9d738de2531))
Expand All @@ -22,7 +130,6 @@ All notable changes to this project will be documented in this file. See [standa

## [1.1.0](https://git.woa.com/qq-channel-bot/bot-node-sdk/compare/v1.0.0...v1.1.0) (2021-12-09)


### Features

* 去除APPID/token等信息 ([9997c5b](https://git.woa.com/qq-channel-bot/bot-node-sdk/commit/9997c5b4a972cbb3c1e399f3ee6259594d8af587))
Expand All @@ -31,7 +138,6 @@ All notable changes to this project will be documented in this file. See [standa

## 1.0.0 (2021-12-03)


### Features

* 代码优化 ([dc30d86](https://git.woa.com/qq-channel-bot/bot-node-sdk/commit/dc30d869c7b48f9bc3ad23afe2ddedb80fcb1e6e))
Expand Down Expand Up @@ -65,7 +171,6 @@ All notable changes to this project will be documented in this file. See [standa
* wss请求地址优化 ([9fd4bcd](https://git.woa.com/qq-channel-bot/bot-node-sdk/commit/9fd4bcd475e0eb28ee9ece7fab9ea5dfc301bc4e))
* wss优化 ([6bb374e](https://git.woa.com/qq-channel-bot/bot-node-sdk/commit/6bb374e75c0e81360a2e17c04261336fa6cb808a))


### Bug Fixes

* 修正eslint校验 ([7e6cd0d](https://git.woa.com/qq-channel-bot/bot-node-sdk/commit/7e6cd0d3631bc963624bfb4d94b92e5a2f005be5))
Expand Down
21 changes: 21 additions & 0 deletions License
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Tencent

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading