mssql 9.0.0 → 9.0.1

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.txt CHANGED
@@ -1,8 +1,16 @@
1
+ v9.0.1 (2022-08-18)
2
+ -------------------
3
+ [fix] fix regression in requestTimout option not accepting `0` as a value ([#1421](https://github.com/tediousjs/node-mssql/pull/1421))
4
+
1
5
  v9.0.0 (2022-08-10)
2
6
  -------------------
3
7
  [change] Upgrade tedious to v15 ([#1417](https://github.com/tediousjs/node-mssql/pull/1417))
4
8
  [removed] Removed NodeJS 10 & 12 support ([#1417](https://github.com/tediousjs/node-mssql/pull/1417))
5
9
 
10
+ v8.1.4 (2022-08-18)
11
+ -------------------
12
+ [fix] fix regression in requestTimout option not accepting `0` as a value ([#1421](https://github.com/tediousjs/node-mssql/pull/1421))
13
+
6
14
  v8.1.3 (2022-08-08)
7
15
  -------------------
8
16
  [fix] requestTimeout correctly resolved ([#1398](https://github.com/tediousjs/node-mssql/pull/1398))
@@ -21,11 +21,11 @@ class ConnectionPool extends BaseConnectionPool {
21
21
  defaultConnectionString = CONNECTION_STRING_NAMED_INSTANCE
22
22
  }
23
23
 
24
- this.config.requestTimeout = this.config.requestTimeout || this.config.timeout || 15000
24
+ this.config.requestTimeout = this.config.requestTimeout ?? this.config.timeout ?? 15000
25
25
 
26
26
  const cfg = {
27
27
  conn_str: this.config.connectionString || defaultConnectionString,
28
- conn_timeout: (this.config.connectionTimeout || this.config.timeout || 15000) / 1000
28
+ conn_timeout: (this.config.connectionTimeout ?? this.config.timeout ?? 15000) / 1000
29
29
  }
30
30
 
31
31
  cfg.conn_str = cfg.conn_str.replace(/#{([^}]*)}/g, (p) => {
@@ -36,8 +36,8 @@ class ConnectionPool extends BaseConnectionPool {
36
36
 
37
37
  cfg.options.database = cfg.options.database || this.config.database
38
38
  cfg.options.port = cfg.options.port || this.config.port
39
- cfg.options.connectTimeout = cfg.options.connectTimeout || this.config.connectionTimeout || this.config.timeout || 15000
40
- cfg.options.requestTimeout = cfg.options.requestTimeout || this.config.requestTimeout || this.config.timeout || 15000
39
+ cfg.options.connectTimeout = cfg.options.connectTimeout ?? this.config.connectionTimeout ?? this.config.timeout ?? 15000
40
+ cfg.options.requestTimeout = cfg.options.requestTimeout ?? this.config.requestTimeout ?? this.config.timeout ?? 15000
41
41
  cfg.options.tdsVersion = cfg.options.tdsVersion || '7_4'
42
42
  cfg.options.rowCollectionOnDone = cfg.options.rowCollectionOnDone || false
43
43
  cfg.options.rowCollectionOnRequestCompletion = cfg.options.rowCollectionOnRequestCompletion || false
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "azure",
22
22
  "node-mssql"
23
23
  ],
24
- "version": "9.0.0",
24
+ "version": "9.0.1",
25
25
  "main": "index.js",
26
26
  "repository": "github:tediousjs/node-mssql",
27
27
  "license": "MIT",