mssql 9.1.2 → 9.1.3

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.
@@ -38,8 +38,15 @@ class ConnectionPool extends BaseConnectionPool {
38
38
  return this.config.options.trustedConnection ? 'Yes' : 'No'
39
39
  case 'encrypt':
40
40
  return this.config.options.encrypt ? 'Yes' : 'No'
41
- default:
42
- return this.config[key] != null ? this.config[key] : ''
41
+ default: {
42
+ let val = this.config[key] || ''
43
+ // quote strings that contain '{' or '}' but not ones that start and end with them (assume they are already quoted)
44
+ if (val && typeof val === 'string' && !(val.startsWith('{') && val.endsWith('}')) && (val.indexOf('{') !== -1 || val.indexOf('}') !== -1)) {
45
+ // quote values in `{}` and escape any existing `}` chars
46
+ val = `{${val.replace(/}/g, '}}')}}`
47
+ }
48
+ return val
49
+ }
43
50
  }
44
51
  })
45
52
 
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "azure",
22
22
  "node-mssql"
23
23
  ],
24
- "version": "9.1.2",
24
+ "version": "9.1.3",
25
25
  "main": "index.js",
26
26
  "repository": "github:tediousjs/node-mssql",
27
27
  "license": "MIT",
package/CHANGELOG.txt DELETED
@@ -1,689 +0,0 @@
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.