dolphindb 3.0.42 → 3.0.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,20 +1,37 @@
1
1
  # Release Notes
2
2
 
3
+ ## Version: 3.0.100
4
+ #### New Features
5
+ - Added support for heartbeat mechanism to prevent automatic disconnection due to prolonged inactivity.
6
+ - Added function data() for converting DolphinDB data into primitive JavaScript data.
7
+ - Added function invoke() that allows passing parameters and returning execution results in primitive JavaScript data types when calling DolphinDB functions.
8
+ - Added function execute() that executes DolphinDB scripts and returns execution results in primitive JavaScript data types.
9
+ - Added support for serialization and deserialization of COMPRESSED vectors and Tensor form.
10
+ - Added support for subscription to HA stream tables.
11
+
12
+ #### Improvments
13
+ - Enhanced support for documentation and function hints for the latest server version.
14
+ - Enhanced StreamingMessage that allows accessing window data using window.data.
15
+
16
+ #### Issues Fixed
17
+ - Fixed an issue with time formatting on lower version browsers (> Chrome 90, < Chrome 100).
18
+ - Fixed an issue where strings returned by toString were not enclosed in quotes.
19
+
3
20
  ## Version: 2.0.1102
4
21
 
5
- ### Feature Enhancement
22
+ #### Feature Enhancement
6
23
 
7
24
  Add constant VIEW_OWNER and highlight
8
25
 
9
26
  ## Version: 2.0.1101
10
27
 
11
- ### Feature Enhancement
28
+ #### Feature Enhancement
12
29
 
13
30
  Support the serializtion of DURATION vector.
14
31
 
15
32
  ## Version: 2.0.1100
16
33
 
17
- ### Feature Enhancement
34
+ #### Feature Enhancement
18
35
 
19
36
  Support for processing exchange identifiers as DURATION type.
20
37
 
package/CHANGELOG.zh.md CHANGED
@@ -1,20 +1,38 @@
1
1
  # 版本发布说明
2
2
 
3
+ ## 版本: 3.0.100
4
+ #### 新增功能
5
+ - 增加心跳机制,以避免连接长时间不使用后自动断开的情况。
6
+ - 新增 data() 函数,用于将 DolphinDB 中的数据转化为 JavaScript 原生数据。
7
+ - 新增 invoke() 函数,支持在调用 DolphinDB 函数时,以 JavaScript 原生数据类型的形式传入参数和返回执行结果。
8
+ - 新增 execute() 函数,支持执行 DolphinDB 代码并以 JavaScript 原生数据类型的形式返回执行结果。
9
+ - 支持 COMPRESSED 型向量数据的序列化与反序列化。
10
+ - 支持 Tensor 型数据的序列化与反序列化。
11
+ - 支持订阅高可用流表。
12
+
13
+ #### 功能优化
14
+ - 支持新版的文档解析和函数提示。
15
+ - StreamingMessage 数据结构改动,可通过 “window.data” 访问窗口数据。
16
+
17
+ #### 故障修复
18
+ - 低版本(> chrome 90, < chrome 100)浏览器时间格式化。
19
+ - toString 方法的返回结果中字符串未加引号。
20
+
3
21
  ## 版本:2.0.1102
4
22
 
5
- ### 功能改善
23
+ #### 功能改善
6
24
 
7
25
  添加常量 VIEW_OWNER 并高亮显示
8
26
 
9
27
  ## 版本:2.0.1101
10
28
 
11
- ### 功能改善
29
+ #### 功能改善
12
30
 
13
31
  新增对 DURATION Vector 序列化的支持。
14
32
 
15
33
  ## 版本: 2.0.1100
16
34
 
17
- ### 功能改善
35
+ #### 功能改善
18
36
 
19
37
  新增 DURATION 类型对交易所标识的支持。
20
38
 
package/browser.js CHANGED
@@ -3258,6 +3258,9 @@ export class DDB {
3258
3258
  const message = this.dec.decode(buf.subarray(ils1, ilf1));
3259
3259
  if (message !== 'OK') {
3260
3260
  error.message = message;
3261
+ let lines = error.stack.split_lines();
3262
+ lines[0] += `: ${message}`;
3263
+ error.stack = lines.join_lines(false);
3261
3264
  return { type: 'error', data: error };
3262
3265
  }
3263
3266
  const bufobj = buf.subarray(ilf1 + 1);