mssql 9.1.0 → 9.1.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.txt ADDED
@@ -0,0 +1,689 @@
1
+ v9.1.2 (2023-08-01)
2
+ -------------------
3
+ [fix] Support more named instance formats ([#1520](https://github.com/tediousjs/node-mssql/pull/1520))
4
+ [refactor] Stop using deprecated regex symbols ([#1520](https://github.com/tediousjs/node-mssql/pull/1520))
5
+
6
+ v9.1.1 (2023-01-19)
7
+ -------------------
8
+ [revert] Add support for AAD authentication via connection string ((#1436)[https://github.com/tediousjs/node-mssql/pull/1436])
9
+
10
+ v9.1.0 (2023-01-17)
11
+ -------------------
12
+ [new] Add support for AAD authentication via connection string ((#1436)[https://github.com/tediousjs/node-mssql/pull/1436])
13
+ [docs] Update express example ((#1433)[https://github.com/tediousjs/node-mssql/pull/1433])
14
+
15
+ v9.0.1 (2022-08-18)
16
+ -------------------
17
+ [fix] fix regression in requestTimout option not accepting `0` as a value ([#1421](https://github.com/tediousjs/node-mssql/pull/1421))
18
+
19
+ v9.0.0 (2022-08-10)
20
+ -------------------
21
+ [change] Upgrade tedious to v15 ([#1417](https://github.com/tediousjs/node-mssql/pull/1417))
22
+ [removed] Removed NodeJS 10 & 12 support ([#1417](https://github.com/tediousjs/node-mssql/pull/1417))
23
+
24
+ v8.1.4 (2022-08-18)
25
+ -------------------
26
+ [fix] fix regression in requestTimout option not accepting `0` as a value ([#1421](https://github.com/tediousjs/node-mssql/pull/1421))
27
+
28
+ v8.1.3 (2022-08-08)
29
+ -------------------
30
+ [fix] requestTimeout correctly resolved ([#1398](https://github.com/tediousjs/node-mssql/pull/1398))
31
+ [fix] Forcibly deny use of `useColumnNames` tedious config option that can be passed in the config object ([#1416](https://github.com/tediousjs/node-mssql/pull/1416))
32
+
33
+ v8.1.2 (2022-05-27)
34
+ -------------------
35
+ [fix] quote identifiers in table constraint declaration ([#1397](https://github.com/tediousjs/node-mssql/pull/1397))
36
+
37
+ v8.1.1 (2022-05-18)
38
+ -------------------
39
+ [fix] quote identifiers in table primary keys ([#1394](https://github.com/tediousjs/node-mssql/pull/1394))
40
+
41
+ v8.1.0 (2022-04-06)
42
+ -------------------
43
+ [new] MSSQL CLI tool now accepts some options to allow overriding config file ((#1381](https://github.com/tediousjs/node-mssql/pull/1381))
44
+ [fix] nodemsqlv8 driver tests working against Node 10 ([#1368](https://github.com/tediousjs/node-mssql/pull/1368))
45
+
46
+ v8.0.2 (2022-02-07)
47
+ -------------------
48
+ Merge up missing fixes from v7.3.0
49
+ [new] Transaction/PreparedStatements expose the config from their parent connection ([#1338](https://github.com/tediousjs/node-mssql/pull/1338))
50
+ [fix] Fix inherited request configs from the pool. Specifically stream and arrayRowMode now inherit accurately from the connection config ([#1338](https://github.com/tediousjs/node-mssql/pull/1338))
51
+
52
+ v8.0.1 (2022-01-30)
53
+ -------------------
54
+ Re-release of v8.0.0
55
+
56
+ v8.0.0 (2022-01-30)
57
+ -------------------
58
+ [new] Add table.rows.clear() method to allow for chunking updates ([#1094](https://github.com/tediousjs/node-mssql/pull/1094))
59
+ [new] Add valueHandler map to store callbacks that are used to process row values ([#1356](https://github.com/tediousjs/node-mssql/pull/1356))
60
+ [change] msnodesqlv8 driver detects os platform and attempts to pick correct connections string for it ((#1318)[https://github.com/tediousjs/node-mssql/pull/1318])
61
+ [change] Updated to latest Tedious 14 ((#1312)[https://github.com/tediousjs/node-mssql/pull/1312])
62
+ [change] Errors for bad bulk load parameters have slightly different error messages ((#1318)[https://github.com/tediousjs/node-mssql/pull/1318])
63
+ [change] Options provided to the driver via the config.options object will not be overridden with other values if set explicitly ((#1340)[https://github.com/tediousjs/node-mssql/pull/1340])
64
+ [change] Duplicate column names will now be presented as an array even if the values are empty ((#1240)[https://github.com/tediousjs/node-mssql/pull/1240])
65
+ [change] Update tarn pool dependency ((#1344)[https://github.com/tediousjs/node-mssql/pull/1344])
66
+ [removed] Remove connection string parser helpers ((#1342)[https://github.com/tediousjs/node-mssql/pull/1342])
67
+ [removed] Remove deprecated pool properties ((#1359)[https://github.com/tediousjs/node-mssql/pull/1359])
68
+
69
+ v7.3.5 (2022-05-27)
70
+ -------------------
71
+ [fix] quote identifiers in table constraint declaration ([#1397](https://github.com/tediousjs/node-mssql/pull/1397))
72
+
73
+ v7.3.4 (2022-05-18)
74
+ -------------------
75
+ [fix] msnodesqlv8.js file was missing from previous release
76
+
77
+ v7.3.3 (2022-05-18)
78
+ -------------------
79
+ Duplicate tag
80
+
81
+ v7.3.2 (2022-05-18)
82
+ -------------------
83
+ [fix] nodemsqlv8 driver tests working against Node 10 ([#1368](https://github.com/tediousjs/node-mssql/pull/1368))
84
+ [fix] quote identifiers in table primary keys ([#1394](https://github.com/tediousjs/node-mssql/pull/1394))
85
+
86
+ v7.3.1 (2022-02-24)
87
+ -------------------
88
+ [fix] Bump debug dependency ([#1361](https://github.com/tediousjs/node-mssql/pull/1361))
89
+
90
+ v7.3.0 (2021-11-18)
91
+ -------------------
92
+ [new] Transaction/PreparedStatements expose the config from their parent connection ([#1338](https://github.com/tediousjs/node-mssql/pull/1338))
93
+ [fix] Fix inherited request configs from the pool. Specifically stream and arrayRowMode now inherit accurately from the connection config ([#1338](https://github.com/tediousjs/node-mssql/pull/1338))
94
+
95
+ v7.2.1 (2021-08-19)
96
+ -------------------
97
+ [fix] Fix issue with bulk insert of dates ((#1298)[https://github.com/tediousjs/node-mssql/pull/1298])
98
+
99
+ v7.2.0 (2021-07-29)
100
+ -------------------
101
+ [new] Update Geography field parsing to provide lat/lng props from Geography Point ((#1282)[https://github.com/tediousjs/node-mssql/pull/1282])
102
+ [fix] Handle errors when adding rows to bulk operations ((#1264)[https://github.com/tediousjs/node-mssql/pull/1264])
103
+ [fix] Input/Output parameter passing fix for msnodesqlv8 driver ((#1275)[https://github.com/tediousjs/node-mssql/pull/1275])
104
+
105
+ v7.1.3 (2021-06-11)
106
+ -------------------
107
+ [fix] Request timeout settings now respect value parsed from connection strings ((#1257)[https://github.com/tediousjs/node-mssql/pull/1257)
108
+
109
+ v7.1.1 (2021-06-09)
110
+ -------------------
111
+ [fix] Errors from tedious connection creation now cause connection promise to reject ((#1254)[https://github.com/tediousjs/node-mssql/pull/1254])
112
+ [fix] Encrypt and transaction binding settings now respect value parsed from connection strings ((#1252)[https://github.com/tediousjs/node-mssql/pull/1252)
113
+
114
+ v7.1.0 (2021-05-13)
115
+ -------------------
116
+ [new] Add `parseJSON` support to query strings
117
+ [fix] Bump various dependencies for security fixes
118
+
119
+ v7.0.0 (2021-05-06)
120
+ -------------------
121
+ [new] Result sets with duplicate keys can now be handled using `request.arrayRowMode` ([#1130](https://github.com/tediousjs/node-mssql/pull/1130))
122
+ [new] Requests in stream mode now emit a `rowsaffected` event ([#1213](https://github.com/tediousjs/node-mssql/pull/1213))
123
+ [new] msnodesqlv8 driver now has detailed error support ([#1212](https://github.com/tediousjs/node-mssql/pull/1212))
124
+ [new] Connection validation checks before releasing connections from the pool. This can be turned of via `validateConnection: false` config option ([#1192](https://github.com/tediousjs/node-mssql/pull/1192))
125
+ [new] UseUTC is now supported on msnodesqlv8 connections ([#1222](https://github.com/tediousjs/node-mssql/pull/1222))
126
+ [change] Updated to latest Tedious 11
127
+ [change] Updated tarnjs to v3
128
+ [change] Updated to support latest msnodesqlv8 v2 ([#1157](https://github.com/tediousjs/node-mssql/pull/1157))
129
+ [change] Piped streams no longer have errors forwarded on to them ([#1028](https://github.com/tediousjs/node-mssql/pull/1028))
130
+ [change] tedious config option `trustServerCertificate` defaults to `false` if not supplied ([#1030](https://github.com/tediousjs/node-mssql/pull/1030))
131
+ [change] Request.pipe now pipes a true node stream for better support of backpressure ([#1078](https://github.com/tediousjs/node-mssql/pull/1078))
132
+ [change] drop support for NodeJS < 10 ([#1070](https://github.com/tediousjs/node-mssql/pull/1070))
133
+ [fix] Ensure line endings are unix style (LF)
134
+ [fix] Avoid using deprecated `.inspect` on Objects ([#1071](https://github.com/tediousjs/node-mssql/pull/1071))
135
+ [fix] Bump various dependencies for security fixes ([#1102](https://github.com/tediousjs/node-mssql/pull/1102))
136
+ [fix] Trailing rows from request streams using msnodesqlv8 driver fail to be emitted ([#1109](https://github.com/tediousjs/node-mssql/pull/1109))
137
+ [fix] Issue with geography v2 parsing resolve ([#1138](https://github.com/tediousjs/node-mssql/pull/1138))
138
+ [fix] Connection config objects are now deep cloned when stored against a connection pool ([#1217](https://github.com/tediousjs/node-mssql/pull/1217))
139
+ [removed] Support for connection uri format has been removed (eg: `mssql://user:password@host/?params=values`)
140
+
141
+ v6.4.1 (2022-02-24)
142
+ -------------------
143
+ [fix] Bump debug dependency ([#1361](https://github.com/tediousjs/node-mssql/pull/1361))
144
+
145
+ v6.4.0 (2021-11-18)
146
+ -------------------
147
+ [new] Transaction/PreparedStatements expose the config from their parent connection
148
+ [fix] Fix inherited request configs from the pool. Specifically stream and arrayRowMode now inherit accurately from the connection config ([#1338](https://github.com/tediousjs/node-mssql/pull/1338))
149
+
150
+ v6.3.2 (2021-05-13)
151
+ -------------------
152
+ [fix] Bump various dependencies for security fixes
153
+
154
+ v6.3.1 (2021-01-01)
155
+ -------------------
156
+ [fix] Ensure line endings are unix style (LF)
157
+
158
+ v6.3.0 (2020-12-14)
159
+ -------------------
160
+ [new] Result sets with duplicate keys can now be handled using `request.arrayRowMode` ([#1130](https://github.com/tediousjs/node-mssql/pull/1130))
161
+ [fix] Issue with geography v2 parsing resolve ([#1138](https://github.com/tediousjs/node-mssql/pull/1138))
162
+ [fix] Fixed issue where msnodesqlv8 could sometimes terminate queries before all errors has been emitted causing queries to hang ([#1145](https://github.com/tediousjs/node-mssql/pull/1145))
163
+
164
+ v6.2.3 (2020-09-25)
165
+ -------------------
166
+ [fix] Remove reference to global pool on connection error ([#1107](https://github.com/tediousjs/node-mssql/pull/1107))
167
+ [fix] Trailing rows from request streams using msnodesqlv8 driver fail to be emitted ([#1109](https://github.com/tediousjs/node-mssql/pull/1109))
168
+
169
+ v6.2.2 (2020-09-18)
170
+ -------------------
171
+ [fix] Avoid using deprecated `.inspect` on Objects ([#1071](https://github.com/tediousjs/node-mssql/pull/1071))
172
+ [fix] Bump various dependencies for security fixes ([#1102](https://github.com/tediousjs/node-mssql/pull/1102))
173
+
174
+ v6.2.1 (2020-07-22)
175
+ -------------------
176
+ [fix] Bump various dependencies for security fixes
177
+
178
+ v6.2.0 (2020-03-13)
179
+ -------------------
180
+ [new] Set default isolationLevel for all transactions ([#1005](https://github.com/tediousjs/node-mssql/pull/1005))
181
+ [new] sql.Date now is coerced into a date object ([#1007](https://github.com/tediousjs/node-mssql/pull/1007))
182
+ [fix] Bump acorn dependency for security fix
183
+
184
+ v6.1.0 (2020-02-17)
185
+ -------------------
186
+ [new] Add `Request.template` helper for providing templated strings to queries ([#960](https://github.com/tediousjs/node-mssql/pull/960))
187
+ [new] Repeat calls to `ConnectionPool.connect()` resolve ([#941](https://github.com/tediousjs/node-mssql/pull/941))
188
+ [new] Stored procedure params are now logged to debug log ([#979](https://github.com/tediousjs/node-mssql/pull/979))
189
+ [fix] Repeat calls to `mssql.connect()` will now resolve correctly ([#986](https://github.com/tediousjs/node-mssql/pull/986))
190
+ [fix] Connections are encrypted by default as documented ([#977](https://github.com/tediousjs/node-mssql/pull/977))
191
+ [fix] Tagged template literal queries with empty array values now work ([#990](https://github.com/tediousjs/node-mssql/pull/990))
192
+
193
+ v6.0.1 (2019-11-15)
194
+ -------------------
195
+ [fix] Fix an issue with connection strings where usernames have url encoded values ([#945](https://github.com/tediousjs/node-mssql/pull/945)
196
+
197
+ v6.0.0 (2019-11-05)
198
+ -------------------
199
+ [fix] Fixed bug when trying to bulk insert columns that were `NVarChar(MAX)` ([#901](https://github.com/tediousjs/node-mssql/pull/901))
200
+ [fix] Fixed an issue where Object prototype pollution could cause errors ([#879](https://github.com/tediousjs/node-mssql/pull/879))
201
+ [fix] Fixed an issue where Request.input didn't validate against 0 parameters being passed ([#885](https://github.com/tediousjs/node-mssql/pull/885))
202
+ [new] Implement pause/resume for msnodesqlv8 driver ([#877](https://github.com/tediousjs/node-mssql/pull/877))
203
+ [new] Added `healthy` flag to the pool to help determine if the pool is safe to use or not ([#816](https://github.com/tediousjs/node-mssql/pull/816))
204
+ [new] Invalid isolation levels passed to transactions will now throw an error
205
+ [new] Duplicate parameter names in queries/stored procedures will now throw an error
206
+ [new] `replaceInput` and `replaceOutput` functions added to `Request` and `PreparedStatement` to facilitate replacing existing parameters
207
+ [new] Calls to the global `connect` function will return the global connection if it exists
208
+ [new] Bulk table inserts now attempt to coerce Date objects out of non Date values
209
+ [change] Closing the global connection by reference will now cleanup the internally managed globalConnection
210
+ [change] Upgraded tedious to v6 ([#818](https://github.com/tediousjs/node-mssql/pull/818) and [#933](https://github.com/tediousjs/node-mssql/pull/933))
211
+ [change] Upgraded msnodesqlv8 support to v0.7 ([#877](https://github.com/tediousjs/node-mssql/pull/877))
212
+ [change] Remove references to deprecated `TYPES.Null` from tedious
213
+ [change] `options.encrypt` is now set to true by default
214
+ [change] Upgraded `debug` dependency to v4
215
+ [change] Config objects are cloned so that the original object is not modified
216
+ [change] Replaced pool library (`generic-pool`) with `tarn.js` ([#808](https://github.com/tediousjs/node-mssql/pull/808))
217
+ [removed] Backoff try strategy for creating connections removed, `tarn.js` built-in retry strategy used instead
218
+
219
+ v5.1.5 (2021-05-13)
220
+ -------------------
221
+ [fix] Bump various dependencies for security fixes
222
+
223
+ v5.1.4 (2021-01-01)
224
+ -------------------
225
+ [fix] Ensure line endings are unix style (LF)
226
+
227
+ v5.1.3 (2020-09-18)
228
+ -------------------
229
+ [fix] Avoid using deprecated `.inspect` on Objects ([#1071](https://github.com/tediousjs/node-mssql/pull/1071))
230
+ [fix] Bump various dependencies for security fixes ([#1102](https://github.com/tediousjs/node-mssql/pull/1102))
231
+
232
+ v5.1.2 (2020-07-22)
233
+ -------------------
234
+ [fix] Bump various dependencies for security fixes
235
+
236
+ v5.1.1 (2020-03-13)
237
+ -------------------
238
+ [fix] Bump acorn dependency for security fix
239
+
240
+ v5.1.0 (2019-04-17)
241
+ -------------------
242
+ [new] Add readOnlyIntent to connection string parser ([#853](https://github.com/tediousjs/node-mssql/pull/853))
243
+
244
+ v5.0.6 (2019-04-17)
245
+ -------------------
246
+ [fix] Ensure callbacks don't block the event loop by executing them with `setImmediate` ([#855](https://github.com/tediousjs/node-mssql/pull/855))
247
+
248
+ v5.0.5 (2019-03-28)
249
+ -------------------
250
+ [fix] Fix an issue where connections that error can deplete the pool ([#842](https://github.com/tediousjs/node-mssql/pull/842))
251
+
252
+ v5.0.4 (2019-03-27)
253
+ -------------------
254
+ [fix] Fix a bug where msnodesqlv8 driver could execute callbacks twice ([#834](https://github.com/tediousjs/node-mssql/pull/834))
255
+ [fix] npm audit fix on vulnerable dependencies
256
+
257
+ v5.0.3 (2019-03-13)
258
+ -------------------
259
+ [fix] Fix a bug with streamed requests that start paused ([#833](https://github.com/tediousjs/node-mssql/pull/833))
260
+
261
+ v5.0.2 (2019-03-09)
262
+ -------------------
263
+ [change] Remove references to deprecated `TYPES.Null` from tedious
264
+
265
+ v5.0.1 (2019-03-09)
266
+ -------------------
267
+ [change] Config objects are cloned so that the original object is not modified
268
+
269
+ v5.0.0 (2019-03-07)
270
+ -------------------
271
+ [new] Added pause / resume feature to streamed requests ([#775](https://github.com/tediousjs/node-mssql/pull/775))
272
+ [new] Added options argument to bulk requests for compatibility with tedious driver
273
+ [new] Added a backoff retry strategy for failed connection creation to mitigate issue with `generic-pool` connection creation logic ([#806](https://github.com/tediousjs/node-mssql/pull/806)
274
+ [change] Updated to latest Tedious 4.1.1
275
+ [removed] Node.js < 6 is no longer supported
276
+ [removed] Support dropped for deprecated tedious configuration values and types
277
+
278
+ v4.3.9 (2020-07-22)
279
+ -------------------
280
+ [fix] Bump various dependencies for security fixes
281
+
282
+ v4.3.8 (2020-03-13)
283
+ -------------------
284
+ [fix] Bump acorn dependency for security fix
285
+
286
+ v4.3.7 (2019-03-29)
287
+ -------------------
288
+ [fix] Fix an issue where connections that error can deplete the pool ([#842](https://github.com/tediousjs/node-mssql/pull/842))
289
+
290
+ v4.3.6 (2019-03-27)
291
+ -------------------
292
+ [fix] Fix a bug where msnodesqlv8 driver could execute callbacks twice ([#834](https://github.com/tediousjs/node-mssql/pull/834))
293
+ [fix] Bump js-yaml dependency for security fix
294
+
295
+ v4.3.5 (2019-03-09)
296
+ -------------------
297
+ [change] Remove references to deprecated `TYPES.Null` from tedious
298
+
299
+ v4.3.4 (2019-03-09)
300
+ -------------------
301
+ [change] Config objects are cloned so that the original object is not modified
302
+
303
+ v4.3.3 (2019-03-07)
304
+ -------------------
305
+ [change] Updated to latest generic-pool 3.6.1
306
+
307
+ v4.3.0 (2018-11-20)
308
+ -------------------
309
+ [new] Add beforeConnect handler
310
+ [change] Interpret connection timeout in seconds (not milliseconds)
311
+
312
+ v4.2.3 (2018-11-03)
313
+ -------------------
314
+ [new] Add info event for execute function
315
+ [fix] Fix JSON parsing with empty recordsets
316
+ [new] Array / string literal template query preparation fixes
317
+ [new] Passing encrypt option from mssql connection options to tedious options
318
+ [change] Return the _poolDestroy promise before connecting again
319
+
320
+ v4.2.2 (2018-10-17)
321
+ -------------------
322
+ [change] Updated to latest Tedious 2.7.1
323
+
324
+ v4.2.1 (2018-08-05)
325
+ -------------------
326
+ [fix] Fix connections in the pool depleting due to unfulfilled Promises and timeouts
327
+ [change] Updated to latest Tedious 2.6.4
328
+
329
+ v4.2.0 (2018-07-05)
330
+ -------------------
331
+ [new] Added TVP support for msnodesqlv8 driver
332
+ [new] Added support for information messages in msnodesqlv8 driver
333
+ [new] Added support for request cancellation in msnodesqlv8 driver
334
+ [fix] Fixed Tedious deprecation warnings
335
+ [fix] Fixed ResourceRequest timed out error
336
+ [fix] All query and batch methods now have the same interface
337
+ [fix] Fixed msnodesqlv8 issue where the encrypt option was getting ignored
338
+ [change] Updated to latest Tedious 2.3.1
339
+
340
+ v4.1.0 (2017-09-29)
341
+ -------------------
342
+ [new] Adding support for the MultiSubnetFailover option in connection strings (Paul Kehrer)
343
+ [new] Add request timeout support for msnodesqlv8 queries (Michael Parque)
344
+ [fix] Fix type inference of non-integer numbers (Andrew Crites)
345
+ [fix] Set acquireTimeout on generic pool (Karl Wiggisser)
346
+
347
+ v4.0.4 (2017-04-25)
348
+ -------------------
349
+ [fix] Fix auto-closing of idle connections
350
+
351
+ v4.0.3 (2017-04-25)
352
+ -------------------
353
+ [fix] Fixed broken CLI & debugging
354
+
355
+ v4.0.2 (2017-04-19)
356
+ -------------------
357
+ [fix] Fixed broken JSON parser
358
+
359
+ v4.0.1 (2017-04-02)
360
+ -------------------
361
+ [fix] Fixed stream in pipe mode
362
+
363
+ v4.0.0 (2017-04-01)
364
+ -------------------
365
+ [new] Completly rewritten to ES6
366
+ [new] Library is now compatible with Webpack
367
+ [new] Library is ready for async/await
368
+ [change] Removed support for < Node.js 4
369
+ [change] Removed support for outdated node-tds and msnodesql drivers
370
+ [change] Removed require('mssql/nofix') syntax
371
+ [change] Removed verbose and debug mode
372
+ [change] Removed 'driver' from options
373
+ [change] Removed Transaction and Prepared Statement queues
374
+ [change] Removed 'multiple' directive
375
+ [change] Connection renamed to ConnectionPool
376
+ [change] Updated to latest Tedious 2.0.0
377
+
378
+ v3.3.0 (2016-05-06)
379
+ -------------------
380
+ [new] Added support for receiving informational messages
381
+ [new] Added JSON support for msnodesql and msnodesqlv8 drivers
382
+ [fix] Minor fixes in connection string parsing
383
+
384
+ v3.2.1 (2016-04-16)
385
+ -------------------
386
+ [fix] Added PreparedStatement.lastRequest to access internal Request when using Promises
387
+
388
+ v3.2.0 (2016-04-11)
389
+ -------------------
390
+ [new] Added experimental support for ES6 tagged template literals
391
+ [new] Added support for Variant data type
392
+ [change] Updated to latest Tedious 1.14.0
393
+
394
+ v3.1.2 (2016-03-08)
395
+ -------------------
396
+ [fix] Correctly release connection after transaction error
397
+
398
+ v3.1.1 (2016-02-21)
399
+ -------------------
400
+ [change] Minor internal changes because of connect-mssql module
401
+
402
+ v3.1.0 (2016-02-13)
403
+ -------------------
404
+ [new] Added support for creating columns with primary keys in TVP Tables
405
+
406
+ v3.0.1 (2016-02-04)
407
+ -------------------
408
+ [fix] Fix error causing app to crash when parsing json/xml from stored procedure
409
+ [fix] Correctly check connection health after socket error
410
+
411
+ v3.0.0 (2016-01-08)
412
+ -------------------
413
+ [new] Version bump because of breakinch change introduced in release 2.6
414
+
415
+ v2.6.2 (2015-12-25) - unpublished from npm
416
+ -------------------
417
+ [new] Added support for receiving number of affected rows
418
+ [new] Automatically concat chunks of FOR XML / FOR JSON recordset
419
+ [fix] Correctly preserve domains
420
+
421
+ v2.5.0 (2015-12-17)
422
+ -------------------
423
+ [new] Added support for new TDS driver msnodesqlv8
424
+ [new] Support for configs formated as Connection String, Connection String URI
425
+
426
+ v2.4.0 (2015-12-11)
427
+ -------------------
428
+ [new] Connection.connect, PreparedStatement.prepare and Transaction.begin now returns instance of itself as a first argument to Promise resolver.
429
+ [fix] Correctly handle Socket Errors inside Requests (Jørgen Elgaard Larsen)
430
+
431
+ v2.3.2 (2015-11-11)
432
+ -------------------
433
+ [change] Updated to latest Tedious 1.13.1
434
+
435
+ v2.3.1 (2015-09-21)
436
+ -------------------
437
+ [fix] JSON fixes
438
+
439
+ v2.3.0 (2015-09-20)
440
+ -------------------
441
+ [new] Experimental JSON support
442
+
443
+ v2.2.1 (2015-09-19)
444
+ -------------------
445
+ [change] Updated to latest Tedious 1.12.3
446
+ [fix] Promise not returns rowCount in bulk load (Ben Farr)
447
+
448
+ v2.2.0 (2015-08-17)
449
+ -------------------
450
+ [new] Added column metadata identity, caseSensitive and readOnly (nino-porcino)
451
+
452
+ v2.1.8 (2015-08-11)
453
+ -------------------
454
+ [change] Updated to latest Tedious 1.12.2
455
+
456
+ v2.1.7 (2015-08-09)
457
+ -------------------
458
+ [change] Updated to latest Tedious 1.11.4
459
+
460
+ v2.1.6 (2015-06-17)
461
+ -------------------
462
+ [change] Updated to latest Tedious 1.11.2
463
+
464
+ v2.1.5 (2015-06-05)
465
+ -------------------
466
+ [fix] Correctly resolve database and schema name from table path.
467
+
468
+ v2.1.4 (2015-06-05)
469
+ -------------------
470
+ [new] Better test coverage, automated integration tests.
471
+ [fix] msnodesql: Manual transaction aborting.
472
+ [fix] msnodesql: Tests.
473
+
474
+ v2.1.3 (2015-05-03)
475
+ -------------------
476
+ [fix] msnodesql: Release connection to pool on query error (Farhan Khan)
477
+
478
+ v2.1.2 (2015-03-28)
479
+ -------------------
480
+ [fix] Fix name parsing in Table constructor (David Mercer)
481
+
482
+ v2.1.1 (2015-02-25)
483
+ -------------------
484
+ [fix] Fix Promise in Prepared Statement
485
+
486
+ v2.1.0 (2015-02-20)
487
+ -------------------
488
+ [new] Detailed SQL errors
489
+ [fix] Precise detection of column data types
490
+
491
+ v2.0.0 (2015-02-17)
492
+ -------------------
493
+ [change] Updated to latest Tedious 1.10.0
494
+ [new] Promises
495
+ [new] Pipe request to object stream
496
+ [new] Integrated type checks
497
+ [new] CLI
498
+ [fix] Transaction Abort Handling
499
+ [fix] Allow rollback on transaction with queued requests
500
+ [fix] Connection pool fixes
501
+ [fix] Minor fixes
502
+
503
+ v1.3.0 (2014-10-27)
504
+ -------------------
505
+ [change] Updated to latest Tedious 1.7.0
506
+ [new] Tedious: Char and NChar types are now available as input parameters
507
+
508
+ v1.2.1 (2014-10-07)
509
+ -------------------
510
+ [change] Updated to latest Tedious 1.5.3
511
+
512
+ v1.2.0 (2014-08-26)
513
+ -------------------
514
+ [change] Updated to latest Tedious 1.4.0
515
+ [new] Added support for bulk insert.
516
+
517
+ v1.1.1 (2014-08-07)
518
+ -------------------
519
+ [new] Added column index to recordset metadata.
520
+ [fix] Minor fixes in Tedious driver
521
+
522
+ v1.1.0 (2014-07-13)
523
+ -------------------
524
+ [change] Updated to latest Tedious 1.1.0
525
+ [new] Added support for domain logins (NTLM)
526
+
527
+ v1.0.2 (2014-07-04)
528
+ -------------------
529
+ [new] Added support for input and output parameters in batch method.
530
+ [new] Added checks for SQL injection in parameter names
531
+
532
+ v1.0.1 (2014-07-04)
533
+ -------------------
534
+ [new] Added support for Streaming in Prepared Statements
535
+
536
+ v1.0.0 (2014-07-04)
537
+ -------------------
538
+ [new] Start of semantic versioning, and commitment to stable API until 2.0.0
539
+
540
+ v0.6.2 (2014-07-04)
541
+ -------------------
542
+ [new] Added batch() method to execute sql commands like "create procedure"
543
+ [new] Cancel request in node-tds driver
544
+ [fix] Fixed VarChar/NVarChar/VarBinary MAX in prepared statements
545
+
546
+ v0.6.1 (2014-07-04)
547
+ -------------------
548
+ [change] TDS debugging simplified
549
+
550
+ v0.6.0 (2014-07-03)
551
+ -------------------
552
+ [change] Updated to latest Tedious 1.0.0
553
+ [new] Added support for Streaming
554
+ [new] Added option to set request timeout (config.requestTimeout = 15000)
555
+ [new] Errors documented
556
+ [change] Connection timeout renamed from config.timeout to config.connectionTimeout
557
+ [fix] Minor bug fixes
558
+
559
+ v0.5.5 (2014-06-24)
560
+ -------------------
561
+ [fix] Failed login left open connection pool
562
+
563
+ v0.5.4 (2014-06-15)
564
+ -------------------
565
+ [new] Multiple errors handling
566
+
567
+ v0.5.3 (2014-04-04)
568
+ -------------------
569
+ [fix] Multiple recordsets in Prepared Statements
570
+
571
+ v0.5.2 (2014-04-04)
572
+ -------------------
573
+ [new] Support for Prepared Statements
574
+ [fix] Fixed order of output parameters
575
+ [fix] Minor fixes in node-tds driver
576
+
577
+ v0.5.1 (2014-04-01)
578
+ -------------------
579
+ [change] Updated to new Tedious 0.2.1
580
+ [new] You can now easily setup type's length/scale (sql.VarChar(50))
581
+ [new] Serialization of Geography and Geometry CLR types
582
+ [new] Support for creating Table-Value Parameters (var tvp = new sql.Table())
583
+ [new] Output parameters are now Input-Output and can handle initial value
584
+ [new] Option to choose whether to pass/receive times in UTC or local time
585
+ [new] Connecting to named instances simplified
586
+ [change] Default SQL data type for JS String type is now NVarChar (was VarChar)
587
+
588
+ v0.5.0 (2014-01-25)
589
+ -------------------
590
+ [new] You can now attach event listeners to Connection (connect, close), Transaction (begin, commit, rollback) and Request (row, recordset, done)
591
+ [new] You can now set length of Char, NChar and Binary output parameters
592
+ [new] You can now change default transaction isolation level
593
+ [change] Errors are now splitted to three categories for better error handling - ConnectionError, TransactionError, ReqestError
594
+ [new] Tedious: Binary and VarBinary types are now available as input and output parameters
595
+ [new] Tedious: Image type is now available as input parameter
596
+ [change] Tedious: Binary, VarBinary and Image types are now returned as buffer (was byte array)
597
+ [change] Tedious: Transaction isolationLevel default is now READ_COMMITED (was READ_UNCOMMITED)
598
+ [fix] Tedious: Fixed issue when zero value was casted as null when using BigInt as input parameter
599
+ [fix] Tedious: Fixed issue when dates before 1900/01/01 in input parameters resulted in "Out of bounds" error
600
+ [new] node-tds: UniqueIdentifier type in now available as input and output parameter
601
+ [fix] node-tds: UniqueIdentifier type is now parsed correctly as string value (was buffer)
602
+ [fix] node-tds: Text, NText, Char, NChar, VarChar and NVarChar input parameters has correct lengths
603
+ [fix] node-tds: Fixed Error messages
604
+ [fix] Msnodesql: Char, NChar, Xml, Text, NText and VarBinary types are now correctly functional as output parameters
605
+
606
+ v0.4.5 (2014-01-23)
607
+ -------------------
608
+ [new] Added support for "co" flow controller via co-mssql module
609
+
610
+ v0.4.4 (2014-01-22)
611
+ -------------------
612
+ [change] returnValue also accessible as property of recordsets
613
+
614
+ v0.4.3 (2014-01-14)
615
+ -------------------
616
+ [fix] Even better network error handling in tedious
617
+ [new] Module is compatible with Node.js 0.11
618
+
619
+ v0.4.2 (2014-01-06)
620
+ -------------------
621
+ [new] Added connection timeout for node-tds
622
+ [fix] Module now handle tedious network errors correctly
623
+ [fix] Connection pool now destroy failed connections correctly
624
+ [fix] Connection to instance name via tedious now works correctly
625
+ [change] Option 'timeout' is now common option for all drivers (see documentation)
626
+
627
+ v0.4.1 (2013-12-13)
628
+ -------------------
629
+ [fix] Filter empty recordsets when NOCOUNT is OFF
630
+
631
+ v0.4.0 (2013-12-12)
632
+ -------------------
633
+ [new] Added support for transactions.
634
+ [new] node-tds is now available as an optional TDS driver.
635
+ [new] Documentation updated to CSDoc spec.
636
+ [change] Tedious driver no longer use tedious-connection-pool for connection pooling
637
+ [change] Msnodesql is now pooled
638
+
639
+ v0.3.4 (2013-10-23)
640
+ -------------------
641
+ [new] Queries with input and output parameters.
642
+
643
+ v0.3.3 (2013-10-23)
644
+ -------------------
645
+ [new] Test connection when tedious pool is created.
646
+
647
+ v0.3.2 (2013-09-30)
648
+ -------------------
649
+ [new] Added support for multiple connections.
650
+
651
+ v0.3.1 (2013-09-13)
652
+ -------------------
653
+ [fix] NaN values of input parameters are automatically converted to null.
654
+
655
+ v0.3.0 (2013-09-08)
656
+ -------------------
657
+ [new] Documentation extended
658
+ [new] Microsoft Driver for Node.js for SQL Server is now available as an optional TDS driver.
659
+ [new] Metadata are now accesible trough recordset.columns property.
660
+ [new] Support for multiple recordsets in query.
661
+ [fix] SQL null values are now correctly casted as JS null.
662
+ [change] Default SQL data type for JS Number is now sql.Int (was sql.BigInt).
663
+
664
+ v0.2.5 (2013-09-05)
665
+ -------------------
666
+ [fix] Multiple columns with identical name in same recordset are now handled correctly.
667
+
668
+ v0.2.4 (2013-08-15)
669
+ -------------------
670
+ [fix] Errors are now instance of Error.
671
+ [fix] Empty recordsets fixed.
672
+
673
+ v0.2.3 (2013-08-14)
674
+ -------------------
675
+ [new] Verbose mode for query.
676
+
677
+ v0.2.2 (2013-08-11)
678
+ -------------------
679
+ [new] Verbose mode for stored procedure.
680
+ [fix] Null values fixed.
681
+
682
+ v0.2.0 (2013-08-10)
683
+ -------------------
684
+ [change] Project was renamed from xsp-mssql to node-mssql.
685
+ [fix] Some minor bug fixes.
686
+
687
+ v0.1.0 (2013-07-10)
688
+ -------------------
689
+ Initial release.
package/LICENSE.md CHANGED
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2013-2018 Patrik Simek and contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
1
+ MIT License
2
+
3
+ Copyright (c) 2013-2018 Patrik Simek and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Microsoft SQL Server client for Node.js
4
4
 
5
- [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Travis CI][travis-image]][travis-url] [![Appveyor CI][appveyor-image]][appveyor-url] [![Join the chat at https://gitter.im/patriksimek/node-mssql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/patriksimek/node-mssql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5
+ [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Appveyor CI][appveyor-image]][appveyor-url] [![Join the chat at https://gitter.im/patriksimek/node-mssql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/patriksimek/node-mssql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
6
 
7
7
  Supported TDS drivers:
8
8
  - [Tedious][tedious-url] (pure JavaScript - Windows/macOS/Linux, default)
@@ -140,6 +140,8 @@ async () => {
140
140
  * [SQL injection](#sql-injection)
141
141
  * [Known Issues](#known-issues)
142
142
  * [Contributing](https://github.com/tediousjs/node-mssql/wiki/Contributing)
143
+ * [8.x to 9.x changes](#8x-to-9x-changes)
144
+ * [7.x to 8.x changes](#7x-to-8x-changes)
143
145
  * [6.x to 7.x changes](#6x-to-7x-changes)
144
146
  * [5.x to 6.x changes](#5x-to-6x-changes)
145
147
  * [4.x to 5.x changes](#4x-to-5x-changes)
@@ -571,36 +573,12 @@ Complete list of pool options can be found [here](https://github.com/vincit/tarn
571
573
  In addition to configuration object there is an option to pass config as a connection string. Connection strings are supported.
572
574
 
573
575
  ##### Classic Connection String
574
- ###### Standard configuration using tedious driver
575
576
 
576
577
  ```
577
578
  Server=localhost,1433;Database=database;User Id=username;Password=password;Encrypt=true
578
- ```
579
- ###### Standard configuration using msnodesqlv8 driver
580
- ```
581
579
  Driver=msnodesqlv8;Server=(local)\INSTANCE;Database=database;UID=DOMAIN\username;PWD=password;Encrypt=true
582
580
  ```
583
581
 
584
- ##### Azure Active Directory Authentication Connection String
585
-
586
- Several types of Azure Authentication are supported:
587
- ###### Authentication using Default Azure Credentials
588
- ```
589
- Server=*.database.windows.net;Database=database;Authentication=azure-active-directory-default;ClientID=clientid;Encrypt=true
590
- ```
591
- ###### Authentication using Active Directory Password
592
- ```
593
- Server=*.database.windows.net;Database=database;Authentication=azure-active-directory-password;User Id=username;Password=password;ClientID=clientid;TenantID=tenantid;Encrypt=true
594
- ```
595
- ###### Authentication using Access Token
596
- ```
597
- Server=*.database.windows.net;Database=database;Authentication=azure-active-directory-access-token;Token=token;Encrypt=true
598
- ```
599
- ###### Authentication using Service Principal
600
- ```
601
- Server=*.database.windows.net;Database=database;Authentication=azure-active-directory-service-principal-secret;ClientID=clientid;ClientSecret=clientsecret;TenantID=tenantid;Encrypt=true
602
- ```
603
-
604
582
  ## Drivers
605
583
 
606
584
  ### Tedious
@@ -2049,10 +2027,10 @@ request.query('select @myval as myval', (err, result) => {
2049
2027
  - If you're facing problems with connecting SQL Server 2000, try setting the default TDS version to 7.1 with `config.options.tdsVersion = '7_1'` ([issue](https://github.com/tediousjs/node-mssql/issues/36))
2050
2028
  - If you're executing a statement longer than 4000 chars on SQL Server 2000, always use [batch](#batch-batch-callback) instead of [query](#query-command-callback) ([issue](https://github.com/tediousjs/node-mssql/issues/68))
2051
2029
 
2052
- ## 8.x to 7.x changes
2030
+ ## 8.x to 9.x changes
2053
2031
 
2054
2032
  - Upgraded to tedious version 15
2055
- - Dropped support for Node version < 12
2033
+ - Dropped support for Node version <= 12
2056
2034
 
2057
2035
  ## 7.x to 8.x changes
2058
2036
 
@@ -2115,10 +2093,8 @@ to create new connections or not
2115
2093
  [downloads-url]: https://www.npmjs.com/package/mssql
2116
2094
  [david-image]: https://img.shields.io/david/tediousjs/node-mssql.svg?style=flat-square
2117
2095
  [david-url]: https://david-dm.org/tediousjs/node-mssql
2118
- [travis-image]: https://img.shields.io/travis/tediousjs/node-mssql/master.svg?style=flat-square&label=unit
2119
- [travis-url]: https://travis-ci.org/tediousjs/node-mssql
2120
2096
  [appveyor-image]: https://ci.appveyor.com/api/projects/status/e5gq1a0ujwams9t7/branch/master?svg=true
2121
2097
  [appveyor-url]: https://ci.appveyor.com/project/tediousjs/node-mssql
2122
2098
 
2123
2099
  [tedious-url]: https://www.npmjs.com/package/tedious
2124
- [msnodesqlv8-url]: https://www.npmjs.com/package/msnodesqlv8
2100
+ [msnodesqlv8-url]: https://www.npmjs.com/package/msnodesqlv8
package/bin/mssql CHANGED
File without changes
@@ -64,9 +64,10 @@ class ConnectionPool extends EventEmitter {
64
64
  this.config.arrayRowMode = this.config.arrayRowMode || false
65
65
  this.config.validateConnection = 'validateConnection' in this.config ? this.config.validateConnection : true
66
66
 
67
- if (/^(.*)\\(.*)$/.exec(this.config.server)) {
68
- this.config.server = RegExp.$1
69
- this.config.options.instanceName = RegExp.$2
67
+ const namedServer = /^(.*)\\(.*)$/.exec(this.config.server)
68
+ if (namedServer) {
69
+ this.config.server = namedServer[1]
70
+ this.config.options.instanceName = namedServer[2]
70
71
  }
71
72
 
72
73
  if (typeof this.config.options.useColumnNames !== 'undefined' && this.config.options.useColumnNames !== true) {
@@ -114,9 +115,6 @@ class ConnectionPool extends EventEmitter {
114
115
  case 'attachdbfilename':
115
116
  break
116
117
  case 'authentication':
117
- Object.assign(config.authentication, {
118
- type: value
119
- })
120
118
  break
121
119
  case 'column encryption setting':
122
120
  break
@@ -136,16 +134,6 @@ class ConnectionPool extends EventEmitter {
136
134
  break
137
135
  case 'context connection':
138
136
  break
139
- case 'client id':
140
- Object.assign(config.authentication.options, {
141
- clientId: value
142
- })
143
- break
144
- case 'client secret':
145
- Object.assign(config.authentication.options, {
146
- clientSecret: value
147
- })
148
- break
149
137
  case 'current language':
150
138
  Object.assign(config.options, {
151
139
  language: value
@@ -162,13 +150,21 @@ class ConnectionPool extends EventEmitter {
162
150
  if (/^tcp:/i.test(server)) {
163
151
  server = server.substr(4)
164
152
  }
165
- if (/^(.*)\\(.*)$/.exec(server)) {
166
- server = RegExp.$1
167
- instanceName = RegExp.$2
153
+ const namedServerParts = /^(.*)\\(.*)$/.exec(server)
154
+ if (namedServerParts) {
155
+ server = namedServerParts[1].trim()
156
+ instanceName = namedServerParts[2].trim()
168
157
  }
169
- if (/^(.*),(.*)$/.exec(server)) {
170
- server = RegExp.$1.trim()
171
- port = parseInt(RegExp.$2.trim(), 10)
158
+ const serverParts = /^(.*),(.*)$/.exec(server)
159
+ if (serverParts) {
160
+ server = serverParts[1].trim()
161
+ port = parseInt(serverParts[2].trim(), 10)
162
+ } else {
163
+ const instanceParts = /^(.*),(.*)$/.exec(instanceName)
164
+ if (instanceParts) {
165
+ instanceName = instanceParts[1].trim()
166
+ port = parseInt(instanceParts[2].trim(), 10)
167
+ }
172
168
  }
173
169
  if (server === '.' || server === '(.)' || server.toLowerCase() === '(localdb)' || server.toLowerCase() === '(local)') {
174
170
  server = 'localhost'
@@ -235,16 +231,6 @@ class ConnectionPool extends EventEmitter {
235
231
  break
236
232
  case 'replication':
237
233
  break
238
- case 'tenant id':
239
- Object.assign(config.authentication.options, {
240
- tenantId: value
241
- })
242
- break
243
- case 'token':
244
- Object.assign(config.authentication.options, {
245
- token: value
246
- })
247
- break
248
234
  case 'transaction binding':
249
235
  Object.assign(config.options, {
250
236
  enableImplicitTransactions: value.toLowerCase() === 'implicit unbind'
@@ -262,9 +248,10 @@ class ConnectionPool extends EventEmitter {
262
248
  case 'user id': {
263
249
  let user = value
264
250
  let domain
265
- if (/^(.*)\\(.*)$/.exec(user)) {
266
- domain = RegExp.$1
267
- user = RegExp.$2
251
+ const domainUser = /^(.*)\\(.*)$/.exec(user)
252
+ if (domainUser) {
253
+ domain = domainUser[1]
254
+ user = domainUser[2]
268
255
  }
269
256
  Object.assign(config, {
270
257
  domain,
@@ -301,7 +288,7 @@ class ConnectionPool extends EventEmitter {
301
288
  break
302
289
  }
303
290
  return config
304
- }, { authentication: { options: {} }, options: {}, pool: {} })
291
+ }, { options: {}, pool: {} })
305
292
  }
306
293
 
307
294
  /**
@@ -43,8 +43,9 @@ class RequestError extends MSSQLError {
43
43
  }
44
44
 
45
45
  this.name = 'RequestError'
46
- if ((/^\[Microsoft\]\[SQL Server Native Client 11\.0\](?:\[SQL Server\])?([\s\S]*)$/).exec(this.message)) {
47
- this.message = RegExp.$1
46
+ const parsedMessage = (/^\[Microsoft\]\[SQL Server Native Client 11\.0\](?:\[SQL Server\])?([\s\S]*)$/).exec(this.message)
47
+ if (parsedMessage) {
48
+ this.message = parsedMessage[1]
48
49
  }
49
50
  }
50
51
  }
@@ -1,9 +1,9 @@
1
- 'use strict'
2
-
3
- module.exports = {
4
- READ_UNCOMMITTED: 0x01,
5
- READ_COMMITTED: 0x02,
6
- REPEATABLE_READ: 0x03,
7
- SERIALIZABLE: 0x04,
8
- SNAPSHOT: 0x05
9
- }
1
+ 'use strict'
2
+
3
+ module.exports = {
4
+ READ_UNCOMMITTED: 0x01,
5
+ READ_COMMITTED: 0x02,
6
+ REPEATABLE_READ: 0x03,
7
+ SERIALIZABLE: 0x04,
8
+ SNAPSHOT: 0x05
9
+ }
@@ -531,8 +531,9 @@ class Request extends BaseRequest {
531
531
  })
532
532
 
533
533
  req.on('info', msg => {
534
- if ((/^\[Microsoft\]\[SQL Server Native Client 11\.0\](?:\[SQL Server\])?([\s\S]*)$/).exec(msg.message)) {
535
- msg.message = RegExp.$1
534
+ const parsedMessage = (/^\[Microsoft\]\[SQL Server Native Client 11\.0\](?:\[SQL Server\])?([\s\S]*)$/).exec(msg.message)
535
+ if (parsedMessage) {
536
+ msg.message = parsedMessage[1]
536
537
  }
537
538
 
538
539
  this.emit('info', {
package/package.json CHANGED
@@ -21,20 +21,27 @@
21
21
  "azure",
22
22
  "node-mssql"
23
23
  ],
24
- "version": "9.1.0",
24
+ "version": "9.1.2",
25
25
  "main": "index.js",
26
26
  "repository": "github:tediousjs/node-mssql",
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@tediousjs/connection-string": "^0.4.1",
30
- "commander": "^9.4.0",
30
+ "commander": "^11.0.0",
31
31
  "debug": "^4.3.3",
32
32
  "rfdc": "^1.3.0",
33
33
  "tarn": "^3.0.2",
34
34
  "tedious": "^15.0.1"
35
35
  },
36
36
  "devDependencies": {
37
+ "@commitlint/cli": "^17.6.6",
38
+ "@commitlint/config-conventional": "^17.6.6",
39
+ "@semantic-release/commit-analyzer": "^10.0.1",
40
+ "@semantic-release/github": "^9.0.3",
41
+ "@semantic-release/npm": "^10.0.4",
42
+ "@semantic-release/release-notes-generator": "^11.0.4",
37
43
  "mocha": "^10.0.0",
44
+ "semantic-release": "^21.0.7",
38
45
  "standard": "^17.0.0"
39
46
  },
40
47
  "engines": {
@@ -47,11 +54,12 @@
47
54
  "msnodesqlv8.js"
48
55
  ],
49
56
  "scripts": {
57
+ "commitlint": "commitlint --from origin/master --to HEAD",
50
58
  "test": "npm run lint && npm run test-unit",
51
59
  "lint": "standard",
52
60
  "test-unit": "mocha --exit -t 15000 test/common/unit.js",
53
61
  "test-tedious": "mocha --exit -t 15000 test/tedious",
54
- "test-msnodesqlv8": "mocha --exit -t 15000 test/msnodesqlv8",
62
+ "test-msnodesqlv8": "mocha --exit -t 30000 test/msnodesqlv8",
55
63
  "test-cli": "mocha --exit -t 15000 test/common/cli.js"
56
64
  },
57
65
  "bin": {