Comparing version 0.3.0 to 1.0.0
@@ -362,3 +362,3 @@ // Generated by CoffeeScript 1.7.1 | ||
if (!token.tdsVersion) { | ||
_this.loginError = ConnectionError("Server responded with unknown TDS version."); | ||
_this.loginError = ConnectionError("Server responded with unknown TDS version.", 'ETDS'); | ||
_this.loggedIn = false; | ||
@@ -368,3 +368,3 @@ return; | ||
if (!token["interface"]) { | ||
_this.loginError = ConnectionError("Server responded with unsupported interface."); | ||
_this.loginError = ConnectionError("Server responded with unsupported interface.", 'EINTERFACENOTSUPP'); | ||
_this.loggedIn = false; | ||
@@ -371,0 +371,0 @@ return; |
@@ -29,3 +29,3 @@ { | ||
], | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"main": "./lib/tedious.js", | ||
@@ -32,0 +32,0 @@ "repository": { |
@@ -7,36 +7,4 @@ # Tedious (node implementation of TDS) | ||
## What's new in 0.3 | ||
See the [changelog](https://github.com/pekim/tedious/blob/master/History.md) for version history. | ||
- Added support for default connection isolation level | ||
- Added support for returning camel cased columns | ||
- Added support for building lib on Windows | ||
- Fixed issue with IEEE 754 rounding errors | ||
- Minor fixes | ||
## What's new in 0.2 | ||
- Added support for TDS 7.4 | ||
- Added request cancelation | ||
- Added support for UDT, TVP, Time, Date, DateTime2 and DateTimeOffset data types | ||
- Added option to choose whether to pass/receive times in UTC or local time (`useUTC`) | ||
- Binary, VarBinary, Image, Numeric, Decimal, SmallMoney and Money are now supported as input parameters | ||
- Binary, VarBinary and Image types are now returned as Buffer (was Array) | ||
- Connection errors are now correctly propagated to `connect` event | ||
- Better support for numeric column names and columns with same name | ||
- Errors are now instanceof Error / ConnectionError / RequestError (was plain text) | ||
- Transaction isolationLevel default is now `READ_COMMITED` (was `READ_UNCOMMITED`) | ||
- Fixed issue when zero value was casted as null when using BigInt as input parameter | ||
- Fixed issue when dates before 1900/01/01 in input parameters resulted in "Out of bounds" error | ||
- Fixed negative return values | ||
- Fixed compatibility with TDS 7.1 (SQL Server 2000) | ||
- Minor fixes | ||
### Upgrade from 0.1.5 to 0.2 | ||
- Time values are now passed/received in UTC instead of local time. You can disable this by `options.useUTC = false`. | ||
- There was a change in default transaction isolationLevel from `READ_UNCOMMITED` to `READ_COMMITED`. You can disable this by `options.isolationLevel = require('tedious').ISOLATION_LEVEL.READ_UNCOMMITTED`. | ||
- Binary values are now returned in Buffers. | ||
- All error values are no longer strings, but instances of Error. | ||
- Results (rows and column metadata) are now simple arrays. You can change this to key-value collections by `options.useColumnNames = true`. | ||
### Supported TDS versions | ||
@@ -43,0 +11,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
166298
43
0
45