diff --git a/docs/en/14-reference/05-connector/35-node.md b/docs/en/14-reference/05-connector/35-node.md index fa40a20d611b..9a69fb745819 100644 --- a/docs/en/14-reference/05-connector/35-node.md +++ b/docs/en/14-reference/05-connector/35-node.md @@ -25,13 +25,14 @@ Support all platforms that can run Node.js. | Node.js Connector Version | Major Changes | TDengine Version | | ------------------------- | ------------------------------------------------------------------------ | --------------------------- | +| 3.2.3 | 1. Supports token authentication.
2. Supports reporting connector version information. | - | | 3.2.2 | Fix timezone handling issues on Windows systems. | - | | 3.2.1 | Fix SQL query result sorting issue. | - | | 3.2.0 | Optimize STMT parameter binding to improve write efficiency. | - | | 3.1.9 | Fix timezone handling in WebSocket connections. | - | | 3.1.8 | Fix when the connection pool returns unavailable connections during network anomalies. | - | | 3.1.7 | Fix cloud service TMQ connection parameter issue. | - | -| 3.1.6 | 1. Check if the connector supports database version.
2. The connector supports adding new subscription parameters. | - | +| 3.1.6 | 1. Check if the connector supports database version.
2. The connector supports adding new subscription parameters. | - | | 3.1.5 | Password supports special characters. | - | | 3.1.4 | Modified the readme.| - | | 3.1.3 | Upgraded the es5-ext version to address vulnerabilities in the lower version. | - | @@ -151,7 +152,8 @@ The configurations in WSConfig are as follows: - setPwd(pws:string) Set the database password. - setDb(db: string) Set the database name. - setTimeOut(ms : number) Set the connection timeout in milliseconds. -- setToken(token: string) Set the taosAdapter authentication token. +- setToken(token: string) Set the cloud service authentication token. +- setBearerToken(token: string) Set the TDengine TSDB authentication token, which has higher priority than username and password. ### Connection Features diff --git a/docs/zh/14-reference/05-connector/35-node.mdx b/docs/zh/14-reference/05-connector/35-node.mdx index f6319bfccff3..37a076e81823 100644 --- a/docs/zh/14-reference/05-connector/35-node.mdx +++ b/docs/zh/14-reference/05-connector/35-node.mdx @@ -23,6 +23,7 @@ Node.js 连接器源码托管在 [GitHub](https://github.com/taosdata/taos-conne | Node.js 连接器 版本 | 主要变化 | TDengine TSDB 版本 | | ------------------| ----------------------| ----------------| +| 3.2.3 | 1. 支持令牌身份认证
2. 支持上报连接器版本信息 | - | | 3.2.2 | 修复 Windows 系统上的时区处理问题 | - | | 3.2.1 | 修复 SQL 查询结果排序问题 | - | | 3.2.0 | 优化 stmt 参数绑定,提升写入效率 | - | @@ -150,7 +151,8 @@ WSConfig 中的配置如下: - setPwd(pws:string) 设置数据库密码。 - setDb(db: string) 设置数据库名称。 - setTimeOut(ms : number) 设置连接超时,单位毫秒。 -- setToken(token: string) 设置 taosAdapter 认证 token。 +- setToken(token: string) 设置云服务认证 token。 +- setBearerToken(token: string) 设置 TDengine TSDB 认证 token,认证优先级高于用户名密码。 ### 连接功能