npm / tedious
tedious
What changed in tedious 3 to 20, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-23.
50 breaking2 security1 deprecations8 new APIs and options3 performance2 behavior and defaults1 tooling20 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittedious 2027 changes
Breaking changes 2
The sprintf-js dependency was removed.
Node.js 22 is now the minimum supported version; Node.js 18, 20, and 21 are no longer supported.
Security 2
Passwords are redacted in Login7 payload debug output.
Rejects TLS downgrades when encryption is required, preventing connections from silently using weaker encryption.
Deprecations 1
TDS 7.1 support is deprecated.
New APIs and options 2
Adds support for the COLINFO token.
Adds support for the TABNAME token.
Performance 3
Bulk load rows are serialized with an async generator and coalesced into packet-sized chunks, improving performance.
Parsing of date and time values is faster.
Avoids capturing a stack trace in NotEnoughDataError.
Behavior and default changes 1
The max data type and table-valued parameters can now be streamed from async sources.
Fixes and other changes 16
Bulk load errors now include column and row context, making failures easier to identify.
A Binary length of 0 or NaN is resolved from the value.
Sends the PLP terminator when an NVarChar or VarBinary length is missing.
Preserves Unicode across streamed text chunks.
Nagle's algorithm is disabled on the connection socket.
A request can be executed again after it was canceled.
Output parameters are now allowed on prepared statements.
Bulk load serialization errors are now wrapped in InputError.
Token parse failures are surfaced as request errors.
Caps the TLS max send fragment size for connections using encrypt: "strict".
Large DECIMAL/NUMERIC values are serialized without overflow.
SNI is omitted for IP-based hostnames.
Canceled requests are completed when the server does not respond.
Prevents stale errors.
Connection establishment is aborted when the connection is closed.
Prevents a connection from hanging when the Login7 response is interrupted.
tedious 197 changes
Breaking changes 2
AbortSignal handling was cleaned up in a breaking change.
tedious now requires Node.js version 18.17 or later.
New APIs and options 2
Adds the databaseMirroringPartner event handler.
Tedious now supports Azure SQL Database in Microsoft Fabric.
Fixes and other changes 3
The cancel timer is cleared when a connection is cleaned up.
The message stream remains aligned when canceling with a disabled cancel timeout.
The schema is included in TVP type declarations.
tedious 181 changes
Tooling 1
tedious now includes first-party TypeScript definitions, which might differ from those in @types/tedious.
tedious 171 changes
Breaking changes 1
Node.js 16.x and 19.x are no longer supported by tedious.
tedious 162 changes
Breaking changes 2
Node.js 14.x is no longer supported by tedious.
Node.js 19 support was added.
tedious 155 changes
Breaking changes 5
The default value was removed, and
azure-active-directory-passwordauthentication now requires specifying an Azure Application'sclientId.The
domainoption was removed fromazure-active-directory-passwordauthentication and replaced bytenantId.Node.js 12.x is no longer supported.
The
tenantIdoption replacesdomainforazure-active-directory-passwordauthentication.The default changes from true to false, so encrypted connections may fail if the server certificate cannot be validated against the default CA list.
tedious 146 changes
Breaking changes 6
The addRow method was removed from BulkLoad; pass row data as an Iterable or AsyncIterable instead.
Values for char, nchar, varchar, nvarchar, text, ntext, and uniqueidentifier no longer support automatic type coercion and must be strings.
Constructing a ConnectionError now requires the new keyword.
The getRowStream method was removed from BulkLoad; pass row data as an Iterable or AsyncIterable instead.
Constructing a RequestError now requires the new keyword.
The sspichallenge event was removed from Connection.
tedious 135 changes
Breaking changes 4
The msiEndpoint option is no longer supported for this authentication option.
The msiSecret option is no longer supported for this authentication option.
The msiEndpoint option is no longer supported for this authentication method.
Azure authentication now uses @azure/identity instead of adal-node.
Behavior and default changes 1
Authentication behavior may change when using Azure-specific authentication methods.
tedious 123 changes
Breaking changes 3
Validation of bulk load values is always enabled.
Node.js 10.x is no longer supported;
tedioussupports only Node.js v12 or newer.The connection option was removed.
tedious 111 changes
Breaking changes 1
Node.js 6.x and 8.x are no longer supported.
tedious 103 changes
Breaking changes 2
Creating a Connection instance no longer establishes a server connection automatically; call connect or the instance's connect method instead.
The default changes from false to true, enabling BulkLoad parameter validation unless explicitly disabled.
New APIs and options 1
A new helper function provides a way to establish a connection after creating a Connection instance.
tedious 81 changes
Breaking changes 1
Date calculation is independent of timezones and offsets, which can change values written to the database in some edge cases.
tedious 71 changes
Breaking changes 1
The default for enableArithAbort changes to true, affecting how arithmetic, overflow, divide-by-zero, and domain errors are handled and whether transactions are rolled back or execution continues.
tedious 616 changes
Breaking changes 16
The long-deprecated BitN parameter type was removed.
The long-deprecated DateN parameter type was removed.
The long-deprecated DateTime2N parameter type was removed.
The long-deprecated DateTimeOffsetN parameter type was removed.
The long-deprecated DecimalN parameter type was removed.
Support for the deprecated domain authentication option was removed; use the authentication property instead.
Connections are encrypted by default unless encrypt is explicitly set to false; previously, unspecified encrypt fell back to no encryption.
The long-deprecated FloatN parameter type was removed.
The long-deprecated IntN parameter type was removed.
The long-deprecated MoneyN parameter type was removed.
The long-deprecated Null parameter type was removed.
The long-deprecated NumericN parameter type was removed.
Support for the deprecated password authentication option was removed; use the authentication property instead.
The long-deprecated TimeN parameter type was removed.
The long-deprecated UniqueIdentifierN parameter type was removed.
Support for the deprecated userName authentication option was removed; use the authentication property instead.
tedious 55 changes
Breaking changes 2
Canceled requests no longer receive data.
Timed out requests no longer receive data.
New APIs and options 2
BulkRequests can now be canceled.
Request-level cancellation methods were added, allowing developers to cancel requests.
Fixes and other changes 1
Socket errors are forwarded to the current request when it is in the SENT_ATTENTION state.
tedious 42 changes
Breaking changes 1
Configuration checks are stricter: deprecated values and types are dropped, many options require values or undefined instead of null, and some options accept actual numbers rather than strings converted to numbers.
New APIs and options 1
Adds a new authentication option to the connection configuration.
tedious 31 changes
Breaking changes 1
Node.js v4.x is no longer supported; upgrade to a newer Node.js version or use an older version of tedious.