@cubejs-backend/mssql-driver 0.35.0 → 0.35.2
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 +22 -0
- package/driver/MSSqlDriver.js +5 -5
- package/driver/index.d.ts +4 -4
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.35.2](https://github.com/cube-js/cube/compare/v0.35.1...v0.35.2) (2024-03-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **mssql-driver:** Unsupported option opt.evictionRunIntervalMillis, refs [#7951](https://github.com/cube-js/cube/issues/7951) ([#7977](https://github.com/cube-js/cube/issues/7977)) ([53f013a](https://github.com/cube-js/cube/commit/53f013ab3ca1f3d7906e182b04cccd3aaabf4506))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.35.1](https://github.com/cube-js/cube/compare/v0.35.0...v0.35.1) (2024-03-18)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **mssql-driver:** Upgrade mssql to 10.0.2 (Node.js 17+ compatiblity), fix [#7951](https://github.com/cube-js/cube/issues/7951) ([7adaea6](https://github.com/cube-js/cube/commit/7adaea6522e47035e67596b4dc0ab15e87312706))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [0.35.0](https://github.com/cube-js/cube/compare/v0.34.62...v0.35.0) (2024-03-14)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @cubejs-backend/mssql-driver
|
package/driver/MSSqlDriver.js
CHANGED
|
@@ -50,6 +50,9 @@ class MSSqlDriver extends BaseDriver {
|
|
|
50
50
|
config.dataSource ||
|
|
51
51
|
assertDataSource('default');
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* @type {import('mssql').config}
|
|
55
|
+
*/
|
|
53
56
|
this.config = {
|
|
54
57
|
readOnly: true,
|
|
55
58
|
server: getEnv('dbHost', { dataSource }),
|
|
@@ -69,11 +72,8 @@ class MSSqlDriver extends BaseDriver {
|
|
|
69
72
|
getEnv('dbMaxPoolSize', { dataSource }) ||
|
|
70
73
|
8,
|
|
71
74
|
min: 0,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
idleTimeoutMillis: 30000,
|
|
75
|
-
testOnBorrow: true,
|
|
76
|
-
acquireTimeoutMillis: 20000
|
|
75
|
+
idleTimeoutMillis: 30 * 1000,
|
|
76
|
+
acquireTimeoutMillis: 20 * 1000
|
|
77
77
|
},
|
|
78
78
|
...config
|
|
79
79
|
};
|
package/driver/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseDriver } from "@cubejs-backend/query-orchestrator";
|
|
2
|
-
import {
|
|
2
|
+
import { config } from "mssql";
|
|
3
3
|
|
|
4
|
-
declare module "@cubejs-backend/
|
|
5
|
-
export default class
|
|
6
|
-
constructor(options?:
|
|
4
|
+
declare module "@cubejs-backend/mssql-driver" {
|
|
5
|
+
export default class MSSqlDriver extends BaseDriver {
|
|
6
|
+
constructor(options?: config);
|
|
7
7
|
release(): Promise<void>
|
|
8
8
|
}
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@cubejs-backend/mssql-driver",
|
|
3
3
|
"description": "Cube.js MS SQL database driver",
|
|
4
4
|
"author": "Cube Dev, Inc.",
|
|
5
|
-
"version": "0.35.
|
|
5
|
+
"version": "0.35.2",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/cube-js/cube.git",
|
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"main": "driver/MSSqlDriver.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@cubejs-backend/base-driver": "^0.35.
|
|
17
|
-
"mssql": "^
|
|
16
|
+
"@cubejs-backend/base-driver": "^0.35.2",
|
|
17
|
+
"mssql": "^10.0.2"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/mssql": "^9.1.5",
|
|
21
|
+
"@types/node": "^16"
|
|
18
22
|
},
|
|
19
23
|
"jest": {
|
|
20
24
|
"testEnvironment": "node"
|
|
@@ -23,5 +27,5 @@
|
|
|
23
27
|
"publishConfig": {
|
|
24
28
|
"access": "public"
|
|
25
29
|
},
|
|
26
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "3bf6a70f396e0b2aeff0d68299d8010c321220cb"
|
|
27
31
|
}
|